Compass 0,0,0 and Sonar Distance Offset 23cm

Hi @all,

2 little questions:

I'm using the latest MP release 1.1.12 and loaded the tricopter onto the ArduPilot + IMU v2 shield. (Mac 8.1 OS Lion with Windows XP through Virtualbox).

1) I soldered the compass (DIY compass) onto the board as described in the Wikireference. I had to unsolder once the Pin extension since I screwed it the first time up....the compass is ticked in the setup and when I enter in the Test/CLI mode (3xtimes enter) I can do all tests but when doing the compass then I just get "0,0,0".

I've 5V on the compass pins. Any Idea why the compass just reads 0,0,0? Does it work indoors? (Stupid question I know)  What would be the output if the compass (in case the compass does not initialize) or the I2C bus is damaged (during soldering)?

2) The installed magnetometer is selected also in the setup. MP1200. The sonar test has quite some offset. Even if I put my hand right in front of it (or any otherr object), I've minimum indication of 23cm, but on the other hand, the sonar gives "too short" distance for long range (like 2-3meters). Might be caused by reflections? (Indoor tested).

 

Ideas appreciated. Thanks in advance. First time Ardupilot user. :-)

 

-Tobias

  

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hmmm...I guess this is a "not again such a question" post.

    Had a few minutes of time, and I used it to measure the lines. Seems like SCL is not connected, I'll try to resolder tomorrow. In case this does not work, I will use the alternative I2C port or I put a patch from PIN3 of the I2C chip to SCL of the magnetometer

    Since there are quite many entries about sonar problems, I assume that the offset is "as it is" and live with it currently. At least until my LIDAR works ,-)

     

     Sincerly,

    Tobias 

     

  • Oh, BTW...when is LED "B" illuminiated?...it's on my currently always dark (just did some quick first time testing last night). T

     

    -Tobias

     

This reply was deleted.

Activity

DIY Robocars via Twitter
yesterday
DIY Robocars via Twitter
RT @NVIDIADRIVE: Season Beta has arrived! Check out the first race of the @roborace season, livestreaming from Anglesey Circuit Sept. 24-26…
Tuesday
DIY Robocars via Twitter
RT @IndyAChallenge: Here is the ROS-based small-scale vehicle platform showing the ROS Visualization (Rviz) screen with multiple ROS nodes…
Tuesday
DIY Robocars via Twitter
RT @IndyAChallenge: Here is Black & Gold Autonomous Racing's simulated racecar running a lap @IMS and showing the team's code overtaking ot…
Tuesday
DIY Robocars via Twitter
Tuesday
DIY Robocars via Twitter
RT @donkey_car: New Maintainers! Donkey Car 4.0 and more! Here is our September Newsletter! https://donkeycar.substack.com/p/september-donkey-newsletter?r=2ji2t&utm_campaign=post&utm_medium=web&utm_source=copy
Tuesday
DIY Robocars via Twitter
RT @chr1sa: Kinda cool that we just hit 2,500 members of our Bay Area self-driving car racing league. More than 10k globally. Fast, cheap…
Tuesday
DIY Robocars via Twitter
RT @chr1sa: Our next @DIYRobocars virtual AI car race is next Saturday. Compete from home using the @donkey_car simulator -- no physical ca…
Sunday
DIY Robocars via Twitter
RT @RoboticMasters: Students from @Sydney_Uni working hard on improvements and changes to @donkey_car simulator. @diyrobocars @adafruit…
Sunday
DIY Robocars via Twitter
Practice virtual race this Saturday; the real thing will be on Oct 3 https://www.meetup.com/DIYRobocars/
Sep 23
DIY Robocars via Twitter
Sep 23
Derrick Davies liked lisa TDrones's profile
Sep 23
DIY Robocars via Twitter
Sep 21
DIY Robocars via Twitter
RT @SahikaGenc: AWS DeepRacer & Hot Wheels Track https://youtu.be/4H0Ei07RdR4 via @YouTube
Sep 14
DIY Robocars via Twitter
Sep 8
DIY Robocars via Twitter
RT @davsca1: We are releasing the code of our Fisher Information Field, the first dedicated map for perception-aware planning that is >10x…
Sep 8
More…