I haven't done this with Aurdino; but I did do it with Flyport. It is a smaller board which has a wifi interface and general IO. Arduino is probably better for applications where more processing power is needed. General C code can also be used on the Flyport.
Announcement
Collapse
No announcement yet.
Arduino Uno interface
Collapse
X
-
God im a pain!
Now this:
24/07/2012 20:05:15 - Error - Scripting runtime error: System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
Comment
-
Originally posted by supergee View PostGod im a pain!
Now this:
24/07/2012 20:05:15 - Error - Scripting runtime error: System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
Code:hs.writelog("Page Check", Page) TSplit = Page.Split("|") 'then TSplit will contain the temperatures in order that they came from the above data hs.writelog("Upper Boundary", UBound(TSplit)) 'For i As Integer = 0 to 4 'hs.setdevicestring(HC & (DC + i), TSplit(i) & "°C", True) 'hs.setdevicestring(HC & (DC + i), (Convert.ToInt32(TSplit(i) * 100))) 'Next
Comment
-
Oh dear,
It was my fault the first line you gave me:
Sub Main(ByVal Parms As Object)
i managed to change to:
Sub main()
Just changed it back and the device status' are now populated, many thanks I will have a play with this now and see how it goes.
Thanks for your help, and sorry for my terrible attention to detail.
Comment
-
Wanted to see how you were getting on with this, i was able to control the arduino from homeseer but i want to read from it now, could you share all or part of your arduino code or explain how the temps are sent over?
here is my post if you are interested:
http://board.homeseer.com/showthread...hlight=arduino
RaptorHS3 Pro on Windows 8 64bit
53 Z-wave nodes(46 devices, 7 remotes), 15 DS10a's, 10 ms16a's, 9 Oregon Sensors, W800, RFXCOMtrx433, Way2Call, 3 HSTouch Clients, 2xRussound CAS44, Global Cache GC100-12,10 Rollertrol blinds(+ zwave) ,3 Squeezebox Radios and 1 Squeezebox Boom,DMX Arduino via ethernet,Rain8Net,3x Echo Dot's
Check out my electronics blog here:
https://www.facebook.com/RaptorsIrrationalInventions
Comment
-
Originally posted by rmasonjr View PostI expanded my script to be a true HS plugin, but have not released it to the community. It is a serial communication, though - not ethernet. I use it to only control relays on a relay shield. I was hoping to release it as an HS3 plugin when the time comes.
Comment
-
No, I never migrated it to hs3. Even on the hs2 side, the plugin would crash and I never figured it out. Hs3 came along and I moved onto other plugins. Serial plugins are very difficult to master
Sent from my SCH-R970X using TapatalkHS4Pro on a Raspberry Pi4
54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI
HSTouch Clients: 1 Android
Comment
Comment