All Projects → mtongnz → Esp8266_artnetnode_v2

mtongnz / Esp8266_artnetnode_v2

Licence: gpl-3.0
ESP8266 based WiFi ArtNet to DMX, RDM and LED Pixels

Projects that are alternatives of or similar to Esp8266 artnetnode v2

Sonoff wifi switch
Прошивка для ESP8266 (Умный дом)-Firmware for ESP8266 (Smart Home)
Stars: ✭ 156 (-61%)
Mutual labels:  arduino, led, ws2812b, esp8266
Esp Mqtt Json Digital Leds
(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
Stars: ✭ 503 (+25.75%)
Mutual labels:  arduino, led, esp8266
Neopixel Realistic Flickering Candle With Changing Color Palette
Arduino code for creating a realistic candle flicker using 8-neopixels, and the FastLED Library. This code is a modified version of the Fire2012 with Color Palette example that comes with FastLED and utilizes a button to cycle through different color palettes in real time.
Stars: ✭ 19 (-95.25%)
Mutual labels:  arduino, led, ws2812b
Wled Wemos Shield
Wemos D1 Mini (ESP8266) or Wemos ESP32 D1 Mini (ESP32) based shield for WLED firmware
Stars: ✭ 105 (-73.75%)
Mutual labels:  led, ws2812b, esp8266
Desk Lamp Alternative Firmware
An alternative firmware for the Mijia Xiaomi Desk Lamp
Stars: ✭ 54 (-86.5%)
Mutual labels:  arduino, led, esp8266
Ws2812fx
WS2812 FX Library for Arduino and ESP8266
Stars: ✭ 1,113 (+178.25%)
Mutual labels:  arduino, led, esp8266
Rgb
Offline smart home - esp8266 and WS2811/WS2812/NeoPixel LEDs Smart home / Gudra māja / Умны дом
Stars: ✭ 99 (-75.25%)
Mutual labels:  arduino, led, esp8266
Jled
Non-blocking LED controlling library for Arduino and friends.
Stars: ✭ 197 (-50.75%)
Mutual labels:  arduino, led, esp8266
Control Surface
Arduino library for creating MIDI controllers and other MIDI devices.
Stars: ✭ 377 (-5.75%)
Mutual labels:  arduino, led
Super-Simple-RGB-WiFi-Lamp
A project based on the ESP8266 and WS2812b
Stars: ✭ 61 (-84.75%)
Mutual labels:  esp8266, ws2812b
Sinric
Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
Stars: ✭ 259 (-35.25%)
Mutual labels:  arduino, esp8266
Radiolib
Universal wireless communication library for Arduino
Stars: ✭ 350 (-12.5%)
Mutual labels:  arduino, esp8266
ioBroker.wled
IoBroker integration to WLED project
Stars: ✭ 22 (-94.5%)
Mutual labels:  led, ws2812b
Sonoff Homeassistant
Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant
Stars: ✭ 354 (-11.5%)
Mutual labels:  arduino, esp8266
SuperLEDstrip
No description or website provided.
Stars: ✭ 13 (-96.75%)
Mutual labels:  esp8266, led
Deviot
Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Stars: ✭ 281 (-29.75%)
Mutual labels:  arduino, esp8266
Md parola
Library for modular scrolling LED matrix text displays
Stars: ✭ 282 (-29.5%)
Mutual labels:  arduino, led
TinyPixelMapper
a Pixelmapping software for the ESP32 and ESP8266 for addressible LED Strips, with a OSC controll interface and FFT
Stars: ✭ 22 (-94.5%)
Mutual labels:  esp8266, ws2812b
Umqttbroker
MQTT Broker library for ESP8266 Arduino
Stars: ✭ 264 (-34%)
Mutual labels:  arduino, esp8266
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+726.25%)
Mutual labels:  arduino, esp8266

ESP8266_ArtNetNode_v2

ESP8266 based WiFi ArtNet V4 to DMX, RDM and LED Pixels

This is a complete rewrite of my previous project found here: http://www.instructables.com/id/ESP8266-Artnet-to-DMX/

An Instructable detailing how to setup pixel mapping using Jinx can be found here: https://www.instructables.com/id/Artnet-LED-Pixels-With-ESP8266/

