-
Notifications
You must be signed in to change notification settings - Fork 193
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
houdini52
wants to merge
154
commits into
tino:master
Choose a base branch
from
berndporr:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
of the arduino.
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
replaced with getfullargspec as suggested by @mdickers47 in #13
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!
…m/Rotule666/pyFirmata2 into Rotule666-digital-output-pin-initialization
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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