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.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to update motor controller arduino
#1
I noticed you have made changes to the arduino code for the motor controller in github. And the latest pypilot changes seem to require those updates to work.

Do you have a recommended procedure for updating the arduino in the motor controller? Preferably step-by-step? I did find the steps to update the pypilot from github in your wiki.

I need to have everything working in a couple of weeks and I would like all the latest fixes.
Thanks,
--
Larry - s/v Katie Lee Passport 45 Ketch (For Sale) - somewhere in Taiwan
  Reply
#2
Do you mean the new changes use 16bit rudder stop resolution on the controller and also support rudder feedback with reversed polarity (voltage decreases as rudder moves to starboard)?

If you don't update the motor controller, it will still fully support this including both polarities, but the end of travel from rudder position logic will be handled in python only. Updating the motor controller will also perform this logic on the controller itself which has a faster reaction time, and slightly safer in case the raspberry with pypilot resets while the motor is still moving, it might not time out before stalling the motor in some cases.

In practice if the drive can move more than 2 degrees past the rudder feedback stops without reaching the maximum travel and stalling the motor, then it will be fine even in the worst case with only python logic, so I don't think it is very important to update the controller.

You can of course upload the new version by typing "make upload" in pypilot/arduino/motor
  Reply
#3
(10-03-2019, 08:35 PM)seandepagnier Wrote: You can of course upload the new version by typing "make upload" in pypilot/arduino/motor

Will it update over the isolated serial link? Can I simply ssh into the tinypilot and type this?

Or do I open the controller, connect USB to the nano, and to a system that has a keyboard and display and the code in order to "type make upload"?
--
Larry - s/v Katie Lee Passport 45 Ketch (For Sale) - somewhere in Taiwan
  Reply
#4
(10-04-2019, 12:03 PM)svkatielee Wrote:
(10-03-2019, 08:35 PM)seandepagnier Wrote: You can of course upload the new version by typing "make upload" in pypilot/arduino/motor

Will it update over the isolated serial link? Can I simply ssh into the tinypilot and type this?

Or do I open the controller, connect USB to the nano, and to a system that has a keyboard and display and the code in order to "type make upload"?

It will update over the isolated link but you need to apply power to the controller just as you upload, or press reset button right at upload.   You can also wire a usb uart adaptor to the isolated serial link.

Otherwise, it's possible to use the usb port of the nano, the controller should not be powered.

You can type the command 'make upload' from the directory at least on openplotter.   I don't have the avr toolchain installed on tinypilot.  Maybe in the future it will, but for now it's better to use a linux system with avr-gcc and avrdude to update the controller
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)