Burgerman wrote:I think he is using a stupid BMS by roboteq which is pretty much identical to every other BMS in that it does all the same crap we dont want or need. So once you move all the safety parameters to setting that dont kick in and stop the chair, then it doesent do anything at all... So not needed!
The other thing it does is help charging. And its as bad at charging as every BMS is. But he is connecting this to the roboteq controller, and its not working. So by removing battery I think he means disconnecting the battery from the BMS... Or something. So maybe a can bus setting or similar.
IUsed:
IF SuppressPrinting = FALSE THEN
PRINT ("\n", "READ BATTERY CURRENT AS 10X AMPS \n")
END IF
I = GetValue (_BATAMPS)
DeciAmpSeconds = (I*TimeBetweenAmpHrReads)/1000
IF SuppressPrinting = FALSE THEN
PRINT ("\n", "READ stored DeciAmpSecondsUsed \n")
END IF
DeciAmpSecondsUsed = GetValue (_VAR, 1)
DeciAmpSecondsUsed = DeciAmpSecondsUsed + DeciAmpSeconds
DeciAmpHoursUsed = (DeciAmpSecondsUsed/60)/60
SetCommand (_VAR, 1 , DeciAmpSecondsUsed)
IF SuppressPrinting = FALSE THEN
PRINT ("DeciAmpSecondsUsed = " , DeciAmpSecondsUsed, " TenthsOfAmpHr used = " , DeciAmpHoursUsed, "\n")
END IF
SetTimerCount(1, TimeBetweenAmpHrReads) 'reset timer for next current reading
SetTimerState(1, 0) 'start timer
IF GetTimerState (2) = 1 THEN
IF SuppressPrinting = FALSE THEN
PRINT ("Value of DeciAmpSecondsUsed sent to display device \n")
END IF
PRINT ("999", " " , DeciAmpSecondsUsed , "\n") '"999" lets Arduino know that next number is cumulative durrent
SetTimerCount(2, TimeBetweenAmpHrOutputs) 'reset timer for sending AmpHr info to display device
SetTimerState(2, 0) 'start timer
END IF
RETURN 'End of "IUsed:"
PRINT (deciAmpHoursUsed,"\n")
IF LoopCycles MOD 500 = 0 THEN
' PUT ANYTHING HERE THAT YOU WANT DONE ONCE EVERY 500 LoopCycles
SetCommand (_VAR, 1, 1) 'makes sure serial watchdog is satisfied
END IF
..YesPlease let me know if you can not access it!
Return to Everything Powerchair
Users browsing this forum: loky, shirley_hkg, woodygb and 85 guests