Arduino 101-Based Battery-Powered Robotic Car with Ultrasonic Obstacle Detection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino 101 microcontroller, an L298N DC motor driver, an HC-SR04 Ultrasonic Sensor, two hobby motors, and a 7.4V power supply. The circuit is designed to control the motors using the motor driver and to measure distance using the ultrasonic sensor.
Component List
Arduino 101
- Description: A microcontroller board based on the Intel Curie module.
- Pins: A5/SCL, A4/SDA, AREF, GND, D13/SCK, D12/MISO, D11 PWM/MOSI, D10 PWM/SS, D9 PWM, D8, D7, D6 PWM, D5 PWM, D4, D3 PWM, D2, D1/TX, D0/RX, AIN, ioref, RESET, 3V3, 5V, VIN, A0, A1, A2, A3, ICSP MISO, ICSP SCK, ICSP MOSI
L298N DC Motor Driver
- Description: A dual H-bridge motor driver that allows control of the speed and direction of two DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
HC-SR04 Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
Motor amarillo motorreductor hobby (Motor 1)
- Description: A small DC motor with a gearbox for hobby projects.
- Pins: vcc, GND
Motor amarillo motorreductor hobby (Motor 2)
- Description: A small DC motor with a gearbox for hobby projects.
- Pins: vcc, GND
7.4V Power Supply
- Description: A power source providing 7.4V.
- Pins: +, -
Wiring Details
Arduino 101
- D10 PWM/SS connected to L298N DC motor driver ENA
- D9 PWM connected to L298N DC motor driver ENB
- D8 connected to L298N DC motor driver IN4
- D7 connected to L298N DC motor driver IN3
- D6 PWM connected to L298N DC motor driver IN2
- D5 PWM connected to L298N DC motor driver IN1
- 5V connected to HC-SR04 Ultrasonic Sensor VCC
- GND connected to HC-SR04 Ultrasonic Sensor GND
- GND connected to 7.4V Power Supply -
- VIN connected to L298N DC motor driver 5V
- A1 connected to HC-SR04 Ultrasonic Sensor TRIG
- A2 connected to HC-SR04 Ultrasonic Sensor ECHO
L298N DC Motor Driver
- ENA connected to Arduino 101 D10 PWM/SS
- ENB connected to Arduino 101 D9 PWM
- IN4 connected to Arduino 101 D8
- IN3 connected to Arduino 101 D7
- IN2 connected to Arduino 101 D6 PWM
- IN1 connected to Arduino 101 D5 PWM
- GND connected to 7.4V Power Supply -
- 5V connected to Arduino 101 VIN
- OUT1 connected to Motor 1 GND
- OUT2 connected to Motor 1 vcc
- OUT3 connected to Motor 2 vcc
- OUT4 connected to Motor 2 GND
- 12V connected to 7.4V Power Supply +
HC-SR04 Ultrasonic Sensor
- VCC connected to Arduino 101 5V
- GND connected to Arduino 101 GND
- TRIG connected to Arduino 101 A1
- ECHO connected to Arduino 101 A2
Motor amarillo motorreductor hobby (Motor 1)
- vcc connected to L298N DC motor driver OUT2
- GND connected to L298N DC motor driver OUT1
Motor amarillo motorreductor hobby (Motor 2)
- vcc connected to L298N DC motor driver OUT3
- GND connected to L298N DC motor driver OUT4
7.4V Power Supply
- - connected to L298N DC motor driver GND
- - connected to Arduino 101 GND
- + connected to L298N DC motor driver 12V
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the components and wiring details for the circuit. Each component is described, and the connections between them are clearly outlined.