If you find this helpful and you're feeling generous, I'd love for you to buy me a beer or some gear: https://www.paypal.me/mtongnz. Thanks heaps to all those who have donated. It's really appreciated

Prizes for Fixing Stuff

There are 3 prizes up for grabs for people who fix/add some of the issues/features I haven't had time to finish yet.

Have a look here for details: https://github.com/mtongnz/ESP8266_ArtNetNode_v2/blob/master/prizes.md

Which file to flash

If you have a larger ESP with access to all the pins in the schematic, then download the standard bin file to ensure you get both outputs with RDM and also the settings reset function.

ESP01: This disables the second output and puts the DIR_A onto pin GPIO2.

NO_RESET: This disables the startup "reset of settings" funtionality. It is not recommended and is only provided for compatibility with devices without GPIO14 available or for those of you with an older version of my hardware.

WEMOS: This is compiled for Wemos D1 and similar boards. It uses the 4M (3M SPIFFS) compiler option.

Known Issues & Feedback

Please see the issues tab for known issues or to submit bugs or suggestions

Schematic notes

esp_Artnet_RDM_isolated_v2.jpg is the latest version. It uses APA106 LEDs for status. This frees up more pins for future use - possibly with an LCD or more outputs. You could modify the source if you wish to use normal LEDs instead.

The following notes are for the older schematic but some may apply to the current schematic so I've left it here:

  • Pin numbers used are ESP8266 GPIO numbers. NodeMCU & Wemos boards use a different numbering system. See below for details
  • The ESP01 allows for one full DMX/RDM/Pixel port only. Use pin GPIO2 instead of GPIO5 for the RDM direction pin.
  • GPIO14 is used to reset default settings. Tie to 3.3V with a resistor for normal operation. Hold to GND while the device is booting to wipe the settings and restore the defaults. This feauture isn't available for ESP01 and a NO_RESET firmware is available also.
  • The node_dmx_and_pix schematic is recommended as it allows for DMX with RDM & also ws2812(b) strips by using the convert_max485_to_pix
  • The convert_max485_to_pix schematic is not a DMX driver for the strips! It simply converts the logic back to the ws2812(b) logic.
  • The node_pix_only schematic is for those of you who don't want DMX. Note that all the DMX options are still in the firmware and may cause the pixel strips to do wierd things if selected.
  • I have excluded any voltage convertion as I've found the ESP8266 has 5V tolerant pins. See here: http://ba0sh1.com/blog/2016/08/03/is-esp8266-io-really-5v-tolerant/
  • The outputs are not isolated electrically or optically at this point.
  • C1 - 5 can be any caps and are used to ensure each component has a stable power supply. I use 100nF.
  • You can use just one output if desired. Simply don't connect the second MAX485 and associated components.
  • The MAX485 can be substituted for any compatible RS-485 transeiver.

Flashing firmware

Please note that the device will generally need a power cycle after updating the firmware.

Web UI OTA from my previous project

Flash https://github.com/mtongnz/ESP8266_ArtNetNode_DMX to your device (if not already on there) using the Arduino IDE and then use the Web UI to upload the .bin available in this git.

Direct bin flash

Follow instructions here: http://www.instructables.com/id/Intro-Esp-8266-firmware-update/

Arduino IDE

You can also use the "WebUpdate" found in Examples->ESP8266WebServer. Make sure you change the Flash Size in the Tools menu to match your ESP8266s flash. You'll need to allow about 700K for the sketch and upload or OTA will fail - this means that with a 1M unit, select the 1M(256K SPIFFS).

Instructions to find out your flash size (if unknown) are on my Instructable linked at the top of this page.

Getting Started

First Boot

On your first boot, the device will start a hotspot called "espArtNetNode" with a password of "byMtongnz2017" (case sensitive). Login to the hotspot and goto 2.0.0.1 in a browser.

Note that the hotspot is, by default, only for accessing the settings page. You'll need to enable Stand Alone mode in the web UI if you want to send ArtNet to the device in hotspot mode.

Web UI

In hotspot mode, goto 2.0.0.1 and in Wifi mode goto whatever the device IP might be - either static or assigned by DHCP.

