voltage monitor with bs2
Let's Go!
Posts: 124
my project needs to monitor the voltage and when it gets to about 12 volts, i want the bs2 to turn on a relay, etc.
can anyone share how to monitor the voltage level with the bs2, or point me in the direction where i can see some code example.
thanks,
jim
can anyone share how to monitor the voltage level with the bs2, or point me in the direction where i can see some code example.
thanks,
jim
Comments
Use a 220 protection resistor on the pin as well to avoid costly coding errors.
Or does it need to constantly be aware of an actual voltage reading? In that case use an ADC. There are examples in "What's a Microcontroller?"