Introduction: Arduino Based LED City Model
everything is boring without LEDs, so lets make a city out of it!
Basic Idea:
so we build a City mode out of cardboard, then illuminate it with a LOT of RGB LEDs and let the temperature of color change according to room temperature using LM35 Temperature sensor.
Supplies
1. WS2812b RGB LEDs (neopixels).
2. Arduino Uno/nano or any other available arduinos.
3. Some wires.
4. Cardboard.
5. Paper
6. Paint of some kind.
7. LM35 temperature sensor.
8.Plasticine, clay or a stretchy material.
9. Cotton (from pharmacy).
10. Aluminium foil.
Tools:
1. Hot glue gun.
2. Soldering iron (with some soldering wire).
3. Knife or scissors to cut the cardboard and the paper
4. Ruller.
Step 1: Drawing
First of all we drew bunch of sketches and listened to Bee Gees - Stayin' Alive for 8 hours straight to find inspiration. in the end we came up with something...
Step 2: Center Building
We decided for the main building to be octagonal shape. We cut out the cardboard, then bent it and glued LED strip on it. We painted it and then we filled window holes with Hot glue to give it blurring effect. then placed it in the center of the city.
Step 3: Trees
4 Wires should be coming out of the tree roots. its recommended to color code them: Black - GND; Red - 5v; Yellow - Din; Blue - DO;
Step 4: Other Buildings
Then we started to make other buildings. all of them are made the same but with different dimensions. we cut then out, paint them and make windows just like in the previous one. We placed LEDs on the bottom side of the cardboard and made the roof with aluminium foil. aluminium foil helps reflect the light.
Step 5: Park (mostly Just Grass)
We made some of the grass with this stretchy thingie to give it 3D feeling. Oh and we also drew the river with light blue and white paint. we Use acrylic paint but am sure other types of paints will work too.
Step 6: Wiring
This step should be done only after everything is in place. Connect all GND and 5V wires together and daisy chain LEDs. then connect daisy chain main input to the Arduino digital pin 5. Connect GND and 5v to its pins. External power supply is highly recommended. Just use 5V external powers supply and connect power supply GND to Arduino GND and power supply 5V to Arduino 5V. Wiring can look messy like in my case but its fine...
Step 7: Drawing Parking.
That's it. We just drew the parking.
Step 8: Arduino Code
Step 9: Arduino Library
download Arduino FastLED.h library from: https://github.com/FastLED/FastLED