Search found 575 matches

by boarchuz
Fri Dec 07, 2018 7:57 pm
Forum: ESP32 Arduino
Topic: I2C on Sparkfun ESP32; Pull-Up resistors not working. Ideas?
Replies: 3
Views: 8900

Re: I2C on Sparkfun ESP32; Pull-Up resistors not working. Ideas?

Can you confirm that you ran the i2c scanner on the ESP32? And it found the accelerometer? It's unlikely to be a hardware issue if that is working fine. In that case, I would be double-checking the address. I suspect it's expecting 0x1D but your accelerometer is at 0x1C (or vice versa). Run the scan...
by boarchuz
Thu Dec 06, 2018 12:35 pm
Forum: ESP32 Arduino
Topic: WROVER with Arduino IDE
Replies: 3
Views: 12350

Re: WROVER with Arduino IDE

Select the correct board and it will be fine. The WROVER boards have a flag in boards.txt, "-DBOARD_HAS_PSRAM".
by boarchuz
Sat Sep 08, 2018 1:21 pm
Forum: ESP32 Arduino
Topic: WifiManager for ESP32
Replies: 4
Views: 12027

Re: WifiManager for ESP32

I'm sure it's supposed to work with ESP32. I use tzapu's but I've made a lot of changes. Why haven't you included the error output here?
by boarchuz
Mon Sep 03, 2018 12:24 pm
Forum: ESP32 Arduino
Topic: Increase ULP program size
Replies: 10
Views: 15896

Increase ULP program size

ulp_process_macros_and_load() fails with this error:

Code: Select all

E (22) ulp: program too big: 161 words, max is 128 words
Is it possible to simply increase program size or will I have to try to rewrite it a lot more efficiently? Any general tips for an amateur to reduce the size?
by boarchuz
Mon Sep 03, 2018 10:14 am
Forum: ESP32 Arduino
Topic: ESP32 EEPROM access
Replies: 2
Views: 8200

Re: ESP32 EEPROM access

EEPROM.length() has a default value of 0, so begin() will fail. Two options: Initialise an EEPROMClass and provide it with a size EEPROMClass myEeprom("eeprom",64); if(!myEeprom.begin(myEeprom.length())) { Serial.println("failed to initialise myEeprom"); } or pass the size into EEPROM.begin() #defin...
by boarchuz
Mon Sep 03, 2018 9:55 am
Forum: ESP32 Arduino
Topic: How to cancel the Interrupts Stack?
Replies: 6
Views: 9974

Re: How to cancel the Interrupts Stack?

Have a look at this code, similar to yours, for how you might implement debouncing: http://www.switchdoc.com/2018/04/esp32-tutorial-debouncing-a-button-press-using-interrupts/ Take note also that the interruptCounter is reset there (interruptCounter=0) rather than decremented (interruptCounter--). J...
by boarchuz
Sun Sep 02, 2018 7:02 pm
Forum: ESP32 Arduino
Topic: esp32 dev board not connecting to wifi
Replies: 7
Views: 21777

Re: esp32 dev board not connecting to wifi

Well that's a very... creative... solution. :lol:

How is that working out for you?
by boarchuz
Sun Sep 02, 2018 6:59 pm
Forum: ESP32 Arduino
Topic: ESP32 http.get sometimes return error
Replies: 1
Views: 5034

Re: ESP32 http.get sometimes return error

You're not giving yourself much information to work with. With that code, it's treating every response as "OK" even if the server responds with an error or your database operations fail. You want to at least print the debug output in your php for a start: if (httpCode > 0) { //Something like this: S...
by boarchuz
Fri Aug 31, 2018 3:44 pm
Forum: General Discussion
Topic: Get data from HTTP_POST
Replies: 1
Views: 8219

Re: Get data from HTTP_POST

Is the example code not working as expected? Something like this should do: const char* PARAM_KEY = "key"; String keyVal; if (request->hasParam(PARAM_KEY)) { keyVal= request->getParam(PARAM_KEY)->value(); } else { //handle an incomplete request keyVal = "some default value"; } Also this 192.168.1.6/...