I have nearly finished my first Arduino project , not counting the many, many tutorials with blinking LEDs.
It is a train speed measuring unit. Yes, I know there are several of these available but it is just a simple project to see how I go.
Just need to make a couple of mounts for the detectors.
Uses IR reflection as detectors/sensors, a pro mini as the CPU, 2 line LCD for output and a 5V regulator. Development was done with a Uno.
Truely thankful for the cheap electronic modules available from China as it certainly speeds up construction and of course keeps the cost down. I spent more on the hardware side (plastic case, power connectors, sensor connectors) than the electronics stuff. The raw cost would be about 10 quid for the major items. Making it pretty would be at least the same again.
Used EEPROM CVs to store the scale (max 1:500), distance between detectors (max 2000mm) and output units (kph or mph). These can be changed at any idle time using a few push buttons. Max values can be easily changed in code. The unit can work from either direction through the IR gates.
Was enjoyable, mostly, as I came to terms with the requirements for LCD, strings and C++ math. The math and units seem rather clumsy.
Now am onto making my PECO turntable operational. Most of the code written, just into debugging. Using some of the coding I made for the speed unit, especially for editing CVs, adding editing and deleting tracks. For this project I am going to use a 4 line LCD on I2C, what a struggle to get the right setup for the interface, and an Adafruit motor shield for the stepper motor.
Algorithm for selecting which direction to turn and then how far to move was a right pain, kept making small mistakes (really a bummer getting senile).
After the code, comes the mechanics.
Regards,
CFJ