Subscribe to Arduino Academy and start learning today for FREE!

Arduino Himalayan Salt Candle

Himalayan Salt Lights are really cool looking translucent salt “Rocks”. With a lightbulb inside, not only are they a soothing warm light, but they are supposed to give off Negative Ions that leave you refreshed. I have added a Arduino and  SSR to give my light a flickering candle look, which makes it a very interesting conversation piece.

Video, code, and parts list below!

Parts:

Arduino UNO
Solid State Relay (SSR)
Himalayan Salt Light

Code:

Become the Maker you were born to be. Try Arduino Academy for FREE!

int lightPin = 9;
int randNumber;
void setup()  {
  randomSeed(analogRead(0));
  pinMode(lightPin, OUTPUT);
}
void loop()  {
    randNumber = random(50, 254);
    analogWrite(lightPin, randNumber);
    delay(randNumber*3);
  }

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Archives

0
Would love your thoughts, please comment.x
()
x