Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read an analog value from a pwm port (arduino) with pyfirmata2 on Python #99

Open
wants to merge 154 commits into
base: master
Choose a base branch
from

Conversation

houdini52
Copy link

How to do that ? I didn't see any instructions on the web how I can do that. I'm trying to read the value of the distance sensor (Ultrasonic) from the echo_pin(PWM) I tried many many things but not success. He re in my code I was expecting to read it from the analog port 0 but I have many values that doesn't help me.
A help would be greatly appreciated. Thanks in advance.
hcsr04_simpletest21.py.txt

given sampling rate. This is basically using an iterator
within the board class.
Updated the util class so that the Iterator can also be stopped
and added a flag. Added join to board so that it waits till
the Treads terminates.
Updated analog_realtime_scope.py which no longer needs to refer
to util and calls the new sampling method in the board class.
New minor version number b/c of new features.
to save data time stamped to a file
berndporr and others added 15 commits November 3, 2023 20:08
The com port is used by internal devices by HP or by bluetooth
adapters which are then wrongly detected.
This has been suggested by @kdickie59 in
#14
I cannot test it as it's fine on my RPI3 with the Uno
but hopfully helps!
Thanks @Rotule666 for spotting this quite lax coding there.
I've further improved it by adding a proper default behaviour
in case the function letter is unknown or misspelt.
Some users just don't read the README, do some polling instead
of using callbacks and then fire off an issue
(#16).

To prevent wasting my time the library now does a hard
exception if somebody tries polling. This then recommends
pyfirmata1.
@AlboProgrammer reported that the description string no longer
contains "USB" but now the make of the Arduino. I've added this
to the autodetect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants