Roaming with whiskers
Download
Report
Transcript Roaming with whiskers
Recoded
Significance of programming
• Digitalised era- phones, computers,
industrial processes…
• Raspberry programming device
• Exploration of the concept of artificial
life through media
• Moore's law: computer processing
power doubles every other year
• Stephen Hawking prediction artificial life
will take over
Arduino
Hardware/
breadboard
Software computer
programming
language-c
Our task• Program a robot to use components
• Use c to write coding
• Program our robot to navigate itself
through a simple maze
Roaming with whiskers
Ben, Adam, Byron
The equipment required
The setup
How do they work?
Roaming about the place
• The code is actually quite simple:
– Setting up the wheels
– Set up the whiskers, and make the servos on the
wheels controllable by the outputs of the Arduino.
– Then, forever;
•
•
•
•
•
If both whiskers are touched, go backwards
If the left whisker is touched, go right
If the right whisker is touched, go left
If neither whisker is touched, go forwards
How do we make this really simple?
Functions!
• To go forwards;
– Move the left wheel clockwise and the right wheel
anticlockwise
• To go left;
– Both wheels go anticlockwise
• To go right;
– Both wheels go clockwise
• To go backwards;
– The left wheel goes anticlockwise, the right wheel
goes clockwise
Getting stuck in corners
• Here, it would just keep going left and
right!
A-maze-ing?
No. Just no.
• This isn’t very good for actually solving mazes,
as the robot would never know when there is
a gap.
‘But can’t you solve a maze by sticking to the left wall?’
Will robots take over the world?
Where is infrared radiation
Navigation using IR radiation
• Infrared headlights and receivers acts as bot’s eyes
• Headlights send out IR radiation, reflects off of object and back
towards receivers
• Similar principle to TV remote
• Flash rate of roughly 38kHz
How did we make it then?
• Parts list:
• IR receivers
IR LEDs (clear case)
IR LED shield assemblies
Resistors, 220 Ω (red-red-brown)
Resistors, 2 kΩ (red-black-red)
Jumper wires
• Although a chance in the resistors
will affect the distance that the bot
will detect.
• The greater the resistance the shorter
the detecting distance
• The tone made indicated that the bot was
about to move.
• But we thought we could have it do so much
more.
• Hope u can hear it!
Phototransistors
Phototransistors breadboard set up
The code that
makes it detect
light .
The physical set up of the bot.
Phototransistors
They are light sensitive transistors.
We programmed our bot to stop
moving after a certain voltage is
reached.
When you shine a light on them the
robot will stop moving. This is
because the current detected
increases, which results in an
increase in voltage.
Moving the robot using light
We then programmed our bot
to move as the light is shined.
When you shine a light on
them the robot will turn in the
direction where there is less
light being shone.
Semi-dependant movement
Our Project was about getting the robot to move
quasi-autonomously , we achieved success in the
form of directing the bot using bright light
Here are some of our results :