Skip to content

WS2812 digital LED lamp controlled using infrared remote and digispark attiny85

License

Notifications You must be signed in to change notification settings

AndriiVal/digispark-attiny85-ir-neopixel-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital LED lamp controlled using infrared remote

lamp1

Required Components:

lamp2

lamp2

lamp2

  • Digispark ATtiny85
  • 38kHz IR receiver VS1838B (or TSOP4838)
  • Remote control
  • WS2812B LED strip or circle
  • Resistor 220 Om
  • 5V power supply (powerful)

lamp2

Circuit:

lamp2

  • ws2812 strip Signal pin to digispark attiny85 Pin 4
  • ir receiver Signal pin to digispark attiny85 Pin 2

lamp3

lamp4

Settings in Sketch:

You need to change the file digispark85_ir_lamp.ino according to your remote control and number of LEDs. You need to define remote control keys in part "Settings". You can to get the keycodes of the remote here: https://www.instructables.com/id/DIY-USB-IR-receiver/ . In part "Settings" define the number of LEDs in one piece of strip (#define NUM_LEDS 8).

code1

Also you can to change time between effects mode (#define AUTOPLAY_TIME 30).

code2

Usage:

video1

Turn On power supply , wait ~5sec and enjoy your lamp with remote control. Remote control keys:

  • 'OK' power On/Off
  • '^' 'v' change effects (in white mode change color)
  • '<' '>' change brightness
  • '*' On/Off white mode (accompanied by blue)
  • '#' On/Off mode auto change effects (accompanied by red if On and green if Off)

video2

video3

License

GNU GPL 3

About

WS2812 digital LED lamp controlled using infrared remote and digispark attiny85

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages