Search found 15 matches

by jgustavoam
Tue Jul 02, 2019 2:27 am
Forum: ESP32 Arduino
Topic: ESP32 I2C PCF8574 read issue
Replies: 4
Views: 490

Re: ESP32 I2C PCF8574 read issue

Chuck (StickBreaker) helped me in Github and solved the problem!
I must change my Sketch.
https://github.com/espressif/arduino-esp32/issues/2949
Conclusion of Chuck :
Don't call Wire() from an interrupt context, Set a flag, then let the main loop do the work.
by jgustavoam
Mon Jul 01, 2019 10:37 pm
Forum: ESP32 Arduino
Topic: ESP32 I2C PCF8574 read issue
Replies: 4
Views: 490

Re: ESP32 I2C PCF8574 read issue

Correcting important information! I was able to do some ESP32 Voltmeter tests on my Laptop. The Arduino IDE version is 1.8.5 and the CORE version 1.0.0. The symptom is different, but it does not work either! Only now, Over Voltage does not appear. The I2C interface still has a problem. I remembered...
by jgustavoam
Mon Jul 01, 2019 2:15 pm
Forum: ESP32 Arduino
Topic: ESP32 I2C PCF8574 read issue
Replies: 4
Views: 490

Re: ESP32 I2C PCF8574 read issue

I have to enable the Debug bit in the Sketch. But I have not identified the error yet. No error is being detected. void ReadData () { uint8_t flag = 1 << 1; // turn on bit 1 uint32_t debugFlag = flag << 16; // correctly position the 8bits of flag as the second byte of setBits. Wire.setDebugFlags(deb...
by jgustavoam
Mon Jul 01, 2019 1:42 pm
Forum: ESP32 Arduino
Topic: ESP32 I2C PCF8574 read issue
Replies: 4
Views: 490

Re: ESP32 I2C PCF8574 read issue

I was not setting DEBUG Mode correctly ! Now setting OK . https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire/doc/i2c_debugging.md rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv...
by jgustavoam
Mon Jul 01, 2019 3:30 am
Forum: ESP32 Arduino
Topic: ESP32 I2C PCF8574 read issue
Replies: 4
Views: 490

ESP32 I2C PCF8574 read issue

In February 2018, I ran my sketch (arduino IDE) in my project - ESP32 digital voltmeter and it worked fine - Arduino IDE 1.8.5 and ESP32 Board version 1.0.0. The communication of the digital voltmeter is made with PCF8574 I2C interface. Pullups resistors are 3K3 ohms (VCC = 3.3V) https://www.elektor...
by jgustavoam
Sat Aug 04, 2018 10:38 pm
Forum: Hardware
Topic: ESP32 - DVM - high precision Digital Voltmeter
Replies: 0
Views: 1532

ESP32 - DVM - high precision Digital Voltmeter

Hi , I developed this project at early year - https://www.elektormagazine.com/labs/esp32-digital-voltmeter And I received 9th Prize in the Elektor ESP32 Design Contest 2018! https://www.elektormagazine.com/labs/contest/esp32-design-contest-2018 I hope that someone enjoy it. ESP32 - Digital Voltmeter...
by jgustavoam
Mon Feb 19, 2018 2:55 am
Forum: ESP32 IDF
Topic: [Question]: Maximum interrupt rate on GPIO
Replies: 4
Views: 3664

Re: [Question]: Maximum interrupt rate on GPIO

Hi Mr Kolban , I did this Test with 8 MHz (and 20MHz) . I do'nt know if it can be conclusive. I'm still learning ESP-IDF. So I used Arduino IDE. My question is that the interrupt mode does not change anything - the same waveform in some modes (I do not know why).I'll do more tests. GPIO_2 = clock 8 ...
by jgustavoam
Mon Feb 19, 2018 1:38 am
Forum: ESP32 Arduino
Topic: Pin change interrupt multiple fire
Replies: 3
Views: 1528

Re: Pin change interrupt multiple fire

Hi,
Please specify wich pulses are in the Scope screen .
Are Upper pulses from output of opto coupler ?
And lower pulses ?
by jgustavoam
Mon Feb 19, 2018 12:14 am
Forum: ESP32 Arduino
Topic: simple beginners questions about ESP32 - Arduino
Replies: 5
Views: 3728

Re: simple beginners questions about ESP32 - Arduino

Hi, I'm a beginner on ESP32 as well. I made some changes (suppress) just for testing and this code works. GPIO_2 generates 5 Hz pulses to test the interrupt pin (connect GPIO_2 to GPIO_25). Make your changes as needed. #include "arduino.h" const byte interruptPin = 25; volatile int interruptCounter ...
by jgustavoam
Sun Feb 18, 2018 11:24 pm
Forum: ESP32 Arduino
Topic: Can't get a response from external interrupt.
Replies: 2
Views: 1496

Re: Can't get a response from external interrupt.

Hi , where is configuration of interrupt pins as INPUT ?
https://www.arduino.cc/reference/en/lan ... interrupt/

Code: Select all

pinMode(PIN_SONAR0, INPUT);
pinMode(PIN_SONAR1, INPUT);
pinMode(PIN_SONAR2, INPUT);

Go to advanced search