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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to test servo / arduino separately
#1
I have an arduino hooked up to a tinypilot and I'm getting telemetry readings. I'm planning to make an h-bridge so I hooked up digital pin 6 of the nano to ground. To see some virtual action, I tied some leds to digital pins 2, 3, 9 and 10. I'm trying to get this mock-up spinning, first trying the << and >> buttons in the autopilot ui, but the leds stay off. Then I try to set servo.command, but no cigar either. I don't have an imu yet.

So, in the context of a tinypilot image, how can I test the servo / arduino subsystem?

Thx,

-


Attached Files
.txt   no cigar.txt (Size: 486 bytes / Downloads: 191)
Reply
#2
Persistence pays off! I reflashed the nano with DISABLE_VOLTAGE_SENSE and now my leds are working when I press << and >>. So now I can start building the h-bridge.

#define DISABLE_VOLTAGE_SENSE // if no voltage sense

I did not like 12V on my breadboard so had uncoupled the voltage sense wire. But it makes all the sense in the world to disable the motor when the voltage is too low or too high.
Reply
#3
What is the problem with 12v on the board? The usual divider is 10k and 560 ohm which takes more than 90 volts before it would overvolt the adc. Maybe an issue with a breadboard if the lower resistor becomes disconnected?
Reply
#4
Sad 
(2019-07-15, 02:47 PM)seandepagnier Wrote: What is the problem with 12v on the board?   The usual divider is 10k and 560 ohm which takes more than 90 volts before it would overvolt the adc.  Maybe an issue with a breadboard if the lower resistor becomes disconnected?

Oh sorry for being unclear. The voltage divider is in place and tested allright. In the permanent setup i will have the 12V lead properly connected; I just don't want to run the risk of the 12V jumper wire to fly off the breadboard and hit the arduino in the wrong spot. It's a matter of risk management during the prototyping phase.

I just dropped a construction light on my openplotter raspberry pi when I wanted to make a movie to share the process of building the pypilot. It killed the pi and and forced me to buy another osenc chart licence because that was tied to the hardware. I made a vow not to kill any more electronics unnecessarily ;-)

Cheers,

-
Reply
#5
ironman, we recommend to use the o-charts USB dongle to link your charts to it forever and do not waste money due to this issues.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)