...Ummm ..I'm not so sure Lenny ..I thought it was a simple ON/OFF latching switch... but I could be wrong.This is a momentary contact switch
12V Blue LED Metal Switch Push Button Latching Momentary 16mm
Its a rare mechanical switch that doesn't need debouncing. I agree non-latching pushbuttons always do, but even big chunky toggles invariably do. Anyway, IMHO, its good programming practice to always debounce a switched input!LROBBINS wrote:Odd description indeed. Is it latching or momentary? If latching, there's less need for programming sleight-of-hand; even debounce might not be needed.
Ciao,
Lenny
vMotorResistance = 10 'MOTOR COMPENSATION. (SETTING THIS TOO HIGH IS DANGEROUS)
'Set to less than motor milliamps and then adjust based on chair response
bSpeedPotInstalled = FALSE 'Is speed potentiometer installed?
' CHARACTERISTICS OF SPEED POT
vPotMin = 20 'speed at lowest pot setting
vSpeedPotLowFault = 10 'chair speed used if pot fails giving too low voltage
vSpeedPotHighFault = 70 'chair speed used if pot fails giving too high voltage
vFullRechargeVoltage = 449 'ten times battery voltage; 44.9V = 3.45V/cell - voltage present only immediately after
'recharging used to reset AmpHrs used measurement to 0
My joystick outputs a minimum of (roughly) 580mv and a max of 4100mv. Should I choose a higher ohm resistor accordingly to prevent disabling the chair outside either voltage with the pot (and coding to suit)? I currently have my Roboteq configured to emergency stop at 550mv and 4150mv. Wouldn't I lose quite a bit of resolution and motion if I changed the calibration's maximum and minimum values since the Roborun software doesn't let you put alternate min/max values as safety limiters. It goes off of the joystick's calibration values.
Burgerman wrote:I removed the script. There are unscrupulous people stealing Lennys hard work or wanting to do so, for commercial purposes, which I don't agree with.
How about coming to Siena and letting me play with the chair?
Another thing you might play with is making the stick itself less sensitive near center - setting some level of exponential curving in the Roboteq. I don't think that this is a real cure for stall at low PWM, but it may make the jack rabbet-ness less intense.
That way, if a wire opens up it goes off scale and the script can do something with that. (I don't recall what I had in the script for speed pot out of range - whether it stops the chair or just sets a safe speed pot value.
Keep as detailed notes as you can on your testing and share them here. We all need to learn from what you're doing
I do think that crediting the creator is the honest thing to do, and I surely wouldn't mind if someone who's found it useful decided to buy me a Roboteq.
Return to Everything Powerchair
Users browsing this forum: Kande_ian, LROBBINS, shirley_hkg and 110 guests