Hi everyone,
Just recently discovered this wonderful world of Arduino. I stumbled into it while working on another project using just straight up electronic components to handle all the logic. I'm hoping that this group can give me some guidance for the appropriate Arduino board to buy - the Uno or Mega...
The scenario:
This project will be for model railroading. We use a Helix to traverse from one level to another. A helix is basically a giant spiral that gradually brings a train up or down with each full turn. Our helix has two tracks circling around. Here's picture below to provide a better visual:
Since the helix will be completely hidden from view after scenery turns it into a giant mountain, we'd like a way to tell us the progress of our train as it progresses - namely, what level/turn it is on. A circuit I found online using just electric components achieves this with an IR emitter/detector on each level. When the beam is broken (ie. the train is blocking the signal as it passes through), it turns on an LED mounted somewhere on the outsdie fascia. Successive LEDs will turn on as the train continues and interupts the next signal along the way. LEDs turn off again as soon as the signal is once again detected. Neat little circuit, that would meet our basic needs. I've prototyped it on a breadboard, and it works fine.
The goal:
After learning about the Arduino and it's ability to communicate with other external devices, I'm thinking that using the Arduino to display on an LCD panel would be pretty cool. Something like "Level 2" would be sufficient, "IN: Level 2" would be cool too, to let me know if it's the inner or outer track that was detected (I can control this by only having the IR beam cross one track, and not both at each point). Advanced features could include the ability to cycle through messages on the LCD if two or more trains are traversing the helix at the same time, on same or different tracks. Also, keeping track of the previous detection spot would let me output the direction (Up/Down) of the train. But first, let's just start with the basics...
The potential solution:
I'm thinking that IR emitter/detector pairs, with resistors, wired to the Arduino pins would work. Digital "IN" is fine - all I need is on/off, not an analog value. A sketch on the Arduino would evaluate which level was signalled, and send the appropriate message to the LCD display. I think I can also manage the logic for alternating messages and direction. With 6 1/2 turns of the helix (yes, I know, the diagram only shows 5 levels...), I'd like to have one detection spot per track, per level, which puts me at 12-14 detection spots, depending on final location.
The Questions:
I have not yet bought an Arduino. I was looking at some of the begginer kits to get started, since it provides the LCD screen I'm after. But, I'm stuck on a couple points - which Arduino is the appropriate size - Uno or Mega? Can I get away with Uno? There are 14 digital I/O pins, but I don't know how many would be needed for the LCD output.
Are there certain LCDs that are more appropriate for this type of output?
What else am I missing?
edit: was to change the subject to include "Model Railroading".