2RQBOCdeNc%2Fhqdefault.jpg&key=a19fcc184b9711e1b4764040d3dc5c07&type=text%2Fhtml&schema=youtube" allowfullscreen="" frameborder="0" height="480" width="640">
</div>
</div>
</figure></iframe></div></div></figure><p id="ee29">4° Code — <a href="https://readmedium.com/4-channel-line-tracker-sensor-e6f9a0dad304?source=your_stories_page---------------------------">4-Channel Line Tracker Sensor</a></p><p id="cc21">Let’s read this 4 sensors by using the new 16 inputs gained by the use of the previous board:)</p>
<figure id="4a4b">
<div>
<div>
<iframe class="gist-iframe" src="/gist/giljr/a21902f13190c206fc4ef15530ae443d.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
</div>
</div>
</figure></iframe></div></div></figure>
<figure id="e782">
<div>
<div>
<img class="ratio" src="http://placehold.it/16x9">
<iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTzlLTHHrM2A%3Ffeature%3Doembed&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTzlLTHHrM2A&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTzlLTHHrM2A%2Fhqdefault.jpg&key=a19fcc184b9711e1b4764040d3dc5c07&type=text%2Fhtml&schema=youtube" allowfullscreen="" frameborder="0" height="480" width="640">
</div>
</div>
</figure></iframe></div></div></figure><p id="d7f6">5º Code — <a href="https://www.pololu.com/file/0J51/vnh3sp30.pdf">VNH2SP30</a> — Monster Moto Shield</p><p id="1708">Let’s use digital pins 4,5,6,7,8,9 and A0, A1, A2, A3.</p>
<figure id="9730">
<div>
<div>
<iframe class="gist-iframe" src="/gist/giljr/ba63216c5009a18ceaeb6233db1a0373.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
</div>
</div>
</figure></iframe></div></div></figure>
<figure id="1f01">
<div>
<div>
<img class="ratio" src="http://placehold.it/16x9">
<iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5ylytwf5kNo%3Ffeature%3Doembed&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5ylytwf5kNo&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5ylytwf5kNo%2Fhqdefault.jpg&key=a19fcc184b9711e1b4764040d3dc5c07&type=text%2Fhtml&schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854">
</div>
</div>
</figure></iframe></div></div></figure><p id="0226">How to put all this in just one INO file?</p><p id="3f69">This will be an issue for the next episode!</p><p id="eab2">Bye!</p><p id="4bed"><a href="https://drive.google.com/drive/folders/19wJvKgWVA3deE2JI1YBCfTCeZYrMgxXD?usp=sharing">Download All Files For This Project</a></p><h1 id="df4a">Related Posts</h1><p id="2993">63 Ardu_Series — <a href="http://xn--vnh2sp30-monster-5b6ib/%20Moto%20Shield?source=post_page---------------------------"><b>VNH2SP30 — Monster Moto Shield</b></a> — Use This Board In Extreme High-Demand Application — <a href="http://vnh2sp30/?source=post_page---------------------------"><b>Full-Bridge Motor Drivers — 30A@16v peak</b></a></p><p id="3075">23° ArduSeries — <a href="https://readmedium.com/pid-sample-for-arduino-260eae8975a4?source=post_page---------------------------"><b>PID sample for Arduino</b></a><b> </b>— HowTo Control devices with PIDLibrary</p><p id="5f94">5/5 Part JayThree Balancing Car Project — <a href="https://readmedium.com/jaythree-balancing-car-project-part-5-5-2aaa48924428?source=post_page---------------------------"><b>PID without a PhD</b></a></p><p id="1899">01º Lego Episode — <a href="https://readmedium.com/lego-our-startups-journey-2db83f9e92a4?source=post_page---------------------------"><b>Our Startup’s Journey</b> </a>— Invaders and Invasions?</p><p id="16aa">02º Lego Episode — <a href="https://readmedium.com/timmyton-lego-adventures-02-faae7d8c6fea?source=post_page---------------------------"><b>Timmyton </b>— <b>Lego-Learning-By-Playing — L2BP Series</b></a></p><p id="5a9c">04º Lego Episode — <a href="https://readmedium.com/lego-motions-episode-04-41dff47e8834?source=post_page---------------------------"><b>Lego Motions</b> — <b>Tribot v 1.0</b> — <b>Seeing Your Creation Move</b> </a>— Move Steering Block</p><p id="0e30">05º Lego Episode — <a href="https://readmedium.com/lego-motions-move-tribot-around-deb227946425?source=post_page---------------------------"><b>Lego Motions </b>— <b>Move Tribot Around</b> </a>— And Backward…Five Programs Files
Options
</p><p id="96f4">06º Lego Episode — <a href="https://readmedium.com/lego-sensors-touch-n-color-edbe0f6642f?source=post_page---------------------------"><b>Lego Sensors</b> — <b>Touch N Color</b></a> — Two out of five human senses — Touch N Sight</p><p id="d1ea">07º Lego Episode — <a href="https://readmedium.com/lego-sensor-color-5db4d42e0203?source=post_page---------------------------"><b>Lego Sensor </b>— <b>LineFollower</b> </a>— Line Follower Tribot v1.0</p><p id="9eec">08º Lego Episode — <a href="https://readmedium.com/maze-solving-tribot-v1-0-a29963f8742a?source=post_page---------------------------"><b>Maze Solving Robot v1</b></a><b> </b>— Lego Solution Right-Wall-Follower-Robot</p><p id="c40c">09° Lego Episode — <a href="https://readmedium.com/lego-gettle-sound-bots-5fb40f6d84df?source=post_page---------------------------"><b>Gettle_&_Sound_Bots</b></a> — How gentle can a robot be? What is the audible range of the human ear? How deep can we dive?</p><p id="9508">10° Lego Episode — <a href="https://readmedium.com/lego-data-logging-a2fd59dd7933?source=post_page---------------------------"><b>Data Logging</b></a> — Data Collection and the EV3</p><p id="0471">11º Lego Episode — <a href="https://readmedium.com/lego-binning-the-linefollower-code-5562e059237e?source=post_page---------------------------"><b>Binning the LineFollower Code </b></a>— Binning: Arithmetic To Map Sensor Reading</p><p id="e4cc">12º Lego Episode — <a href="https://readmedium.com/lego-a-proportional-linefollower-robot-d9a951debbef?source=post_page---------------------------"><b>A Proportional LineFollower Robot </b></a>— Advanced Math To Improve Your Robot’s Steering</p><p id="47f5">8th KidSeries — <a href="https://readmedium.com/j3-folower-line-robot-v1-0-7ad68256de83?source=post_page---------------------------"><b>J3 Follower Line Robot v1.0</b></a> — The Simplest Follower Line Robot</p><p id="1df5">13º LEGO Theory — <a href="https://readmedium.com/lego-theory-multitasking-2f060d2e3678?source=post_page---------------------------"><b>Multitasking </b></a>— A very Useful Programming Technique</p><p id="40e1">14º LEGO formula — <a href="https://readmedium.com/lego-formula-normalizing-data-66fefd9eb90e?postPublishedType=repub&source=post_page---------------------------"><b>Normalizing Data</b></a> — Converting Data to Use The Same Range</p><p id="c395">15º Lego Episode — <a href="https://readmedium.com/lego-pid-the-ultimate-line-follower-45d4e517572b?source=post_page---------------------------"><b>PID — The Ultimate Line Follower </b></a>— Algorithm for your EV3 PID Line Follower Robot</p><p id="dff5">16° <a href="https://readmedium.com/lego-meets-pixy-8f8ea7677114?postPublishedType=repub&source=post_page---------------------------"><b>Lego Meets Pixy Episode</b></a> — How to Connect Your Inexpensive Camera Module to Lego</p><p id="0224">18° Lego Episode — <a href="https://readmedium.com/lego-gears-worms-bf8ef3280d0e?source=post_page---------------------------"><b>GEARS & WORMS</b></a> — Geartrains & Worm & Clutch Gears</p><p id="4a4d">23° Lego Episode — <a href="https://readmedium.com/lego-differential-explained-12fa1865f3db?source=post_page---------------------------"><b>Differential Explained</b></a><b> </b>— How Differential Works?</p><p id="c6b8">24° Lego Episode — <a href="https://readmedium.com/pitbot-a-star-is-born-e04a0f305fb6?source=post_page---------------------------"><b>PitBot — A Star Is Born </b></a>— Working at The First Structure in Our Sparring Robot</p><p id="bd14">25° Lego Episode — <a href="https://readmedium.com/pitbot-is-agressive-well-no-worries-c801adba4b4c?source=post_page---------------------------"><b>PitBot Is Agressive? Well, No Worries! </b></a>— Making PitBot bite!</p><p id="fff9">26° Lego Episode — <a href="https://readmedium.com/dancing-good-w-pitbot-16b5ef035077"><b>Dancing Good w/ PitBot</b></a> — All The Secret for Replicate This Awesome Robot</p><p id="a255">27 ° LEGO Episode —<b> <a href="https://readmedium.com/lego-sumo-arena-is-ready-64a59e8bf987">Sumo Arena is Ready! </a></b>— Here is the playing arena for Arduino x Lego</p><p id="9f22">28 ° LEGO Episode — <a href="https://readmedium.com/pick-pitbot-up-7dbfa4edc12e"><b>Pick Pitbot Up!</b></a> — Our Robot Are Leaving Body & Paint Shop</p><p id="64ac">28 ° LEGO — B — Episode - <a href="https://readmedium.com/pitbot-battery-sensor-setup-4f572fedfe20"><b>Pitbot Battery & Sensor Setup</b></a> — Preparing The infrastructure for running Arduino code</p><p id="7828">29 ° LEGO Episode — <a href="https://readmedium.com/bridging-all-sensors-together-pitbot-ca8803bf9cb"><b>Bridging All Sensors Together</b></a> — Pitbot — Collecting All Codes for the Final Act of Giving Behaviors to Robot</p></article></body>
Bridging All Sensors Together — Pitbot
Collecting All Codes for the Final Act of Giving Behaviors to Robot — LEGO Episode # 29
Hi, let’s think of robotics as the act of giving behaviors to machines.
Exciting power and functionality are available out there in the wild to be used to give Pitbot a spirit!
Fig 1. Pitbot Robot — Sparred Sumo Bot for LEGO
And in this post, we’re gonna collect all the primal codes for our final project.
Welcome!
The first thing we need to do is see what pin are available in Arduino Uno board after VNHSP30 Driver installation:
Fig 2. The Moster Shield Occupy pin’s A0, A1, A2, A3 and Digital’s pins 4, 5, 6, 7, 8 & 9; the rest are available :/
Now, Let’s run all the codes individually in the Pitbot so that in the next post we’ll make a solo code:)