gabrielganzer / NXP-TunableLamp

Control of a tunable lamp for smart homes using an S32K144 evaluation board running the Micrium µC/OS3 operating system developed in C with the S32 Design Studio IDE v2018.R1 for Arm® based MCUs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NXP - Tunable Lamp

SHIELDS

PROJECT DESCRIPTION

Control of a tunable lamp for smart homes using an S32K144 evaluation board running the Micrium µC/OS3 operating system developed in C with the S32 Design Studio IDE v2018.R1 for Arm® based MCUs. Features covered by the implementation:

  1. The S32K144 RGB led simulating the lamp;
  2. The S32K144 potentiometer for varying the lamp intensity;
  3. The S32K144 SW2 and SW3 as input buttons for changing the lamp color; The lamp operates as follows:
  4. At the start-up the RED color is selected, with an intensity proportional to the potentiometer position. When the potentiometer output is 0V, the RGB is activated by a 10 KHz PWM signal with 0% duty cycle (i.e., the led is always OFF); when the potentiometer output is 5V, the RGB is activated by a 10 KHz PWM signal with 100% duty cycle (i.e., the led is always ON). When the potentiometer output is between 0V and 5V, the RGB is activated by a 10 KHz PWM signal whose duty cycle is proportional to the potentiometer output;
  5. Each time SW2 is pressed, the selected color is changed. The sequence in RED -> GREEN -> BLUE- > RED.
  6. Each time SW3 is pressed, the selected color is changed. The sequence is RED -> BLUE -> GREEN -> RED.
  7. If any of the button (SW2/SW3) remains pressed, the color should not change.

DOCUMENTATION

Source files can be found in the NXP folder, refer to Report.pdf for futher explanations.

About

Control of a tunable lamp for smart homes using an S32K144 evaluation board running the Micrium µC/OS3 operating system developed in C with the S32 Design Studio IDE v2018.R1 for Arm® based MCUs.

License:BSD 2-Clause "Simplified" License


Languages

Language:C 97.1%Language:Assembly 2.9%