#REM Li-Ion Battery Management System Watchdog Module by Peter Perkins. Picaxe 08M - PIC12F683 - 280708 - www.150mpg.co.uk - V0.02 Beta. **************************** General Information ****************************** The BMS modules carry no warranty or guarantee, and are used at the owners own risk. No liability will be entertained in any shape or form whatsoever. The modules and software have been produced for the benefit of the EV and electronic community. The software, hardware and source files, inc pcb layouts are made available free via the internet. Users may modify or adapt the system as they see fit. If you are not fully competent to work on potentially lethal battery systems and voltages, then do not experiment with/use this system. *********************** Watchdog Picaxe 08M Pinouts *************************** Top _____ (+ Supply) +Ve -1| ^ |8- -Ve (- Supply) (Program In) Rxd -2| 0 |7- Txd (Program Out) (Watchdog Led Out) Output 4 -3| 8 |6- Output 1 (Audible Alarm Out) (Pulse Count In) Input 3 -4| M |5- Output 2 (Master Reset Out) ----- ********************** Watchdog Module Specification ************************** Supply Voltage 5.00V DC same as Master Average Supply Current at 5.00v <100ua CPU Speed 4mhz with internal resonator ******************************************************************************* #ENDREM `Variables Constants and I/O definitions `Variables 16bit symbol Pulses = w0 ;w0 = Number of WatchDog pulses received in 1 min `Constants symbol Time = 60000 ;Timer set to 1 minute approx symbol MinPul = 1 ;Minimum number of pulses allowed `Pins used for I/O and designations `*** Digital high/low Outputs *** symbol Alarm = 1 ;Audible Alarm Warning on Output 1 symbol MasterReset = 2 ;Master Reset on Output 2 symbol Led = 4 ;Warning Led on Output 4 `*** Digital high/low Inputs *** symbol WatchDog = 3 ;Watchdog pulses input on Input 3 `******************************************************************************* `******************************************************************************* Start: ;Main program start count WatchDog, Time, Pulses ;Count Watchdog pulses recieved in 60 seconds if Pulses > MinPul then Start ;If Pulses received > Min then goto program start high Alarm ;Activate audible alarm high Led ;Activate WatchDog alarm dashboard Led high MasterReset ;Activate Master Reset Output (Note pcb jumper setting) pause 1000 ;Pause for 1 second to allow Master Reset low MasterReset ;Deactivate Master Reset Output (Note pcb jumper setting) goto Start ;Goto program start