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
Motorcontroller BADVOLTAGE_FAULT
#1
Hi all,

I built my own motorcontroller with an Arduino Nano and a Pololu-Bridge. It connects to my Tinypilot via UART... so far so good. But the voltagemeasurement shows 20.43V and makes a BADVOLTAGE_FAULT.

I measured the pin A0 and I see 5,7 Volts, regardless of the voltage, I connect to my board. So I think the Arduino treats the pin A0 as an output. Where else should the 5,7V come from?

any ideas?


Attached Files Image(s)
   
Reply
#2
Hey, recognize that schema ;-) Remember to put a voltage divider on the Tx.

The voltage you measure seems to be about the max of the range, as indicated in motor.ino line 60. That would happen when R6 is not connected to ground. In that case, the input would be clipped by the protection diodes inside the arduino. It would be clipped against 5V, and with the diode voltage drop, you would measure 5.6V over it. So, I'd give that R6 a good scrutany. BTW this would also happen if you swapped R3 and R6 accidentally.
Reply
#3
The A0 pin is an input. It should not source current. I would check the R3 and R6 resistors.
Reply
#4
found it! Thanks for Your help. I swapped the resistors R3 and R6 because I was a little careless in layouting: the resistors names on the PCB are swapped.
@ironman: The voltage divider for the TX is on the Raspi side... like in your schematics ;-)


Attached Files Image(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)