tino / pyFirmata

Python interface for the Firmata (http://firmata.org/) protocol. It is compliant with Firmata 2.1. Any help with updating to 2.2 is welcome. The Capability Query is implemented, but the Pin State Query feature not yet.
MIT License
578 stars 191 forks source link

Pyfirmata, no voltage in Arduino board #79

Open cyrus2018 opened 5 years ago

cyrus2018 commented 5 years ago

I am trying to use to access the pins on my Arduino board, everything seems to be working, i receive no error. I see the RX LED blinks, but can not get any voltage or reading from any pins whatsoever, I use Python 3.7.0.

Also, when you write, 0.8 for example, and then read from the pin, it is going to print the same number, but physically no voltage.

Sample code

import pyfirmata

from pyfirmata import Arduino, util board = Arduino("COM4")

iterator=util.Iterator(board) iterator.start() D11=board.get_pin('d:11:p') D11.write(0.8) I copied and ran many codes. One thing in comment, the codes run with no error. but, physically the non of the pins work.

I tested two different boards (one is brand new Aurdino Uno). same issue.

Could you please advise what could be the source of issue?

Thanks