2018-09-13, 04:16 PM
sorry for the delay.
Yes, pulling pin 6 on the arduino low should enable h-bridge mode. Then pins 2,3,9,10 should work to drive the 4 mosfets in a bridge. Otherwise, pin 9 should output rc pwm. So you might want to test pin 9 on your scope, and move in both directions.
There are some other issues as well. If the controller detects over temperature on either the motor or controller it will not drive. You should see this flag in the control program.
If you do not have temperature sensors, you should connect the pins A2 and A3 to vcc (not ground) to give it the lowest possible temperature reading so it won't fault. I should modify the code to detect if there are no temp sensors automatically so you dont need to do this in the future, but have not yet. For now easiest to just wire to vcc, or hack the TakeTemp function and return 0 or something. For 10 cents I use a NTC thermistor.
You may also connect A4 to gnd or vcc to disable rudder feedback. It may float out of range normally but it's better to set it.
If you do not have voltage input, you might also have problems with the latest code. The controller shuts down below 6v or above 18v unless it detects it is a 24v capable controller (pin 12 grounded)
You can also hack the TakeTemp and TakeVolts functions to hard code readings rather than return what is measured to avoid changing the hardware.
Disabling all this detection could potentially damage things. You need a way to detect end of travel, either current sense, end of travel switches, or rudder feedback. Preferably you have more than one of these.
Be sure not to connect pin 7 or 8 to ground. These are end of travel stop switches and will disable movement as well.
Yes, pulling pin 6 on the arduino low should enable h-bridge mode. Then pins 2,3,9,10 should work to drive the 4 mosfets in a bridge. Otherwise, pin 9 should output rc pwm. So you might want to test pin 9 on your scope, and move in both directions.
There are some other issues as well. If the controller detects over temperature on either the motor or controller it will not drive. You should see this flag in the control program.
If you do not have temperature sensors, you should connect the pins A2 and A3 to vcc (not ground) to give it the lowest possible temperature reading so it won't fault. I should modify the code to detect if there are no temp sensors automatically so you dont need to do this in the future, but have not yet. For now easiest to just wire to vcc, or hack the TakeTemp function and return 0 or something. For 10 cents I use a NTC thermistor.
You may also connect A4 to gnd or vcc to disable rudder feedback. It may float out of range normally but it's better to set it.
If you do not have voltage input, you might also have problems with the latest code. The controller shuts down below 6v or above 18v unless it detects it is a 24v capable controller (pin 12 grounded)
You can also hack the TakeTemp and TakeVolts functions to hard code readings rather than return what is measured to avoid changing the hardware.
Disabling all this detection could potentially damage things. You need a way to detect end of travel, either current sense, end of travel switches, or rudder feedback. Preferably you have more than one of these.
Be sure not to connect pin 7 or 8 to ground. These are end of travel stop switches and will disable movement as well.