Pages: [1]   Go Down
Author Topic: ArduPilot Legacy (Atmega328)  (Read 576 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 160
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have a problem with my little ArduPilot Legacy board.
When I plug the I2C sensor to the Arduino Duemilanove it works flawless, but when I plug it to the ArduPilot Legacy I get 0 on the screen.
I've used the same connectors(for the sensor), they're strong on both sides, actually I have a better physical connection to the ArduPilot. The solders are perfect. I found with the multimeter nothing.
What should be the problem?


Thank you,
RobertEagle

PS: I've used a breadboard.
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you give us a hint as to what you're doing?  At least a schematic or a sharp photo of your setup, and a link to the code.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 160
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I've connected the 4th pin to the SDA, 5th pin to the SCL, Ground to the ArduPilot ground, and Vcc (because I was lacking options) to the 6th PWM pin (in which I've set it at 3.3Volts in the IDE).

Today, I decided that would be a better decision to use a voltage regulator. Surprisingly I have a LM317. I've made all the connections and now the voltage regulator powers up the I2C sensor while the input is being send to the Ardupilot. It works.

Now, even if I got here, what was the original problem with that pin? (It was set at 165 in the Arduino)

Thank you,
RobertEagle
« Last Edit: August 24, 2012, 03:18:32 am by RobertEagle » Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 182
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The problem is the vcc generation ,  see http://arduino.cc/en/Tutorial/PWM . The pwm is not an output with variable voltage , but only a square wave with a variable duty circle and a frequency of 500hz
Hi niko
Logged

Non possiamo pretendere che le cose cambino, se continuiamo a fare le stesse cose(albert Einstein )

Pages: [1]   Go Up
Jump to: