I have a robot which needs to go to specific locations to deliver things. I am going to do this by IR led's but want only one IR detector on the front of my robot. How could I send different codes (so it knows which station it's at) over theese led's and how could I code it. Obstructions are moved around by a UltraSonic sensor.
Station 1 has an IR LED emitting pulse of 1 ms ON, 200 ms OFF. Station 2 has 2 ms ON, 201 ms OFF, etc. Note that the overall cycle time is not the same for the two LEDs, so that their transmissions do not overlap very often.