anyone here do PIC microcontroller work?

Thread Tools
 
Search this Thread
 
Old Jul 28, 2010 | 08:33 AM
  #1  
ldivinag's Avatar
Thread Starter
03.23.67 - 06.14.13
iTrader: (3)
 
Joined: Nov 2002
Posts: 8,495
From: N37 39* W122 3*
anyone here do PIC microcontroller work?

i would like create a simple device.

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.
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.

Last edited by ldivinag; Jul 28, 2010 at 08:44 AM.
Old Jul 28, 2010 | 10:48 AM
  #2  
userian's Avatar
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
Old Jul 28, 2010 | 11:00 AM
  #3  
ipozestu's Avatar
VIP Member
iTrader: (18)
 
Joined: Aug 2004
Posts: 7,570
From: Subabrew Crew
Car Info: Broken Subarus
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?
Old Jul 28, 2010 | 12:29 PM
  #4  
ldivinag's Avatar
Thread Starter
03.23.67 - 06.14.13
iTrader: (3)
 
Joined: Nov 2002
Posts: 8,495
From: N37 39* W122 3*
A dual battery controller actually...
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
gpatmac
Hawaii
1
Nov 18, 2003 05:34 PM
shamr0ck
Ongoing Projects
2
May 25, 2003 07:17 AM
sub-sonic
Hawaii
7
Apr 24, 2003 09:37 AM




All times are GMT -7. The time now is 04:07 AM.