Hi all! I am an amateur in electronics and want to learn by doing a project. Currently I want to set up automatic signalling for my Märklin tracks (well... future Märklin tracks). Whenever a train is on a section of track a 12v alternating current is activated and I want to use this current to control whether the signal is red or not and whether to send a signal to the next piece of track signalling occupancy. In the future I want to keep track of my trains with an Arduino board or something similar. Please find the attached image. I measured the input alternating current to about 17v (this is from the Märklin transformator so I can't change it) and the output direct current to 19v. I guess the increase is due to the capacitor used, I think .473μF. Please help me with my next step.