Light and Sound Control (PWM)

Light and Sound Control (PWM)

Description:

The objective of this project is incorporate PWM hardware functions that the Tiva C contains. The use of two ADC knobs are used to control the brightness of the on board LED and volume of the buzzer. Coded in C and Arm Assembly.

System Summary: the first ADC Knob (Rotary Angle Sensor) controls the on board LED of the micro-controller. If the ADC is all the way to the left then the LED is seen as off. Fully to the right (ADC) the LED is at max brightness; therefore, if at the middle then would produce a midpoint from totally off to max brightness. A seconds ADC Knob is used control the follow of the buzzer by following the same principle of the on board LED; range from silent to max volume.

Materials Used:
  • Tiva C TM4C123G Micro-controller
  • Grove Base BoosterPack (BOOSTXL-GROVEBP)
  • Grove - Rotary Angle Sensor (A) [Connected to Port J5]
  • Grove - Rotary Angle Sensor (A) [Connected to Port J6]
  • Git (Partner Collaboration)
  • Code Composer Studio 10.0 (IDE)

Download Code Here