A control for the car 2WD with double bridge H 'HC-05' and with ultrasonic sensor HR-04.
It consists of two parts: An App made in React-Native to control it via Bluetooth, and ** the sketch [Control-Car-2DW] (#) ** which this repository is in charge of
Read this in other languages: English, Español.
Upload the code contained in this sketch(ControlCarro2WD_HC05_SR04.ino) on to your board
For example:
- Open ControlCarro2WD_HC05_SR04.ino in the Arduino IDE.
- Press 'Check' to verify that the code has no errors.
- Press the menu 'Tools' -> 'Board' -> 'Arduino / Genuino UNO'.
- Press the menu 'Tools' -> 'Port' -> And select your board.
- Press compile and upload the code (it looks like an arrow =>).
A. The components should be placed as in the following image:
B. Assemble the circuit following the diagram schematics.png attached to the sketch
ARDUINO | L298D (Puente H) |
---|---|
5 | ENA |
6 | ENB |
10 | IN1 |
11 | IN2 |
12 | IN3 |
13 | IN4 |
ARDUINO | Bluetooth HC-05 |
---|---|
0 | TX |
1 | RX |
2 | VCC |
GND | GND |
ARDUINO | Sensor Ultrasonido HC-SR04 |
---|---|
2 | Echo |
3 | Trig |
5V | VCC |
GND | Gnd |
.
├── Assets
└── schematics.png # an image of the required schematics
└── layout.png # a picture of the component assembly
├── LICENSE
├── ControlCarro2DW_HC05_SR04.ino # main Arduino file
├── README.md # Original language file
└── README.en.md # this file
To contribute to this project please contact me