Skip main navigation

New offer! Get 30% off your first 2 months of Unlimited Monthly. Start your subscription for just £35.99 £24.99. New subscribers only T&Cs apply

Find out more

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

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now