Hi,
I am hoping to connect two LTR-303 Light sensor to the ESP32-S3-TFT.
Am i able to connect the LTR-303 pins to the ESP32-S3-TFT board directly. Would appreciate some advise on how to wire this up (without another multiplexer board) and the circuit python code to have the board read from the two light sensors.
Thanks!
https://learn.adafruit.com/adafruit-esp ... d_products
https://www.adafruit.com/product/5610?g ... bEQAvD_BwE
ESP32-S3-TFT With multiple LTR-303 Light Sensor
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Jemspire
- Posts: 8
- Joined: Mon Nov 21, 2022 1:55 pm
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: ESP32-S3-TFT With multiple LTR-303 Light Sensor
The LTR-303 only has the single I2C address of 0x29. Using a multiplexer is the recommended way of dealing with the address conflict when using more than one LTR-303:
https://learn.adafruit.com/working-with ... 2c-devices
Why do you not want to use one?
https://learn.adafruit.com/working-with ... 2c-devices
Why do you not want to use one?
- Jemspire
- Posts: 8
- Joined: Mon Nov 21, 2022 1:55 pm
Re: ESP32-S3-TFT With multiple LTR-303 Light Sensor
Wow appreciate the speedy reply. I’ll be sure to recommend Adafruit to my peers.
Due to shipping duration I was hoping on finding alternatives. Noted on using the multiplexer would the following three be suitable:
https://www.adafruit.com/product/5626
https://www.adafruit.com/product/2717
https://www.adafruit.com/product/4704
I have also picked up two BH1750 light sensors from a local store today. May i check how should i go about wiring two BH1750 to the Adafruit ESP32-S3-TFT?
Thank you.
Due to shipping duration I was hoping on finding alternatives. Noted on using the multiplexer would the following three be suitable:
https://www.adafruit.com/product/5626
https://www.adafruit.com/product/2717
https://www.adafruit.com/product/4704
I have also picked up two BH1750 light sensors from a local store today. May i check how should i go about wiring two BH1750 to the Adafruit ESP32-S3-TFT?
Thank you.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: ESP32-S3-TFT With multiple LTR-303 Light Sensor
Yep, any of those three linked multiplexer would word. The only other option for the LTR would be to use two separate I2C ports.
If the BH1750's are the Adafruit breakouts:
https://www.adafruit.com/product/4681
then can connect them to the Feather via the STEMMA QT connector. See the BH1750 guide for details:
https://learn.adafruit.com/adafruit-bh1 ... ght-sensor
Note that the BH1750 has a selectable I2c address via the ADDR pin or jumper:
https://learn.adafruit.com/adafruit-bh1 ... ns-3066408
Using that would allow attaching two BH1705's to the same I2C bus.
If the BH1750's are the Adafruit breakouts:
https://www.adafruit.com/product/4681
then can connect them to the Feather via the STEMMA QT connector. See the BH1750 guide for details:
https://learn.adafruit.com/adafruit-bh1 ... ght-sensor
Note that the BH1750 has a selectable I2c address via the ADDR pin or jumper:
https://learn.adafruit.com/adafruit-bh1 ... ns-3066408
Using that would allow attaching two BH1705's to the same I2C bus.
- Jemspire
- Posts: 8
- Joined: Mon Nov 21, 2022 1:55 pm
Re: ESP32-S3-TFT With multiple LTR-303 Light Sensor
The BH1750 I’ve got do not have STEMMA QT connectors- just regular pins.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: ESP32-S3-TFT With multiple LTR-303 Light Sensor
OK, same general idea. Just need to tie into the pins differently.
The STEMMA QT connector is just power and the I2C pins. Details here:
https://learn.adafruit.com/introducing- ... -stemma-qt
You could use a cable like this:
https://www.adafruit.com/product/4209
or this:
https://www.adafruit.com/product/4397
to allow using the STEMMA QT connector. And then either use the male / female header connectors directly, or cut off and solder as you wish.
You don't have to use the STEMMA QT connector. The same pins (3.3V / GND / SCL / SDA) are also available on the Feather's header pins. So could wire direct from those.
The STEMMA QT connector is just power and the I2C pins. Details here:
https://learn.adafruit.com/introducing- ... -stemma-qt
You could use a cable like this:
https://www.adafruit.com/product/4209
or this:
https://www.adafruit.com/product/4397
to allow using the STEMMA QT connector. And then either use the male / female header connectors directly, or cut off and solder as you wish.
You don't have to use the STEMMA QT connector. The same pins (3.3V / GND / SCL / SDA) are also available on the Feather's header pins. So could wire direct from those.
- Jemspire
- Posts: 8
- Joined: Mon Nov 21, 2022 1:55 pm
Re: ESP32-S3-TFT With multiple LTR-303 Light Sensor
Ok, found the pins on the Feather board(circled in red). Thank you!
Please be positive and constructive with your questions and comments.