top of page

Week 8: AUTO Mode integration

Vasyl

For accurate time keeping I had to integrate a DS-1307 RTC module. The RTC module is used for keeping current time for custom mode timers and to utilize it as a delay without significantly slowing down the Arduino Nano. Whenever a delay is required, current time is compared to how much time has passed. This way the system is not locked in waiting out a delay and is able to read BLE module whenever data is coming in.

After wiring a spare BLE module (new set of paired BLE modules are coming 7/2/24) there were issues in connecting to user input BLE module, but the secondary BLE is able to pair with phone. I have not been able to resolve this issue as of yet. Wired TSL-2591 digital light sensor to main MCU and SDA/ SCL are on same bus as RTC, and in the code the address of the component I am trying to reach is coded. For testing purposes, the digital light sensor sends data every 30 seconds and compare it to default lux range.

Implemented AUTO mode logic (used Zack's code) to match sensors values to default AUTO mode lux value. Due to not having enough BLE devices on hand, the receiving of lux values from room sensor was emulated by reading room using 'Lux' app and using serial communication app to send signal to Arduino. To test the logic, I changed default lux range to possible user inputs and used a flashlight to emulate brightness on outdoor sensor. In the image and video below, a default range value of 301-400 lux was used. The room had approximately 150 lux, and flashlight was proving 900 - 1200 lux. The output of the COM port of Arduino Nano displays current state of AUTO mode and if blinds should be open or close.






Four different charge controllers came to test the fitting inside the blinds housing and if they will function for our project as intended. Solar panel and 18650 batteries were given to Jordan to test charge controllers to see which is the best option.

11 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...

Commentaires


bottom of page