Raspberry Pi and Arduino

Video description

Working only with Raspberry Pi or only with Arduino is already nice: you can do a lot of projects. But sometimes, this is not enough. You will need to combine the strength of both boards: the power of software with Raspberry Pi (the brain) and the closeness to hardware with Arduino (the muscles).

When looking for tutorials or courses about this on the internet, I found that they are all simplified and work with a superficial setup, and only for that setup! If you add any component, any functionality, you’re going to be stuck.

In this course, you won’t get copy and paste examples but a complete (and efficient) step-by-step process to create any application with Arduino and Raspberry Pi. I will show you how to start a successful serial communication between the two boards and how to build an application with new components and features around this bridge. At the end of the course, you will be able to create your own custom projects with Raspberry Pi and Arduino.


Distributed by Manning Publications

This course was created independently by Edouard Renard and is distributed by Manning through our exclusive liveVideo platform.



About the Technology


About the Video


What's Inside
  • Make Raspberry Pi communicate with Arduino using a single serial task
  • Build a complete Intercom system with Raspberry Pi and Arduino
  • Use Raspberry Pi as the brain and Arduino as the muscles of your application
  • Understand the differences between Arduino and Raspberry Pi
  • Install and configure Arduino IDE on Raspberry Pi OS
  • Create a bidirectional serial communication
  • Build a custom protocol to talk over serial connections
  • Write code with Python 3 on Raspberry Pi and with C++ on Arduino
  • Create a telegram bot with Python 3
  • Send notifications from your Raspberry Pi to your phone
  • Control Arduino from a telegram chat
  • Practice a lot with nine activities and one final project
  • Develop an engineer mindset when solving problems
  • Be more independent when working on your future projects
  • Understand the “why” behind things


About the Reader
  • Arduino basics with C++ and how to build a circuit
  • Raspberry pi basics with Python 3
  • Arduino board, Raspberry Pi board, a few hardware components


About the Author

Edouard Renard is a software engineer, entrepreneur, and robotics teacher. He enjoys teaching new technologies to people and makes complex stuff easy to understand. His method is simple and contains only three words—step by step.

He knows how hard it can be to learn a new topic and to be lost in an ocean of information without knowing what to do. In his courses, he makes sure that his students learn one step at a time through practicing and that students also learn the best practices.

Edouard is passionate about robotics. He cofounded a robotics startup in 2016, building a complete robotic arm from scratch with Arduino, Raspberry Pi, Ubuntu, and ROS. He likes building cool new robotics projects in his free time. 



Quotes

Table of contents

  1. Introduction
    1. Welcome to the Course!
    2. Raspberry Pi vs. Arduino
    3. List of Materials for This Course
    4. How to Follow the Course
  2. Installation Steps
    1. Introduction
    2. Install Raspberry Pi OS Without a Monitor (Recap)
    3. Install and Configure Arduino IDE on Raspberry Pi OS
  3. PART 1: Serial Communication Between Raspberry Pi and Arduino
    1. Introduction
    2. Hardware and Software Setup for Serial
    3. Initiate Serial Communication
    4. Send Data from Arduino to Raspberry Pi
    5. Send Data from Raspberry Pi to Arduino
    6. Create a Bidirectional Communication
    7. Debug Serial Communication If Can’t Connect
    8. Retry Connecting with Python If Fails
  4. PART 1: Practice
    1. Introduction
    2. Activity 1: Power On/Off Arduino LED from Raspberry Pi
    3. Activity 1: Solution
    4. Activity 2: Bidirectional Communication
    5. Activity 2: Solution
    6. Activity 3: Asynchronous Bidirectional Communication
    7. Activity 3: Solution
  5. PART 2: Arduino Functionalities (Hardware Components)
    1. Introduction
    2. RGB LED Circuit
    3. RGB LED Code
    4. Push Button Circuit
    5. Push Button Code (With Debounce)
    6. Buzzer Circuit
    7. Buzzer Code
    8. LCD Screen Circuit
    9. LCD Screen Code
    10. Servo Motor Circuit
    11. Servo Motor Code
  6. PART 2: Practice
    1. Introduction
    2. Activity 4: Debug Serial Using the LCD Screen
    3. Activity 4: Solution
    4. Activity 5: Set RGB LED from the Raspberry Pi When Pressing the Push Button
    5. Activity 5: Solution
    6. Activity 6: Sweep Servo from the Raspberry Pi
    7. Activity 6: Solution
  7. PART 3: Raspberry Pi Functionalities (Camera and Telegram Bot)
    1. Introduction
    2. Camera Hardware Setup
    3. Camera Software Setup
    4. Camera Get Photo with Python
    5. Telegram Bot Setup Telegram Account
    6. Telegram Bot Create a Bot and Save the Token
    7. Telegram Bot Handle Remote Commands
    8. Telegram Bot Send Notifications and Messages to Your Phone
    9. Telegram Bot Complete Program
  8. PART 3: Practice
    1. Introduction
    2. Activity 7: Send a Notification to a Telegram When Arduino Board Is Connected
    3. Activity 7: Solution
    4. Activity 8: Choose RGB LED Color and LCD Text from a Telegram
    5. Activity 8: Solution
    6. Activity 9: Take Photos and Send the Last One to a Telegram When Button Is Press
    7. Activity 9: Solution
  9. PART 4: Complete Intercom System (Final Project)
    1. Project Overview
    2. Step 1 (Protocol): Define the Protocol We Will Use (Serial, Telegram)
    3. Step 2 (Arduino): Init Hardware Components
    4. Step 3 (Arduino): Write to Serial When Button Is Pressed
    5. Step 4 (Arduino): Get Commands from Serial and Execute Them
    6. Step 5 (RPi): Get Button Pressed Message from Serial
    7. Step 6 (RPi): Take Photo When Button Is Pressed
    8. Step 7 (RPi): Send Message and Photo to Telegram
    9. Step 8 (RPi): Open the Door from Telegram
    10. Step 9 (RPi): Deny Access from Telegram
    11. Step 10 (systemd): Make the Intercom System Start on Boot
    12. Project Conclusion: Going Further
  10. Conclusion
    1. Build an App with Raspberry Pi and Arduino: Step-By-Step Process Recap
    2. What to Do Next

Product information

  • Title: Raspberry Pi and Arduino
  • Author(s): Edouard Renard
  • Release date: August 2022
  • Publisher(s): Manning Publications
  • ISBN: 10000DIVC2022148