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:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
strange behaivour
#19
Hi Skeyeyedoc,

Hope I can be of some assistance. With this controller there is no need for a shunt resistor (but it is still one off the possible ways to measure the current).

This controller has an output (IS Left and right) that gives a certain current that is related to the current running through the motor.
According to the specs with an 1k resistor from IS to ground the factor to the voltage on IS with this resistor will be 8.5 so with 15 amps going through the motor (and a resistor of 1k between IS and Ground) there will be a voltage of 15/8.5 = 1,764 volt on IS.

As indeed the voltage in current limit mode might be 7 volt and you want to get a good reading on pypilot and keep the arduino alive you should then use a voltage divider. The downside of this is that these resistors will be parallel to the 1 k resistor and will be of some influence (resistance will be lower than 1k) to the 8.5 factor that is why I suggest to keep a high value for these resistors (174k) so you should have a 100K resistor on IS as well in series with a 74K resistor connected to ground.
The point where the 100k and the 74K resistor meet will be the current sense input on the arduino. With these values you should be good if you keep the current up to 20 Amps. Just as in the software low current 20 Amps max will be 1.1 volt (Vref). If you do go above 20 Amps (you do get above the 1.1 Volt) you can use one of the other settings in the software by putting the pins D4/D5 (see motor.ino) high or low and/or chance the voltage divider accordingly.

Off course using a shunt according to motor.ino is another good option as you can use IS but you don't need to.

Beholder77 does not mention the 1k resistor from IS to ground and I doubt if he gets a good current reading without changing calculations in motor.ino (also a possibility to get the readings right)

Hope this gives a bit more explanation,

Greetings Rob
Reply


Messages In This Thread
strange behaivour - by beholder77 - 2019-06-13, 05:23 AM
RE: strange behaivour - by jim321 - 2019-06-13, 12:02 PM
RE: strange behaivour - by beholder77 - 2019-06-13, 01:48 PM
RE: strange behaivour - by PaddyB - 2019-06-13, 02:37 PM
RE: strange behaivour - by beholder77 - 2019-06-14, 04:18 AM
RE: strange behaivour - by PaddyB - 2019-06-14, 12:19 PM
RE: strange behaivour - by skyeyedoc - 2019-06-17, 01:41 PM
RE: strange behaivour - by beholder77 - 2019-06-17, 05:26 PM
RE: strange behaivour - by skyeyedoc - 2019-07-04, 12:27 PM
RE: strange behaivour - by CapnKernel - 2019-09-30, 05:28 AM
RE: strange behaivour - by skyeyedoc - 2019-06-18, 11:18 AM
RE: strange behaivour - by skyeyedoc - 2019-06-20, 02:41 PM
RE: strange behaivour - by seandepagnier - 2019-07-04, 01:23 PM
RE: strange behaivour - by skyeyedoc - 2019-07-04, 03:37 PM
RE: strange behaivour - by jim321 - 2019-07-04, 04:39 PM
RE: strange behaivour - by rmvdmrl - 2019-07-13, 04:14 PM
RE: strange behaivour - by skyeyedoc - 2019-07-14, 12:15 PM
RE: strange behaivour - by skyeyedoc - 2019-08-28, 07:52 PM
RE: strange behaivour - by seandepagnier - 2019-08-29, 12:16 PM
RE: strange behaivour - by rmvdmrl - 2019-08-30, 01:21 AM
RE: strange behaivour - by skyeyedoc - 2019-08-30, 01:58 PM
RE: strange behaivour - by jim321 - 2019-08-30, 02:05 PM
RE: strange behaivour - by rmvdmrl - 2019-08-30, 04:49 PM
RE: strange behaivour - by jim321 - 2019-09-30, 10:50 AM
RE: strange behaivour - by CapnKernel - 2019-11-24, 02:14 PM
RE: strange behaivour - by jim321 - 2019-11-24, 10:11 PM
RE: strange behaivour - by seandepagnier - 2019-11-25, 12:20 AM
RE: strange behaivour - by CapnKernel - 2019-11-25, 01:47 AM
RE: strange behaivour - by CapnKernel - 2019-11-25, 03:22 AM
RE: strange behaivour - by seandepagnier - 2019-11-25, 02:49 PM
RE: strange behaivour - by jamos.tan@gmail.com - 2021-02-02, 05:17 PM
RE: strange behaivour - by seandepagnier - 2021-02-04, 03:09 AM
RE: strange behaivour - by Pascal - 2021-02-04, 06:15 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)