HO Scale Ghost Miner Code
I have worked on a small HO scale train table with my older brother a bunch over the years. We have added a number of features such as a green LED flashing in a cabin in a woods to have a witches hut with spells being cast. I decided to add a microcrontroller to handle all the LED flashing. The features it controls are: blinking water tower light, flashing witches spell hut, burning building, and ghost signalman. All aspect occur randomly. Finally, I added a small .96 in LCD display that projects images of ghosts onto a peice of plexiglass at an angle making a ghost like appearance at the end of a mine shaft. When growing up, my siblings and I watched a lot of Scooby Doo, so I set it to display different ghosts from Scooby Doo. The images are selected at random from an sd card. To handle all the connections I designed a custom PCB on KiCAD to handle all the wire connections. Additionally, this PCB handles power regulation. The power supply on the train tables says it outputs 12V DC which is a input option on an Arduino. Unfortuately, it was actually putting out 18 volts which we found out by frying an Arduino Nano on my first perf board design, so I put a linear reguatlor to handle the power regulation.