top of page

Week 1 Sensor Modules

Writer's picture: ZackZack

Began working on sensor codes for BH1750 and TSL2591 to regulate room lighting and automated blinds. Separated the code for each sensor to ensure proper operation for both. Configured BH1750 to monitor ambient light levels across the room, while TSL2591 focused on measuring sunlight intensity at the window. The code architecture involves initializing the sensors in the setup phase and continuously monitoring their readings in the loop. Lux thresholds are established to determine the appropriate actions for both scenarios: adjusting room lighting with the BH1750 sensor and regulating blinds with the TSL2591 sensor. Challenges occurred during testing, particularly regarding sensor initialization and communication. Troubleshooting included implementing error detection mechanisms to ensure sensor reliability and identifying potential problems with sensor setup and communication. The sensors and MCU are having an issue establishing communications. Additionally, adjustments were made to the code structure to improve readability and optimize sensor control.



6 views0 comments

Recent Posts

See All

Week 8

Had the Flu from Tuesday to Saturday. Vasyl ordered and delivered a new solar panel, charge controller and battery for me to implement...

Bình luận


bottom of page