You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Eric Teunis de Boone b231ada9dc Added DHT22 sensor 4 years ago
mpduino Added DHT22 sensor 4 years ago
README.MD Added DHT22 sensor 4 years ago
__init__.py Working for data transfer from process 4 years ago
get_tty.py Added DHT22 sensor 4 years ago
mpduino.geany Added DHT22 sensor 4 years ago
serialmpcduino.py Added DHT22 sensor 4 years ago
serialmpcduino.pyc Added DHT22 sensor 4 years ago
ttycontrol.py Added DHT22 sensor 4 years ago

README.MD

MpDuino

A small project to interface an Arduino Uno with an OLED display, rotary encoder to a MPD server.

Idea is to have one script mpduino.py creating multiple processes to which one can attach

From PySerial to Arduino

A command looks like [ES][VTAarzxcusP].*. Where S stands for set and E is to echo a value. The [VTAarzxcusP] part selects what to set or echo. You can use S!.* to echo a message back.

Character Property .*
V Volume number
T Title text
A Artist text
a album text
P Playing empty(false)/text(true)
r repeat empty(false)/text(true)
z shuffle empty(false)/text(true)
x random empty(false)/text(true)
c consume empty(false)/text(true)
u updating empty(false)/text(true)
s single empty(false)/text(true)

From Arduino to PySerial instance

Since the Arduino has a rotary encoder for the volume and play/pause, we need to pass these through. Next tot this, we might reset the arduino, without resetting the pySerial script, so we need to set all values again.

Character Property
R Reset
V Volume
P Pause/Play
t Temperature
h Humidity