WiFi Led Lamp «Javelin»

by SlingMaster in Workshop > Lighting

655 Views, 5 Favorites, 0 Comments

WiFi Led Lamp «Javelin»

Part01 Introduction

Or a sad story about the creation of a lamp

On February 24, 2022, we woke up from the explosion of rockets. The creeping war has been dragging on since 2014, now it has entered an active phase, a few days later I had to move to my daughter because our micro district was bombed. There was no water and heat, plus constant shelling, two sixteen-storey buildings and both supermarkets were bombed, it became completely sad.

This is what my wounded city looks like

We moved from the outskirts closer to the center of Kharkov where we could somehow live. The granddaughter left with her parents inland. It didn’t get any calmer from watching the news, in the second month of the war I wanted to digress a little, so this project appeared, first in my head, then in the drawings, by the middle of summer in iron, when it became possible to sometimes return to my house.

November 22, 2022 | 273 day full-scale war.

Another shelling of infrastructure (70 missiles 51 shot down) throughout the country, electricity was cut off, there is no water, the house has not cooled down yet while it is warm, I began to write this instruction while the battery on the iPad is alive.


Purpose:

Addressable LED lamp (night light, table lamp, interior element, alarm clock imitating dawn). The lamp was named «Javelin» in honor of the help that the American people gave us, for which many thanks to them and to all other countries that did not leave us alone with russian aggression. The idea was to make the lamp look like the AAWS-M «Javelin».

The lamp is a device based on the WeMos D1 mini (esp8266) module with matrix control on addressable LEDs. The gunner47 firmware for the lamp was taken as the basis. This is a collective work of the Internet community to which Ukrainian programmers had a hand. On the Internet, it is known as the Guyver lamp. It has undergone great changes and has grown into an independent project. Even before the war, cross-platform software was written to control the lamp using the http protocol, to which I put my hands, at the moment there is an application for Android, Windows and from a browser from all platforms, including iOS. Software and firmware are in the public domain at the link:

https://github.com/SlingMaster/WiFiLampJavelin

Instructions for the firmware and diagrams in the same repository, the instructions are true in ukrainian and russian (google translate will help you)

Supplies

materials.jpg

Electronic Circuit Materials:

  1. WeMos D1 mini (esp8266)
  2. Sensor button TTP223
  3. Mechanical button
  4. Capacitor 470mF 5V
  5. Power supply 5V min 5A
  6. Matrix composite three matrixes 8x32 (WS2812B)
  7. Circular indicator 35 led (WS2812B)
  8. Tape piece 3 led (WS2812B)
  9. 200 ohm resistor
  10. 10 kohm resistor

Lamp Armature

Initially, it was planned to use a GEO EGLO 81828 lamp (diameter 120mm, height 350mm), but after a series of experiments, I settled on the version with soft glass.

Electronic Circuit

JavelinScheme.png

* The scheme with LED illumination directly on the circuit board did not give the desired result, the second option was implemented with three addressable LEDs in the tape, it looks much better.

Diffuser Selection

Part3.1 Matrix and light diffuser | Cвітильник EO EGLO 81828
3.2 Matrix and light diffuser | Плівка Oracal
3.3 Matrix and light diffuser | М'яке скло

Initially, the lamp was conceived to use a diffuser from a lamp (frosted glass), but in the process it became interesting to work with other materials on which I made my choice, the selection process can be viewed on YouTube, the video above

1. Lamp GEO EGLO 81828

  • pluses: elegant look, finished look (glass and glass), looks very good on effects that require good dispersion, suitable for those who use it mostly as a night light, does not look bad when the brightness is turned up, the best choice for those who have a small child.
  • disadvantages: very diffuse (some effects turn into mush), very low contrast.

2. Oracal film

  • pluses: rather elegant appearance, pleasant matte surface.
  • disadvantages: it greatly muffles the light flow, but does not add contrast, did not get the desired effect (money down the drain), maybe something went wrong, but these are very expensive experiments, auto film for dimming increases contrast better but absorbs light even more.

3. Soft glass

  • pluses: elegant look when working, high contrast (black is black), high brightness looks good at a distance, looks very good on effects that require sharpness (especially on effects with full filling with different colors, completely absent porridge effect)
  • disadvantages: because of the transparency during the day, when the lamp is turned off, the fastening elements are visible, the LEDs do not really cut the eye, but still, I would like more to avoid this, in general, the lamp looks cool, but when the brightness is lowered, in some effects where component colors are used, they change color (with due to strong scattering, this post is not noticeable)

Frame

body.jpg

The base was made from tubes of brandy and whiskey packaging in two sizes with adjustment of diameters by gluing cardboard.

Matrix

matrix.jpg

Matrices were wound on the outer tube with a zigzag connection, the power was routed by 4 wires to give the connection a flat look. (it is desirable to obtain a cross section of about 1.5 mm2, this greatly affects the uniform glow of the LEDs)

On the top, the matrix is ​​​​closed with a thin translucent material resembling a substrate for a laminate, on top of soft glass, on the back wall, the connection is closed with an aluminum threshold for interior doors. Between the tubes in some places there are voids for wiring and pieces of textolite with a thread for attaching an aluminum profile are riveted.

Circular Status Indicator

Indicator.jpg

A circular indicator is attached to the upper part of the tube with the matrix and connected to the matrix, the output is further to the tape with three LEDs for illumination. The inner tube is inserted into the outer one. They have soldering pads.

  • green sectoral animation at start - connection to the router
  • blue sector animation at start - operation in access point mode
  • red animation in a circle - the time is not set on the lamp
  • 3 sectors of 10 LEDs on the time arrow (speed, brightness, scale)
  • 2 flashing violet LEDs in the rear part of the circular indicator - "Auto Change Effects" mode
  • 3 LEDs (red, blue, green) between sectors - group control mode

Status Indicator Legend

4.0 Circular Status Indicator

Power Supply AC-DC

ac-dc.jpg

A 5V 7A power supply is inserted inside, fixed on 3 flanges of nickels cut from a 7mm laminate board and fastened together with long M6 screws. This part is made in the form of a powder charge dummy with a control system (a piece of board from an old hard drive) at the top there is a mini jack connector to connect the warhead 3 wires power supply and din output to control the matrix. If you want to use a mosfet, then you need to use a 4-pin connector, the circuit provides for this option.

* Lost connection, Battery charge 58%, while you can continue.

At the time of the start of the design, I did not have all the details, Aliexpress did not work for Kharkov, thanks to the help of fellow hobbyists from the central part of Ukraine, they ordered and sent the parts, so the power supply mount block was adjusted in place without drawings using suitable materials.

Warhead • Ballistic Computer

warhead.jpg

The electronics are soldered on a circuit board and attached to a curly tube made in turn from a plastic water pipe of two diameters glued together and connected to an aluminum tube at the end of which a mini jack connector is fixed. The touch button is fixed at the top. The cladding is made of a 40 mm washbasin drain fitting with an oval cutout for the electronics board, this part is illuminated by a piece of LED strip placed on the inside of the tube with a power supply and a connector for connecting the warhead. The casing is fastened with three screws to the central part.

Guides made from insulin syringe pens are attached to the casing from the outside; they are fixed to the casing at an angle of 120 degrees to each other. A microswitch is built into the rear rail to control the lamp, further behavior will be described in the software part. The upper part of the case with a touch button is closed with a cap (a rotating deodorant ball in which a cutout is made), it fits tightly into the upper part of the case, I didn’t even have to invent something. On the lower part, a stabilizer is simulated from a piece of plastic pipe and a jet engine nozzle from a cork from toothpaste or some kind of cream, I don’t remember. The fairing is painted with silver paint. Silk thread and a piece of adhesive tape marked. Unfortunately, due to the war, it was not possible to apply the inscriptions.

Assembly

Construction and Details
LampAssembly
  • November 24, 2022. There is no electricity and communication yet, we have been sitting without electricity for 17 hours, there is no water and heat either. As long as we endure. Battery charge 52%.

In a word, the lamp is made from something that came to hand and came up in size, excluding turning as much as possible. An electric drill was used to refine the flanges to give them a cylindrical shape. Initially, the lamp was conceived to use frosted glass from the lamp, but in the process it became interesting to work with other materials, on which I made a choice. A double-edged sword with different materials, the effects look different. I already made a lamp with frosted glass, so I settled on this option, besides, I also do effects programming, so this design is preferable to me, frosted glass is best for those who have a small child - a lamp in the form of a night light.

