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
#8
(2019-06-17, 01:41 PM)skyeyedoc Wrote: Hello!
I'm really glad to read your notes, as I'm at the point where I need to find a motor-controller.  The IBT_2 looks very promising! I just ordered one from Amazon for $12. I'd really like to know what modifications you made to motor.ino to make it work. And it would be great if you take notes and share them as you go through the debugging work.

My IMU is mounted on an AIS receiver hat, which in turn is on an RPi3B+. I'm thinking of  positioning the motor controller mounted dry in the binnacle, and commanding it remotely via wifi.  The RPi will be very dry, mounted at the pilot's station below decks.

I don't have a plan yet for how to command the motorcontroller, except that it will entail some kind of serial network tunnel via a discrete port with no other traffic on it. Also, some kind of handheld remote at the binnacle to bump it left or right: maybe a 315mHz type 4-button generic.

My motor is from an old Autohelm 3000, which this system will replace.

You are indeed a very salty sailor, and your English is fine. Thank you for sharing!

Thank you for kind words!

I've attached my motor.ino
https://drive.google.com/file/d/1DTk2Tne...sp=sharing
Most of changes was made in "position" function and was some kind of intuitive...

Here it is picture from IBT_2 description:
[Image: IBT-2-Input-Ports.jpg]
which means that IBT_2 needs R_EN and L_EN both HIGH level to make motor working.
and has sepparate PWM channels for each direction.

So, my wiring in accordance with changed motor.ino sketch:
IBT_2         ARDUINO
+5V              5v
GND              GND
R_EN+L_EN      D2
R_IS+L_IS          A1 (with voltage divider)
L_PWM              D9
R_PWM              D10


One important note - according to BTS7960 datasheet CS (current sense) voltage in case of maximum values of current could be up to 7 volts, which is can be deadly for arduino, so i used voltage divider with 50k and 10k resitors

I am a not any kind of electronics pro, so please double check my solutions... They could be incorrect or not optimal at least.

Sorry, not able to attach motor.ino here, so i uploaded to google drive
https://drive.google.com/file/d/1DTk2Tne...sp=sharing
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: 1 Guest(s)