Go Down

Topic: Bridge-communication disturbes digitalPin (as Output-Pins) (Read 329 times) previous topic - next topic

motocamp

Hi,

I build a controller with an Arduino Yun. On the digitalPins 0-5 are some switches. these switches controls relais on a relay-board with 8-channel. Every single relais is connected from digitalPin 8 upward as an Output-Pin.
The problem is, when I start bridge.begin() in the setup-section, there is a lot of flickering on my output-pins for the relais.

How can I prevent flickering?

Thank you.

ShapeShifter

Digital pins 0 and 1 are used for Bridge serial communications between your sketch and the Linux processor. You cannot use them for any other purpose when using the Bridge library. 

It sounds like you are using those pins as inputs, and your sketch is getting confused by the rapidly changing serial data. 

Go Up