Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How do i choose the resistors?
There is a calculator online at **broken link removed**
Perhaps R1 could be 60 ohm and R2 could be 40 ohm to end up with 4.8V from 12V.
If the car battery was charging and the voltage of the system went up to 16V, perhaps I should adjust the values a bit. So, say the worst case scenario is 18V, presumably I'd run the resister calculation at 18V in which case I'd get R1 60 ohm and R2 23 ohm and end up with 4.988 V output. But at 12V input I'd only end up with 3.325 V output. Will the GPIO on the PIC still work at 3.325 V? How low can you go with the voltage?
The other question is, how do you know what size to make R1? According to the PICAXE schematic above, R1 is 3300 ohm and R2 is 1000 ohm. You'd end up with between 2.791V from 12V and 4.186V from 18V. But I could end up with exactly the same voltage divider with any value for R1. Is 3K3 an appropriate value for the PIC?
I presume the size of R1 has to do with how much current you want to make available to the PIC GPIO pin and probably has to do with R=V/I.
I wouldn't agree with that.For an automotive environment, a low drop out regulator is desired.
I understand the issues of overvoltage but using a LDO for a 5V in an 12V automotive application does seem like overkill. As I mentioned above, the LM7805 will work down to 9V and many automotive devices fail to work below 10.5V.This is why a low drop out regulator is used for automotive apps.
I've done a quick search, I saw your thread but I've not seen anything about needing a LDO regulator for a 5V line when powered from a 12V system.this subject has come up on numerious occasions in this forum as well as the general chat etc.
do a search and see what I am referring to.
sure a 7805 will work but how well??
If you want electronics to keep going while the engine is cranking, a low drop regulator is a good idea.
I have never seen any thing electronic stay on while cranking the engine why start now