Skip to content

This project simulates a small campfire effect using LEDs controlled by microcontroler (MSP430G2553)

License

Notifications You must be signed in to change notification settings

Wolfyann/Campfire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MSP430 Campfire Simulation

This project simulates a small campfire effect using LEDs controlled by a Texas Instruments MSP430G2553 microcontroller. The simulation uses PWM (Pulse Width Modulation) to vary the brightness of the LEDs, creating a realistic flickering effect.

Features

  • Simulated Campfire Effect: LEDs flicker to mimic the appearance of a small flame.
  • PWM Control: Uses TimerA for precise control of LED brightness.
  • Day/Night Detection: (Optional) Can integrate an LDR (light-dependent resistor) for ambient light detection.

Demo lamp

Components

  • Microcontroller: MSP430G2553
  • LEDs:
    • Yellow LED (P2.1)
    • Red LED (P2.5)
    • Optional Spark Effect (P1.2)
  • Button: P1.3 for manual mode toggle
  • Optional LDR: P1.7 for ambient light sensing

Usage

  1. Setup Hardware: Connect LEDs to the specified pins on the MSP430G2553.
  2. Compile and Flash: Use Code Composer Studio (CCS) to build and upload the code.
  3. Run: Power the MSP430G2553 and observe the flickering LEDs.

Development

  • Compiler: CCS V12.x or higher
  • Language: C
  • Platform: MSP430G2553

Code Overview

  • Timers: Configured for PWM signal generation.
  • Interrupts: Handle LED intensity modulation and button presses.
  • ADC: Reads from the LDR (optional) to adjust the effect based on ambient light.

Contributing

Feel free to fork this repository and suggest improvements.

License

This project is licensed under the MIT License.

About

This project simulates a small campfire effect using LEDs controlled by microcontroler (MSP430G2553)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages