Skip to content Skip to sidebar Skip to footer

Problems With Reading Analog Values With Pyfirmata On Two Arduino Mega's

For my project I need to read multiple analog pins on two Arduino Mega's. Other tasks like PWM are working perfectly well but when reading analog Pins I can only read values from o

Solution 1:

I managed to solve the problem and maybe my current code can help other people. Instead of the threading part I wrote the following code:

if __name__ == "__main__":
    x = multiprocessing.Process(target=read_1)
    x.start()
    y = multiprocessing.Process(target=read_2)
    y.start()
    root.mainloop()

The root.mainloop() is just to test if tkinter is also possible.

Post a Comment for "Problems With Reading Analog Values With Pyfirmata On Two Arduino Mega's"