This guide explains how to add the peripherial devices to the Atlas200DK, so that the RC car can be controlled using hand gestures.
Note: Atlas 200 DK has two types of printed circuit boards (PCBs): IT21DMDA (old PCB) and IT21VDMB (new PCB) (ref). The following instrucction applies to IT21DMDA (old PCB). For the new PCB, you might have to use different pins of Atlas 200 DK.
-
Send data from Atlas200DK through I2C
- The RC car control command is sent to an Arduino through I2C, which transmits it to the RC car Arduino through Bluetooth.
- This method demonstrates I2C communication between Atlas and Arduino boards.
-
Send data from Atlas200DK through UART.
- The RC car control command is sent through UART directly to transmitter Bluetooth module.
- This method does not need the optional Arduino UNO.
The UART method is more optimal as it only uses one Arduino. If you would like to add more components to the project, the I2C method can be very useful.
- Raspberry Pi camera
- 2 HC-05 Bluetooth modules
- Elegoo Smart Robot Car Kit
- Arduino UNO (only for I2C variation)
- General project components of choice: breadboards, soldering kit, resistors, jumper wires, etc
Note that the Elegoo Smart Robot Car Kit comes with components including an Arduino UNO and a Bluetooth module. The Bluetooth module can vary, so it may be simpler to get 2 HC-05 modules and use those.
- Assemble the Elegoo Robot Car (manual also available in the kit)
- Connect the Raspberry Pi camera to Atlas200DK
1. Connect one HC-05 module to Transmitter Arduino and one HC-05 to RC car Arduino
2. Connect Transmitter Arduino to Atlas200DK
Connect the following pins using jumper wires:
Atlas200DK - Arduino
- P3(SDA) - A4
- P5(SCL) - A5
- P6(GND) - GND
1. Connect one HC-05 modules to RC car Arduino
2. Connect one HC-05 module to Atlas200DK
Connect the following pins using jumper wires:
Atlas200DK - HC05
- P2(5V) - VCC
- P6(GND) - GND
- P18(RXD1) - TX
- P16(TXD1) - RX
I2C Variation:
- Upload RC_car.ino to RC car Arduino
- Upload I2C_to_Bluetooth.ino to Transmitter Arduino
UART Variation:
- Upload RC_car.ino to RC car Arduino
Configure the HC-05 Bluetooth modules in AT mode as master and slave. Use a baudrate of 38400 for both. The modules should automatically connect when powered on.
Detailed instructions can be found via this (tutorial)
When watching the tutorial, please pay special attention to the wiring of RX, TX pins when setting up the Bluetooth modules:
Connecting HC-05 to Arduino in setup (AT mode) (0:47-1:21 in the tutorial video):
- RX --> RX
- TX --> TX
Connecting HC-05 to Arduino in operation mode (running the application):
- RX --> TX
- TX --> RX