Wind sensor rev P ESP32

Questions about Modern Device and JeeLabs Sensors
Post Reply
Truedson
Posts: 6
Joined: Thu Jan 07, 2021 4:16 am

Wind sensor rev P ESP32

Post by Truedson »

Hi!

I'm experiencing issue with wind sensor running on ESP32.

On a Arduino Uno I can power the Uno with a 9V battery and then power the wind sensor with Vin.
And it works fine!

But ESP32 does not have any Vin, so I need to power the sensor in another way.

And the formula for picking the m/s value is not correct on that as well.

Can you please answer the 2 questions regarding:
1. Power supply to the wind sensor when using ESP32?
2. Formula for calculating m/s for ESP32

Thanx
/Fredrik
paul
Site Admin
Posts: 775
Joined: Mon May 12, 2008 4:19 pm

Re: Wind sensor rev P ESP32

Post by paul »

A 9V battery is not that great a choice for powering the sensor unless you are just sampling once in a while and then shutting the sensor down. The sensor draws 30 mA which will drain a 9V in about 500 mAH so it would last about 16 hours tops depending on the battery and a lot of other factors. If you cycle the sensor you should let it warm up for about 15 S before sampling. The shutdown pin on the sensor will be useful for low power operation.


I''d rather see you use a wall adapter at 9V or 12V. In either case battery or adapter
you can connect Vin to the sensor as stated and that will work.
paul
Site Admin
Posts: 775
Joined: Mon May 12, 2008 4:19 pm

Re: Wind sensor rev P ESP32

Post by paul »

With the ESP you can just run the battery to the sensor Vin and GND. Then connect the GND to ESP and also hook up however you are powering the ESP. If your run both ESP and Rev P from the 9V it's going to die fairly quickly.

Give me a week or so and I can look over the code and post something for 3.3V

Paul Badger
Truedson
Posts: 6
Joined: Thu Jan 07, 2021 4:16 am

Re: Wind sensor rev P ESP32

Post by Truedson »

Thanx for quick response!

Yes, I have also tested with an adapter for the sensor, and I think I will stick with that choice as you mention. I was missing to connect GND from the adapter to the ESP, that's also why I get strange values like "nan".

Yes, that would be perfect if you can fix the code for 3.3V for me!

/Fredrik
Truedson
Posts: 6
Joined: Thu Jan 07, 2021 4:16 am

Re: Wind sensor rev P ESP32

Post by Truedson »

Hi Paul,

Have you had time to check the code for the Wind Sensor for 3.3V as you mentioned above?

Regards
/Fredrik
Truedson
Posts: 6
Joined: Thu Jan 07, 2021 4:16 am

Re: Wind sensor rev P ESP32

Post by Truedson »

Hi Paul,

I'm still wondering about the 3.3V code as you mentioned above?

Have you had time to have a look at the code yet?

Regards
/Fredrik
Truedson
Posts: 6
Joined: Thu Jan 07, 2021 4:16 am

Re: Wind sensor rev P ESP32

Post by Truedson »

Hi Paul,

Did you solved the code for 3.3V?

Regards
/Fredrik
Post Reply