Lego-Learning-By-Playing Series— Timmyton

Lego Adventures— L2BP Series — Episode #02

J3
KidsTronics
7 min readApr 6, 2019

--

The purpose of this article is to give my son an English class while he plays LEGO. With time I hope he publishes his own article directly in English as a second language (speaking almost naturally=)

Hi, let’s do a summary of chapter 4 of the book Building Smart LEGO MINDSTORMS EV3 Robots by Kyle Markland showing my son’ s first experiences with the Lego world?

Welcome! videos? click here now!

Timmyton is very nervous. Watch out!

Get the LDD Files

LEGO Digital Designer (LDD) is a freeware computer program produced by the Lego Group; The program allows users to build models using virtual Lego bricks, in a computer-aided design like manner.

You can Download LDD from this link:)

Download Timmyton LDD file from Builderdude35 (the author’s site):

https://builderdude35.com/downloads-2/

Check out this video to see the Robot in Action:

Let’s discuss some aspect of Timmyton’s Kyle design:

Building Techniques

1.Exterior Design

Considerable effort was put into designing the Timmyton exterior; It is a shark-like robot; Timmyton were designed with a purely cosmetic purpose so that the robot is instantly recognizable as a shark.

Three aspects should jump out at you: Pectoral fins, (chopping) Jaws and (wagging) Tail.

2.Caster Wheels for maximum mobility

It is a small wheel mounted on a vertical axle.

Functions:

  1. It can swivel in any direction;
  2. It can pivot in any direction, meaning it will follow the front two wheels wherever they steer;
  3. It ensures maneuverability in every direction;
  4. It is the go-to choice whenever an engineer needs a floating wheel that supports the machine’s weight without hindering mobility;
Supermarket trolley have mechanisms of Caster Wheels

3.Bevel Gear’s parallel and 90° gear meshes

Bevel gears are a special type of gear.

Gearbox is visible on the underside of the robot near the mouth:

  1. They have a conventional circular shape like spur gears, but the corners of their teeth are cut at an angle;
  2. This allows them to form 90-degree connections with one another while still being able to form conventional parallel gear meshes like spur gears can;
  3. The Timmyton takes advantage of the bevel gear’s ability to form both types of connections; this is how the Timmyton splits the power from one the motor within a compact footprint.

Engineering Principles

1.Tank-style Steering

Even though there are no tank tracks, the drivetrain of the Timmyton is still classified as tank-style because the Timmyton steers by varying the power sent to each motor side.

2.Cam-And-Rod Mechanisms

The rod connects to the tail and jaws, causing they to make a continuous movement to the left/up and right/down as the motor spins; The mechanism that guarantees it is Cam-And-Rod Mechanisms.

Programming

1.Custom GUI

The Timmyton’s custom GUI is among the robot’s most innovative features. It streamlines all of the robot’s programs into one user-friendly package;)
Many First Lego League (FFL) teams have decided to use custom GUI’s to make changing programs quicker and easier, saving precious time on the competition field.

2.Beacon Following

The robot needs to steer itself while it follows the beacon. IR 1 will read the heading of the nearby beacon, and the robot will use the heading value to adjust its steering to keep itself on track with the beacon. IR 1 will also measure the distance to the beacon so that it can slow down when the beacon gets closer.

3.Tank-Style Remote Control

The program that controls Timmyton’s movement uses both direction and magnitude to adjust its steering. This is called a proportional beacon follower.

Proportional logic refers to a feedback loop in which the correction made by the system is proportional to the observed error. In the future, we will see PID (proportional integral derivative) Controller ;)

4.Obstacle Detection/Avoidance

The proposed obstacle detection algorithm mimics the human behavior of detecting the obstacles that are located in front of the Timmyton during motion.

5.Give a Robot its own Personality

The purpose of programming is to give to your creation its own personality. This means that each of your creations will behave differently. This is an art of programming that you learn from practice, at each projects that you will make:D

6.Project Multiple Revision

It took many revision to refine the Timmyton to the polished state it is now.

It is very rare that an engineer gets a project perfect on the first try, so do not be afraid to experiment and continue modifying your design!

Program RC Mode Only:)

With these instructions, Timmyton is under the command of the remote control. Each button has its instruction set, one turns the engine forward another one backward and so on.

Simplifying the code :)

In essence, the above image is the flow of all process; it is so simple that you can simply enter this structure initially, and add step-by-step operations; The main loop, within each brick button, takes care of all specific operation of Timmyton behavior.

The second thread is used for interruptions purpose of the main loop called Mode Loop.

Both threads run in parallel.

As soon as you pressed the center brick button (ID=2) the loop named Mode Loop is interrupted and you are back to the menu graphic screen (below:)

Use this image to create your own menu: Tool > Image Editor

Go code according to your pace of learning and go test on hardware. That is, debug it! Watch. Learn. Do ;)

Got the vision?

That’s all folks! The rest of the code you take care of by download the code from Buiderdude35’s page and you’re done!

Thanks for joining us:) Until the next episode of Lego’s adventures o/

Stay tuned!

Troubleshooting

  • The bevel gear is not locked. Constantly the tail disconnects and we have to remove the brick to access and repair the differential; We have to find a way to get the bevel gear locked;
  • Bright colors are not recognized immediately by the color sensor; It is better to use papers instead of lego blocks and bricks;
  • If the mouth stays just closed the color sensor will probably read red (tooth) or another reflective color :/ white or blue; We would have to find a way to always finish the Hungry Mode with Timmyton mouths’ wide open; but how? you tell me….
  • The wires are too tight in the design; Fit them carefully;
  • The code is more laborious than difficult; Just understand the simplification above and you are ready to let your genius and creativity flow;)

Download All Files For This Project

Related Posts:

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

13º LEGO Theory — Theory of 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

Credits & References

Building Smart LEGO MINDSTORMS EV3 Robots by Kyle Markland (thank you, dude:)

Builderdude35

--

--

J3
KidsTronics

Hi, Guys o/ I am J3! I am just a hobby-dev, playing around with Python, Django, Ruby, Rails, Lego, Arduino, Raspy, PIC, AI… Welcome! Join us!