Good morning everyone... or evening... or afternoon... eh, you get the idea. So I have been working on an automated tram set up. It is pretty simple really just a Kato Unitram that will go around a loop of track making 2 stops, over and over again until I power off the unit. I have had nothing but trouble with this thing from almost the beginning. My original plan was to use an Arduino Nano (I have/had generic FTDI units) with a LN298 motor control that would power the tracks. The stations would use IR sensors to halt the tram and a random stop time of 2 to 6 seconds would allow for "passengers" to load and unload from the tram. Sounds simple, I know it isn't hard but coding is my weakness. I can read code well enough to usually adapt something to my needs but I am not very good at writing the code from scratch. I do have some coding background from back in the 80's with Apple BASIC, to my time in the Navy with ATLAS. I only know the basics of "C". I started with this project on the Arduino forums and got some help, but no one there to help debug my code. One guy tired but when I loaded his code and ran it on my setup it didn't work what so ever. So my main issues I have with my setup is the #2 stop would not always stop when it was supposed to. Usually the tram would roll past the station then stop, next time around stop even further away and so on 3 or 4 laps until it somehow resets and I get 1 stop where it is supposed to, the next a bit further away and then rinse and repeat. I got no help with this flaw, but on my own I added a “phantom” stop in the code that was basically a 3rd stop that didn’t have a sensor with it. This seemed to cure the stop #2 issue but I don’t feel right about how it was done. I may eventually want to build a larger tram setup with multiple trams and multiple stops, all automated, this is just a stepping stone to that end. My last major issue with this was my Nanos. I did most of this work on a breadboard setup and it worked great. I decided to make it permanent and soldered my Nano to a board, with headers and get it ready to have a life as a tram controller. After this I made a change to the software and when I went to load it to the Nano the Nano was tanked. Windows would not recognize it nor would my Apple. So the next time I ran this route I soldered a socket to the board then plugged in the Nano. Software already loaded and it worked well for a few hours. Then I again made a change to the software and when I went to upload it… again not recognized, and after I tried to connect to the computer what I had wouldn’t even work right any more. During all of this I was testing the new software on an authentic Uno with no issues. At the end of the day I now have 5 Nanos that will not talk to a computer any more (yes I tried reloading the bootloader through the 6 pin header… no joy). Now I have a working unit with my Uno but I am still not comfortable with my code. If I were to post my code and setup here would someone be able to evaluate it and help me make things better? Thank you all in advance. Also I am thinking of upgrading this system eventually with some of the Sparkfun robot units but for now this is what I have.