Infrared Train Identification
The objective of this project is to design and construct a set of sending and receiving units so that the track-side receivers can identify the train that is passing.
This will add considerably to the capabilities of another project where a DCC control unit operates trains.
It could also be used to activate track-side accessories based on which train goes past... lots of possibilities!
Each engine will have a sending unit that continually transmits an infrared code that identifies it.
The track-side receivers will initially only respond to a particular engine. Ultimately they may transmit the ID code to the master control unit.
There are two components to this system, one goes on each engine and one sits track-side where identification takes place.
The on-board transmitter has these components:
The track-side receiver has these components:
Click on this thumbnail to see the schematic
The PICAXE 08M can transmit any of the Sony IR codes - the command is:
INFRAOUT 1, code
If code=1 then the receiving program detects button 1 - if code =2 button 2 and so on - see PICAXE manual for details
TEST CODE FOR RECEIVER - PICAXE 08M
|TEST CODE FOR TRANSMITTER - PICAXE
|TEST CODE FOR RECEIVER - 16F684 -