shumifan50
- Jan 16, 2014
- 579
- Joined
- Jan 16, 2014
- Messages
- 579
As promised the circuit schematic, artwork(not very arty), source files and some notes.
The code was a tight squeeze once I added the display( CW-LCD-02 serial display TTL), so I could not use the floating point library to calculate values more accurately, so the voltages are of by up to 0.3V, but for its purpose this will not matter to me.
I had endless grief with the ADC, where initially the values were all over the place with a 10K/5K6 resistor network. The current solution is the 0.1uF caps, but I am not sure that it is that good a solution. The problem is with impedance(I think) as the PIC requires a maximum 10K impedance. I don't want to lower the resistors too much as I don't want to draw excessive current.
I am currently using a relay to switch the battery, but would ideally like to do it solid state, but lack the knowledge of FETs etc.
Any pointers will help. Note that at a minimum it must be able to handle 40 Amps.
I just realised I uploaded the wrong source files. It is the version I was using to test. Instead of turning the relay on at startup and turning it off when there is a cell with a low voltage, it just turns on the 'relay' (LED during testing) when the low-voltage happens. The low voltages are set at 4.13V (for testing) so would have to be set at 3.8V (safe).
The code was a tight squeeze once I added the display( CW-LCD-02 serial display TTL), so I could not use the floating point library to calculate values more accurately, so the voltages are of by up to 0.3V, but for its purpose this will not matter to me.
I had endless grief with the ADC, where initially the values were all over the place with a 10K/5K6 resistor network. The current solution is the 0.1uF caps, but I am not sure that it is that good a solution. The problem is with impedance(I think) as the PIC requires a maximum 10K impedance. I don't want to lower the resistors too much as I don't want to draw excessive current.
I am currently using a relay to switch the battery, but would ideally like to do it solid state, but lack the knowledge of FETs etc.
Any pointers will help. Note that at a minimum it must be able to handle 40 Amps.
I just realised I uploaded the wrong source files. It is the version I was using to test. Instead of turning the relay on at startup and turning it off when there is a cell with a low voltage, it just turns on the 'relay' (LED during testing) when the low-voltage happens. The low voltages are set at 4.13V (for testing) so would have to be set at 3.8V (safe).
Attachments
Last edited: