3:54 pm
January 11, 2018
I having issues reading two separate buttons using digital input_pullup & Digital Read vi's. When I run the serial monitor I can only get one of the two digital reads to react when my buttons are pressed. If I run a single digital pin, I can verify that both pins are wired and functionally work. However running both at the same time only one input works. My project requires two buttons, any help would be greatly appreciated. See attached program.
Arduino Mega ADK
LabVIEW 2016 Version 16, 32 bit
Version: 1.0.0.21
12:19 pm
January 11, 2018
5:35 pm
January 11, 2018
6:35 pm
March 12, 2015
Everything looks fine to me. I tried your code on an Arduino Due (very similar pinouts to the Mega) and both inputs worked as expected with the exact same code. You might want to slow down the loop rate and identify which pin is which on your serial output. But here is what I got. Had one pin tied to ground then connected the other to ground (all 0s as expected). I would double check your wiring.
30
1 Guest(s)