I'm powering a Trinket pro via the batt pin with a 9v wall wart.
The 9v supply is also powering another device. That device has a master on/off switch. To read the state of the device, you have to monitor the positive current running to it.
It seems like a bad idea to me to hook the 9v positive signal carrying a ton of current to a digital pin on the Arduino.
Is this something that should be solved by a transistor? Should I use a regulator?
Sorry for the simple question. Just looking for feedback before I potentially set my house on fire.
You can use a voltage divider to sense voltages above the microcontroller's supply voltage. 9V will destroy an
Arduino without some protection. Divide by 2 using 2 10k resistors would work for instance.
MarkT:
You can use a voltage divider to sense voltages above the microcontroller's supply voltage. 9V will destroy an
Arduino without some protection. Divide by 2 using 2 10k resistors would work for instance.