If anyone is willing to give this project a go, and maybe help a dummy learn more about this wonderful technology, please don't hesitate in letting me know. You never know, I may even be able to give something back to this forum one day when I have learnt enough.
An alternative to the IR sensor, that avoids the lockout issue, is a magnetic sensor and magnet on the train. Perhaps the motor alone would be sufficient.
You can also put reflective tape under the loco and bounce the IR off that._____Rob
Does IR respond to the black and white the same as visual light?______Rob
unless anyone has any other ideas.
Henry, I'm very interested in this, also for model trains. I'm guessing your barcodes are intended to identify the trains.How are you planning to organize the logic of the Arduino that will do the reading? For example will it react to interrupts or do you plan to do polling? How many sensor locations are you thinking of? How many trains will be moving on your layout at the same time?I had been toying with a sort-of similar idea recently (I never got round to testing anything) and I had more-or-less given up the idea of reading the IDs from trains in favour of detecting position with LDRs and inferring the train IDs from a knowledge of which train ought to be at that location....R
Quoteunless anyone has any other ideas.Comparator?______Rob
Do you mean using an op-amp?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16