Search found 425 matches

by Deouss
Tue May 22, 2018 2:37 pm
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51264

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

my question is why you want to amplify that signal if ADC is so sensitive and works with voltages like 1.1V ?
by Deouss
Tue May 22, 2018 2:10 pm
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51264

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

That PH meter - the value changes\steps up every 59.16mV so question is if ESP's analog reading has resolution of reading such voltage value granularity - e.g 59.19mv resolution. Maybe it is possible to set up the gpio pin to accept a voltage range of PH values (+-0.41212+bias) mapped to pin readout...
by Deouss
Tue May 22, 2018 12:42 pm
Forum: ESP-IDF
Topic: SPI - fundamental API questions
Replies: 0
Views: 2138

SPI - fundamental API questions

After reading a documentation I am still a little confused about SPI My questions: Are there any differences between HSPI and VSPI ? What is maximum speed of SPI? What happens if different pins are used than native pins? Also very important - how bits are stored in bytes - particularly in rx_data bu...
by Deouss
Tue May 22, 2018 2:06 am
Forum: General Discussion
Topic: C++ SPI for Max 31855 Thermocouple Amp
Replies: 28
Views: 30437

Re: C++ SPI for Max 31855 Thermocouple Amp

I actually need help with reading MAX31855 Here is SPI code that works but readings are a bit off. What am I doing wrong? #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "soc/gpio_struct.h" #include "driver/gpio.h" #include "driver/spi_common.h" #include "driver...
by Deouss
Mon May 21, 2018 3:40 pm
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 9256

Re: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Then your settings are missing something. Probably larger buffers must be allocated certain way with certain malloc
by Deouss
Mon May 21, 2018 12:48 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80367

Re: Preview release: CMake-based build system for ESP-IDF

Without seeing more details of error output, etc then it's hard to tell what this means. However, one thing to note is that the convert_to_cmake.py tools assumes that you have the "old" build system (it uses "make" from the old build system to parse the project). So this might be the reason for any...
by Deouss
Mon May 21, 2018 11:25 am
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 9256

Re: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Anyways - that's what I observed - there is already a memory data to be read in form of uint8_t rx_data[4]
I am not sure if it is DMA related
by Deouss
Mon May 21, 2018 5:51 am
Forum: Showcase
Topic: HC-SR04 using RMT - very fast
Replies: 16
Views: 31626

HC-SR04 using RMT - very fast

I was testing RMT and it turned out to be excellent tool ) Here is a code for ultrasonic sensor HC-SR04 using full hardware capabilities of ESP hardware Remote Control module [code] #include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/qu...
by Deouss
Mon May 21, 2018 4:44 am
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80367

Re: Preview release: CMake-based build system for ESP-IDF

Anyways - I looked a bit through CMake documentation and example projects that have complex CMake components. So I managed to convert the TFT library myself and it worked without problems) Compilation is faster than Arduino IDE! Commands like idf.py -p COM3 flash monitor are great tools ! Note that ...