Skip to content

2SmartCloud/2smart-cloud-esp32-wowfire-lamp

Repository files navigation

WOW Fire Lamp

A custom controller for controlling an addressable LED matrix based on an ESP32 microcontroller. Ideal for assembling a fire lamp type device from AlexGyver. The device supports full integration with the mobile application 2Smart Cloud on IOS and Android.

With the help of the mobile application, you will be able to:

  • connect the device to your account;
  • switch the state of the LED strip;
  • switch operating modes;
  • control the brightness;
  • receive notifications;
  • update the device firmware;
  • control the device using voice assistants, telegram bot, phone calls;
  • share access to device control with other users through a mobile application or a temporary link.

In addition to the control capabilities via a mobile application, the device has a full-fledged web interface available at the default address http://192.168.4.1 or at the device's address in the local network.

Materials for printing your own boards and accessories for the device can be found in the corresponding folders of this repository. 3d model of the printed case was taken from a public source, but any other case from custom components can be used.

The device firmware is developed based on the public 2Smart Cloud SDK for ESP32.

Connecting to the mobile application

After installing the firmware on the device, you need to install the mobile application 2Smart Cloud and register. Then find the 2Smart Gyver Lamp in the device market and follow the connection instructions.

image

image

Physical control

To turn on the lamp, tap and hold the top of the device for a second. To switch the lamp modes, touch the top of the device. The modes are switched sequentially each time you press. To turn off the lamp, tap and hold the top of the device for a second. To reset the lamp settings, use the “Reset” button located at the bottom of the device. Use a paperclip or similar object to press the button.

How to write firmware on device

Using Docker (Linux only)

  1. Download our bash script:

    curl https://raw.githubusercontent.com/2SmartCloud/2smart-cloud-cpp-sdk/master/utils/bin/firmware_install.sh > firmware_install.sh
    
  2. Make script executable:

    chmod +x firmware_install.sh
    
  3. Have connected device to your computer.

  4. Build and write the firmware

    ./firmware_install.sh write -d <PORT>
    

    or update existing firmware

    ./firmware_install.sh upload -d <PORT>
    

    full list of commands

    ./firmware_install.sh
    
  5. If everything is okay it should start in AP mode and blink once in a second.

Using installed requirements

  1. Need have: python (>= v3) installed. You can control it in terminal

    python --version
    

    platformio (>= v5.1.1)

    pip install -U platformio
    
  2. Have connected device to your computer.

  3. Device should be listed in /dev as one of this:

    (Linux)
    /dev/ttyUSB0
    
    (OSX)
    /dev/cu.SLAB_USBtoUART
    /dev/cu.usbserial-0001
    
  4. build and write

    pio run -t uploadfs
    pio run -t upload
    

    or just build

    pio run
    
  5. If everything is okay it should start in AP mode and blink once in a second.

If you have error "can't open device "/dev/ttyUSB0": Permission denied" follow Link https://qna.habr.com/q/526674

CLI guide https://docs.platformio.org/en/latest/core/userguide/index.html

Custom firmware

Fill free to fork this firmware and create you own products with custom functionality. Detailed instruction you could find in our blog.

Instructions

Custom Effects

Firmware-Uploading

To Do

  • Add more modes
  • Add sheduled commands

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published