Skip to content

A selfdriving robot, using an Arduino and RP5-CH02 as a chassis

Notifications You must be signed in to change notification settings

At-M/Arduino-Robot-RP5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 

Repository files navigation

Arduino-Robot-RP5

A selfdriving robot, using an Arduino and RP5-CH02 as a chassis.

This code was written under time pressure and is anything but good. (for example: global variables)

Images may follow.

Additional Info:

Values for motorspeeds may change depending on the smoothness of your floor, I'm leaving my default values in (smooth but "rubbery" PVC floor)

Right or left motor may swap, depending on your wiring.

To find out the needed value for ir_dist, build a loop which prints the received value from the sensor into serial monitor, move your robot at the desired distance from the wall, use that value (or a median of the last few printed)

DEBUGGING:

Put a red led between ground and pin 12, put a green led between ground and pin 11 The pins are hardcoded right now, but may change.

LED ON LED red LED green
during unplanned left turn / distance right not enough
during unplanned right turn distance left not enough /
during right turn 180° turn initiated 90° turn initiated

Module sources:

Infrared Sharp (GP2Y0A21YK0F, distance sensor)

eBay (Germany)

Gyroscope(MPU6050, angle measuring)

Library

Information about sample rate

Why signed short int?

Endstops

Amazon (Germany)

NAND-Gate for endstops:

eBay (Germany)

Pinout

Bracket for Ultrasonic sensor

Thingiverse (modified to hold IR sensor)

Gearbox cover

Thingiverse

About

A selfdriving robot, using an Arduino and RP5-CH02 as a chassis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages