Statusdisplay mit WS2812 ?

Begonnen von Edi77, 17 Oktober 2015, 13:10:34

Vorheriges Thema - Nächstes Thema

Edi77

Hallo,

Bald ist wieder Urlaubszeit der Himmel ist grau, und die Bastelzeit beginnt.

Ich würde mir gerne auch ein Statusdisplay wie z.B. http://forum.fhem.de/index.php/topic,28025.0.html oder das FS20 RGB-SA oder HomeMatic 104798 Statusanzeige

Mein erster Gedanke war ein Arduino Mega2560 mit RGB LEDs und via Firmata an FHEM anbinden.
Ein WS2812 wäre natürlich besser, da könnte dann ein Arduino Nano ausreichen, aber ich habe bis jetzt nichts gefunden wie ich für jede einzelne LED die Farbe definieren kann.
wifilight kann das ja leider auch nicht.

Hat jemand vielleicht noch eine bessere Idee oder Vorschlag?
Master FHEM 6 als VM auf ESX Ubuntu 20.04 LTS mit MAXCube/MAX!/FS20|TabletUI|Flightradar|Tasmota|TTN Lora|CCU3 HomematicIP|RPi mit GammaScout|MQTT EasyESP 8266|LuftdatenInfo|deCONZ HUEDev|probemon|Siemens Logo|P4D|3D PRINTER RAISE3D

fruit

#1
I was playing with something based on the same thread last winter but got distracted so it is still waiting to be finished - perhaps this year :)

There is a bit about my efforts on http:www.ply.me.uk/bits_and_pieces/statusdisplay.html and I even started a module which works but is incomplete

Edit:
I got all my bits out today, the basics all work but not tested very much at all - and I've added some documentation to the module once I remembered how it worked.
If anyone is interested I can post the sketch and module - no guarantees that it won't break! In fact it probably will ;)
Feel free to follow up in German if you prefer

SVLoneStar

Dieser Link ist bekannt, oder?
http://blog.moneybag.de/fhem-mit-led-statusanzeige-led-stripe-wd2812b-433-mhz-drahtlos-uebertragung/
Ich habe das mit einem Pro Micro und einem 433er SuperHET Empfänger nachgebaut; das Senden übernimmt ein 433er nanoCUL.


Sent from my iPhone using Tapatalk
FHEM 21222 auf Gigabyte NUC, CubieTruck & RasPis (Test)
CUL 868MHz, nanoCUL 868MHz, nanoCUL 433MHz, JeeLink Clone, JeeLink Classic, HM-CFG-USB2, Rademacher
Devices: FHT, FS20, KS300, MAX, IT, HMS100, LaCrosse, PCA301, Revolt, HomeMatic, ESA2000, UNIRoll, Sonos, Duofern, Tasmota, MySensors

fruit

I have just rewritten much of my module, not properly tested but seems OK with the testing I have done.

I'll add it here along with the sketch in case it is of use to anyone.

The description is a bit long so see attached html file or the pod section at the bottom of the file
Feel free to follow up in German if you prefer

Edi77

Hallo und DANKE @SVLoneStar

War nicht bekannt, sieht aber sehr interessant aus.
Habe aber das Problem das ich Gebäudetechnisch ehr auch LAN Anbindung setzen muss, da ich mit Funk und Reichweite Probleme habe.
Master FHEM 6 als VM auf ESX Ubuntu 20.04 LTS mit MAXCube/MAX!/FS20|TabletUI|Flightradar|Tasmota|TTN Lora|CCU3 HomematicIP|RPi mit GammaScout|MQTT EasyESP 8266|LuftdatenInfo|deCONZ HUEDev|probemon|Siemens Logo|P4D|3D PRINTER RAISE3D

BlackStone

@SVLoneStar geht das senden über den 433cul einach so oder muss das extra eingebunden werden.

@fruit Wireless and it is perfekt for me, but it is only serial (i think)so it is, not praktikabel for me.

SVLoneStar

Ich sende selbstdefinierte Intertechno-Codes. Zunächst hatte ich die Codes über einen separaten 433MHz-Sender geschickt, meine produktive FHEM-Instanz hatte diese Signale dann jedoch über einen 433 nanoCUL als IT-Geräte per autocreate angelegt...also geht das ohne weitere Einbindung des CUL. Der Code des IT-Device muss halt nur dem Code entsprechen, auf das der Empfänger (d.h. der Sketch im Arduino) reagieren soll.


Sent from my iPhone using Tapatalk
FHEM 21222 auf Gigabyte NUC, CubieTruck & RasPis (Test)
CUL 868MHz, nanoCUL 868MHz, nanoCUL 433MHz, JeeLink Clone, JeeLink Classic, HM-CFG-USB2, Rademacher
Devices: FHT, FS20, KS300, MAX, IT, HMS100, LaCrosse, PCA301, Revolt, HomeMatic, ESA2000, UNIRoll, Sonos, Duofern, Tasmota, MySensors

BlackStone

#7
ich glaube ich bin für mich auf eine fast passende Idee, gestoßen.

habe es erstmal mit einer einzelnen LED versucht und es klappt.
denn ich nutze sowieso schon einige Sensoren mit der mysensors lib. und habe einfach aus Jux und dollerei dort den Code für die relay Steuerung zerrissen und damit eine LED per fhem gesteuert.

die Relais werden normal mit
digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);

angesteuert.
also dieses gegen eine Switch case getauscht und siehe da es funzt. so kann dann innerhalb der case die Geschichte laufen die man für die jeweilige led brauch.

mal gugge wie ich mir das jetzt noch sauber rum Würfel, und ob auf diese weise evtl, noch eine farbwertübergabe möglich ist.

fruit

Zitat von: BlackStone am 30 Oktober 2015, 23:50:15
@fruit Wireless and it is perfekt for me, but it is only serial (i think)so it is, not praktikabel for me.
Yes, serial or USB

One day I may look at some other method
Feel free to follow up in German if you prefer

MarkusHiba

Zitat von: fruit am 24 Oktober 2015, 20:43:17
I have just rewritten much of my module, not properly tested but seems OK with the testing I have done.

I'll add it here along with the sketch in case it is of use to anyone.

The description is a bit long so see attached html file or the pod section at the bottom of the file

Hallo,

gibt es was neues dazu?

Ich habe die Dateien runtergeladen doch leider funktioniert nix, weder das Modul noch die ino Datei.

Ich wollte auch gern über Arduino und Serialport eine Statusanzeige betreiben.
Ich bin nicht so der Freund von Wlan

Grüße

MarkusHiba
Mit freundlichen Grüßen

MarkusHiba