|
Post by colinm on Aug 19, 2019 15:14:09 GMT
Cool. It may be a bad connection on the board... Are you getting any voltage on pin A0? Current wise, it's a shame your measured constant is changing - from the sensor it really should be linear. If you average the ones you have does the app give a close enough reading? Going to be driving for a bit - I'll check back later! Don't have any voltage on pin A0
|
|
|
Post by colinm on Aug 19, 2019 15:14:56 GMT
Cool. It may be a bad connection on the board... Are you getting any voltage on pin A0? Current wise, it's a shame your measured constant is changing - from the sensor it really should be linear. If you average the ones you have does the app give a close enough reading? Going to be driving for a bit - I'll check back later! Don't have any voltage on pin A0 or the pad on the board
|
|
|
Post by colinm on Aug 19, 2019 15:17:19 GMT
R20=4.71k R21=4.71k R22=9.95k R23=9.92k Those sound good. Just do a quick check on the R24 (should be 47k). Sounds like the hardware is within spec. We will have a further think on this one! R24=47.4k
|
|
|
Post by icooper on Aug 19, 2019 15:27:48 GMT
Don't have any voltage on pin A0 or the pad on the board Interesting. Pin A0 should reflect the 'testpoint' on the board called BattTotalVTP. Please (with board off and disconnected) check the resistance between A0 and this point (should be 0ish), if not then potentially dodgy soldering on the arduino header. Next step(s): Be careful when measuring these with the board ON!!! 'BattTotalVTP' should have a voltage on it so test for this when the board is powered. Resistors R1 and R2 are used for measuring the main battery voltage. One leg of R1 should read the power supply voltage (+24V / whatever you're using) The other leg of R1 should reflect the voltage at 'BattTotalVTP'/A0 One leg of R2 should be ground (0V). The other leg of R2 should reflect the voltage at 'BattTotalVTP'/A0
R1 should be 82K and R2 should be 16K
|
|
|
Post by colinm on Aug 19, 2019 15:30:21 GMT
Cool. It may be a bad connection on the board... Are you getting any voltage on pin A0? Current wise, it's a shame your measured constant is changing - from the sensor it really should be linear. If you average the ones you have does the app give a close enough reading? Going to be driving for a bit - I'll check back later! Input 38.3 which is the reading using the battery tester and still getting 16.0A reading for 16,7A input
Can you show me how to comment out the lines, never done this before!
|
|
|
Post by colinm on Aug 19, 2019 15:56:45 GMT
Interesting. Pin A0 should reflect the 'testpoint' on the board called BattTotalVTP. Please (with board off and disconnected) check the resistance between A0 and this point (should be 0ish), if not then potentially dodgy soldering on the arduino header. Next step(s): Be careful when measuring these with the board ON!!! 'BattTotalVTP' should have a voltage on it so test for this when the board is powered. Resistors R1 and R2 are used for measuring the main battery voltage. One leg of R1 should read the power supply voltage (+24V / whatever you're using) The other leg of R1 should reflect the voltage at 'BattTotalVTP'/A0 One leg of R2 should be ground (0V). The other leg of R2 should reflect the voltage at 'BattTotalVTP'/A0
R1 should be 82K and R2 should be 16K
83.4k and 15.94k Supply is 12.9V, Im getting 12.9 at one side of R1 and 12.8 at the other but nothing at the test point.
|
|
|
Post by Rowan on Aug 19, 2019 16:13:37 GMT
To comment out a line, add // to the front of it. In Arduino IDE you can select everything you want to comment out and press ctrl+/ .
I need to catch up on the circuit discussion!
|
|
|
Post by Rowan on Aug 19, 2019 16:18:35 GMT
It sounds like there's no connection between the low side of R1 and the test point. Could you check for continuity between the leg of the resistor and the test point?
Just about to send you a pm... This might be easier over the phone!
|
|
|
Post by colinm on Aug 19, 2019 16:47:34 GMT
Interesting. Pin A0 should reflect the 'testpoint' on the board called BattTotalVTP. Please (with board off and disconnected) check the resistance between A0 and this point (should be 0ish), if not then potentially dodgy soldering on the arduino header. Next step(s): Be careful when measuring these with the board ON!!! 'BattTotalVTP' should have a voltage on it so test for this when the board is powered. Resistors R1 and R2 are used for measuring the main battery voltage. One leg of R1 should read the power supply voltage (+24V / whatever you're using) The other leg of R1 should reflect the voltage at 'BattTotalVTP'/A0 One leg of R2 should be ground (0V). The other leg of R2 should reflect the voltage at 'BattTotalVTP'/A0
R1 should be 82K and R2 should be 16K
83.4k and 15.94k Supply is 12.9V, Im getting 12.9 at one side of R1 and 12.8 at the other but nothing at the test point.
Attachments:
|
|
|
Post by colinm on Aug 19, 2019 16:50:35 GMT
No continuity between these pads, Is there a track in there?
|
|
|
Post by colinm on Aug 19, 2019 17:06:08 GMT
Connected these 2 pads and now the voltage is showing?
|
|
|
Post by Rowan on Aug 19, 2019 17:13:46 GMT
As you worked out, there should have been a connection between them! That's not an issue I've seen on the PCB before, the v1.3 boards have all been perfect so far.
|
|
|
Post by colinm on Aug 19, 2019 17:20:19 GMT
To comment out a line, add // to the front of it. In Arduino IDE you can select everything you want to comment out and press ctrl+/ . I need to catch up on the circuit discussion! Ive comented out as instructed and the APP reading in now about 0.4A down on the input ainstead on 1.0 to 1.2 before. I'm putting in 16.4 and its flickering between 15.9 and 16.1A
|
|
|
Post by Rowan on Aug 19, 2019 19:09:04 GMT
That sounds like it's within the variance you found measuring the constant. I'll take a look at the code over the next few days and see if I can work out what's happening there!
|
|
|
Post by colinm on Aug 19, 2019 19:27:03 GMT
I tweeked the current constant up to 39.3 and that sorted it at 17 Amps. I also did the voltage calibration as per the manual and that was also reading low so tweeked that to 3.07 which is good at now 24V but not accuate at 12 V. Maybe a similar issue with the filtering.
|
|