-
Gyro Support (Roll, Pitch, Yaw) MPU 9250
07/24/2021 at 14:06 • 0 commentsAdded Gyro Movement detection today: I added the support of the MPU-9250 breakout board today.
To ilustrate I added an export to MQTT/Mosquito as well.
Now the Lamp can detect Movements and interact with the user automatically.
This is quite useful on a bedside lamp. Especially it might be useful during nighttime.
Possibilities you might think of:
- Simple touch the lamp to enable it. No more need to search for the switch. Enable it with a low brightness if only touched anywhere
(full brightness only on the knob) - Earthquake detection
- turn it to a specific orientation to turn it on
- rotate the head it to a specific orientation to turn it off
Right now I am struggling with filters to keep the curves smooth on one side and be responsive on the other side.
The Roll Sensor is flickering a lot.
- Simple touch the lamp to enable it. No more need to search for the switch. Enable it with a low brightness if only touched anywhere
-
First Ping on the LORA TheThingsnetwork
07/18/2021 at 20:26 • 0 commentsI just sent out the first PING over the LORA WAN CHIP RFM95 to a local TheThingsNetwork Gateway that is more than 2km away!
This is a transmission on 868MHz. Impressive that this even works with the PCB Antenna that is covered insde the metal Lamp Head :-)
More Messages:
-
Air Quality Sensor sends Data to MQTT/Mosquitto
07/18/2021 at 17:59 • 0 commentsIntegrated more Sensor Values today:
This time i added the Air Quality Sensor.
Now the Bosch BME680 is publishing Data to MQTT.
Longer Monitoring Period: Reason for low CO2 Values: Nearby Window is open
-
NodeRed/Mosquitto Integration
07/17/2021 at 16:26 • 0 comments -
HW Bring UP
07/17/2021 at 08:56 • 0 commentsLet's start soldering and check if it is working:
To start soldering I first started to populate the small resistors and Diodes on the Top Layer. You might notice: I tried out some PCB art on the silk screen of the PCB.
After that I started to solder the Mikrocontroller:
And finally lets add The Lora Module and a Diode:
We can start programming the microcontroller now:-) I use this M5Stack Programmer and designed to PCB that you can plug and play on the pins on the far right side of the board (lapbeled with GD, G0, EN, RX,TX3V3)
et. Voila! : We got some light:
-
PCB Hardware has arrived
07/16/2021 at 19:46 • 0 commentsThe first PCB have arrived.
I Ordered my PCB at JLC PCB. You may compare differnt PCB suppliers here in this overview from Hackaday.
Please choose wisely you PCB material. Some PCB manufacturers still offer lead PCBs. They are easier to solder but bad for our environment.
I choose to solder my components on my own. If your Layout turns out wrong it is easier because you are not waisting so much money
Time for fitting it into the case.
YES: IT fits perfectly fine on the first Try!
No lets try to assemble the mounting holes to see how it looks with the PMMA Cover
Outcome: Fits perfectly, even if it doesn't look like here :-)
-
Layout of the PCB Board
07/16/2021 at 19:35 • 0 commentsAfter the Schematic has been finalized it is time for designing a PCB.
This part is in my opinion pure ART:
After some Hours I was quite happy with the Design:
Outer diameter of the board needs to be 94mm to fit nicely in the Housing of the Deklamp
An the Mounting boards have a distance of 85mm
Top View: (hidden inside the lamp head) Version 1:
Bottom View: Partly visible. (PCB Version 1)
I tried to lactae the LEDs equaly along the board. You might notice some space. This is due to Antenna Deisgns
-
Time for Schematic Design
07/16/2021 at 19:24 • 0 commentsSo fiannaly after all the component choosing it is the time for a schematic.
In the past I used KiCad in several other designs. Ist is easy to use and why not use it as well on this design?
In the past I was often searching on my schematics for connections. Thats why I choosed this time to draw logical blocks.
In total we got
- 36 RGB+White LEDs SK6812 or WS2812B (choose which is nicer for you)
- I²C Connector Interface for all kind of Air Quality Sensors
- a LoRa Communication Chip RFM95
- an ESP32 Wroom
- an EC11 Rotary Encoder with built in Switch
- 1 LED RGB for Illumination of the Rotary knob
- a low Dropout Voltage Regulator
- an programming interface
- one more interface for debugging or control even more Air Quality sensors e.g. Sensair S8 or an PM2.5 Sensor.
- Space for an Light Sensor
Schematic V2 with some minor improvements:
-
Knock Knock - User interface part two
07/16/2021 at 19:11 • 0 commentsI wa searching the other day for a different AIR Quality Sensor on Aliexpress. And Lucky me: I came across a different Sensor for the User Interface. Thsi should be an addtional sensor to the rotary knob
I was thinking if I could extend my user experience a little bit. I came across this MPU9250+BMP280 Breakout Board.
This enables the following features:
- Knocking Detection (User Action if you knock on the Lamp)
- Activate Lamp by rotation
- Deactivate Lamp be turning the head in any direction
And the good news again: Same pinout as my Air Quality Sensors that I choosed so far. So easy for stacking the sensors and quick tryouts during development.
-
UI Interface, User Controls
07/16/2021 at 19:08 • 0 commentsThe original Desk lamp that I bought only had a little Push Button.
This was too less to operate on/off, brightness, color and certain other features.
So I was thinking can we use something else simple and elegant:
In my mind came the rotary Knob from my stereo. What a Nice and elegent Aluminium knob that perfectly fits to the design of the lamp.
On Aliexpress I found a perfect one for my design: This Knob perfectly matches perfectly and is not too expensive