Simple short range IR communication for toys

I have a couple of electric Lego Duplo trains which I want to make more intelligent. Like remote control, collision/stall detection and the ability to work together to pull more load. For the inter locomotive communication I’ll use IR transceivers at the front and back. To keep it simple the IR beam is not modulated and is connected to an UART. (one UART for the front and one for the back of the locomotive). I have tested a receiver circuit using a photodiode and a phototransistor.  The phototransistor circuit is the most simple and worked well with a range over 30 CM which is enough. a baudrate of  1200 work best, with 2400 and 4800 baud the range was decreased. Short range IR transceiver

This circuit can also be used with an Arduino. The IR LED and IR phototransistor pairs are sold on ebay.

 

 

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s