Robot Moving Paper Can

by Sands in Circuits > Robots

44 Views, 0 Favorites, 0 Comments

Robot Moving Paper Can

Screenshot 2025-05-07 at 10.59.19 AM.png

I made it because I thought it was a cool Idea.

Supplies

Screenshot 2025-05-07 at 11.04.11 AM.png

Three pieces of paper a large square of cardboard a robot * This is the robot we will be working on to build this IDk the name so we will just call it robot. Two IR sensors four wires and four resistors two of them should be 220 ohms and the rest should be 1k ohms

Measure Base

Screenshot 2025-05-07 at 11.07.09 AM.png

I first measured the robot's size to determine how big I needed to build the base. You need the base so that you can build the body around it. 15 is the length of the robot and 12 is the width. The smaller numbers on the bottom are a way to build the base by determining the circumference although it is an oval and not a circle.

Cut to Size

Screenshot 2025-05-07 at 11.10.37 AM.png

Then when you have an oval cut the back and make sure the back of the robot lines up then mark where the wheels will go and cut them you can mark them with anything because you are going to have to cut it wide.

Electronics

Screenshot 2025-05-07 at 11.12.10 AM.png

This is the electronics that you going to need and here are where they should go the black wire that is connected to the yellow one should go to the Vss and the red one should go to Vdd there are a set of IR sensors the speaker is unimportant so you can include it but I dont have code for it.

Case

Screenshot 2025-05-07 at 11.15.08 AM.png

Then put yellow construction paper you're going to need two pieces of paper and attach them to both each other and the bottom then cut wherever the eyes are and make sure that it is big enough so that the sensors can do their job. Plug in this code next I am using ParalaxIDE.

Code

Here is code again I am using ParalaxIDE and dont add the quotation marks at the beginning and the end.


“Boop VAR Word 'VARIABLE

Beep VAR Word 'VARIABLE

Bap VAR Word 'VARIABLE

irDetectLeft VAR Bit 'VARIABLE

irDetectRight VAR Bit 'VARIABLE

DEBUG"IR DETECTORS", CR, 'TELLS YOU WHEN SPEAKER IS GOING TO SOUND

"LEFT RIGHT", CR, 'TELLS YOU DIFFERENCE FOR SIGNAL

"----- -----"

DO

FREQOUT 8, 1, 38500'THE INFRARED SIGNAL

irDetectLeft = IN9'THE RECEIVER FOR LEFT

FREQOUT 2, 1, 38500'THE INFRARED SIGNAL

irDetectRight = IN0'THE RECEIVER FOR RIGHT

IF (IN9 = 0) AND (IN0 = 0) THEN 'Nothing go forward

FOR Boop = 1 to 200

PULSOUT 12,650

PULSOUT 13,850

NEXT

FOR Beep = 1 to 100

PULSOUT 12,650

PULSOUT 13,650

NEXT

ELSEIF (IN9 = 0) THEN 'Thing on Left

FOR Beep = 1 TO 50

PULSOUT 12, 850

PULSOUT 13, 750

NEXT

ELSEIF (IN0 = 0) THEN 'Thing on Right

FOR Beep = 1 TO 50

PULSOUT 12, 750

PULSOUT 13, 650

NEXT

ELSEIF (IN9 = 1) AND (IN0 = 1) THEN

FOR Bap = 1 TO 50

PULSOUT 12, 850

PULSOUT 13, 650

NEXT

ENDIF

DEBUG CRSRXY, 2, 3, BIN1 irDetectLeft 'SHOWS IF IT GETS A SIGNAL

DEBUG CRSRXY, 9, 3, BIN1 irDetectRight 'SHOWS IF IT GETS A SIGNAL

PAUSE 100

LOOP”


Top

Screenshot 2025-05-07 at 10.59.19 AM.png

Finally put the robot in the case and include the battery it should fit just perfectly with the battery and add a top it can be a piece of paper just tape the top on.