I have an Alltrax AXE 4834 (golf cart controller) that I want to throttle using an Arduino.
I can use an Arduino analog output that puts out a small current between 0 and 5 volts. Then I can program the 4834 controller so that it takes a throttle input of between 0 and 5 volts.
There are some arduino sketches that use a Pot input to fade an LED via PWM, I'm sure you could tweak the sketch to match the range and Pot you would be using. (You might require a little something extra to smooth the pwm depending on what the input circuit of the Alltrax looks like)
Its for AVR which the Arduino is based off of. You connect an extra ADC to the pwm. The pwm charged the cap and discharges through the resistor into to ADC. This will allow you to use the ADC reading as a closed loop feedback and you can modify you pwm to maintain voltage.
The throttle on the Alltrax references Pack negative. The other end of the pot references an internal 14V supply. When its loaded, it goes between 3V and 0V. I got this information for Davide at Elithion directly from one of the engineers at Alltrax.
more here: http://lithiumate.elithion.com/php/alltrax.php
So be careful, now you reference pack negative, so its not isolated.
What I'd do? Use a digital potentiometer and "send" it a resistance.
Why do you want to use an arduino board with an Alltrax? Do you have a bad intelligence board? Get ready for an annoying whine to the motor standard arduino frequency is 500 or 1000 hertz depending on if you choose a fast or "slow" pwm pin. Anyone know any commands to change the pwm frequency preferably ones that don't involve manually changing the output compare register? Also I don't think the fade program will give very good performance I have used a program like this and I was unhappy with top speed but I did notice a LOT more performance with a bit bang code that I used it would turn the pin on then off(only problem was that when you first started out you were full ON) instead of using the pwm function of the micro I don't fully understand why I got better performance either but maybe it turned ON "harder" at the pwm peak or saw a full 5v from the micro every time I think an ideal code would be to have a soft start using an analogRead/Write code then after the pot goes past a certain value say 300( just guessing) you turn the pin on and off manually and having a command to select any frequency you like just by changing a number or two would be nice too.
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Related Threads
?
?
?
?
?
DIY Electric Car Forums
539.9K posts
88.6K members
Since 2007
A forum community dedicated to DIY electric car owners and enthusiasts. Come join the discussion about electric vehicle conversions, builds, performance, modifications, classifieds, troubleshooting, maintenance, and more!