Raspberry Pi

Today we came to school with the following tasks:

  1. Establish serial communication with RPi and Arduino
  2. Use 2 ultrasonic sensors
  3. Test conductive paint

I came to school and started up my Raspberry Pi, which I setup over the weekend, and started browsing for examples online.

https://classes.engineering.wustl.edu/ese205/core/index.php?title=Serial_Communication_between_Raspberry_Pi_%26_Arduino

This was the simplest and cleanest example I found. I reused the arduino ping sensor code and rewrote the python code to the following:


import serial

ser = serial.Serial ('/dev/ttyACM0', 9600)

while 1:

if(ser.in_waiting >0):

line = ser.readline()

print(line)

Result:

WhatsApp Image 2019-05-27 at 14.18.28.jpeg

Next I decided to research the conductive paint a bit more:….

Leave a comment

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started