PitBot Is Agressive? Well, No Worries!
Making PitBot bite! Lego Episode #25
In This episode, we’re gonna make PitBot Run after a yellow cup :|
It is heavily based on SparkFun code from Playing with your Pixy Pet!.
There, the SF’s guys use Arduino Leonardo and Zumo Robot from Pololu — The official Arduino Leonardo has been discontinued =/
In my implementation, I will use Arduino UNO Rev 3, DoRobot (Meet DoRobot — Assembly Techniques) and SparkFun Monster Moto Shield and Pixy Camera (oops I almost forgot:)
Let’s get it on!
How can you replicate it at your home?
First, Here’s the code:
[TODO: THE CODE GOES HERE]
The first thing you’re probably asking for is about the USB cable…Good question, though!
There is a need for another 5v battery. Although I have provided the PitBot with two batteries, one for Arduino (Li-ion 18650 7.4V 1500mAh battery with PCB/PCM and connector) and another for the two 12 Volts DC Motors (ZIPPY Compact 1000mAh 3S 35C Lipo Pack), Pixy needs a VCC power too...
That’s the next challenger! (Do you have an idea how to fix it?)
But for now, enjoy this implementation as it is. It took me a day to translate the Sparkfun’s code. There is room for improvements, though. That’s for sure!
Step-By-Step
1 Mount The $25 Bucks Chassis
Here you can follow my pretty neat tutorial about mounting DoRobot :)
Meet DoRobot — Assembly Techniques — J3C3-Caterpillar-Crawler-Chassis v1.0 — ArduSerie#46
2 Get acquainted with the SparkFun Monster Moto Shield’s novelties
VNH2SP30 — Monster Moto Shield — Use This Board In Extreme High-Demand Application — Full-Bridge Motor Drivers — 30A@16v peak — Ardu_Serie#63
3 Enjoy LEGO’s PID use with Pixy Camera and understand all the intricacies to make this cheap charmedlabs’ camera working with the not-so-really-inexpensive LEGO MINDSTORMS EV3 31313 Robot Kit :)
Lego Meets Pixy — How to Connect Your Inexpensive Camera Module to Lego — Episode #16
4 Make a debut about PID’s subject (if you already haven’t…); check out and make sure you can find PID’s issue comfortable enough
Lego PID — The Ultimate Line Follower — Algorithm for your EV3 PID Line Follower Robot — Episode#15
5 Make a sandwich — Provide all the connections, mainly with the power cords”/
6 Upload the code
[TODO: LINK TO THE GITHUB GOES HERE]
7 Go to Impress Your Friends ;)
Alright, thank you for reading this article. If you have some question, please feel free to send me a comment on the section below.
Bye for now!
Download All The Files For This Project
Credits & References
Playing with your Pixy Pet! by and from Sparkfun
Assembling the pan/tilt Mechanism by and from Pixy Documentation Wiki Page
Running the Pan/tilt Demo by and from Pixy Documentation Wiki Page
Related Posts
63Ardu_Series — VNH2SP30 — Monster Moto Shield — Use This Board In Extreme High-Demand Application — Full-Bridge Motor Drivers — 30A@16v peak
23° ArduSeries — PID sample for Arduino — HowTo Control devices with PIDLibrary
5/5 Part JayThree Balancing Car Project — PID without a PhD
01º Lego Episode — Our Startup’s Journey — Invaders and Invasions?
02º Lego Episode — Timmyton — Lego-Learning-By-Playing — L2BP Series
04º Lego Episode — Lego Motions — Tribot v 1.0 — Seeing Your Creation Move — Move Steering Block
05º Lego Episode — Lego Motions — Move Tribot Around — And Backward…Five Programs Files
06º Lego Episode — Lego Sensors — Touch N Color — Two out of five human senses — Touch N Sight
07º Lego Episode — Lego Sensor — LineFollower — Line Follower Tribot v1.0
08º Lego Episode — Maze Solving Robot v1 — Lego Solution Right-Wall-Follower-Robot
09° Lego Episode — Gettle_&_Sound_Bots — How gentle can a robot be? What is the audible range of the human ear? How deep can we dive?
10° Lego Episode — Data Logging — Data Collection and the EV3
11º Lego Episode — Binning the LineFollower Code — Binning: Arithmetic To Map Sensor Reading
12º Lego Episode — A Proportional LineFollower Robot — Advanced Math To Improve Your Robot’s Steering
8th KidSeries — J3 Follower Line Robot v1.0 — The Simplest Follower Line Robot
13º LEGO Theory — Multitasking — A very Useful Programming Technique
14º LEGO formula — Normalizing Data — Converting Data to Use The Same Range
15º Lego Episode — PID — The Ultimate Line Follower — Algorithm for your EV3 PID Line Follower Robot
16° Lego Meets Pixy Episode — How to Connect Your Inexpensive Camera Module to Lego
18° Lego Episode — GEARS & WORMS — Geartrains & Worm & Clutch Gears
23° Lego Episode — Differential Explained — How Differential Works?
24 24° Lego Episode — PitBot — A Star Is Born — Working at The First Structure in Our Sparring Robot
25° Lego Episode — PitBot Is Agressive? Well, No Worries! — Making PitBot bite!
26° Lego Episode — Dancing Good w/ PitBot — All The Secret for Replicate This Awesome Robot
27 ° LEGO Episode — Sumo Arena is Ready! — Here is the playing arena for Arduino x Lego
28 ° LEGO Episode — Pick Pitbot Up! — Our Robot Are Leaving Body & Paint Shop
28 ° LEGO — B — Episode — Pitbot Battery & Sensor Setup — Preparing The infrastructure for running Arduino code
29 ° LEGO Episode — Bridging All Sensors Together — Pitbot — Collecting All Codes for the Final Act of Giving Behaviors to Robot