So, I'm just playing around with some old security items and the mega2560. I have a motion detector which has 4 wires. I can't even find this model in Google, scary
Anyway, it needs 12v dc input to operate, so I hooked up an old wall ward to power it. The positive to positive and negative to negative. The two outputs I'm using on the sensor are "com" and "alarm", fairly standard. It's a normally closed circuit that outputs 12v dc at 10ma.
This is where I confused. I feel like I should wire the "com" to the ground and the "alarm" to the pin. But then again, that doesn't seem right to me. Also, given that the pins can only handle 5v, do I need to use a voltage divider to get that down to an acceptable range? I guess what I really don't understand is what the input voltage matters at all if you can get the amperes at an acceptable level with a resistor.
Obviously I'm a novice but any directional links or advice would be greatly welcomed. I've done quite a bit of reading with similar projects but nothing was clicking.