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
How does motor.ino signal a fault
#1
Trying to learn the arduino code found in the pypilot motor.ino.  When I power up the RPi0  + Arduino Nano, the Nano eventually has a solid green and a rapidly flashing red on it.  The web client shows there's a motor fault (Synch overcurrent fault and bad voltage fault) which I am right now assuming is due to the arduino not being hooked up to anything other than the RPi0 at the moment (baby steps). 

I found myself wondering, how is the rapid flashing red accomplished by code?  Obviously, I see the code that in the loop that flags the error conditions, but what LOC is signaling the detected fault to the Arduino such that it flashes red?  Is it simply by setting non-zero to 'faults'?

Adrian
Reply
#2
it is probably the tx or rx that is flashing? If you dont connect A1 to 0v you will get over current faults. Without sensing you probably want to disable voltage and other monitoring in the code by #define at the top.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)