anyone here do PIC microcontroller work?
anyone here do PIC microcontroller work?
i would like create a simple device.
so... anyone familiar with PIC programming? and worked with creating something like this? i imagine the whole thing will fit in a box size of like cigarette pack...
thanks.
Code:
it will do: 1. when turned on, via 12 volts, it will check signal #1 to see if it's > 12.6 volts. 2. wait 5 seconds. 3. see if signal #1 becomes > 13.1 volts. if not, goto line #2. 4. start a timer of 5 minutes. 5. after 5 minutes, check if source #1 is > 13.6 volts. if not, goto line 3. 6. send signal to close relay. wait 10 seconds. 6.5. check signal #1 to see if > 12.0 volts. if not, then goto END. 7. wait 3 minutes. check signal #1 for > 12.7 volts. if not, then goto END 8. until power is removed, continue to monitor signal #1. 9. if signal #1 drops < 12.7 volts, wait 10 seconds. check again. 9.5. if signal #1 < 12.7 volts, goto END. 10. wait 10 minutes. goto line 8. END: 1. open relay connection. but this should be given if power is lost at any time.
thanks.
Last edited by ldivinag; Jul 28, 2010 at 08:44 AM.
Registered User
iTrader: (1)
Joined: Nov 2005
Posts: 53
From: San Jose, CA
Car Info: 02 WRX Wagon WRB
Ya that's pretty straight forward. I haven't worked with any PICs that could handle that voltage, they might exist though. Either way you could get an A/D converter that will handle the 12+ volts.
I'd be more than happy to help
I'd be more than happy to help
You would want to convert to a 0-5 VDC or 4-20ma signal source for your span. Programming is not a problem. You can st up your logic quite simply with a historisys. It's a bit easier to develop by creating a proper ladder logic. It will become more clear where things can be changed to improve the function of the controller. Are you making a battery tender of sorts?
Thread
Thread Starter
Forum
Replies
Last Post
azer408
Bay Area
15
May 11, 2011 11:27 AM



