Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Published © GPL3+

Interfacing Arduino with Raspberry Pi

Interfacing Raspberry Pi with Arduino UNO

IntermediateProtip101,771
Interfacing Arduino with Raspberry Pi

Things used in this project

Story

Read more

Code

Code snippet #1

Plain text
int publish(String key,float *ptr)

Code snippet #2

Plain text
void sync()

Code snippet #3

Plain text
setResource(key,value)//both key and value should be strings,like setResource("T","98.0")

getResource(key) //key is  a string

Code snippet #4

Plain text
cd ~
sudo pip install pyserial
wget https://raw.githubusercontent.com/sankarcheppali/PiAndArduino/master/SerialPublishPythonClient/SerialPublish.py

Github

https://github.com/sankarcheppali/PiAndArduino

Credits

Comments