I have a pinball machine thats an old electro mechanical type. I want to add LED's and do some fancy programming on an Arduino to animate the lights according to the score value of whatever target you hit playing the game. I have the programming- the LED, and the PWM dimming circuity and control down. I have never worked with input signals to Arduino or much circuit design at all.
The pinball machine has a relay that opens when it needs to move a score reel, e.g. the reel holding the "tens" position will accuate 5 times if you score 50... so that relay will pulse 5 times and open and close a circuit. The circuit runs on 26 V AC.
Whats the dirt simple stupid way to simply track this as a state change (or edge detection). I could not care less about the actual voltage, in fact if I could simply measure conductivity without worrying about input voltage etc I would. I cannot modify the game but for adding a wire to each pole of that switch. I cannot FRY the Arduino by putting 26 V AC (or for that matter DC) into it (grin).
Considering half waver smoothed rectifier but unsure about how to calculate reisitor and capacitor needed then unsure about voltage scaling, do it before or after rectifier?/?
Or... is there is truly simple method I don't know about (which would cover a very large area or knowledge).
If you can help me with suggestions and resources to help me figure out HOW to build a functional circuit that would be great.
Remember all I care about is state change, so if it ends up being an input voltage detection I could care less if it goes from 0 -> 5 V or 0 -> 2 V just so long as i can detect the switch above noise.
THANK you so much for your advice.