Tyree (he wears a tie and he has tires) actually smiles after he bumps into something (see video). Using an Arduino motor shield, he detects obstacles using the “more current into the motor means something is in the way” principle.
Tyree started out as a sketch and morphed into a real object thanks to Autodesk’s 123d software and a MakerBot Replicator 3d printer. Without the 3d tools, you can still learn how to make an active smile, tail wag, and sensor less control.
Step 1: Parts
I had to start somewhere–the wheels. I went to my local hardware and purchased two vacuum belts. I wanted these for traction–and they determined the ultimate diameter of my wheels. The shaft on my 40 rpm gear motors determined what size the hub needed to be.
Here’s the major parts:
Arduino
Arduino Motor Shield
Gear motors (12 volt, 40 rpm) Jameco #253518
Tail motor Jameco #2128219
Smile solenoid Jameco #149762
DPDT 5 volt relay Jameco #139977
2n2222a transistor
Toggle switch
Two 1K resistors
LED
Diode, 1N4004
Three 9 volt batteries and battery snaps
Seven AA batteries and holders
One breadboard
Jumper Wires
Heat Shrinkable Tubing
Body–For printable part list:
http://www.thingiverse.com/thing:24152
Step 2:
He evolved as the design process started.
Step 3:
For every body piece, I needed dimensions before I could design the part in software. Even if the part is made from plywood and bottle caps, knowing the critical sizes and placement of objects is important.
Step 4:
This is the base–could be plywood or plexiglass. Actually, this is a good starting point for design using 3d software–just a flat piece with rectangular cutouts.
Step 5:
The side panels get more tricky–they need to fit the bottom piece and support the motor.
Step 6:
Screw the motor to the side panel.
Step 7:
Solder wires to the motor while it is easy to do so.
Step 8:
Print the front piece–with the bow tie raised.
Step 9:
Snap the side pieces onto the bottom piece and the bow tie onto the front. Push the wheels onto the shafts. Add a set screw into the wheel collar.
Step 10:
Paint the bow tie (my wife took care of this).
Step 11:
The back piece is very similar to the front, but it has a larger hole in the bow tie. Point the bow tie inward and press fit the tail motor into the hole. Solder small (I used wire wrap wire) wire to the motor.
Step 12:
Use colorful rubber tubing (eyeglass retainers) for the tail (and eventually the smile). Push heat shrinkable tubing into the colorful rubber tubing. Shrink the exposed tubing onto the tail motor shaft.
Step 13:
Push the colorful tubing onto the shaft.
Step 14:
Take a needle with fishing line and push it through the colorful tubing (also through the heat shrink tubing you embedded earlier). Tie this in place.
Step 15:
Time to start assembling the guts. Program the Arduino and build the circuitry on the breadboard.
I started with a Randofo tutorial and used code by dougstrickland as the basis for this operation. A couple of things need to be noted. Motor current increases when the motors first start turning and when they encounter resistance (a wall). I measure the current after the motors have had a second to get going–otherwise, I’ll alway detect high current and get into trouble. If you operate on carpet, the “analogRead” values may need to be higher since more work is required from the motors.
I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.ACCEPTCheck Privacy Policy
Manage consent
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.