www.homeseer.com    
 

Go Back   HomeSeer Message Board > Analog & Digital IO Device Plug-ins > Analog & Digital IO Discussion > Arduino Plugin (3P)

Arduino Plugin (3P) Discussions related to the Arduion plugin for HS3 by enigmatheatre

Reply
 
Thread Tools Display Modes
  #1  
Old November 12th, 2017, 12:21 PM
telewizard13's Avatar
telewizard13 telewizard13 is offline
Seer Deluxe
 
Join Date: Jan 2007
Location: Baltimore
Posts: 181
Blink and Flash don't work reliably from events

I spent almost 2 days trying to get the release plugin that is in the updater to work, but I had major problems with it! Uninstalled everything and loaded Beta 1.0.0.142 and it seems to work ALMOST as it should. In the Device Management page, when I hit the blink or flash buttons, they only work about 70-80% of the time. Sometimes I have to hit the button multiple times to activate an output. Flash seems to be the most buggy and it only fires a programmed output occasionally. For the flash function, I have created a work-around event where if an input on board 1 is activated by an event, I turn ON a pin driving a buffered relay on board two, then I add a wait event of .2 seconds and then an OFF statement. This, at least, works every time.
Any ideas?

Running HS3.0.0.368 on Windows 10.0.15063

Last edited by telewizard13; November 17th, 2017 at 09:10 AM. Reason: results of testing
Reply With Quote
  #2  
Old November 14th, 2017, 09:45 AM
telewizard13's Avatar
telewizard13 telewizard13 is offline
Seer Deluxe
 
Join Date: Jan 2007
Location: Baltimore
Posts: 181
further Blink and Flash and other observations

There appears to be a issue with with mixing inputs and outputs on the same Arduino board when two event actions requiring both are closely timed, like say a doorbell. Lets say, on a single board, pin 2 is an input and pin 6 is an output. If the event is "when input pin 2 is closed, immediately cause output pin 6 to do something", the output action will not happen! Apparently in the Arduino HS plug-in or the sketch, the system is still busy doing something after sending the pin 2 status change to HS, and doesn't appear to buffer the change output pin 6 command, so the board never gets or executes the output change on pin 6. It appears that if you insert a one second delay between the input and output events, it will work, but the delay could be problematic for some applications requiring an immediate output response. If you need an immediate response to an input change, I found it is better to use separate Arduino boards for input and output functions, which is what I have done for my doorbell function. At least the Arduino Uno boards are cheap enough that this isn't much of an issue. The Flash function is still very unreliable in .141, so I am using this event structure for the flash function; "on a board 1 input change to closed, set an output pin on board two to ON, add a very short wait event for some period of time (like .3 sec), then turn the output pin OFF" This works every time.

Last edited by telewizard13; November 17th, 2017 at 09:24 AM. Reason: further experimentation
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
blink / flash function not working SoWhat Arduino Plugin (3P) 3 November 15th, 2016 05:30 AM
blink and flash khriss75 Arduino Plugin (3P) 2 October 24th, 2016 07:45 AM
[Flash 4] Audrey LCARS Flash Interface Discussion Mark L Script & Plug-In Library Discussion 38 February 26th, 2003 05:53 PM
[Flash 4] Audrey LCARS Flash Interface Mark L Script & Plug-In Library 0 July 28th, 2002 07:20 PM


All times are GMT -4. The time now is 09:52 PM.


Copyright HomeSeer Technologies, LLC