This file contains hidden or 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
| /* | |
| AnalogReadSerial | |
| Reads an analog input on pin 0, prints the result to the serial monitor. | |
| Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. | |
| This example code is in the public domain. | |
| Upload this to the Arduino using the Arduino IDE! | |
| */ |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import time, random | |
| import math | |
| from collections import deque | |
| start = time.time() | |
| class RealtimePlot: | |
| def __init__(self, axes, max_entries = 100): |
This file contains hidden or 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
| import serial | |
| import time | |
| import datetime | |
| UNO = '/dev/ttyACM0' | |
| ser = serial.Serial(UNO, 115200) | |
| repeatTime = 1000 # milliseconds | |
| def writeData(value): |