Howdy,
Setting this up for the first time with an Uno, the connection is USB. Despite the Arduino software being slightly newer, it says it is compatible at startup. "Board 1 Version 4.0.2.18 and Plugin Version 4.0.2.19 are compatible."
I have all of the available Digital I/O and Analog Inputs configured as digital input pins: 2-6, 11-19, 23-28.
I have a wire going from GND through a resistor to an input, and they are not registering in the plug-in. I connected this setup to 0, 7, and A5 and all I got was a seemingly random change:
3/11/2023 12:00:09 Arduino-4 Info Board1, Input:3, Value:1
3/11/2023 11:59:23 Arduino-4 Info Logging Level Changed to Inputs
3/11/2023 11:59:19 Arduino-4 Info Debug logging Enabled
Any ideas what I am doing wrong? I am connecting through this terminal block: https://www.amazon.com/dp/B092LQXSLG but that should not make a difference.
It looks like if I shut down and restart the plug-in, then it picks up the input change. Should I be pulling up each of the inputs (I know some are reversed) or wiring the inputs in a different way to get the reactions I am looking for?
Announcement
Collapse
No announcement yet.
Digital Inputs not making sense
Collapse
X
-
Rick,
No need for a resistor between the ground and the input pin. Just connect to two together, Also you can not use pins 0 or 1 on the Uno when using USB as these are the pins it communicates with so adding anything to them will cause problems. So to solve your problems delete pins 0 and 1 from the board setup and remove the resistors.
If you are using USB as your connection method then I would also recommend installing the latest version of the plugin which I have fixed a timing bug on. This can be downloaded from Here. I will try and add this to the updater next week.
Greig.Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
PIN references are driving me nuts... You mentioned Pins 0 and 1 are for USB, and I see those referenced as IDE Pins 0 and 1, but physical pins they are 2 and 3. When I look at how the plug-in references the pins I used for digital input, the last ones are 23 through 28, corresponding to physical pins, not IDE pins. So what exactly does the plug-in use for reference? If you mentioned pins 0 and 1, are they physical 2 and 3? If not, then pins 23 through 28 do not exist as IDE pins. (23 through 28 physical is 14 through 19 IDE)Regards,
Rick Tinker (a.k.a. "Tink")
Comment
-
Originally posted by Rick Tinker View PostPIN references are driving me nuts... You mentioned Pins 0 and 1 are for USB, and I see those referenced as IDE Pins 0 and 1, but physical pins they are 2 and 3. When I look at how the plug-in references the pins I used for digital input, the last ones are 23 through 28, corresponding to physical pins, not IDE pins. So what exactly does the plug-in use for reference? If you mentioned pins 0 and 1, are they physical 2 and 3? If not, then pins 23 through 28 do not exist as IDE pins. (23 through 28 physical is 14 through 19 IDE)Regards,
Rick Tinker (a.k.a. "Tink")
Comment
-
Originally posted by Rick Tinker View Post
I do see in the log where Input 9, which in the devices says Pin 26, keeps oscillating between 0 and 1; I have ground going through a resistor going to that pin but it still oscillates. Could be a bad connection, but is this expected?
Greig.Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
Originally posted by Rick Tinker View PostPIN references are driving me nuts... You mentioned Pins 0 and 1 are for USB, and I see those referenced as IDE Pins 0 and 1, but physical pins they are 2 and 3. When I look at how the plug-in references the pins I used for digital input, the last ones are 23 through 28, corresponding to physical pins, not IDE pins. So what exactly does the plug-in use for reference? If you mentioned pins 0 and 1, are they physical 2 and 3? If not, then pins 23 through 28 do not exist as IDE pins. (23 through 28 physical is 14 through 19 IDE)
Greig.Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
I see that Input 9 is logically assigned (by order of use) and that it is pin 26, one of the analog inputs. I had the ground connection on the Physical Pin 15 which I thought was Input 9. ... and I was using a resistor just to have a good stiff wire for the port connecting block I am using, it was not going through it. So I guess the answer to my question is that I have to look at the created devices to see what the physical pin location is? When I am creating pins, is it always the physical pin that is referenced by the plug-in despite you giving me IDE pins earlier? Thanks again.
Regards,
Rick Tinker (a.k.a. "Tink")
Comment
-
Originally posted by Rick Tinker View PostI see that Input 9 is logically assigned (by order of use) and that it is pin 26, one of the analog inputs. I had the ground connection on the Physical Pin 15 which I thought was Input 9. ... and I was using a resistor just to have a good stiff wire for the port connecting block I am using, it was not going through it. So I guess the answer to my question is that I have to look at the created devices to see what the physical pin location is? When I am creating pins, is it always the physical pin that is referenced by the plug-in despite you giving me IDE pins earlier? Thanks again.
The physical pin is 25.
HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
[QUOTE=randy;n1608842]The easiest way to know what the actual board pin is to look at the notes. If you hover over, a tooltip will show the board and pin.
That is still confusing as in one case, it says "Input 9, Pin 17". If I look at the diagram below, Input 9 is Pin 15, or Pin 17 is Input 11, or IDE Input 17 is Pin 26.
1 PhotoRegards,
Rick Tinker (a.k.a. "Tink")
- Likes 1
Comment
-
Originally posted by Rick Tinker View PostOriginally posted by randy View PostThe easiest way to know what the actual board pin is to look at the notes. If you hover over, a tooltip will show the board and pin.
HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
Comment