Skip to content

Instantly share code, notes, and snippets.

View ManMCity's full-sized avatar

Michael Mancuso ManMCity

View GitHub Profile
@brandoncurtis
brandoncurtis / AnalogReadSerial.ino
Last active January 29, 2024 20:47
Realtime Data Acquisition and Plotting with Arduino and Python
/*
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!
*/
@Uberi
Uberi / realtime-plot.py
Created April 25, 2015 02:10
Realtime plotting with Matplotlib.
#!/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):
@MercuryRising
MercuryRising / arduinoDataWriter.py
Created June 24, 2012 01:31
Python Data Logger from Arduino
import serial
import time
import datetime
UNO = '/dev/ttyACM0'
ser = serial.Serial(UNO, 115200)
repeatTime = 1000 # milliseconds
def writeData(value):