Published in


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.


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:)

1º Code — HC-SR04 Ultrasound Sensor 4-Arduino — Ultrasound Sensor Sonar

Let’s use pins 12 and 13.

Fig 3. HC-SR04 Ultrasound Sensor 4-Arduino TEST

2º Code — Sharp IR Sensor — 0A41SK

Let’s use pin A5.

Fig 4. Sharp IR Sensor — 0A41SK TEST

3° Code — 74HC4067 — DeMux For Arduino

Let’s use digital pins 0,1,2,3 to control this chip and gain 16 Inputs/Outputs for the other devices.

Fig 5. 74HC4067 — DeMux For Arduino TEST

4° Code — 4-Channel Line Tracker Sensor

Let’s read this 4 sensors by using the new 16 inputs gained by the use of the previous board:)

5º Code — VNH2SP30 — Monster Moto Shield

Let’s use digital pins 4,5,6,7,8,9 and A0, A1, A2, A3.

Fig 6. VNH2SP30 — Monster Moto Shield TEST

How to put all this in just one INO file?

This will be an issue for the next episode!


Download All Files For This Project

Related Posts

63 Ardu_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 MotionsTribot v 1.0Seeing Your Creation Move — Move Steering Block

05º Lego Episode — Lego Motions Move Tribot Around — And Backward…Five Programs Files

06º Lego Episode — Lego SensorsTouch 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° 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



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store