Lego Geared Down Car (coded) (Lego Mindstorms Robot Inventor 51515 Set)
by Pythonboi in Circuits > Electronics
824 Views, 2 Favorites, 0 Comments
Lego Geared Down Car (coded) (Lego Mindstorms Robot Inventor 51515 Set)

I made a robot car that can follow a line using a color sensor. It's purpose was to be a ramp climber, not a race car.
Supplies

This robot is made of lego, and materials are:
-Lego Mindstorms 51515 Robot inventor (https://www.amazon.com/LEGO-6251945-TBD-Flipper-1/dp/B08586NDKT/ref=sr_1_1?crid=37X04VH0LR85L&dchild=1&keywords=lego+mindstorms+robot+inventor+building+set+51515&qid=1633161405&sprefix=robot+inventor+lego+%2Caps%2C356&sr=8-1)
-A 40 teeth gear
How It's Made

If you see the picture on top, there are 2 motors and a caster wheel. The motors have a 8 teeth gear attached to it, and it is connected to a larger 40 teeth gear which is connected to a wheel with a axle. This makes it able to climb ramps.
Code

There are many ways of making it go forward, but I used one of the most simple one. You have a 'power block' to control the power of the motor, I did 100% because I already geared it down. The second block is the block to tell the computer which motor should it use. The last block I used was a move straight block. I put 350 cm because I geared it down. You can change the cm into inches if you want.
Video
Here is my video of my robot climbing a ramp. The ramp is made of books stacked together as you can see in the video.