IR Data in EdPy | EdPy Programming | Forum

Please consider registering

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

IR Data in EdPy
December 12, 2017
3:44 pm
Forum Posts: 5
Member Since:
December 12, 2017
sp_UserOfflineSmall Offline

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.TimeWait(500, Ed.TIME_MILLISECONDS)
    Ed.PlayBeep() # for testing purposes

And the seekers:

found = False

while found == False:
    #start driving forwards
	#while Edison is on a white surface continue forwards
	while Ed.ReadLineState()==Ed.LINE_ON_WHITE:
	#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
December 14, 2017
12:06 pm
Forum Posts: 180
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline


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 15, 2017
3:43 am
Forum Posts: 5
Member Since:
December 12, 2017
sp_UserOfflineSmall Offline

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!

  • 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


Pin It on Pinterest

Share This