Skip main navigation

Braitenberg robots

Watch Professor Richard Mitchell explain how to define neurons for Braitenberg type robots using a simulation, before having a try yourself.
1.9
OK, it’s time for an exercise. And this is about programming a robot that works a bit like a Braitenberg vehicle. So here is the web page, and I’ll scroll down a bit so we can see the controls. Basically, we’ve got a Braitenberg vehicle as shown down the bottom, which has got two sensors, left sensor and the right sensor. And they need to have a one if they detect a light, a zero if not. It’s then got two sets of three neurons, one which determines the left speed, one determining the right speed.
36.2
And the formulae that are used is that the left speed, as it says there, is the left sensor times the LL neuron, which is that one there, plus the right sensor times the LR neuron, plus the LM neuron. So if the robot, for instance, can’t see anything, then the LM neuron will determine how fast it goes. And once you’ve typed in the different neuron values here, you can press start and see the vehicle move. And as ever, you have the option to have reverse left motor. So once you type something in here, you can see the robot move around. And you can put it back to its initial position with a button there.
85.4
And you can specify narrow beams, or wide beams.
91.1
The two red dots represent the lights, and the sensors can detect these. So first, what you need to do is to find the neurons, so that the robot moves forward when it sees nothing, but slows down and turns towards the light it sees, rather like a passive seeker. Try that with narrow and wide beams. Then define the neuron, so that the robot moves forward when it sees nothing, but speeds up and turns to the light. So it’s more like an active seeker. Then define the neurons so that the robot moves forward when it sees nothing, but turns away from the light it sees, which is more like an active phobe.
127.1
Then if you click the line to follow, which we’ve seen before, can you now put the neurons in so that the robot follows the line. And it’s all done by typing in different values for the neurons. Enjoy.
In the final exercise on the course, you will be able to define the robot speed to specify the value of the neurons in the vehicles. In this video, Richard introduces the simulation and what you need to do to define the neurons so that the robot moves forward or moves away from a light.
This article is from the free online

Begin Robotics

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education