Closed hammikb closed 1 year ago
I created a support and setup GitHub Repository for the LilyGO T-Display S3, here: https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples The quick answer is that the JST connector beside the USB is the I2C port. From the USB it is: G, 3.3V, SDA 43, SCL 44
-Terry
Any reason this shouldn't work? i have even tried Wire.begin(43, 44);
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
Serial.println("Adafruit MLX90614 test");
mlx.begin();
}
void loop() {
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());
Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
Serial.println();
delay(500);
}
I got it to work i changed the PIN config in the Arduino profile i was using and then closed everything. Restarted my computer and reuploaded the code and it worked. @teastainGit Do you have any idea how you would cut power to this area as i was to be able to save power
@hammikb You do need
Wire.begin(43, 44); //SDA, SCL
in the setup loop to tell the ESP which pins are which.
Try this again and tell me what results do you get with the sensor wired up and using this Wire.begin(43, 44); in the setup.
You should check out my repository and look at the
HotHead_temp_sensor.ino
which has an air temp sensor using I2C, but no library, just direct code so that you can see how it works.
(My code will only work with my sensor, this is just an example!)
Yeah thank you so much you example has actually helped me a lot! Let me know if you do know how to turn off these power pins to the IC2 thank you again!!!
Can pins 43 and 44 on the breadboard be used? I think they are connected.
If you have any questions, please open it again
I did not specifically see in in the pin lay out for any pins that will do SDA or SCL. Also know any digital pin can be used for those feature but just not really understand the pins. So please if anyone know or knows if it can work with this sensor HiLetgo GY-906 MLX90614ESF please let me know what I need to do. Thank you!