Software apps and online services
I went to the bathroom yesterday night and I couldn't find the light switch. After I found it I was blinded by the strong light bulb that I have there. So I decided that I will make a more comfortable solution.
I made smart motion-controlled night lamp with BigClown and Node-RED.
Now I just walk into my bathroom and lights are on. I can adjust the color and brightness of the light so it is not as aggressive as a normal light bulb. It triggers after a specific hour that I can change in Node-RED or Blynk any time.
- Download BigClown Playground.
- You can see documentation page on how to flash the firmware with BigClown Playground.
- You will need the bcf-radio-night-lamp firmware for this project.
You need to pair the Core module with the Radio dongle that you are using, follow the instructions below to see how it is done.
The same thing will go if you are using a Raspberry Pi as a server, just access the Raspberry through the IP address instead of the Playground
- Connect your USB Radio Dongle to your computer.
- Open BigClown Playground
- Click Start Pairing the LED on the dongle should start blinking
- Connect the device that you want to pair into your computer or insert the batteries.
- Wait for the device to appear in the table
- It should add the device with the Alias: night-lamp:0
- Click Stop Pairing
After you did all this you can unplug the device from the computer and insert the batteries, it will run on them without a problem. Next steps will be done on the computer, so you can leave the device and focus on the Playground.
Open Node-RED in the Playground or Raspberry Pi and import this function in the Menu -> Import -> Clipboard. Do not forget to hit "Deploy" in the top right corner to apply the changes.
This flow is all set up for complete control of Night Lamp project. And ready for Blynk use. And you don't have to worry about the power outage, it saves all needed variables.
This project is ready for Blynk integration. How to set up blynk with your BigClown Playground is described the Attachements. Start from step 2 and in step 4 scan QR code that is shown below.
Everything in Blynk project is connected to Dashboard in BigClown Playground so you can control it from both applications without any problems.
You can set brightness, color and the time for how long it will stay up after the last movement was registered by the device. Also you can set when it will start registering movements and when it stops.
You can take this project and use it at more places so you won't have to bother with any light switches at night, it will turn on and off automatically.
If you have any questions, feel free to ask in the comments.
- Visit BigClown page on hackster.io for more interesting projects or go directly to their website
- Go to BigClown documentation to learn more about their modules and other possibilities of the platform.
- Try more firmware from BigClown Playground or write your own, it is easy to start.
- Because everything is Open source you can get all firmware on Git Hub, get some inspiration and try to make your own applications.
- Get your own BigClown Hub to replace your computer in this project so you have always access to your applications.
- Check out more applications that can be used with BigClown in Integrations section.