#REM Li-Ion Battery Management System Speed Sensor Pulse Test by Peter Perkins. Picaxe 08M - PIC12F683 - 041008 - www.150mpg.co.uk - V0.01 Beta. **************************** General Information ****************************** The BMS modules carry no warranty or guarantee of any kind! They are used at your own risk, and I make no claims as to their suitability for a particular function. Prospective users must evaluate the system before using it, and no liability will be entertained by myself in any shape or form whatsoever. The modules and software have been produced at low cost for the benefit of the EV & electronic community. The software is 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 high voltages, then do not experiment with or use this system. Be aware that vehicle modifications can lead to invalidated insurance and warranty issues. You the end user remain fully liable for any modifications made to your vehicle. *********************** Watchdog Picaxe 08M Pinouts *************************** Top _____ (+ Supply) +Ve -1| ^ |8- -Ve (- Supply) (Program In) Rxd -2| 0 |7- Txd (Program Out) (Speed Pulses Out) Output 4 -3| 8 |6- Output 1 (Not used) (Not used) Input 3 -4| M |5- Output 2 (Not used) ----- ********************** Watchdog Module Specification ************************** Supply Voltage 5.00V DC same as Master Average Supply Current at 5.00v <100ua CPU Speed 4mhz with internal resonator ******************************************************************************* ******************************** Clock Speeds ********************************* ********** Reducing Speed Should Save Power (Untested at present) ************ %00000000 = 31 kHz 19bps %00010000 = 125 kHz 75bps %00100000 = 250 kHz 150bps %00110000 = 500 kHz 300bps %01000000 = 1 MHz 600bps %01010000 = 2 MHz 1200bps %01100000 = 4 MHz 2400bps %01110000 = 8 MHz 4800bps Example = poke $8F,%01100000 'Set clock to 4 MHz ******************************************************************************* *********************** Program Size 50 out of 256 Bytes ********************** ******************************************************************************* #ENDREM `Pins used for I/O and designations `*** Digital high/low Outputs *** symbol PulseOut = 4 ;Speed Pulse Output on Output 4 `******************************************************************************* `******************************************************************************* Start: for w0 = 1 to 60000 high PulseOut pause 6 low PulseOut pause 5 next w0 goto start