This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using pi gpio outputs / pins arduino
#13
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.
Reply


Messages In This Thread
RE: using gpio outputs - by affinite - 2018-09-08, 04:46 PM
RE: using gpio outputs - by seandepagnier - 2018-09-08, 06:01 PM
RE: using gpio outputs - by nvelthuijsen - 2018-09-09, 09:58 AM
RE: using gpio outputs - by affinite - 2018-09-08, 09:14 PM
RE: using gpio outputs - by seandepagnier - 2018-09-10, 06:50 PM
RE: using gpio outputs - by nvelthuijsen - 2018-09-11, 12:24 PM
RE: using gpio outputs - by jim321 - 2018-09-11, 02:08 PM
RE: using gpio outputs - by nvelthuijsen - 2018-09-11, 02:23 PM
RE: using gpio outputs - by nvelthuijsen - 2018-09-11, 05:45 PM
RE: using pi gpio outputs / pins arduino - by seandepagnier - 2018-09-13, 04:16 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)