Analog Air Speed Sensor - SOLVED - well almost :)

I am off to learn what the fuss is all about Air Speed Sensors, so I bought few analog ones (as I want to save my I2C), and connected to Pixhawk via ADC port.

As per Ardupilot documentation, Set ARSPD_PIN to 11 and I also set ARSPD_USE to 0.

Inside the MP HUD I Can see AS icon showing speed as 0.00 mph

QUESTIONS:

  1. What is the best way to test the airspeed sensor on the bench?
  2. Inside MP, under Initial Setup and then “Air Speed Sensor”, we have following choices inside the drop down menu.

image

So in My case I should be picking “Pixhawk Analog S Port” which basically sets the parameter value ARSPD_PIin to 11. Type I am selecting Analog, which changes the parameter value ARSPD_USE to 1. Should I change to none? This part is bit confusing.

I did trying blowing air into it as suggested, tried squeezing the tube but I hardly see any changes.

I guess there is no way to test it on the bench till i fly the plane?

once the airspeed sensor working and you set the parameters with the correct value, the airspeed value will be change and cannot be 0.

i do usually blowing the tube, and the AS will change.

check you cabling, and your parameters again.

I have checked. Its wired correctly. Analog pin goes to ADC 6.6V Center pin. +5V to Pin 1, and GND to Pin 3. My parameters are correct.

I tested two of them so far, same results.

When you say AS will change, it changes from 0.00 mph to what?

the AS will dynamically change, around it is value (usuallly 1,xx or 2,xx m/s) even the aircraft is on the ground and not moving.

there is a drop down list on Airspeed setup under initial setup page. try to play with it.

I tried the following:

Inside MP, Initial Setup, Then Air Sensor. I have selected;

a) Pin = Pixhawk Analog S Port which is basically same as parameter ARSPD_USE=11
b) Type = Analog Which basically changes the value of ARSPD_USE to 1 (Shouldn’t this parameter be set at 0?)

So far, no value changes inside the MP HUD.

Pixhawk analog airspeed on the ADC connector.
ARSPD_USE 1
ARSPD_PIN 15
ARSPD_TYPE 2

Look at it go with a few puffs of air:

1 Like

So it is working now ?

Sure it works. I have had analog sensors on planes but not much reason to use them today.

Mine still doesn’t work. How did you create the above graph? what are the steps?

Not much use, how else do you know what the airspeed is? Or do you only fly in still air?

Analog sensor, not airspeed sensor in general. But that said you don’t need an airspeed sensor. Some planes I have used them, others not.

From Mission Planners Data Screen check the Tuning box on the bottom Then double click in the graph area and select Airspeed. Or from the Status Tab, Airspeed, and just look at the value… If you want to really know if it’s working and you are just nor blowing hard enough set the ARSPD_RATIO to 100 then check.Then you can blow 150 m/s :wink:

I like how your brain functions :slight_smile: You know your stuff, and very impressive. Also, very detailed oriented (most of the time), are you an Engineer by profession?

So is this means working? I changed ARSPD_RATIO = 100 This square wave graph is generating on its own, I am not blowing or doing anything.

The default value was ARSPD_RATIO = 1.9936 was it acquired by the sensor “or” this is supposed to be the default value?

Also, saw another parameter ARSPD_AUTOCAL = 0 I read the description. I guess leave this one at 0 at all times??? what are other choices and what do they do?

Ah…found the link… Calibrating an Airspeed Sensor — Plane documentation

This is what i was looking for, now I know what to do…maybe not lol :slight_smile:

Yes, Engineer. I design load, torque and pressure sensors for a wide range of applications. It’s primarily Mechanical Engineering with some Electrical Engineering (what I am) and Metallurgy. Prior to that I was a Test Engineer for physical testing services. So I have been around closed loop control and sensors my entire career. And an RC hobbyist obviously with a real fondness for Ardupilot. I enjoy tinkering with Flight Controllers as much as I do flying or driving something!

The sensor is probably working there with the huge scale factor change. I have only used 2 airspeed sensors. This analog one and a digital one. The later is the way to go but both worked OK.

1 Like

Very Nice!!!. I am an Electronics/Electrical Engineer and my best bud is a Mechanical Engineer. I bet you are good with solid works. I am trying to learn it slowly.

Mechanical Engineering has grown into so many branches now a days. Not sure how old you are and Its getting more and more complex as the technology evolves. My cousin worked for Nasa, Philips, Varian (Designing gantries for photon therapy machines) and currently in San Jose working for some other medical device company.

I recently got involved with Stepper motors system to complete a Drone Kiosk idea I have been working on. This company makes amazing easy to use PLC systems, www.Velocio.net and provide a GUI/flow control based programming software.

Yes, like you I am slowly trying to master Ardupilot, love this platform. So flexible and so many things you can do with it.

I will keep tinkering with it. Thanks for all your help so far. You are one of the few here who know their stuff inside out. Kudos to you.

I live in Solidworks! Modeling and Simulation.

Any suggestions on how to add curve to this part design? See enclosed Solid Works file.

I designed this dom to cover a VTOL Carbon fiber rod which goes on top of a wing. Off course the wing top curves from leading edge to the trailing edge. No clue how to do the curving.

I am going to 3D print it.VTOL.zip (88.5 KB)

I think 9.5" is too long to print. So may be slice it into 2 to 3 small pieces and then add the curve?

You would use a Sweep for that. Stp file attached as an example. You are using an oder version of SW than I so you wouldn’t be able to open a part file.
VTOL Cover (Rev A).zip (8.9 KB)

Thanks Dave. This will help. I have the latest SW. 2019-2020. My friend did the initial design and he has the old version.

I was able to open the file you sent. Let me monkey around with it.