Skip to content

pixelEDI/attiny_pwm_ghost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General info

Code

  • This DIY electronic light is a good example of working with PWM pins.
  • The rainbow colours are achieved by maximising and minimising the values of the individual LEDs, which we do using a for loop.
  • With the colourToLED function we send the respective value to the LEDs.

Hardware

  • The wiring is as simple as it gets. The light runs on an ATtiny25.
  • We added three 3mm LEDs in red, green and blue to mimic the RGB LEDs and added 100 Ω resistors for the LEDs.
  • The light is powered by a button cell battery.

Verdrahtung

3D Case

Get the Case: Thingiverse

You like it? Then I would be very happy if you treat me to a coffee on ko-fi.com/pixeledi

About

ATtiny project for a PWM rainbow light

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages