When you are waiting for a very important letter to come, it’s really bothersome to go and check the postbox again and again. The problem gets worse when you are not at home and anxiously thinking if the letter arrived or not. Well, now IoT or Internet Of Things is your savior.
- Arduino UNO
- idIoTware shield
- USB cable (A to B)
- Esp 8266 – 01 programmed with ESP-link firmware
- One jumper
- One Postbox (You can make it yourself)
- External 9v 1A Power adapter
- Double sided sticky tape
- Arduino UNO code (Download it)
The concept is not complicated at all. The idIoTware Shield has a set of RGB LED and an LDR. The RGB LED always emits white light and it’s received by the LDR. As soon as a letter is dropped, there is an interruption in light. The change in light intensity is sensed by LDR and processed by Arduino. Finally, ESP 8266 connects to IFTTT network and sends an email to a saved email ID.
IFTTT: IFTTT is a free web-based service that allows users to create chains of simple conditional statements, called “applets”, which are triggered based on changes to other web services such as Gmail, Facebook, Instagram, and Pinterest. IFTTT is an abbreviation of “If This Then That”.
This can be explained using a simple analogy: “If the battery is empty then charge it”.
Watch this video for more information on IFTTT.
Simply place the idIoTware shield on Arduino UNO and Connect the esp8266(01) module to the ESP-01 header on the top right, such that the antenna is facing outside (See the image given below). It’s important to connect a jumper to CH_PD pin on the shield.
To make an IFTTT applet, go to IFTTT.com and make an account. Then, you need to make an applet as “If Maker then Gmail“. So, select Maker by searching and add your Maker channel (in URL field). Now, search for Gmail and select it. Define whom to and what to mail. Finish your applet, and you are all set.
Finally, upload the code to ArduinoUNO. Once the code is uploaded, place the Arduino with double sided sticky tape inside the postbox. Don’t forget to insulate the Arduino from metallic body of the postbox.
Power the Arduino from a 9V adapter and connect it to a serial monitor. Now post a letter in the postbox and you will see the message “New Letter!!” in the serial monitor. When you check your mail you will find a mail saying the same.
For a better understanding, watch the video: