Frozen city streets in emergency mode: it's time to revive the city from the designer

Children's night light for a smart home from nothing to do.

image

There was a third week of quarantine ... All that had to be finished was finished, all the films I wanted to watch were watched, all the electronics in the house were repaired. Monotony began to fill the home space. And then an idea came to mind that took me and my son a whole week ahead - “urban planning” with integration into the smart home system as a night lamp.

The idea was not just to add a lot of small lighting fixtures, but also in the scenarios of their work, so that the city began to "live its own life", and the "little architect" would become an observer of this beauty each time falling asleep in bed.

What was needed to implement the idea


Accessories and consumables


image

  1. Actually, the designer himself: pulled out of dusty boxes and assembled according to instructions.
  2. SMD LEDs of 3528 different colors: green, red, yellow, white cold glow (for exterior lighting of streets and building facades), white warm glow (for interior lighting of rooms). In addition to the diodes in bulk, they used a tape of cold and warm glow of white color, optimized for a voltage of 5 volts. The advantage of such a tape was also that the cut line was for each diode, and not like its older brother's voltage of 12 volt tape, where the resistance is located one by three LEDs, so it would have to cut at least three diodes.
  3. The microcontroller D1 mini on ESP8266, with the help of which all the “revitalization” of the bulbs according to the scenarios takes place, it also provides communication over the local WiFi network with the smart home system.
  4. 2-channel relay with dry contacts for starting outdoor and indoor lighting (it is not in the photo above, but noticeable in subsequent photos in the already assembled project).
  5. One of the most important components is the thinnest stranded wire with white insulation, size 36 AWG in diameter (about 0.12 mm). White insulation helped to make the wiring not so noticeable against the background of walls of the same color, and a tiny thickness made it possible to quietly lay it between the parts of the designer.
  6. A small breadboard for placing a microcontroller on it.
  7. Connecting wires (Dupont), mom dad, dad dad.
  8. Low power 1/4 W resistors at 100 and 50 Ohms.
  9. Shrink.
  10. High-quality solder.
  11. Power supply 5V 2A.

Tools


For assembly on the knee, the minimum mounting kit will look like this:

image

  1. Soldering iron.
  2. Hot glue gun.
  3. 3mm drill
  4. A sharp knife, in my case, is a very convenient surgical scalpel made of Soviet steel for such procedures.

We are patient and proceed to assembly


image

To place the LEDs not only indoors, but also directly in the details of the designer, which initially play the role of lighting devices, it was necessary to drill, saw, scrape. For example, wires were drawn from below through four holes in a large gray part to the four red lamps on the helipad. We look at the photo below:

image

Manually encrusting SMD diodes into lanterns was also not as simple as it seems, of course, each time with a hole in the details.

image

image

image

Behind the building, a large braid of wires gathered, which were laid with a thermal gun:

image

And here is a view of the brain of the construction city with connected communications

image

Diode light at the end of the tunnel


Long and monotonous work behind, all the LEDs (and there were as many as 53 pieces in the project) were connected by wires, the wires were hidden, the microcontroller was programmed.

What happened as a result


When it is time to go to bed, the main light of the children's room automatically replaces the bewitching glow of city lights - right next to the bed.

Several lighting zones work according to a separate algorithm, which can then be turned on and off manually from a smartphone: The

red antenna lamp on the garage constantly flashes when it is turned on;

Upon activation, the helipad smoothly changes the brightness of four red lamps.

Traffic lights alternate colors from red to green, then yellow, and in a circle.

Street lamps and front lighting give a constant glow when activated, as well as the area of ​​internal lighting.

image

image

I hope our experience of "developing urban infrastructure" will inspire you and your children to create interesting and informative crafts in this very "home" segment of life.

All Articles