-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Use pin I2C pin 43 as I/O for DS18B20 temp sensor #8324
Comments
Try latest Arduino core 2.0.9 |
|
pin 43 is used by the UART serial. If you use USB CDC for your serial connection, you should be able to use this pin. |
So, still no joy! An observation: |
GPIO43 is by default UART0 TX pin. This pin is used by default to send all boot messages and also any LOG message.
Update:#7402 has been merged into 2.0.6 and this is necessary to allow |
@teastainGit - Let me know it executing |
SuGlider Here is a screen shot showing all the advice I followed. Thanks to all for your help, I think we are getting closer! |
@teastainGit - Is it working correctly? |
Sorry to not be clear, it was late when I stopped testing! |
is this still valid @teastainGit ? |
VojtechBartoska |
GPIOs 43 and 44 are default UART pins. GPIO1 is "free" for use. Therefore, @teastainGit, please try you code in this way: void setup() {
// Serial0 is the UART0 when the S3 CDC is enabled
Serial0.begin(115200); // this will initialize the UART with GPIOs 43 and 44, marking those pins to be detached
Serial0.end(); // this will detach GPIOs 43 and 44
// code as usual...
Serial.begin();
delay(200);
Serial.println(" setup ");
delay(200);
sensors.begin();
} |
@teastainGit - Please try Arduino Core 2.0.13. It shall sove this issue. Please let me know. |
What is it about ver 2.0.13 that shall make it worK?
I tried again with all updated libraries and this version of ESP32 as well, but no luck. Again, the sensor LED flickered dimly during download, but the sensor would not work, giving a reading of -127.
I am not stuck on a project, just curious what is happening. |
The used lib can be the reason for non working too. Have you tried a other sensor, not OneWire? |
I cannot find another DS18B20 library and I am using the one suggested by Random Nerd Tutorials “https://randomnerdtutorials.com/esp32-ds18b20-temperature-arduino-ide[/](https://randomnerdtutorials.com/esp32-ds18b20-temperature-arduino-ide/)“ using an ESP32 DevKit. But...on the M5Stack "StampS3" model (ESP32S3), It does not work on pins 43 or 44, but does on other pins, GPIO1 e.g. (!) |
The onewire lib does a lot of low level settings. There is a high chance that not all gpios are correctly handled in the lib for the S3. Since other sensors do work well I think it is the lib |
@teastainGit @SuGlider |
Thanks @Jason2866 - Nice catch! |
OK GUYS!!! SuGlider, Jason2866 |
Am confused...error is still present in version 2.3.7. needed to increase to 44 for T-Display |
I have exactly the same issue on a ESP32S3 but on pin 38 so its not a USART issue. I will try the util library fix.... |
And the change in the util library worked !! |
Board
ESP32 S3R8
Device Description
LilyGO T-Display S3
Hardware Configuration
GPIO43 is suggested by LilyGO as the I2C pins, they are brought out to the JST connector.
I am trying to connect a DS18B20 "oneWire" temp sensor that will work on other GPIO but mot pin 43 or 44.
I2C devices work on these pins as expected.
Version
v2.0.6 at first and then deleted it and installed v2.0.9, no change!
IDE Name
Arduino IDE v2.1.0
Operating System
MacOS Ventura 13.4
Flash frequency
QIO 80
PSRAM enabled
yes
Upload speed
460800
Description
I am trying to connect a Dallas Semiconductor DS18B20 temperature sensor to either the GPIO43 or the JST pin 43, which are probably the same circuit.
There is no response from the sensor at all, the oscilloscope shows 3.3v steady.
The sensor works on GPIO 1 (or GPIO 18, e.g.).
The pin 43 can be programmed as an input or an output successfully, but not the serial serial I/O of the DS18B20.
Further another user says that the JST pin 43 works in ESPHome, but we cannot get it to work on Arduino. I cannot understand why it works in only one software.
My question therefore is:
"Is there a configuration setup for the LilyGO T-Display S3 that configures GPIO43 for I2C only? How can we free it up?"
Sketch
Other Steps to Reproduce
It works on ESPHome, but not Arduino IDE.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: