SetTimerCount(2, TimeBetweenAmpHrOutputs) 'reset timer for sending AmpHr info to display device PRINT ("999", " ", DeciAmpSecondsUsed, "\n") '"999" lets Arduino know that next number is cumulative durrent PRINT ("Value of DeciAmpSecondsUsed sent to display device \n") SetTimerCount(1, TimeBetweenAmpHrReads) 'reset timer for next current reading PRINT ("DeciAmpSecondsUsed = ", DeciAmpSecondsUsed, " TenthsOfAmpHr used = ", DeciAmpHoursUsed, "\n") SetCommand (_VAR, 1, DeciAmpSecondsUsed) PRINT ("\n", "READ stored DeciAmpSecondsUsed \n")ĭeciAmpSecondsUsed = DeciAmpSecondsUsed DeciAmpSecondsĭeciAmpHoursUsed = (DeciAmpSecondsUsed/60)/60 PRINT ("\n", "READ BATTERY CURRENT AS 10X AMPS \n")ĭeciAmpSeconds = (I*TimeBetweenAmpHrReads)/1000 Lenny's amazing script already has this code to turn Roboteq's internal amp reading to an amp hour amount: Since this is Roboteq script related I'm putting it here so others can find it easier. ![]() I'm working on the Arduino display to show the AH used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |