Search found 8 matches

by erik2727
Fri May 03, 2019 8:58 pm
Forum: ESP-IDF
Topic: BMP280 I2C temperature & pressure reading issue ***Solved***
Replies: 8
Views: 16214

Re: BMP280 I2C temperature & pressure reading issue

Apparently a delay of 50ms or more need to be placed before the bmp280_get_uncomp_data command inside the while loop together with a reasonable vtaskdelay solved the static reading problem. Thank you so much to those sharing the valuable feedback and suggestion. I will update the revised workable co...
by erik2727
Thu May 02, 2019 3:57 am
Forum: ESP-IDF
Topic: BMP280 I2C temperature & pressure reading issue ***Solved***
Replies: 8
Views: 16214

Re: BMP280 I2C temperature & pressure reading issue

I have tested both force and normal mode ,result still remain static, result remained static even if I set the power config as force mode inside the while continuous loop which suppose to yield new measurement when triggered . Bosch api st_set_config called by self test always revert back to forced ...
by erik2727
Thu May 02, 2019 1:02 am
Forum: ESP-IDF
Topic: BMP280 I2C temperature & pressure reading issue ***Solved***
Replies: 8
Views: 16214

Re: BMP280 I2C temperature & pressure reading issue

Without the i2c start ,bus communication error will occur,it is kind of strange in esp32 .
by erik2727
Tue Apr 30, 2019 3:38 am
Forum: ESP-IDF
Topic: BMP280 I2C temperature & pressure reading issue ***Solved***
Replies: 8
Views: 16214

BMP280 I2C temperature & pressure reading issue ***Solved***

The BMP280 temperature and pressure reading seemed to be static using the below ESP32 esp-idf I2C code together with official Bosch bmp280 c library at https://github.com/BoschSensortec/BMP280_driver. I have also tested the result using Arduino Adafruit BMP280 , the output from the Arduino seemed to...
by erik2727
Fri Apr 26, 2019 3:20 pm
Forum: ESP-IDF
Topic: ESP web server startup with default uri handler
Replies: 0
Views: 3402

ESP web server startup with default uri handler

I would like to seek advice how to enable the esp32 webserver httpd_uri_t handler to start with default index.html file bypass the http_resp_send handler callback. I have defined the index.html as one of the binary files and successfully started the webserver using the get handler to redirect to ind...
by erik2727
Mon Apr 15, 2019 11:40 am
Forum: ESP-IDF
Topic: convert raw reading from GPIO39 to voltage would result in crash
Replies: 2
Views: 3916

Re: convert raw reading from GPIO39 to voltage would result in crash

with below statement , 7% variance is observed. I have doubt on the atten not sure should this be ADC_ATTEN_DB_11 or some others value for GPIO39 , voltage reading is very unstable on genuine espressif dev Wrover B development board static const adc_atten_t atten = ADC_ATTEN_DB_11; static const adc_...
by erik2727
Sat Apr 13, 2019 12:51 am
Forum: General Discussion
Topic: CMake / CLion
Replies: 11
Views: 21546

Re: CMake / CLion

Which version of Clion are you having,with cmake provided by esp-idf 3.2 all you need to set is the IDF_PATH Cmake environmental variables and also the Cmake options -DIDF_PATH=<your ESP-IDF directory> to run successfully, toolchain just use any mingw will do. I have setup up Clion 2018.3 to. Run th...
by erik2727
Fri Apr 12, 2019 2:39 pm
Forum: ESP-IDF
Topic: convert raw reading from GPIO39 to voltage would result in crash
Replies: 2
Views: 3916

convert raw reading from GPIO39 to voltage would result in crash

<r>I could not understanding why ESP-IDF voltage calculation if apply to convert the raw reading from GPIO39 would result in crash <br/> uint32_t voltage = esp_adc_cal_raw_to_voltage(read_raw, adc_chars);<br/> <br/> Below is the simple source code<br/> <br/> #include <stdio.h><br/> #include <stdlib....