December 12, 2017
Hi! I’m trying to have my students play a game of hide n seek where robots run through a maze (pretending lines are walls) looking for each other.
The students are using IR Data send/receive to “talk” to each other. Is there any way to control how close the Robots are before the robots see each other?
For example, the hider does something like:
found = False while found == False: Ed.SendIRData(10) Ed.TimeWait(500, Ed.TIME_MILLISECONDS) Ed.PlayBeep() # for testing purposes
And the seekers:
Ed.LineTrackerLed(Ed.ON) found = False while found == False: #start driving forwards Ed.Drive(Ed.FORWARD, Ed.SPEED_1, Ed.DISTANCE_UNLIMITED) #while Edison is on a white surface continue forwards while Ed.ReadLineState()==Ed.LINE_ON_WHITE: pass #when Edison is not on a white surface back up and turn around Ed.Drive(Ed.BACKWARD, Ed.SPEED_1, 2) Ed.Drive(Ed.SPIN_LEFT, Ed.SPIN_LEFT, 60) if Ed.ReadIRData() > 0: found = True
August 24, 2015
Unfortunately not, the IR comms have been designed so that Edison’s can communicate across a classroom.
This is achieved by the Edison blasting out IR light forwards and up, the signal then bounces off any and all surfaces (including the ceiling) to make it to all Edisons in the vicinity
December 12, 2017
I figured there wasn’t a way to stop this behavior, but that it was worth the ask.
FWIW, with my students we were able to hack somewhat desired behavior by: 1) putting up black walls around our arena to absorb the IR instead of bounce it (not fool proof, but better) and also to make paper shields that I taped onto the top and sides of the bots to given them a “tunnel vision” of sorts (again not perfect, but better). It actually turned out to create an extremely useful and worthwhile conversation about limitations of hardware, debugging and troubleshooting, and figuring out what is and is not possible with given hardware and software. Even though the students weren’t able to complete the assignment as I intended, I think I might do the exact assignment again next quarter so the students can work through this situation and experience these learning outcomes!