Search found 14 matches

by drwill
Wed Apr 15, 2020 5:08 pm
Forum: ESP-IDF
Topic: Issues: latest toolchain install on Windows
Replies: 13
Views: 18418

Re: Issues: latest toolchain install on Windows

I never got it working, and still no help from Espressif.
by drwill
Fri Dec 06, 2019 6:27 pm
Forum: ESP-IDF
Topic: Improved getting started for the ESP32 newbie
Replies: 2
Views: 3204

Improved getting started for the ESP32 newbie

Hi Espressif friends - I recently got introduced to an ESP32 board and got started working on it. I had a couple of issues that slowed down my ramp up, so I thought I'd share it so you might be able to improve the experience for future newbies. :) Getting Started guide Your getting started guide was...
by drwill
Tue Nov 12, 2019 12:27 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

If you are storing the data for processing, it will be more efficient all the way down the line to work with integers rather than decimals. Efficiency = lower cost. APIs are really for computers to interact (efficiently when possible). The presentation to your eyeballs is the only place where it is...
by drwill
Mon Nov 11, 2019 12:15 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

The temperature/humidity sensors have very limited memory, so they save space wherever possible. On a device that measures temperature from 0-100, you can get away with a 10-bit integer register (2^10=1024) to store it, with one decimal place of precision. A float value is 32 bits, and more complic...
by drwill
Sun Nov 10, 2019 12:03 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

Post what you need. Post what you have tried. we'll help where we can. Tom Much appreciated, Tom. I think I'm good now. The issue was that I followed the instructions at https://github.com/espressif/esp-iot-solution#preparationmake for my Windows v3.3 tool chain. I kept getting build errors, on bot...
by drwill
Sat Nov 09, 2019 9:28 pm
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

Are you using the HTS221 temp/humid sensor ? if so: https://github.com/espressif/esp-iot-solution/blob/master/README.md I didn't realize I am, but I am. I took a second look at the spec sheet to confirm. I'm new to MCUs and honestly don't know many things, but I'm learning. I got a solution working...
by drwill
Sat Nov 09, 2019 1:30 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

WiFive wrote:
Sat Nov 09, 2019 1:07 am
To convert to decimal
I guess a better way to ask my question is, if my temperature reading is 30.4 C, why is it stored as 304?

I assumed the values are stored with accuracy of 0.1, but as an integer because maybe they store better than floats.
by drwill
Sat Nov 09, 2019 12:11 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

WiFive wrote:
Fri Nov 08, 2019 3:34 am
temprature_sens_read is not what you want. It is for reading esp32 internal temperature.
Gotcha.

In the samples, why are temp and humidity divided by 10?
by drwill
Fri Nov 08, 2019 2:33 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Re: Reading temperature and humidity

I found this sample, which uses a very different approach than the function I found for temperature earlier.

Is this what is recommended?

https://github.com/espressif/esp-iot-so ... ain/main.c

Thanks,
David
by drwill
Fri Nov 08, 2019 12:55 am
Forum: ESP-IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 13693

Reading temperature and humidity

I'm using an ESP32 Azure IoT Kit. I want to send temperature and humidity along as telemetry to my IoT hub. I cannot find almost any information on how to do this. I came across one post here where someone refers to using uint8_t temprature_sens_read() (note that the word temperature is misspelled) ...