The tubes are tightly connected to each other, fastened with an M3 screw for reliability. When using a ceiling, it was planned to attach the tubes to a plastic base according to the size of the bottom of the frosted glass, it was made from a cover for perforated tape. Yes, I'm old. Now, probably a lot of people don't even know what it is.


Firmware

This is a collective work, in which programmers from the global Internet community, Ukraine, and russia took part. I joined the project two years ago adding new features that I needed. Who has any contribution, it's not for me to judge this is not a commercial project. After the invasion, all programmers from Ukraine cut off all contacts, to be honest, it was a shock to the perception of the situation among the community from russia, even this educated part.

Firmware capabilities

  1. Lamp control via http protocol through a router or a lamp as an access point in the case of an access point via android or from under windows if the computer has built-in wifi
  2. Lamp control with built-in touch button
  3. Built-in Http page for connecting the lamp to the router
  4. Alarm clock «Dawn»
  5. The latest version supports 114 effects
  6. Ability to work in a group
  7. OTA - flashing mode over the air
  8. Auto off timer 5 minutes (from the button)
  9. Indication of the status of the lamp on the circular indicator
  10. Javelin mode, shot simulation, diagnostics

* the firmware supports the possibility of individual settings based on the design of the lamps. Detailed instructions are described in the ConstantsUser.h file, you just have to translate the instructions yourself, often in ukrainian or russian.

Recommendations for setting up the IDE and installing the firmware on the lamp in the file Instruction.doc

Software

November 25, 2022. Now again a planned power outage, we hope not for long. Yesterday, after 22:00 blackout, they gave electricity, in the late afternoon water, the city and the country began to come to life. In the evening I began to prepare pictures for instructions. Expectations were not met, there has been no electricity for six hours, the heat has also been turned off, and today it will not be possible to work on the project. I was only able to take pictures for instructions.

Ready-made programs did not suit me in terms of UI design, so I wanted to make my own so that the lamp could be controlled by both an advanced user and a child.

Software Features

  1. Auto search for available lamps
  2. Lamp setting from the application
  3. Update files in lamp file system
  4. Displaying information about design features, status and firmware version
  5. LED lamp matrix test
  6. Manage a group of lamps in one click
  7. Javelin firing mode and lamp diagnostics
  8. A separate application with statistics on the use of lamp firmware and geography
  9. Application for windows is focused on developers, simplifies the process of developing firmware
  10. Convenient cross-platform lamp control:


Applications for Android

AndroidApp.gif

Applications for Windows

WindowsApp.gif

Combat Trials

CombatTrials

Mechanical button actions for this firmware (original Javelin design):

  • single click - command for the "Fire" lamp
  • holding the button - diagnosis of the "Javelin" lamp
  • double click - exit from the "Test" mode
  • four-time click - changing the default lamp camouflage (3 themes alternately forest, winter, desert)
  • five-time click - reset effect settings to default

When launched from the app, activities support sound effects. If only it were possible to shoot down Iranian drones.

Lamp Activation

The lamp requires activation, for this you need to run the application at least once on any platform. This is due to the desire of Ukrainians to isolate themselves from muscovy, the lamp will only reflect what the Ukrainian people think about the president of russia, this phrase was voiced by Kharkov football fans, many of whom are now adequately defending our native Ukraine from russian aggression. For all the rest (with Belarusians so far with a reservation, missiles fly from their territory to our peaceful cities) activation occurs automatically after the program is launched. I think you understand why...

• • •

Ужасы Харькова 2022. Война в Украине.

Post Sсriptum

November 27, 2022. Blackout lasted 6 hours today

• I plan to release a video on all the effects, look on the YouTube channel for the WiFi Lamp Javelin tag

This instruction has the main task, through this platform, to thank everyone who helps us at this difficult time for us.

Enjoy using it to those who want to repeat the project, and thanks to everyone who has helped and is helping our country in this fight.

We are from Ukraine.

Regards SlingMaster.


November 29, 2022. Two days of power outage for 9-10 hours, the Internet is not stable. I'm trying to post the latest video for instruction.

All Effects for Lamp

All Effects for Lamp