The Wiggler

Posted on 11/08/2014 by robodude95
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

Update 20-09-2014 I've finally finished stuffing all the electronics into a compact space so it isn't a big mess of wires...kind of like a small,fat  R2D2 :D As y'all can see from the pictures its a really tight fit :p..This will also  probably be the last update on the bot as I'm quite happy with the finished result! Cheers :) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The ...


The Wiggler

Update 20-09-2014

I've finally finished stuffing all the electronics into a compact space so it isn't a big mess of wires...kind of like a small,fat  R2D2 :D

As y'all can see from the pictures its a really tight fit :p..This will also  probably be the last update on the bot as I'm quite happy with the finished result!

Cheers :)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The  Wiggler is my entry for the Single Motor Robot Challenge.

Method of  Locomotion : The Wiggler basically  "wiggles" its way to the nearest light source by alternating the direction of the DC motor  every 200ms. A rubber tip connected to the motor gives it enough grip to wiggle on a surface.

The wheels at the back can only move in the same direction since they are connected on a common axle....probably need to add some grip to them since they tend to slip alot. I made mini clamps to hold the axle from a piece of metal I had lying  around and hot glued them to the body (turned out to be sturdier than I thought they would).

The wiggling movement allows the robot to move forward,left and right depending on where the source of light is.

Electronics and Sensors: The Wiggler uses an Attiny85 for its brain along with an L293d motor driver to control the motor speed and direction.The two LDRs are conncted to analog inputs 2 and 3 on the Attiny (IC pins 2 and 3). Digital pins 0,1,2 are connected to the enable and two input pins on the L293d respectively.

The sensors used are two LDRs facing left and right.So the robot moves to the side which is brighter.This action is only  triggered when the difference between the two sensor reading crosses a set value (say 150).If the difference is lesser than the set value the  robot will wiggle forwards.

The LDRs are connected using a 10k ohm voltage divider for each LDR.

Power Supply : 3 X AAA bateries connected in series(approximately 4.5V).

Code : I used an Arduino Uno as ISP to upload the code.The code is pretty basic and easy to understand through the comments. I tired to use LDRs that gave similar readings but they still ended up having a difference of about 70 which was compensated for in the code. The biggest challenge here was trying to  get the perfect delay time for  the wiggle.

Videos : The first two videos show the basic forward wiggling movement. The final video has the robot with the light seeking code uploaded moving from the darker part of the table to the lighter part of the table.

Pictures :

Note : Ended up removing the 5v regulator from the final circuit.

I'll still need to make changes in the aesthetics since all these wires looping around look way too messy :D

 

Seek Light

LikedLike this to see more

Spread the word

Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post