Skip to content Skip to sidebar Skip to footer

Cannot Update Sensor Data In Python (tkinter) From My Arduino Sensors

I am learning about interfaces on Python Tkinter. I was testing before sending random numbers from my arduino to my Python interface, It worked (It updates all the time), so I thou

Solution 1:

I'm pretty sure that if you change this

pinMode(i_presion, INPUT);

Into this

pinMode(i_presion, INPUT_PULLUP);

It will start working....

The reason is that you are not pulling up the pin when the button is not pressed.

Or, at least, this is the most common reason for the...

I never get the values that I should get when pressing the button. I am always getting: random number, 2 and 2

...problem.

Post a Comment for "Cannot Update Sensor Data In Python (tkinter) From My Arduino Sensors"