Announcement

Collapse
No announcement yet.

Arduino Plugin feature requests

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • enigmatheatre
    replied
    Originally posted by dreambox View Post
    Hi,
    It would be nice to have also an inverted option for outputs, like there is now for the analog input.
    Many relay boards use zero as the active High.

    I solved it now in the Homeseer.ino in this way:

    Code:
     case 'O':
    
            pinMode(Byte3, OUTPUT);
            if (Byte4 > 1) {
              OutPinArray[Byte5 - 1] = Byte3;
              OutputMillis[Byte5 - 1] = Byte4;
              bitWrite(OutputToggle, Byte3, 0);
              previousOutMillis[Byte5 - 1] = 0;
            }
            else
            {
              Byte4 = !Byte4;  // Inverted output Alex Houben 20170328
              OutPinArray[Byte5 - 1] = -1;
              bitWrite(OutputToggle, Byte3, 0);
              digitalWrite(Byte3, Byte4);
              previousOutMillis[Byte5 - 1] = 0;
            }
            break;

    Alex
    You can do this now on each output. Go to the device manager and click on the output name to get to the device configuration page and then click on the Arduino tab. The invert option is there.[emoji6]

    Greig.

    Sent from my SM-G925F using Tapatalk

    Leave a comment:


  • dreambox
    replied
    Hi,
    It would be nice to have also an inverted option for outputs, like there is now for the analog input.
    Many relay boards use zero as the active High.

    I solved it now in the Homeseer.ino in this way:

    Code:
     case 'O':
    
            pinMode(Byte3, OUTPUT);
            if (Byte4 > 1) {
              OutPinArray[Byte5 - 1] = Byte3;
              OutputMillis[Byte5 - 1] = Byte4;
              bitWrite(OutputToggle, Byte3, 0);
              previousOutMillis[Byte5 - 1] = 0;
            }
            else
            {
              Byte4 = !Byte4;  // Inverted output Alex Houben 20170328
              OutPinArray[Byte5 - 1] = -1;
              bitWrite(OutputToggle, Byte3, 0);
              digitalWrite(Byte3, Byte4);
              previousOutMillis[Byte5 - 1] = 0;
            }
            break;

    Alex

    Leave a comment:


  • enigmatheatre
    replied
    Why not just add it to a second board with the normal Sketch?

    Greig.

    Leave a comment:


  • chris2ffer
    replied
    Originally posted by logbuilder View Post
    How would you envision this working? Are you wanting the color picker UI to be on the HS3 device web interface? What is your specific use case?
    Sorry for not clarifying I was thinking the same way it works when you have the board in regular "Arduino" mode. When you have added at least three outputs you can choose which output to use for which color.

    Leave a comment:


  • logbuilder
    replied
    Originally posted by chris2ffer View Post
    Is it possible to add a Color picker also when in API mode? I like using API mode but the picker would be nice to have
    How would you envision this working? Are you wanting the color picker UI to be on the HS3 device web interface? What is your specific use case?

    Leave a comment:


  • chris2ffer
    replied
    Is it possible to add a Color picker also when in API mode? I like using API mode but the picker would be nice to have

    Leave a comment:


  • Pierre
    replied
    Serial reading pin

    Hi,

    I wish I could have my HS-connected Arduino
    - connect on a serial com on one pin
    - and transmit the message in a HS device or by any way I could parse it with scripting.

    The plugin is going really great!
    So far I have transferred 10 inputs, 8 relay inputs and 14 1-wire temperature probes , from out-of-date hardware and software to a simple Mega Arduino and the plugin.
    Scripting and event changes where very easy to manage.
    Only disappointed with the input long delay.
    Transferring the serial messages from my electrical counter directly through Arduino to HS via the plugin will help me get rid of my very-old Quatech serial-to-ethernet box, and many cables.

    Thanks
    Pierre

    Leave a comment:


  • petez69
    replied
    Originally posted by rprade View Post
    I am not running any in production, but I ran 5 NodeMCU boards in continuous testing for over a month as Greig was adding support. They were very reliable connecting and staying connected. My testing was to turn on an output that was connected to an input. Then I would make sure the input changed and log an error if it failed. This took place once every 3 minutes for all 5 boards and there were only a handful of failures over the 30+ days.
    hi Randy

    I modified some old API code for the NodeMCU board a while ago. I used to have fairly regular disconnects hence why I went for the "blue cable". I'm just setting up the "Electronics Den" after moving and I'll get a NodeMCU board going again to test. I've got 3 Megas scattered around the place so I'm not short of I/O ;-)

    Leave a comment:


  • rprade
    replied
    Originally posted by Bill Brower View Post
    Appreciate that. I have ESP8266s scattered around the house but would rather just integrate it with the plugin. Thanks!
    I am not running any in production, but I ran 5 NodeMCU boards in continuous testing for over a month as Greig was adding support. They were very reliable connecting and staying connected. My testing was to turn on an output that was connected to an input. Then I would make sure the input changed and log an error if it failed. This took place once every 3 minutes for all 5 boards and there were only a handful of failures over the 30+ days.

    Leave a comment:


  • Bill Brower
    replied
    Originally posted by rprade View Post
    Go with 1.0.0.139 in the beta section. Follow the instructions in the help file installed with the plug-in for configuration, libraries download, IDE version and for the new sketches. The NodeMCU is only supported with an Arduino sketch, there is not an API sketch at this time. Inputs, outputs, alive pin and LCD are supported. There is no OneWire, analog, PWM or servo support for the NodeMCU. Gregg is planning on adding OneWire and analog pin support as he has time.
    Appreciate that. I have ESP8266s scattered around the house but would rather just integrate it with the plugin. Thanks!

    Leave a comment:


  • rprade
    replied
    Originally posted by Bill Brower View Post
    Where is the NodeMCU download and what rev of the plugin needs to be installed? Thank you!
    Go with 1.0.0.139 in the beta section. Follow the instructions in the help file installed with the plug-in for configuration, libraries download, IDE version and for the new sketches. The NodeMCU is only supported with an Arduino sketch, there is not an API sketch at this time. Inputs, outputs, alive pin and LCD are supported. There is no OneWire, analog, PWM or servo support for the NodeMCU. Greig is planning on adding OneWire and analog pin support as he has time.
    Last edited by rprade; April 15th, 2017, 11:54 AM.

    Leave a comment:


  • Bill Brower
    replied
    Where is the NodeMCU download and what rev of the plugin needs to be installed? Thank you!

    Leave a comment:


  • logbuilder
    replied
    Originally posted by petez69 View Post
    You could probably code that value into the API code when its released and update a device with the latest value....
    Thanks. Might have to go that route as I have other ideas that may require the API sketch.

    Leave a comment:


  • petez69
    replied
    Originally posted by logbuilder View Post
    Just moved my first Arduino from the bench to its new home in my detached garage. It is probably 200 feet away. It is running a nodeMCU and using wifi. Power is AC supplied, no battery.

    I took my phone with me and using a wifi analyzer, I saw I was getting about 30% signal strength but was fluxuating +-5%. Placed the new node and came back inside to see that yes, it had connected to HS3.

    Got me to thinking though, it sure would be nice if the plugin could report the wifi signal strength for each nodeMCU. Maybe update a device once per minute with the percentage or dBm. I see in wifi.h that there is a function that returns the signal strength in dBm. Don't know if you use that lib or not.

    Just a thought.
    You could probably code that value into the API code when its released and update a device with the latest value....

    Leave a comment:


  • logbuilder
    replied
    Just moved my first Arduino from the bench to its new home in my detached garage. It is probably 200 feet away. It is running a nodeMCU and using wifi. Power is AC supplied, no battery.

    I took my phone with me and using a wifi analyzer, I saw I was getting about 30% signal strength but was fluxuating +-5%. Placed the new node and came back inside to see that yes, it had connected to HS3.

    Got me to thinking though, it sure would be nice if the plugin could report the wifi signal strength for each nodeMCU. Maybe update a device once per minute with the percentage or dBm. I see in wifi.h that there is a function that returns the signal strength in dBm. Don't know if you use that lib or not.

    Just a thought.

    Leave a comment:

Working...
X