A simple Arduino Nano LED candle for 2 to 6 LEDs.
This design is*completely free* and shared under a permissive license. Your support is hugely appreciated.
Some of our designs cannot be found on Thingiverse. If you are looking for more, check out our premium projects:
https://codeandmake.com/premium
Use the included wiring diagram as a reference.
If you are new to soldering, here is my tutorial which demonstrates how to solder an Arduino Nano. The tutorial shows how to solder pin headers to your Arduino Nano. You should not need to use pin headers for this project, you can solder wires directly to the board instead. However, you may still find this tutorial useful.
If you haven't already, install Arduino IDE and configure it ready to program your Arduino Nano.
Here is my tutorial for installing the Arduino IDE in Ubuntu and configuring it for an Arduino Uno. The steps will be similar for the Arduino Nano and other operating systems.
int ledPins[] = { 3, 5, 6, 9, 10, 11 }; 4. Upload the code to the Arduino Nano and, in a few seconds, the LEDs should start to flicker. 5. You can experiment with different random numbers for different effects. 6. Once happy, disconnect the USB cable and check that it works when powered via a 9v battery.
To use, simply attach a 9v battery and insert the LED mount into the base, ensuring that the 9v battery and the Arduino Nano are sitting inside their respective compartments of the base.
Recommended slicer settings:
The "Customizable Arduino Nano LED Candle (2 - 6 LEDs)" model (.stl) is licensed under the CC BY license by Code and Make.
The "Customizable Arduino Nano LED Candle (2 - 6 LEDs)" code (.scad & .ino) is licensed under The MIT License by Code and Make.
If you would like to try different code, take a look at "flickering-flame" which uses an exponential low pass filter to enhance the effect. "flickering-flame" is designed for 5 LEDs, but it should be trivial to adapt it for a different number of LEDs.
"flickering-flame" is licensed under The MIT License by micromouseonline. A copy of the "flickering-flame" license is included below:
MIT License
Copyright (c) 2018 micromouseonline
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
We love to create free content for you. As you might imagine, it takes a lot of time. Supporters help us fund materials and equipment to create future projects and tutorials. To show your appreciation, please use the link below:
https://codeandmake.com/support
We thank you so much for your support!
Category: ElectronicsThe author marked this model as their own original creation. Imported from Thingiverse.