Skip to content

jpsullivan234/deskerizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deskerizer

NeoPixel Altoid tin multi-mode desk lamp using Arduino.

IMG_4941

This is a project I made back in September 2023. Here's the jist:

  • Controlled by an Arduino Pro Mini (3v 8MHz)
  • Powered by a standard USB type C port
  • Everything is contained inside an Altoids can
  • 3 buttons: On/Off/Mode button, brightness up, brightness down
  • Programmed with 6 modes but you can add as many as you'd like using my code
  • The modes include solid colors, fade, and multi-color
  • Every function in the code is non-ubstructing, meaning that you can press a button and cancel the fade at any point, for example

Feel free to clone this repository and try my code. The code was implemented using PlatformIO, but with some minor modifications it should work in the Arduino IDE as well. There are some small bugs that I haven't fixed yet, like the modes occasionally skip when you press the mode button because of a debounce flaw.

Circuit: View the circuit schematic here

Code: To run the code, you'll need PlatformIo installed. I use the VScode extension. Change the hardware settings to match your design as shown below (from this file).

// Hardware defs: 
#define mButton 2
#define uButton 3
#define dButton 4
#define LED_PIN 12
#define LED_COUNT 60

Hit upload and if you did it right it'll work.

More Pictures:

IMG_4947 IMG_4945

About

NeoPixel multi-mode desk lamp using Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages