Mbot to Mbot IR communications


#1

Hello, I am helping kids with a makeblock challenge, to write a program that has two robots following a line. The first robot has an ultrasonic sensor that stops if it senses an obstacle and tells the second robot to stop too. Wondering if anyone has experience with this and can share code snippets on how to do it. thank you.


#2

Hi Khiladi100,

here are some ideas

Line following for a period of time

Line Following - Stop Ultrasonic

It is also possible to forward the line and stop at the end but I can’t find my post anymore


#3

thank you, one important fact is that both the robots are on different lines and we wanted to use IR communication to stop the second robot, where there was an obstacle in front of the first robot. Thanks again.


#4

I found this which is a little more complex than what you asked for. Watching the REPEAT UNTIL, you will be able to reproduce the exit code.

IR


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.