soundguy7440
Hey guys, I'm a bit of a novice so I apologize in advance if I'm missing something simple.

I'm running OpenPLC on a raspberry pi with an arduino mega as extended IO. Whenever I press a button connected to the arduino, it flashes (inconsistently) between true and false in the monitoring window.

Does anyone have any suggestions?

Thanks in advance!
Quote 0 0
thiagoralves
Make sure you have pull down resistors on your buttons to avoid fluctuations
Quote 0 0
soundguy7440
Great! I'll try that. Thanks.
Quote 0 0
soundguy7440
So, I tried a resistor and I still have the same problem. It does it even when there is a single wire plugged into the Arduino. the wire doesn't have to be connected on the other end, but it still does it. It also does it on a different Arduino...

Any thoughts?
Quote 0 0
thiagoralves
Are you sure you wired the resistor appropriately? It should not be in series, but in parallel to ground. You can also check the communication to see if there are any dropped packets. Look at the logs on the dashboard to see if it is complaining about having to reconnect to the arduino. Do you have a clean OpenPLC install on the Pi? Other programs can also interfere with OpenPLC behavior. It is highly recommended to start fresh with a new Raspbian image.
Quote 0 0