With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
good day apologize for my English, I'm from Colombia I am currently developing my thesis project and have been almost impossible to create the code acquisition 4 sensors, I wonder if I can use some of their code in my project. and I wonder if there is any way to predefine the port COM6 not run the program from the console. thank you very much for contribution.
Temperature/Altitude/Pressure Display using Arduino & BMP180
Plotting real-time data from Arduino using Python (matplotlib)
Woohooo! I made it - it was only some wrong or missing dependencies between matplotlib and Tkinter. Found some nice solution for that here: http://www.pyimagesearch.com/2015/08/24/resolved-m...Thanks again!Robert
Hi,I also tried your code and I also get a nice Tk Window, BUT no plot… apparently analogPlot.update is not called or at least does not do anything. I already tried some things to fix it, but without success. Any hint?Could it be the backend, that doesn’t want to show me anything?Otherwise, a nice, easy and understandable code!!! Well done!Thanks in advance.Robert
Awesome....neat and quick way without using octave or matlab
Thanks, it works!!! I am trying now to add the data to a csv file. Thank you for all the help again!
Without changing the code, run it as:>python ldr.py --port COM3What is the output?
Hello Elecronut,Thank you for the code. I am very new to this, so I have been facing quite a few issues with running the code. I keep getting errors while running the argparse command. I replaced port with COM3 like below, but keep getting errors!def main(): # create parser parser = argparse.ArgumentParser(description="LDR serial") # add expected arguments parser.add_argument('--COM3', dest='COM3', required=True)Error in python:usage: test_python.py [-h] --COM3 COM3test_python.py: error: argument --COM3 is requiredMy problem is I am not sure where to replace strPort or port with COM3.Please help!Thanks!Ritwika
Talking to Ultrasonic Distance Sensor HC-SR04 using an ATtiny84
Ha!Simple, clever, I actually have a few of these headers lying around... thanks!
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.