Components used-
- arduino mega
- HS04 sonar sensor x3
- l298n motor driver
- 12v motor x4 and wheel x4
- breadboard
- 12v lipo battery
There are 3 UART serial ports available on arduino mega, 2nd pair is used for serial communication with computer.
Newping library is used for sonar sensors, it offers seemless reading.
A video is attached below-