RoboPet

by bhavyabhartiya02 in Circuits > Arduino

9 Views, 1 Favorites, 0 Comments

RoboPet

81e9cba8-67c9-437b-95f4-4cf304c7c6c1.jpg

I made this project as I always wanted a pet, but could not get one(My parents don't think I can handle one); this will become my pet. You may also use this to create a robotic pet. Future updates may follow. Thank You.

Note: Do not mind the intro and title photos.

Supplies

Arduino Uno

Arduino Nano

HC-05 Bluetooth Module

HC-SR04 Ultrasonic Sensor

LDR

L298N Motor Driver

20x4 LCD Screen with I2C Interface

DS3231 RTC Module

433 MHz Radio transmitter

2 x 433 MHz Radio Receiver

12v rechargeable battery

7.4v to 9v rechargeable battery

Male to Female Jumper Cables

3 x 10 KOhm Resistor

4 x Wheel Chassis

4 x Wheels

2 x DC motors

Axle


Tools:

Solder Iron

Glue gun

Screwdriver

Connection Diagram

b1971bae-8a2d-43d7-b839-c85bf0b90019.jpg
d6f30a34-7002-4710-852b-59d6fd2c65dc.jpg
c6f08280-0ddb-4894-89fb-d212a50f537d.jpg
41312cca-e010-4959-88fe-3182b7d034ef.jpg
c290703f-5c5d-4a96-a979-64826a7ce9d9.jpg
c89f10db-b579-423f-9266-987163342834.jpg
a9eed959-2e4f-4639-98eb-81e229654496.jpg
f05b7bb9-28be-431b-8444-ea5042220fa8.jpg
1a5f5904-9ca1-479d-a257-52a58ed6ab69.jpg
81e9cba8-67c9-437b-95f4-4cf304c7c6c1.jpg
0f5c3ac6-8ad8-4b5b-a0b4-10602a3925e4.jpg
2826c704-cebb-4364-8270-5e9b96c644f2.jpg
4194f194-824a-4069-8f1f-632e77d0e04a.jpg

Connect the Components as shown above.

The connections are:

  1. L298N Motor Driver to Arduino Uno:

IN1 to D13

IN2 to D12

ENA to D10

ENB to D11

IN3 to D9

IN4 to D8

2. L298N Motor Driver to Motors:

Out 1 - Motor 1 Pin 1

Out 2 - Motor 1 Pin 2

Out 3 - Motor 2 Pin 1

Out 4 - Motor 2 Pin 2

3. L298N Motor Driver to 12v battery:

12v to Battery Positive

GND to Battery Negative

GND to Arduino GND

5v to Arduino VIN

4. 20x4 LCD Screen to Arduino Uno

VCC to 5v Arduino

GND to Arduino GND

SDA to A4

SCL to A5

5. DS3231 RTC Module to Arduino Uno

VCC to 5v Arduino

GND to Arduino GND

SDA to A4

SCL to A5

6. HC-05 Bluetooth Module to Arduino Uno

VCC to 5v Arduino

GND to Arduino GND

RXD to TX on Arduino

TXD to RX on Arduino

7. HC-SR04 Ultrasonic Module to Arduino Uno

VCC to 5v Arduino

GND to Arduino GND

Trig Pin to D3

Echo Pin to D2

8. MHz 433 Radio Receiver to Arduino Uno:

VCC to 5v Arduino

GND to Arduino GND

Data Pin to D6

9. MHz 433 Radio Receiver to Arduino Uno:

VCC to 5v Arduino

GND to Arduino GND

Data Pin to D7

10. LDR to Arduino Uno:

Pin 1 to 5v Arduino

Pin 2 to A3

Pin 2 to 10k-ohm Resistor to Arduino GND

11. MHz 433 Transmitter to Arduino Nano:

VCC to 5v Arduino

GND to Arduino GND

Data Pin to D12

12. 7.4v battery to Arduino Nano:

Positive terminal of the battery to VIN of Nano

GND of battery to GND of Nano

Battery Sensor

images.jpg

Connect Battery GND to a 10k-ohm resistor

Connect the Battery Positive to a 10k-ohm resistor

Join both the resistors together and connect them to A2 of Arduino Uno

Upload the Below Code

Upload bot.ino to arduino uno and Nano.ino to arduino nano

Downloads

Troubleshooting

If you face any issues in powering the Arduino from the 5v of the L298N, power it using a jack plug to the jack port of Arduino Uno.

Connect the jack positive to the 12v battery positive.

Connect the jack GND to the 12v battery GND.

The same goes for the Arduino Nano. Just use a C-type USB plug with the same connections for the 7.4v battery.

If the radio receiver is unable to find the radio signal, then attach a 17.3 cm long antenna to the transmitter's antenna pin. If the problem still exists, then attach an antenna to the receiver as well.

I have used two common kinds of RF receivers so that you do not face an issue with either.