Ambient Smart Lamp

Srikar Arani

Overview:

The goal of this final project is to build an STM32L476 based smart lamp based on ambient sensors. The project will read data from an ambient light sensor and ambient temperature sensor.The project will use this information to change the intensity or color of an LED. The project will also include a manual option to change the LED without using the ambient sensors.

Block Diagram:

Peripherals:

  • Temperature Sensor

  • Ambient Light Sensor

  • Bluetooth Module

  • LEDs

Serial Protocols:

  • I2C (Temperature Sensor)

  • I2C (Ambient Light Sensor)

  • USART (Bluetooth)

Software Design:

The software will focus on three different aspects. The first aspect will be to set the values of an RGB LED. Three different PWM waveforms will be used to correspond to the three components of RGB. The second aspect will focus on collecting temperature data and ambient light data. This will require multiple I2C calls to collect data and then to translate this into PWM waves. The third aspect will be to build a manual mode that takes bluetooth data and translates this into PWM waveforms.

Checkpoints:

  1. Create 3 different PWM waveforms for each aspect of RGB

  2. Collect Temperature Data

  3. Translate this into values of RGB

  4. Collect Ambient Light Data

  5. Translate this into values of brightness

  6. Implement Bluetooth Manual Mode