Some progress on this board project. Hopefully the images make what I was describing earlier clearer.
Now onto programming if for capture all the sensor data.
Some progress on this board project. Hopefully the images make what I was describing earlier clearer.
Now onto programming if for capture all the sensor data.
Nice enclosure!, I'm going to be using the SHT21 sensor as well in a custom board project. Are you finding it works well inside the enclosure even for humidity sensing?
https://github.com/destos/night-light
dotstar branch has my most current layout.
@hek When I increase it there is still the same lack of neopixel activity between messages. I put some debugger print statements around my interval functions, and it looks like calling gw.send isn't asynchronous and halts the execution until the message is sent preventing anything else from updating. Including the Neopixels and my brightness tweening.
Thanks again for your help and project.
I have a little night light project I'm working on that uses a pro mini, of which I had a working prototype running with the Neopixels sans MySensor.h. Today I added the NRF transceiver and libraries + configured the sketch for my sensors. Looking at the serial terminal of my gateway I see that data is coming in from the night light sensors. However the Neopixels no longer start up right away and when they do show, do not update rapidly like before. Eventually they stop working all together.
Did I run out of memory for managing the state of my Neopixels or is there something else going on where MySensors would be blocking the loop?
github library of my current code:
https://github.com/destos/night_light
@ServiceXp I was going to 3D print a small cap that fits around the boards when they are attached to the charger brick. It would probably fit the design esthetics of the existing charger brick and have a section for making sure the lights are visible.
The last few weeks I've been working on my first Eagle and My Sensors project.
Essentially I wanted a compact package that I could plug in around the house to use as a nightlight/house status indicator and generic room sensor.
https://raw.githubusercontent.com/destos/night-light/master/board_snapshot.png
To do that I'm going to be piggy backing on apple's charger brick which is about 1 inch square as a power source and PCB base. The PCB once populated and tested is broken apart at the vias and taped/soldered together at the via junctions, essentially wrapping the power brick.
I've combined a few packages I have breakout boards for and have been experimenting with.
VCNL4001 - Proximity/Luminosity ( night light mode switching and room lighting sensor )
SHT21 - Temp/Humidity
INA219 - Current sensor to detect usage of output USB port. Could be used to detect when a phone is done charging and indicate that to the owner via lights or gateway messaging.
**NRF2401 **- for communication
WS2812B - addressable LEDs for night light and indicators/alerts
Thinking about adding a buzzer or speaker of some sort as a separate alert mechanism.
Current'y I'm still laying out traces and components on the board but should have that done soonish. A lot still needs to be done to make the board valid for production.
Any help or advice is appreciated, the board files are located on github.
I'm trying to wire up unused pins to headers, but due to the size it's been difficult.
If there is any interest in this form factor I probably would try my hand at having some boards run and populated. Due to the size of many of the components a kit would probably be hard to assemble, but not out of the question.