Hello everyone
I’m new to the microcontroller arena but have some electronics experience in my past.
Our statewide model train organization here has been asked to put up a train display for the holidays. We did this last year as a pilot project to see if we could do it. “if” meant seeing if we could design the display in a very short period of time, then put it up in two days over Thanksgiving weekend walking away hoping that for a month the trains, lighting and animated features worked flawlessly. They actually did.
We used a borrowed Insteon Home Automation system to control everything, the trains (on and off), the lighting in the buildings (dimmers), overhead lighting using Christmas lights (dimmer), controlling the Christmas Music sound track playback (on and off). We found third party software that let us schedule everything. Each of 3 trains ran every 20 minutes (20 on, 40 off) so there was always a train running. It worked very well.
This year the display is about 4 times the size with 5 trains running. The Home Automation was borrowed. This year we would have to buy the whole thing. The hub is $200 and each control circuit starts at $50.
I’ve been playing with Arduino (the model train hobby has been for years) for a few months. But it doesn’t have some easily incorporated features we need. I really don’t want to stack a bunch of shields on each other. I thought about moving to an Arduino Mega or Due because they have more IO options but some things are still lacking. This led me to Netduino which in turn led me to Netduino Go, MNF & Gadgeteer. Netduino Go isn’t sufficient so I started looking at controllers outside the Arduino arena.
I like Gadgeteer because it uses Visual Studio. I’m a web developer by trade and have been using VS since .Net 2.0. I have Ultimate 2013 and the 2015 CTP Versions installed. Working in C# or VB is preferred rather than dusting off 15 year old C coding experience.
I think the Raptor is possibly my best option.
Here are most of the requirements.
• It needs to be controlled by a schedule on a real time clock. If the system is reset or loses power it needs to start up and run the schedule where it should be in the schedule, not where it left off.
• It needs to have at least 18 inputs. All are going to be digital. A train passes over a pressure sensor or photoelectric sensor and makes something happen like a set of crossing gates go down and crossing lights flash. The electronics are already in the crossing gate system so I just need to turn it on and off.
• It needs to have upwards of 18 outputs. Some are digital and are “on” or “high” from 1 second momentary (to throw a relay that throws a train track switch) to on for 16 hours. The display starts up at 8am and goes off at 10pm or 11pm. I need some analog and PWM might work. These need to control 120VAC Dimmers for overhead lighting and lighting in buildings (they are Dept. 56 cottages and use 7 watt C7 bulbs. All the dimming lighting is incandescent and the total on a circuit at most would be 500 watts.
• The display uses Lionel Trains which are normally run on 0-16VAC. But more modern Lionel Trains actually use a DC Can Motor and there’s a circuit board inside the locomotive that rectifies the AC for the motor. We can rip out the boards. We would lose some functions like smoke, reversing and sounds but that isn’t an issue. As long as the trains move in one direction with the headlight on that’s OK. We need the speed control on these so when a train comes down a hill it doesn’t pick up speed and go into a turn too fast and runs off the track. Basically this is hit a sensor, drop the speed by 50%, hit a 2nd sensor and go back to 100%.
• Ideally there would be a TFT Touchscreen display (7" to 10") that would provide some manual control. It would have icons on the screen to do things like turn everything off, reset the system, turn everything on for testing, dim the lights, and so on. The screens I have access to have 2 connectors, 1 for VGA and 1 for USB for the touchscreen.
From what I can tell I need the Raptor and the following:
• MaxO Module for adding outputs (Can these be used as Inputs as well?)
• Motor Driver L298 Module to control the trains
• USB Host Module to connect the “mouse” in the touch screen monitor
• Power Extender Module to get more power into the system to control everything
• SD Card module to hold the graphic files for the touch screen and for any XML data needed for configuration read by the software
• VideoOut Module to connect the TFT Screen
• The Touch L12 Module to manually change train speeds and/or dim lights
Pardon the play on words here but am I on the right track with this?
Thanks in advance for your help