In this project we demonstrate BBC micro:bit how to connect it to WiFi and send a notification to a phone without writing a single line of code. The micro:bit comes with a microphone, among the other features. We are going to use it to detect loud sound e.g. clicking fingers and when a loud sound is detected we send an alert notification to our phone.
In order to connect and send the alert notification, we use the IOT Circket WiFi module. All we have to do with it is to attach batteries, configure it and our "IoT sound detector" is ready to communicate with our phone over MQTT or HTTP apis.
What is really cool is that both Circket and micro:bit can operate directly on batteries. We can easily create an advanced mobile device which you can place anywhere within WiFi range.
Everyone can realise this project from beginners to advanced engineers.
Micro:bit is a tiny computer which empowers anyone at all skill levels to create exciting electronics projects. It includes microphone, gyroscope, accelerometer, temperature sensor, light sensor and other features. In this example we are going to use the microphone to detect clicking fingers or any other high volume noise. Once the sound is detected we are going to:
Display the Heart icon on the LED display
Set the P0 pin to "1" for a short period of time (1 second) - to wake up Cricket WiFi moduleto send a notification to a phone
In this step we are going to connect all the components together with the following steps:
Connect micro:bit to the batteries
Connect Cricket to the batteries (we peel out the coat from the cables to connect Cricket on the same power source)
Connect micro:bit's P0 pin to Cricket's WAKE_UP pin [green cable]
A complete project assembly may look like this:
Step 3) Setup Pushsafer
Pushsafer, we learned, is one of the easiest and reliable internet service which provides multi-platform push notifications. There is some free allowance of notifications but we quickly ran out of it and had to purchase 1000 extra notifications for ~$1. It is very cheap for what it gives you back and it is super simple to set up: