Giter VIP home page Giter VIP logo

light-duino's Introduction

light-duino

Our new and improved DMX light controller with mqtt control, based on an ESP8266.

Configuration

The conig.h file should contain everything to configure the system to your needs.

MQTT

The path is build up like this: <topic>/<id>/<endpoint> e.g.: DMX/1/set

MQTT endpoints

  • controller: MAC and IP, comma separated
  • state: list of current state of DMX ids with state, comma separeted
  • e.g.: "0:0,1:0,2:255,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0"
  • set: interface to set DMX channels. Accepts list of DMX id:state, comma separated.
  • state is int between 0-255 (0 is off), or 1000 (toggle between on and off)
  • e.g.: "10:0,2:0,8:255,4:255"

Switches

Switches can be connected to the Pins 4 and 12-15. The internal Pull-ups on these pins will be activated if the pins are configured as switch.

DMX

A DMX transciver like MAX485 needs to be connected to GPIO 2 (U1TXD) of the ESP

Ext. libraries

You will need to install ESPDMX and the PubSubClient (it's a fork from the one in the Lib. Manager!) as a zip.

light-duino's People

Contributors

peterfroehlich avatar tiefpunkt avatar

Stargazers

Benjamin avatar spacerunner avatar Marco Brianza avatar Vince avatar  avatar Alexander Klatte avatar Maximilian Inckmann avatar Joel Züst avatar  avatar Arne Meeuw avatar  avatar Adrian Scillato avatar Patrik Mayer avatar MadMoon avatar  avatar Sven Eliasson avatar Felipe Barros avatar

Watchers

Jan Schmidle avatar  avatar James Cloos avatar German avatar Ulrich avatar  avatar Sam avatar  avatar Juergen Skrotzky avatar Christian Bendl avatar Heiko avatar Adrian Menzel avatar  avatar

light-duino's Issues

problem with compling

hi i tried to comple it and i always get this error.
Arduino: 1.8.5 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 4M (1M SPIFFS), ck, Disabled, None"

C:\Users\Chris\Documents\Arduino\light-duino\light-duino.ino: In function 'void setupWifi()':

light-duino:160: error: invalid conversion from 'void ()()' to 'void ()(WiFiManager*)' [-fpermissive]

 wifiManager.setAPCallback(configModeCallback);

                                             ^

In file included from C:........Documents\Arduino\light-duino\light-duino.ino:21:0:

C:.......Arduino\libraries\WiFiManager/WiFiManager.h:92:19: error: initializing argument 1 of 'void WiFiManager::setAPCallback(void ()(WiFiManager))' [-fpermissive]

 void          setAPCallback( void (*func)(WiFiManager*) );

               ^

light-duino:164: error: 'class WiFiManager' has no member named 'setAPConfig'

 wifiManager.setAPConfig(IPAddress(10,0,0,1), IPAddress(10,0,0,1), IPAddress(255,255,255,0));

             ^

exit status 1
invalid conversion from 'void ()()' to 'void ()(WiFiManager*)' [-fpermissive]

can you please help to make work?
thank chris

help with errors on wemos esp

hi so i manged to compile your code but i always get this errors it always reset the esp and it again the same can you help me please?

xception (9):
epc1=0x40105050 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000

ctx: cont
sp: 3fff1320 end: 3fff1790 offset: 01a0

stack>>>
3fff14c0: 00000000 3fff28a4 00000000 402312b8
3fff14d0: 4010527c 004e3601 3fff05e0 00000000
3fff14e0: 3ffefc30 3fff05e0 00000000 3fff5384
3fff14f0: 00000000 00365e7d 402011b4 00001388
3fff1500: 3fff05e0 0000004c 0000004c 0000004c
3fff1510: 0000004c 00000000 3fff2974 4020424e
3fff1520: 0000004c 6acdb841 00000047 00000000
3fff1530: 00000000 3fff2c84 0000004c 40221ee4
3fff1540: 3ffea725 00820001 0000000e 3fff2afc
3fff1550: 00000047 00000016 3fff2c84 00000000
3fff1560: cb6b9962 3fff2c54 00000000 00000047
3fff1570: 00000000 3fff2d41 3fff2c84 40222bfc
3fff1580: 0000000d 3fff279c 0000000e 401004d8
3fff1590: 3ffe9a98 00000028 3fff295c 00000000
3fff15a0: 3fff2c54 3fff279c 3fff2c84 40222cb6
3fff15b0: 00000000 00000000 3fff2c54 402212e4
3fff15c0: 40203bb0 00000a38 3fff0770 3fff0388
3fff15d0: 3fff279c 3fff02e0 3fff295c 40204132
3fff15e0: 0000075b 3fff28a4 3fff02e0 40203656
3fff15f0: b101a8c0 00000010 3fff1684 3fff1730
3fff1600: 0000075b 3fff02e0 3fff279c 40204381
3fff1610: 3ffe9710 b101a8c0 3ffe9710 b101a8c0
3fff1620: 3fff1650 00000000 3fff02a0 40205734
3fff1630: 3ffea0e8 00000000 00000000 3fff1730
3fff1640: 3fff1740 00000000 00000001 40202ce6
3fff1650: 3ffe9488 00000001 00000000 00000000
3fff1660: 00000000 47010101 00000000 00000000
3fff1670: 00000000 00010101 3fff2ae4 0000000f
3fff1680: 00000002 3fff287c 0000001f 00000010
3fff1690: 00000000 3fff0000 3fff2b14 0000000f
3fff16a0: 00000005 3fff2b2c 0000000f 0000000a
3fff16b0: 0000000f 3fff2864 0000000f 00000000
3fff16c0: 3fff2b9c 0000001f 00000010 3fff2b74
3fff16d0: 0000001f 00000010 3fff2b5c 0000000f
3fff16e0: 0000000a 3fff2b44 0000000f 00000005
3fff16f0: 3fff2acc 0000000f 00000002 4020643e
3fff1700: 3ffe9284 3fff02a0 3fff02a0 3fff0768
3fff1710: 3fffdad0 00000000 3fff02a0 40202db8
3fff1720: 3fff2ab4 0000000f 0000000d 40206009
3fff1730: 3fff27dc 0000000f 0000000a 40206034
3fff1740: 3fff27c4 0000000f 00000005 40206080
3fff1750: 3fff0358 00000000 3fff0760 40202527
3fff1760: 3fffdad0 00000000 3fff0760 40203041
3fff1770: 3fffdad0 00000000 3fff0760 40206918
3fff1780: feefeffe feefeffe 3fff0770 40100718
<<<stack<<<
F�⸮⸮(⸮⸮D⸮⸮⸮⸮
MQTT <-> DMX (5176687)
Thu Feb 08 05:23:40 2018
Sketch size: 302400
Free size: 745472
MAC:
60:01:94:4E:FD:6F
Recalling saved channel state:
Switching 0 to 53
Switching 1 to 103
Switching 2 to 0
Switching 3 to 160
Switching 4 to 148
Switching 5 to 254
Switching 6 to 63
Switching 7 to 192
Switching 8 to 168
Switching 9 to 1
Switching 10 to 145
Switching 11 to 160
Switching 12 to 148
Switching 13 to 254
Switching 14 to 63
Switching 15 to 255
Switching 16 to 255
Switching 17 to 255
Switching 18 to 0
Switching 19 to 160
Switching 20 to 148
Switching 21 to 254
Switching 22 to 63
Switching 23 to 2
Switching 24 to 0
Switching 25 to 0
Switching 26 to 1
Switching 27 to 160
Switching 28 to 148
Switching 29 to 254
Switching 30 to 63
Switching 31 to 192
Switching 32 to 168
Switching 33 to 1
Switching 34 to 255
Switching 35 to 160
Switching 36 to 148
Switching 37 to 254
Switching 38 to 63
Switching 39 to 2
Switching 40 to 0
Switching 41 to 0
Switching 42 to 1
Switching 43 to 160
Switching 44 to 148
Switching 45 to 254
Switching 46 to 63
Switching 47 to 255
Switching 48 to 0
Switching 49 to 0
Switching 50 to 0
Switching 51 to 160
Switching 52 to 148
Switching 53 to 254
Switching 54 to 63
Switching 55 to 2
Switching 56 to 255
Switching 57 to 255
Switching 58 to 255
Switching 59 to 160
Checksum verification failed! Saved/Calculated: 98/126
Switching all channels to off
Switching 0 to 0
Switching 1 to 0
Switching 2 to 0
Switching 3 to 0
Switching 4 to 0
Switching 5 to 0
Switching 6 to 0
Switching 7 to 0
Switching 8 to 0
Switching 9 to 0
Switching 10 to 0
Switching 11 to 0
Switching 12 to 0
Switching 13 to 0
Switching 14 to 0
Switching 15 to 0
Switching 16 to 0
Switching 17 to 0
Switching 18 to 0
Switching 19 to 0
Switching 20 to 0
Switching 21 to 0
Switching 22 to 0
Switching 23 to 0
Switching 24 to 0
Switching 25 to 0
Switching 26 to 0
Switching 27 to 0
Switching 28 to 0
Switching 29 to 0
Switching 30 to 0
Switching 31 to 0
Switching 32 to 0
Switching 33 to 0
Switching 34 to 0
Switching 35 to 0
Switching 36 to 0
Switching 37 to 0
Switching 38 to 0
Switching 39 to 0
Switching 40 to 0
Switching 41 to 0
Switching 42 to 0
Switching 43 to 0
Switching 44 to 0
Switching 45 to 0
Switching 46 to 0
Switching 47 to 0
Switching 48 to 0
Switching 49 to 0
Switching 50 to 0
Switching 51 to 0
Switching 52 to 0
Switching 53 to 0
Switching 54 to 0
Switching 55 to 0
Switching 56 to 0
Switching 57 to 0
Switching 58 to 0
Switching 59 to 0
Applied pending changes to DMX
send MQTT: topic='DMX/1/state', message='0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0', retain=1
Setting up 4 switches
Starting WiFi
.....................................................................WiFi connected!
IP address:
192.168.1.145
Reinitializing MQTT connection

Exception (9):
epc1=0x40105050 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000

ctx: sys
sp: 3ffffd70 end: 3fffffb0 offset: 01a0

stack>>>
3fffff10: 3ffebfbe 3fff1fec 3fff2724 402339a9
3fffff20: 4010527c 0031c02a 3fff05e0 00000000
3fffff30: 3ffefc30 3fff05e0 0000001c 3fff256c
3fffff40: 00000000 0031b3f5 402011b4 0000000a
3fffff50: 3fff05e0 009f7f7e 60000600 00000014
3fffff60: 4021d948 3ffefc30 3fff216c 402022ee
3fffff70: 60000600 3fff216c 3ffeab48 4021d955
3fffff80: 4021d99a 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffefc50 3fffdad0 3fff0768 40206887
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<
⸮Rܢ1⸮⸮⸮j⸮
MQTT <-> DMX (5176687)
Thu Feb 08 05:23:40 2018
Sketch size: 302400
Free size: 745472
MAC:
60:01:94:4E:FD:6F
Recalling saved channel state:
Switching 0 to 53
Switching 1 to 103
Switching 2 to 0
Switching 3 to 160
Switching 4 to 148
Switching 5 to 254
Switching 6 to 63
Switching 7 to 192
Switching 8 to 168
Switching 9 to 1
Switching 10 to 145
Switching 11 to 160
Switching 12 to 148
Switching 13 to 254
Switching 14 to 63
Switching 15 to 255
Switching 16 to 255
Switching 17 to 255
Switching 18 to 0
Switching 19 to 160
Switching 20 to 148
Switching 21 to 254
Switching 22 to 63
Switching 23 to 2
Switching 24 to 0
Switching 25 to 0
Switching 26 to 1
Switching 27 to 160
Switching 28 to 148
Switching 29 to 254
Switching 30 to 63
Switching 31 to 192
Switching 32 to 168
Switching 33 to 1
Switching 34 to 255
Switching 35 to 160
Switching 36 to 148
Switching 37 to 254
Switching 38 to 63
Switching 39 to 2
Switching 40 to 0
Switching 41 to 0
Switching 42 to 1
Switching 43 to 160
Switching 44 to 148
Switching 45 to 254
Switching 46 to 63
Switching 47 to 255
Switching 48 to 0
Switching 49 to 0
Switching 50 to 0
Switching 51 to 160
Switching 52 to 148
Switching 53 to 254
Switching 54 to 63
Switching 55 to 2
Switching 56 to 255
Switching 57 to 255
Switching 58 to 255
Switching 59 to 160
Checksum verification failed! Saved/Calculated: 98/126
Switching all channels to off
Switching 0 to 0
Switching 1 to 0
Switching 2 to 0
Switching 3 to 0
Switching 4 to 0
Switching 5 to 0
Switching 6 to 0
Switching 7 to 0
Switching 8 to 0
Switching 9 to 0
Switching 10 to 0
Switching 11 to 0
Switching 12 to 0
Switching 13 to 0
Switching 14 to 0
Switching 15 to 0
Switching 16 to 0
Switching 17 to 0
Switching 18 to 0
Switching 19 to 0
Switching 20 to 0
Switching 21 to 0
Switching 22 to 0
Switching 23 to 0
Switching 24 to 0
Switching 25 to 0
Switching 26 to 0
Switching 27 to 0
Switching 28 to 0
Switching 29 to 0
Switching 30 to 0
Switching 31 to 0
Switching 32 to 0
Switching 33 to 0
Switching 34 to 0
Switching 35 to 0
Switching 36 to 0
Switching 37 to 0
Switching 38 to 0
Switching 39 to 0
Switching 40 to 0
Switching 41 to 0
Switching 42 to 0
Switching 43 to 0
Switching 44 to 0
Switching 45 to 0
Switching 46 to 0
Switching 47 to 0
Switching 48 to 0
Switching 49 to 0
Switching 50 to 0
Switching 51 to 0
Switching 52 to 0
Switching 53 to 0
Switching 54 to 0
Switching 55 to 0
Switching 56 to 0
Switching 57 to 0
Switching 58 to 0
Switching 59 to 0
Applied pending changes to DMX
send MQTT: topic='DMX/1/state', message='0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0', retain=1
Setting up 4 switches

DMX SONOFF MAX-485

J'éssaye de contrôler des lumières DMX via wifi à l'aide de sonoff, MAX-485 et prises DMX.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.