Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Rucksikaa Raajkumar
Published © CC BY

Automatic UV-C disinfection robot

A prototype of robot that can disinfect surfaces using UV-C rays and automatically turns off if it detects human motion.

AdvancedFull instructions provided5 hours7,338

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
You could also use an Arduino Nano microcontroller. Unfortunately, the new Nano boards are not available here in Sri Lanka. Ordering online may take longer because of the pandemic, so I have decided to use my Arduino Uno instead.
×1
PHPoC PWM & Sensor Expansion Board
PHPoC PWM & Sensor Expansion Board
You could also use an Arduino UNO R3 Sensor Shield V5.0 Expansion Board
×1
L298n motor driver module
×1
Gear motor DC 5V
×2
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
PIR Sensor, 7 m
PIR Sensor, 7 m
×1
Laser Diode, 655 nm
Laser Diode, 655 nm
Used to represent the UV-C LED
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Male/Male Jumper Wires
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
18650 rechargeable lithium ion battery - 3.7v 2200mah
×2
18650 rechargeable lithium ion battery holder x2
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

L298N motor driver module

Connections

Code

Robot movement

Arduino
Stop
IN1 - LOW
IN2 - LOW
IN3 - LOW
IN4 - LOW

Move Forward
IN1 - LOW
IN2 - HIGH
IN3 - LOW
IN4 - HIGH

Move Backward
IN1 - HIGH
IN2 - LOW
IN3 - HIGH
IN4 - LOW

Turn right
IN1 - HIGH
IN2 - LOW
IN3 - LOW
IN4 - HIGH

Turn left
IN1 - LOW
IN2 - HIGH
IN3 - HIGH
IN4 - LOW 

Credits

Rucksikaa Raajkumar
43 projects • 94 followers
Amateur Arduino Developer. Undergraduate. YouTuber (https://www.youtube.com/c/RucksikaaRaajkumar/videos) and Blogger (Arduino Projects by R)

Comments