-
Notifications
You must be signed in to change notification settings - Fork 111
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
Pinout diagram corrections #30
Comments
Are any of the pins set up for reading battery level? |
Pin 35 I think So something like: float vBat; There is also a more precise way of using a factory set value |
This sketch for the TTGO T-Display, among other things, shows how to use the e-fuse ESP_ADC_CAL_VAL_EFUSE_VREF value to get the accurate battery reading Let me know if you have trouble deciphering it to use |
This sketch sets up a Classic BT serial port that you can monitor for a voltage readout (9600 baud) You'll see that it goes up when the USB is plugged in, and down when the USB is removed The vref stored in the efuses for the board I have on hand is exactly 1100, so I'm not sure whether my board was spot on, or they didn't bother setting it on my board.
|
Hello Lemming, I am trying to use the T-Beam to read a soil moisture sensor. I have used a voltage divider circuit with R1 being 10k and R2 being 20k. I get a reading from the output of the sensor of approx. 3.6V and approx. 2.4V from the output of the voltage divider. However, both pin 33 and pin 35 read 0 value using the Arduino analogRead with the 2.4V. Using the 3.6V directly I do get a result, however they're very different, with pin 33 reading approx. 1100 and pin 35 reading approx. 2800. Do you have any idea, why this is happening? |
Hi
The pinout diagram should be updated to reflect that pins 32 and 33 are only capable of output (GPO), and pins 34, 35, 36 and 39 are only capable of input (GPI).
See this official Espressif document here:
http://esp32.net/images/Espressif/ESP-WROOM-03/Espressif_ESP-WROOM-03_Pinout.pdf
Also, touch inputs T1 (pin 0 - USB serial chip) and T6 (pin 14 - LED) have resistors connected to them on the T-Beam and won't work for touch, so those labels should be removed.
Here is a file you could use
![image](https://user-images.githubusercontent.com/15526971/64473809-cd46e180-d1ae-11e9-8623-47e6d4370bcb.png)
The text was updated successfully, but these errors were encountered: