Search found 110 matches
- Thu Jul 05, 2018 6:32 pm
- Forum: ESP32 Arduino
- Topic: I2C freeze/fail problems
- Replies: 7
- Views: 14031
Re: I2C freeze/fail problems
There is an alternative 'Wire' library here which is supposed to avoid some of the issues with using I²C: https://github.com/stickbreaker/arduino-esp32/tree/master/libraries/Wire I don't know how that compares with the latest official Arduino ESP32 build. Capacitance within connecting cables can cau...
- Tue Jul 03, 2018 11:41 am
- Forum: General Discussion
- Topic: Best approach for button functionality
- Replies: 10
- Views: 20284
Re: Best approach for button functionality
Yes, it's Arduino code but you shouldn't have any trouble reading it to understand what it does and why it does it. It does "filter" contact bounces. As it stands, it determines when there have been no contact bounces for at least 50ms.
- Tue Jul 03, 2018 10:56 am
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 19986
Re: Separate Values from a String
I think you included an out of date version of your code; otherwise I would have expected a comma or two to show up on the display! Because the number of characters representing each value can vary, you need to print the integer and float values to the display, not the substrings. Also, because the ...
- Tue Jul 03, 2018 9:51 am
- Forum: General Discussion
- Topic: Best approach for button functionality
- Replies: 10
- Views: 20284
Re: Best approach for button functionality
There's an example here . . . .
https://www.arduino.cc/en/Tutorial/Debounce
. . . . . but use internal resistor.
If you want to switch on/off the power to your ESP32 consider purchasing a push button switch with 'push on push off' action (sometimes called 'maintained or 'latching' action).
https://www.arduino.cc/en/Tutorial/Debounce
. . . . . but use internal resistor.
If you want to switch on/off the power to your ESP32 consider purchasing a push button switch with 'push on push off' action (sometimes called 'maintained or 'latching' action).
- Tue Jul 03, 2018 7:52 am
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 19986
Re: Separate Values from a String
That's why in my first post I wrote "If you are certain there are always 2, 4 and 3 characters respectively" :) I assume client.print does not put spaces between sucessive values. I therefore suggest you insert commas (or some other character). In the code below, I make use of the fact that toInt() ...
- Mon Jul 02, 2018 6:01 pm
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 19986
Re: Separate Values from a String
Use toInt() . . . . , . String data = "1023-01289"; int h,p,t; void setup() { Serial.begin(115200); p = data.substring(0,4).toInt(); t = data.substring(4,8).toInt(); h = data.substring(8,10).toInt(); Serial.println(p); Serial.println(t); Serial.println(h); } toFloat() is also available if you need i...
- Mon Jul 02, 2018 1:26 pm
- Forum: ESP32 Arduino
- Topic: Separate Values from a String
- Replies: 10
- Views: 19986
Re: Separate Values from a String
If you are certain there are always 2, 4 and 3 characters respectively (even if the temperature is negative for example), simply use the substring function to extract the three readings as strings . . . . . String data = "humidity=89, airpressure=1023 and temperature=-05"; void setup() { Serial.begi...
Re: 关于ADC采样率
Google translation of original post from Chinese: I can not find the ADC sampling rate in the manual information, in the forum to see the post said to be 6K Hz, this 6KHz is 12Bit sampling the maximum sample rate? What is the maximum sample rate for each bit sample? I am using the Arduino IDF. If I...
- Sun Jun 10, 2018 11:08 am
- Forum: ESP-IDF
- Topic: [Solved] Error cloning ESP-IDF from github
- Replies: 2
- Views: 5046
Re: Error cloning ESP-IDF from github
Very many thanks Paul,
That has resolved the issue.
That has resolved the issue.
- Sun Jun 10, 2018 6:06 am
- Forum: ESP-IDF
- Topic: [Solved] Error cloning ESP-IDF from github
- Replies: 2
- Views: 5046
[Solved] Error cloning ESP-IDF from github
I am getting an error when attempting to install the ESP32 IDF software onto a new PC. Archibald@DESKTOP-MEEDJIJ MINGW32 ~ $ mkdir -p ~/esp Archibald@DESKTOP-MEEDJIJ MINGW32 ~ $ cd ~/esp Archibald@DESKTOP-MEEDJIJ MINGW32 ~/esp $ git clone --recursive https://github.com/espressif/esp-idf.git Cloning ...