fhem status display using Neopixel (WS2812B) LEDs Introduction IntroductionThis project was inspired by a post
in the fhem forum. Code and detailsSadly there is little detail given in that thread,
and the wiki page has not yet appeared however there is
basic code on github
and a couple of videos such as this one
online. As mentioned on my other fhem page, I am coding this on a
RaspberryPi using the Arduino IDE. It is obviously
slower than a desktop machine but I think the most
difficult thing to come to terms with is using a 15
inch monitor - that's the only spare I have at the
moment. I am adding a piezo buzzer, a 3-tone device I got
from Maplin's I
think. It has three extra wires in addition to the
standard power and ground. I have added the code for the buzzer whilst waiting for some reed relays to arrive, these are to reduce the load on the Arduino pins. The relays and associated bits have arrived so time
to test both code and circuit - and failure! Not a
major problem, simply that the relay pins are too short
to make contact with the breadboard conductors. Next step is to assemble the relay circuits on perfboard, make sure all is working and then think about an fhem module. AssemblyThe perfboard circuit is assembled now - and all working! FritzingFritzing is a great application for designing circuits on breadboards. Images can be created of finished designs of breadboards, schematics or even PCB layouts. For this project I had to create the SPST reed relay
as only a DPDT relay is included in the install. I am running a later version of Fritzing on the
RaspberryPi than is available on wheezy and it uses
the new parts editor. This requires specific layers
in the PCB SVG image and I was getting copper0/copper1
errors. I couldn't find much on these but the answer is
fairly simple once you know where to look. If that still doesn't make much sense, open the PCBViewGraphic_Template.svg file in a text editor. The copper layers are plain to see there - if you are feeling adventurous you may even be able to modify your new SVG in the text editor. Another tip: make sure you save from inkscape as plain SVG! Basic perfboard and schematic diagrams for the relay board. The built version is a little more compact than this image shows as some components can be assembled vertically... Basic breadboard and schematic diagrams for the Neopixels... ConstructionStill to do... Initially I was puzzled as the dimensions given in this file are different to those on the Adafruit site but checking the ones I have they are as per the drawing. I still intend to print off and compare just in case. (Incidentally the holes need to be about 4mm diameter). Current Consumption
I did a rough measure of the current consumption of
a combination of LEDs as shown above. UpdateI seem to have been rather sidetracked for much of
this year and haven't touched this project for many,
many months but I got all the bits out again
recently. I'm not sure that I'll ever actually put it all
together as originally planned - and the buzzer idea
has certainly lost its appeal, however it did all work
- and it all kept me busy for a while. I've tidied up the module code a bit and added some
documentation too - once I remembered, from all that
time ago, how it all worked! I have come to the conclusion that this is not
really what I need. It is too limited in requiring a
serial connection to fhem. I've tidied up these pages a bit - I hope I haven't broken too much! |
Last updated 11-12-2015 |
All trademarks referred to in this web site are the
properties of their respective owners. Trademarked
names appear throughout the content of this site.
Trademarks, and their respective owners, are not
systematically listed or marked in the text, but
nevertheless all trademarks are acknowledged. Any
trademarks or names being used are for editorial
purposes only, and to the benefit of the trademark
owner, with no intention of infringing upon that
trademark.
|