-
Notifications
You must be signed in to change notification settings - Fork 22
ESP32 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Try to check power stability and pins connection first. It is most common problem. |
Hi, At the moment I only like to know, on which specific hardware you tested your project? |
Hello Christian,
i use NODEMCU 32 with Wroom32
I2C Scan works and I can read I2C Data
Be car full. There is a BUG in the current library for Arduino ESP32.
<https://github.com/arnold-b> @arnold-b the best working files are in this repo. Between RC1 and Release 1.0.0 there were multiple changes to I2C, Between RC4 and Release 1.0.0 I resolved a problem with interrupt saturation. During this major rewrite, I made a mistake. It manifested when using a Write ReSTART operation. (Wire.endTransmission(false);) as you noticed, the subsequent Read operation does not return any data.
just follow the instruction in <espressif/arduino-esp32#1962> #1962, copy the four files from this repo. replace the four same your Arduino installation with those file.
* \cores\esp32\esp32-hal-i2c.h
* \cores\esp32\esp32-hal-i2c.c
* \libraries\Wire\src\Wire.h
* \libraries\Wire\src\Wire.cpp
Von: Christian <[email protected]>
Gesendet: Montag, 26. November 2018 18:25
An: ploys/arduino-goodix <[email protected]>
Cc: arnold-b <[email protected]>; Author <[email protected]>
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
Hi,
I also did not get it to work on ESP32, which of course might be related to power/connection issues.
At least I could get a reaction from the board via i2cscan example.
At the moment I only like to know, on which specific hardware you tested your project?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2b1Yy4j__nl-3BEBr2T2Bo0gvzwyks5uzCPRgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2UnIprj49mjKI_VIb8bU731f-ioDks5uzCPRgaJpZM4YprHf.gif>
|
Hi,
Thanks for the info.
I consider ESP32 with Arduino as a moving target (to say the least) and had problems in other areas (Wifi+BT and I2C too). So I start to believe, that Arduino will not be as stable as on the „older“ platforms for a very long time (or longer;).
Maybe I try to port this to ESP-IDF, but I still do not know, if I even have non-defective hardware.
@ploys What board did You use?
… Am 26.11.2018 um 23:58 schrieb arnold-b ***@***.***>:
Hello Christian,
i use NODEMCU 32 with Wroom32
I2C Scan works and I can read I2C Data
Be car full. There is a BUG in the current library for Arduino ESP32.
<https://github.com/arnold-b> @arnold-b the best working files are in this repo. Between RC1 and Release 1.0.0 there were multiple changes to I2C, Between RC4 and Release 1.0.0 I resolved a problem with interrupt saturation. During this major rewrite, I made a mistake. It manifested when using a Write ReSTART operation. (Wire.endTransmission(false);) as you noticed, the subsequent Read operation does not return any data.
just follow the instruction in <espressif/arduino-esp32#1962> #1962, copy the four files from this repo. replace the four same your Arduino installation with those file.
* \cores\esp32\esp32-hal-i2c.h
* \cores\esp32\esp32-hal-i2c.c
* \libraries\Wire\src\Wire.h
* \libraries\Wire\src\Wire.cpp
Von: Christian ***@***.***>
Gesendet: Montag, 26. November 2018 18:25
An: ploys/arduino-goodix ***@***.***>
Cc: arnold-b ***@***.***>; Author ***@***.***>
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
Hi,
I also did not get it to work on ESP32, which of course might be related to power/connection issues.
At least I could get a reaction from the board via i2cscan example.
At the moment I only like to know, on which specific hardware you tested your project?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2b1Yy4j__nl-3BEBr2T2Bo0gvzwyks5uzCPRgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2UnIprj49mjKI_VIb8bU731f-ioDks5uzCPRgaJpZM4YprHf.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi,
i´m playing around with ESP a long time.
When esp32 are new on the market. And I have to say to use eclipse is more reliable as Arduino ESP.
Von: Christian <[email protected]>
Gesendet: Dienstag, 27. November 2018 00:16
An: ploys/arduino-goodix <[email protected]>
Cc: arnold-b <[email protected]>; Mention <[email protected]>
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
Hi,
Thanks for the info.
I consider ESP32 with Arduino as a moving target (to say the least) and had problems in other areas (Wifi+BT and I2C too). So I start to believe, that Arduino will not be as stable as on the „older“ platforms for a very long time (or longer;).
Maybe I try to port this to ESP-IDF, but I still do not know, if I even have non-defective hardware.
@ploys What board did You use?
Am 26.11.2018 um 23:58 schrieb arnold-b ***@***.*** ***@***.***> >:
Hello Christian,
i use NODEMCU 32 with Wroom32
I2C Scan works and I can read I2C Data
Be car full. There is a BUG in the current library for Arduino ESP32.
<https://github.com/arnold-b> @arnold-b the best working files are in this repo. Between RC1 and Release 1.0.0 there were multiple changes to I2C, Between RC4 and Release 1.0.0 I resolved a problem with interrupt saturation. During this major rewrite, I made a mistake. It manifested when using a Write ReSTART operation. (Wire.endTransmission(false);) as you noticed, the subsequent Read operation does not return any data.
just follow the instruction in <espressif/arduino-esp32#1962> #1962, copy the four files from this repo. replace the four same your Arduino installation with those file.
* \cores\esp32\esp32-hal-i2c.h
* \cores\esp32\esp32-hal-i2c.c
* \libraries\Wire\src\Wire.h
* \libraries\Wire\src\Wire.cpp
Von: Christian ***@***.*** ***@***.***> >
Gesendet: Montag, 26. November 2018 18:25
An: ploys/arduino-goodix ***@***.*** ***@***.***> >
Cc: arnold-b ***@***.*** ***@***.***> >; Author ***@***.*** ***@***.***> >
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
Hi,
I also did not get it to work on ESP32, which of course might be related to power/connection issues.
At least I could get a reaction from the board via i2cscan example.
At the moment I only like to know, on which specific hardware you tested your project?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2b1Yy4j__nl-3BEBr2T2Bo0gvzwyks5uzCPRgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2UnIprj49mjKI_VIb8bU731f-ioDks5uzCPRgaJpZM4YprHf.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2SRHUWeNDh5fLrdYp1mehvEcWAqeks5uzHYxgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2Rf7HDAYee4p7yAr9T-An8r24iaFks5uzHYxgaJpZM4YprHf.gif>
|
The right one on the pic is Wroom32.
In one month I have my own small board and then I can also debug over jtag.
My current Jlink don’t work with esp32.
Von: Christian <[email protected]>
Gesendet: Dienstag, 27. November 2018 00:16
An: ploys/arduino-goodix <[email protected]>
Cc: arnold-b <[email protected]>; Mention <[email protected]>
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
Hi,
Thanks for the info.
I consider ESP32 with Arduino as a moving target (to say the least) and had problems in other areas (Wifi+BT and I2C too). So I start to believe, that Arduino will not be as stable as on the „older“ platforms for a very long time (or longer;).
Maybe I try to port this to ESP-IDF, but I still do not know, if I even have non-defective hardware.
@ploys What board did You use?
Am 26.11.2018 um 23:58 schrieb arnold-b ***@***.*** ***@***.***> >:
Hello Christian,
i use NODEMCU 32 with Wroom32
I2C Scan works and I can read I2C Data
Be car full. There is a BUG in the current library for Arduino ESP32.
<https://github.com/arnold-b> @arnold-b the best working files are in this repo. Between RC1 and Release 1.0.0 there were multiple changes to I2C, Between RC4 and Release 1.0.0 I resolved a problem with interrupt saturation. During this major rewrite, I made a mistake. It manifested when using a Write ReSTART operation. (Wire.endTransmission(false);) as you noticed, the subsequent Read operation does not return any data.
just follow the instruction in <espressif/arduino-esp32#1962> #1962, copy the four files from this repo. replace the four same your Arduino installation with those file.
* \cores\esp32\esp32-hal-i2c.h
* \cores\esp32\esp32-hal-i2c.c
* \libraries\Wire\src\Wire.h
* \libraries\Wire\src\Wire.cpp
Von: Christian ***@***.*** ***@***.***> >
Gesendet: Montag, 26. November 2018 18:25
An: ploys/arduino-goodix ***@***.*** ***@***.***> >
Cc: arnold-b ***@***.*** ***@***.***> >; Author ***@***.*** ***@***.***> >
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
Hi,
I also did not get it to work on ESP32, which of course might be related to power/connection issues.
At least I could get a reaction from the board via i2cscan example.
At the moment I only like to know, on which specific hardware you tested your project?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2b1Yy4j__nl-3BEBr2T2Bo0gvzwyks5uzCPRgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2UnIprj49mjKI_VIb8bU731f-ioDks5uzCPRgaJpZM4YprHf.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2SRHUWeNDh5fLrdYp1mehvEcWAqeks5uzHYxgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2Rf7HDAYee4p7yAr9T-An8r24iaFks5uzHYxgaJpZM4YprHf.gif>
|
@ploys What board did You use? |
I use ESP-WROOM-32
https://www.digikey.de/product-detail/de/schtoeta-engineering-limited/ESP32-DEVKITC-32D/1965-1000-ND/9356990?utm_adgroup=RF+Evaluation+and+Development+Kits&mkwid=sX3B9iiRl&pcrid=218206583410&pkw=&pmt=&pdv=c&productid=9356990&slid=&gclid=EAIaIQobChMIydqL2e703gIVReR3Ch1x7g--EAQYASABEgL5C_D_BwE
Von: Nik <[email protected]>
Gesendet: Dienstag, 27. November 2018 14:37
An: ploys/arduino-goodix <[email protected]>
Cc: arnold-b <[email protected]>; Mention <[email protected]>
Betreff: Re: [ploys/arduino-goodix] ESP32 (#2)
@ploys <https://github.com/ploys> What board did You use?
I used Wemos ESP8266
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AfTd2Uk8X2DO845eH3vTSX0V6aA5PUAHks5uzUACgaJpZM4YprHf> . <https://github.com/notifications/beacon/AfTd2dz7zhqY9OjKVMTWed_7lVc_witRks5uzUACgaJpZM4YprHf.gif>
|
Then I fear that I have hardware problem, because that did not work either. |
@Staars If You guess that problem is in hardware, try to check that You can read something from GT chip or any other via i2c. Also check pull-up resistors and chip connection (I use FPC adapter pcb and sometimes fpc cable twists in joint). |
I will put my ESP32-efforts on hold and continue with the ESP8266. But as I know now, that it should be possible with the 8266, I already tried it out and made some observations, but this belongs to another thread. |
At least to some degree I can conclude, that most of my tries with the ESP32 could not work, because of insufficient power. In my now fully working ESP8266-setup I had to use a powered USB-switch. 🤦♂️ |
So my first guess "Try to check power stability" was right? :) |
Yes, this always right ;) |
So, I am nearly there on the ESP32.
|
YES!! #pragma pack(1) did the trick. |
Coordinates looks incorrect C2: #id x,y s:pressure, can be mistake in my lib, will try to check on next week on my device. |
Which chip You use? GT911? |
Yes, but now all is okay. I am quite shure, that this is a padding problem of the structs. At least I could solve it with the above mentioned Thanks a lot for your help! 👍 |
You are welcome |
Hey,
thanks for your work.
I just now try to get it running with ESP32 Arduino.
The I2C communication is ok, but gt911 don´t send int when it is press. but sometimes he send a lot int without different data.
i don´t know where i should start to search ?.
what´s going on with your firmware file. do i need this ?
thanks arnold
The text was updated successfully, but these errors were encountered: