GLOBAL SITE AUSTRALIAN SITE

EdVenture 10 – Robot communications

 

Bounce without borders

A robot swarm is when many robots work together to solve a common problem. Generally the robots are small and by themselves aren’t very intelligent, but as a swarm they can achieve complex tasks (think of ants building a complex nest). The most important part of swarm robotics is communication. Without robot to robot communication a robot swarm is not possible. Here is an introduction to robot communication.

In this EdVenture you will need at least two Edison robots. The first Edison will bounce within a border and tell the second robot each time a border is encountered. The second robot will use this information to mimic the first robot and will seem to bounce in side an invisible border.

Write the following program for the first Edison (Edison with borders).

robot communication send program

Create an 8 bit variable called ‘Black_Line’ and set the initial value to 1.

How the program works

The first icon turns on the line tracking sensor LED. The program then enters an endless loop. The IF icon in the loop checks the state of the line tracking sensor, if the surface is white (reflective) then the dual drive icon drives Edison forward at speed 4. If the surface is black (non-reflective) then the contents of the variable ‘Black_Line’ (1) is transmitted. Edison then reverse-turns for 0.25 seconds and repeats the loop.

 

Write the following program for the second Edison (Edison without borders).

robot communication receive program

Create an 8 bit variable called ‘Black_Line’ and set the initial value to 0.

You can program a third, fourth or fifth Edison with this program for more fun.

How the program works

The program goes straight into an endless loop and reads incoming data using the receive data icon. The receive data icon places the data into the variable ‘Black_Line’. The IF icon then checks if the data in the variable is equal to 1. If it isn’t (no data from the other Edison) then the dual drive icon drives Edison forward at speed 4. If the data does equal 1 (the other Edison has encountered a line) then the dual drive icon drives Edison in a reverse-turn for 0.25 seconds. The loop is then repeated.

What to do

Print the track on the next page and place the first Edison inside the border. Place the second Edison outside the border and press the play button on both Edisons.

The Edison inside the border will not leave the oval and the second Edison will mimic the firsts every move.

Experiment

This is just an introduction to robot communications. Can you improve on this program and can you achieve two way communications? What if the first Edison couldn’t turn until the second Edison confirmed that it had received data?

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead

Country

Pin It on Pinterest

Share This