Skip to content

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

Closed
arnold-b opened this issue Nov 19, 2018 · 20 comments
Closed

ESP32 #2

arnold-b opened this issue Nov 19, 2018 · 20 comments

Comments

@arnold-b
Copy link

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

@nik-sharky
Copy link
Owner

Try to check power stability and pins connection first. It is most common problem.

@Staars
Copy link

Staars commented Nov 26, 2018

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?

@arnold-b
Copy link
Author

arnold-b commented Nov 26, 2018 via email

@Staars
Copy link

Staars commented Nov 26, 2018 via email

@arnold-b
Copy link
Author

arnold-b commented Nov 27, 2018 via email

@arnold-b
Copy link
Author

arnold-b commented Nov 27, 2018 via email

@nik-sharky
Copy link
Owner

@ploys What board did You use?
I used Wemos ESP8266

@arnold-b
Copy link
Author

arnold-b commented Nov 27, 2018 via email

@Staars
Copy link

Staars commented Nov 27, 2018

@ploys What board did You use?
I used Wemos ESP8266

Then I fear that I have hardware problem, because that did not work either.
Anyway, thank you for your answers.

@nik-sharky
Copy link
Owner

@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).

@Staars
Copy link

Staars commented Nov 28, 2018

I will put my ESP32-efforts on hold and continue with the ESP8266.
Until now, I could communicate via I2C in a limited way.
That means in the usual i2c-scanner-approach I got no error when writing "7-bit-address plus W-Bit" to the device (using ESP-idf).
I could read a bunch of bytes from the device (i.e. the config from 0x8047 and upwards) without an error message, but the result was garbage (mostly 0xff's).

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.

@Staars
Copy link

Staars commented Nov 29, 2018

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. 🤦‍♂️

@nik-sharky
Copy link
Owner

So my first guess "Try to check power stability" was right? :)

@Staars
Copy link

Staars commented Nov 29, 2018

Yes, this always right ;)

@Staars
Copy link

Staars commented Nov 29, 2018

So, I am nearly there on the ESP32.
I have continued to port it to ESP-idf and most of the stuff is running. There is still some sort of a padding problem, but I hope to get around this. Besides that I can enjoy a fast and stable operation.

C0: #0 3330,5121 s:0 C1: #2 8449,0 s:1026 C2: #1 0,22787 s:57345 C3: #0 28932,5376 s:12033 C4: #12 2348,16397 s:5

@Staars
Copy link

Staars commented Nov 29, 2018

YES!!

#pragma pack(1) did the trick.

@nik-sharky
Copy link
Owner

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.

@nik-sharky
Copy link
Owner

Which chip You use? GT911?

@Staars
Copy link

Staars commented Nov 30, 2018

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 #pragma pack(1).
What I should mention is, that I use PlatformIO and not the Arduino-IDE. Maybe only there the pragma setting is needed(?).
For the ESP32 I switched to ESP-IDF and started a repo on my github-account (still in a very rough state). Since then the ESP32 is rock stable with my no-name touch-board.

Thanks a lot for your help! 👍

@nik-sharky
Copy link
Owner

You are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants