Robotic Car PolyBot

MoonCampaign by Dharmesh (11 years)

At Moonpreneur, we empower students to turn ideas into reality through hands-on project & product building.
Our MoonCampaigns highlight their creativity, public speaking, presentation skills, and teamwork.

Quarterly MoonCampaigns: Four Innovation and Leadership Showcases Annually by
Every Student—Thousands of Inspiring Learning Stories Unveiled.

Likes

Rating

44 days left

Your support will go a long way in encouraging Dharmesh and taking their innovation Robotic Car PolyBot to new heights.
Robotic Car PolyBot
terms and conditions
:

Robotic Car PolyBot

:

Dharmesh

:

Show and Tell

:

Show n Tell

:

Coming Soon

About the Innovator

Dharmesh’s PolyBot project turns the Arduino Uno into a robotic shape racer for a teen learning to code. Gearmotors and a castor wheel drive the bot in a polygon loop, like a square, making a thrilling way to steer coding into motion.

Want your child to be part of an innovative and creative competition?

STORY

Total Views:

I dreamed of a robot that could zip around in cool shapes like in my video games, so I built my PolyBot project with my Arduino Uno—my first coding try! I wanted my car to roll in a square path, turning sharp corners, powered by motors and a battery, like a robot explorer. It’s so awesome watching it trace a perfect loop!


I used Hubby Gearmotors, a castor wheel, a motor shield, and a battery pack, wiring motor 1 to pins 10 (IN1), 11 (IN2), 5 (EN1), and motor 2 to 12 (IN3), 13 (IN4), 6 (EN2). My C++ code includes #include , setting pinMode(IN1, OUTPUT) to pinMode(EN2, OUTPUT) in void setup(). In void loop(), moveShape() runs moveForward()—digitalWrite(IN1, HIGH), digitalWrite(IN3, HIGH), analogWrite(EN1, 255), analogWrite(EN2, 255)—for 3 seconds, then sharpRightTurn()—analogWrite(EN2, 0) for 1 second—to pivot. Four forward-turn cycles make a square. The bot wobbled at first, but I tweaked delay(1000) in turns, and now I cheer when it completes its polygon lap!


I’m hyped to make it wilder next time! Maybe I’ll add a sensor to dodge obstacles, or try a pentagon path. I could even make it beep at corners like a robot racer! I really like coding this with my Arduino, and I can’t wait to show my friends my shape-drawing bot!


Future applications for this project could be epic! I could build a robot mapper that draws floor plans, like SAM’s precise brick-laying. Or a delivery bot that follows square routes in my yard, or a game bot that traces shapes to score points, turning my PolyBot into an autonomous trailblazer!

Every child is gifted. Discover how yours can innovate and lead
Feedback

You Might Also Like

Every child is gifted. Discover how yours can innovate and lead