Serial Communication between the Arduino and the Raspberry Pi

From Sensors in Schools
Revision as of 18:10, 2 May 2023 by EdmondLascaris (talk | contribs) (Created page with "= Introduction = * The purpose of this tutorial is to teach the hardware and software requirements to establish two way communication between an Arduino and a Raspberry Pi. * In this case study, the Arduino Uno will be used to control and collect data from sensors (e.g. temperature sensor) and also to control electronic equipment (e.g. fan or servo motor). * The Raspberry Pi will be used to collect data from the Arduino, save the data in a text file, dweet the data and g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

  • The purpose of this tutorial is to teach the hardware and software requirements to establish two way communication between an Arduino and a Raspberry Pi.
  • In this case study, the Arduino Uno will be used to control and collect data from sensors (e.g. temperature sensor) and also to control electronic equipment (e.g. fan or servo motor).
  • The Raspberry Pi will be used to collect data from the Arduino, save the data in a text file, dweet the data and graph the data using plotly. The Raspberry pi can even host a web site to display the data.

Equipment

  • Arduino Uno (Sparkfun RedBoard) - any Arduino Uno is suitable
  • Raspberry Pi 3B+ or Raspberry Pi 4
  • USB cable that can connect the Raspberry Pi USB to the serial connection of the Arduino Uno.