debug2 raises without sensors connected

Post Reply
Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

debug2 raises without sensors connected

Post by Phin »

Hi,

I have a weird prob: i connected all sensors (bma020,wmp,baro,mag) and got debug2 running up.
Then i disconnected the sensors, just the Arduino on the board: still counting up(and down).

Any idea what could be wrong? checked the pins for shortcircuits with a multimeter, nothing.

Its this board: Image

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: debug2 raises without sensors connected

Post by PatrikE »

debug2 shows I2C errors!
If there is no devices anwering on the calls there will be errors.... :shock:

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

Ahhhh, thanks to make that clear.

I thought I found the problem, but doesnt seems like. I get the I²C errors also if I connect the sensors....

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

Here some pictures, maybe somebody else can see my big fail on this...

Image
Image
Image
Image
Image

User avatar
Th0rsten
Posts: 65
Joined: Mon Oct 31, 2011 10:28 am

Re: debug2 raises without sensors connected

Post by Th0rsten »

Can't see any images but:
Try to connect 2k2 resistors from SDA and SCL to 5V and disable internal pull-ups.
viewtopic.php?f=8&t=986

Had the same problem:
viewtopic.php?f=15&t=1066

kalle123
Posts: 106
Joined: Sun Oct 09, 2011 10:07 am

Re: debug2 raises without sensors connected

Post by kalle123 »

Some of the pics are blurred and don#T help.

The wiring can not be seen clearly.

By the way, were are the sensors connected to the shield? I don't see the connection.

IMG_2666a.jpg

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

Yeah I know, phonecamera sucks. :) Need to load the DSLR-battery.

Verdrahtung Quadrocopter.jpg


The connection to the MWC-board is done via a cable + plug and can be seen on the right side of:

Image

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

Maybe somebody knows a convinient way to check those sensors?

User avatar
Th0rsten
Posts: 65
Joined: Mon Oct 31, 2011 10:28 am

Re: debug2 raises without sensors connected

Post by Th0rsten »

Connect one by one and if it's stop working you will know the problem.

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

I desoldered everything now and just connected the WMP to the Arduino and it still counts up and down on debug2 :(
checked that I got the 2 2k2 resistors between 5V and SDA/SCL, too

cycletime is between 4900 and 6000

EDIT: oh man, can it be that the dev-version was the fault? :shock:

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: debug2 raises without sensors connected

Post by PatrikE »

Download latest dev.
Comment all other sensors in config.

Start with only wmp.

If it works add a new sensor. solder and enable in config.
Add one sensor at a time.

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

No, I used the latest dev-version and the debug2 counted up. I image that I could save all the soldering if I would have used the 1.9 from the beginning :(

Now I try to calibrate the mag, but it still shows north at 90° (east)

kalle123
Posts: 106
Joined: Sun Oct 09, 2011 10:07 am

Re: debug2 raises without sensors connected

Post by kalle123 »

I told you yesterday in the German forum.

Take your "Dummylove" (Duemilanove)

Connect ONE sensor at a time to it. Look for a test sketch for checking that sensor.

(Like that one for the BARO http://www.ladyada.net/learn/sensors/bmp085.html )

After that, you know, that sensor is working or not.

Then, as PatrikE wrote, Start with only wmp.

kalle123
Posts: 106
Joined: Sun Oct 09, 2011 10:07 am

Re: debug2 raises without sensors connected

Post by kalle123 »

For testing the MAG, take your Duemilanove,

and connect the MAG sensor.

Here you find a small sketch.

http://www.timzaman.nl/?p=970&lang=en

You have to install the HMC library first.

kalle123
Posts: 106
Joined: Sun Oct 09, 2011 10:07 am

Re: debug2 raises without sensors connected

Post by kalle123 »

As I just found here

http://fpv-community.de/forum/showthrea ... &page=last

the problems are solved.

Would be nice, if you would tell it on all places, where you asked for advice!!

Phin
Posts: 12
Joined: Wed Dec 28, 2011 5:47 am

Re: debug2 raises without sensors connected

Post by Phin »

As I mentioned earlier it looks like it was no hardware-failure, the latest dev-release was the fault...

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: debug2 raises without sensors connected

Post by Hamburger »

kalle123 wrote:As I just found here

http://fpv-community.de/forum/showthrea ... &page=last

the problems are solved.

Would be nice, if you would tell it on all places, where you asked for advice!!


yes. But then that would take precious time...
we live and learn - different things

Post Reply