Welcome to the official GitHub repository for the "RC Car - LEGO Powered by Raspberry Pi CM4 with SaraKIT" project, as featured on Hackster.io. This project transforms a standard LEGO car into a remotely controlled vehicle using the power of Raspberry Pi CM4 and the versatility of the SaraKIT expansion board.
This RC Car project demonstrates how to integrate the SaraKIT with a Raspberry Pi Compute Module 4 to control a LEGO-based vehicle. It showcases not only the potential of combining traditional toys with modern technology but also the practical application of C++ programming in hardware control.
- Remote Control via WiFi: Control the direction and speed of the LEGO car using a custom-built remote controller application.
- Live Camera Feed: Stream live video from one or two cameras mounted on the car, providing a first-person view (FPV) driving experience.
- Customizable Speed and Steering: Detailed control over the car's speed and direction, with support for one or two-finger control schemes.
- Cross-Platform Compatibility: The remote controller software is built using Delphi FireMonkey, making it compatible with Android, iOS, and desktop platforms (PC/MAC).
- Raspberry Pi CM4
- SaraKIT expansion board
- LEGO car setup or similar vehicle platform
- One or two compatible cameras (optional for FPV)
- Basic understanding of C++ and Raspberry Pi environment
- Two gimbal motors
-
Set Up Your Raspberry Pi: Ensure that your Raspberry Pi CM4 is set up with the latest Raspberry Pi OS and connected to the same WiFi network as your remote control device (https://sarakit.saraai.com/getting-started/software)
-
Connect the SaraKIT: Attach the SaraKIT to your Raspberry Pi CM4 according to the instructions provided with the kit.
-
Assemble Your RC Car: Build your LEGO car or similar vehicle and integrate the motors and optional cameras with the SaraKIT and Raspberry Pi.
-
Download and Install the Remote Controller Application: Depending on your device, download the appropriate version of the remote control app from the provided links (coming soon).
-
Deploy the C++ Code to Your Raspberry Pi: Clone this repository and follow the build instructions below to compile and run the RC car control software.
git clone https://github.com/SaraEye/SaraKIT-RCCar-Raspberry-Pi rccar
cd rccar
make
./RCCarThe project includes a sample C++ application that demonstrates basic control logic for steering and speed management, as well as camera stream handling.
Contributions to this project are welcome! Whether it's improving the control logic, adding new features, or creating tutorials, please feel free to fork this repository and submit your pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
For more detailed instructions, troubleshooting, and other projects, please visit the Hackster.io project page and our home page: https://sarakit.saraai.com/
Happy building!
RCCar Python Version: https://github.com/SaraEye/SaraKIT-RCCar-Python-Raspberry-Pi

