Hello guys,

today I tried out the airspeed sensor with my new Atmega 2560 board. I used the MPXV7002Dp airspeed sensor.

 I wanted to test it, in test mode, but it only displayed "airspeed: disabled". I then checked the voltages of the airspeed sensor with this post, checked my cable etc. Everything seemd to work just fine, only that the measured voltages always where to low. The measured supply voltage was 4.7 V (I measured at the connector between 5V and Gnd). Also the suplly voltage on the Atmega (i measured on the back of the board between 5V and Gnd) was also only 5V. The However the ESC supllied the board with 5V.

With the Voltage beeing to slow but the airspeed sensor working, i just changed the code in 2 places: One time in "test.pde"

 

test_airspeed(uint8_t argc, const Menu::arg *argv)
{
if (adc.Ch(AIRSPEED_CH) > 2600)              //Changed this from 2900 to 2600
...

 

and the "System.pde"

 

 if (adc.Ch(AIRSPEED_CH) > 2600 || HIL_MODE != HIL_MODE_DISABLED) {      //Also changed the Threshold from 2900 to 2600

 

After this it worked fine (a picture with a test is attached). The Threshold was just too high, for such a low supply voltage.

One of my colleges meant that the supply voltage might be too low because of an diode, between the servo rail and the 5V supply of the shield, but I dont know exactly.

What also came up is that the scaling of the windspeed could be wrong, because of the low supply voltage

 

Did anyone else have the same? Or is my board damaged?

 

Thank you

 

Phil

 

airspeedsensortest.png

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

Join diydrones

Email me when people reply –

Replies

  • I've seen several discussions about the auto-detection of the different versions of airspeed sensor. I'm unsure if an issue has been opened but it seems the threshold of >2900 does not apply to all of the sensors that people have. Your hardware is probably fine. In my case I've had to change it to <2800 because I get higher values when it is not connected.
This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…