Python Datalogger - Using pySerial to Read Serial Data Output from Arduino After I became proficient with Arduino I found myself trapped in its development environment (IDE). I needed to escape from the simplicity of the serial port and transform the platform into a usable engineering tool. You need to edit the COM port to match your Arduino. Run the Python code and you should get a window like this: The default position is at 90 degrees. The “sweep” button makes the servo move from 0 to 180 degrees and the reset sets it back to 90 degrees. Happy programming. Next in Idle create a new window and create the below program.
0 Comments
Leave a Reply. |