In the Wifi tab, enter your SSID and password. Click save (it should go green and say Settings Saved). Now click reboot and the device should connect to your Wifi.

If the device can't connect to the wifi or get a DHCP assigned address within (Start Delay) seconds, it will start the hotspot and wait for 30 seconds for you to connect. If a client doesn't connect to the hotspot in time, the device will restart and try again.

Restore Factory Defaults

I have allowed for 2 methods to restore the factory default settings: using a dedicated factory reset button on GPIO14 or multiple power cycles.

Method 1: Hold GPIO14 to GND while the device boots. This method isn't available for the ESP01 or NO_RESET builds.

Method 2: Allow the esp8266 about 1-4 seconds to start, then reset it (or power cycle). Do this at least 5 times to restore factory default settings.

DMX Workshop

I have implemented as many DMX Workshop/ArtNet V4 features as I possibly could. You can change settings such as merge mode, IP address, DHCP, port addresses, node name... Most of these are also available via the web UI.

Features

  • sACN and ArtNet V4 support
  • 2 full universes of DMX output with full RDM support for both outputs
  • Up to 1360 ws2812(b) pixels - 8 full universes
  • DMX/RDM out one port, ws2812(b) out the other
  • DMX in - send to any ArtNet device
  • Web UI with mobile support
  • Web UI uses AJAX & JSON to minimize network traffic used & decrease latency
  • Full DMX Workshop support
  • Pixel FX - a 12 channel mode for ws2812 LED pixel control

To be done

Scene storage

I have not yet implemented the Scene Storage feature from my previous project. I wish to improve on it and allow for making chases or effects.

Handle artRdmSub packets

I haven't yet implemented the artRdmSub messages. This doesn't affect usability as they are optional and all devices must support artRdm packets. The artRdmSub messages do provide a smaller network load and this should be coming shortly.

Pixels other than WS2812

A few people have asked for this and it shouldn't be too hard, except for the Pixel FX engine integration.

Pixel FX

To enable this mode, select WS2812 in the port settings and enter the number of pixels you wish to control. Select '12 Channel FX'. 'Start Channel' is the DMX address of the first channel below.

Note: You still need to set the Artnet net, subnet and universe correctly.

DMX Channel Function Values (0-255)
1 Intensity 0 - 255
2 FX Select 0 - 49 Static
50 - 74 Rainbow
75 - 99 Theatre Chase
100 - 124 Twinkle
3 Speed 0 - 19 Stop - Index Reset
20 - 122 Slow - Fast CW
123 - 130 Stop
131 - 234 Fast - Slow CCW
235 - 255 Stop
4 Position 0 - 127 - 255 Left - Centre - Right
5 Size 0 - 255 Small - Big
6 Colour 1 0 - 255 Red
7 0 - 255 Green
8 0 - 255 Blue
9 Colour 2 0 - 255 Red
10 0 - 255 Green
11 0 - 255 Blue
12 Modify 0 - 255 *Modify FX

Modify FX is only currently used for the Static effect and is used to resize colour 1 within the overall size.

NodeMCU & Wemos Pins

These boards use strange numbering that doesn't match the ESP8266 numbering. Here are the main hookups needed:

NodeMCU & Wemos ESP8266 GPIO Purpose
TX GPIO1 DMX_TX_A
D4 GPIO2 DMX_TX_B
RX GPIO3 DMX_RX (for A & B)
D1 GPIO5 DMX_DIR_A
D0 GPIO16 DMX_DIR_B

Special Thanks To

I'd like to thank these people. They have either contributed with donations, a large amount of testing and feedback, or with their own code/projects that have been of assistance or inspiration.

  • Tristan Thiltges
  • Cyprien Leduc
  • Jochen Schefe
  • Jan Raeymaekers
  • Wiktor Kaluzny
  • Jean-Michel Blouin
  • Tobias Schulz
  • Ben Small
  • Harald Müller
  • Volodymyr Bereza
  • Felix Hartmann
  • Ruud Leemans
  • Bogumil palewicz
  • Anton Manchenko
  • Bogumil Palewicz
  • Marcel Dolnak
  • Paul Lim
  • Geo Karavasilis
  • Claude Heintz
  • Shelby Merrick (Forkineye)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].