Navigate Select ESC Close

Arduino - Bidirectional Serial Communication with Raspberry Pi

2020-12-12 Science & Technology
43.5k
1.0k
69
Eli the Computer Guy
Eli the Computer Guy
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

NOTE!!! LINE 18 SHOULD BE: ser.write(b"all\n") Find Code and Diagrams at: https://www.elithecomputerguy.com/2020/12/arduino-bidirectional-serial-communication-with-raspberry-pi/ You can send data to a Raspberry Pi from an Arduino, have the Pi compute the data and use “intelligence” to send the Arduino a command. This allows you to fully use a Pi as a “Compute Module” for the Arduino with the ability to access databases, data-stores, API’s and anything else a “real” computer can do. Prerequisites: Analog Temperature Sensor with Arduino Raspberry Pi – How to Begin Coding Python on Raspberry Pi Arduino – Send Commands with Serial Communication Arduino – Send Serial Commands from Raspberry Pi Arduino – Read Serial Communication with Raspberry Pi Functional Parts in the Project: Arduino Uno – https://store.arduino.cc/usa/arduino-uno-rev3 560 Piece Jumper Wire Kit – https://amzn.to/2MsCLjL 220 Ohm Resistors – https://amzn.to/2RiiMD9 Breadboard Kit – https://amzn.to/2Xih5ei LED Kit – https://amzn.to/2Rjhs2N Analog Temperature Sensor – https://amzn.to/2Rkkl3k Raspberry Pi USB Cable

Top Comments (10)

@psubond 2020-12-12

Commenting for analytics

22 4 replies
@KasraMadadipouya 2020-12-13

Line 18 of the python code should be `ser.write(b"all\n")`

19 2 replies
@drumpf4all 2020-12-12

Finally, the old Eli. I hate the poly talk.

7
@theodorepollock1273 2020-12-13

I wonder how many people understand how important learning the basics of tx/rx serial

5 1 replies
@deechvogt1589 2020-12-13

BTW 20+ Year IS guy watched this introductory video and still managed to learn something. Thanks for taking the time to make them. Stay well!

5 1 replies
@ProgramChefik 2022-08-23

Eli, this is by far the most straightforward, easy to follow and understand intro to RPi <-> Ardu communication I came across. Thanks for sharing it.

4
@codaemon375 2021-12-25

video starts at 5:24

3
@bleu-greensmountain5861 2020-12-13

You're educating in a middle ground between high functioning IT skills and high functioning electronics that pros in those respective fields just aren't going to think intuively how versatile and accessible this stuff can really be for anyone with a bit of time and hobiest budget!

3
@kajmolin297 2023-03-27

Thanks so much for sharing this. I have a Raspberry pi 4B and an Audrino Due.😀

1
@AndyKauffmanGleekop 2026-02-16

Your voice for "us" sounds like Jimmy Stewart & I appreciate that. 😊

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot