Hey, what's up, guys? Akarsh here from CETech.
Today we are going to make an internet-connected camera which has wifi on board and is so small that it fits in a matchbox, hence can be placed for securing your valuables without anyone being suspicious.
I have used an ESP32 based ESP32-CAM module which can be programmed easily and there is no need for extra wiring as the camera module comes preconnected with the ESP32!
So let's get started! I have also made a video about building this project in detail, I recommend watching that for better insight and detail.Parts:
To get a better Wi-Fi range I added an antenna to the ESP32 module using the connector on the module which is again optional.
As a casing for the project, I used an old matchbox to show off its small size!
I would also recommend to get your PCB manufactured. You can order your PCBs from PCBWAY as they offer 10 PCBs for just $5. Check out their online Gerber viewer function. With reward points you can get free stuff from their gift shop.Connections and Soldering
1. As there is no micro USB port on the ESP32-CAM module hence we add an external USB port using a breakout module for powering the project easily.
2. So I connected the +5V and GND lines of both the modules as shown in the hand-drawn diagram.
3. That's it for the connections! Test by powering up the module and you'll see the white led flash for less than a second.
I used a matchbox and cut out holes for the camera and a slot for micro USB in the box using a paper cutter.
You can use any type of box or a 3D printed design or even you can use it without a casing and be hidden somewhere! Be creative while doing this.Download and Set Up the Arduino IDE
Download the Arduino IDE from here.
1. Install the Arduino IDE and open it.
2. Go to File > Preferences
3. Add https://dl.espressif.com/dl/package_esp32_index.json to the Additional Boards Manager URLs.
4. Go to Tools > Board > Boards Manager
5. Search for ESP32 and then install the board.
6. Restart the IDE.Coding the Module
Download the GitHub repository: https://github.com/akarsh98/arduino-esp32/tree/mas...
You need to connect the ESP32-CAM module with a USB to Serial as per the diagram is given and then connect the setup to your computer.
1. Open the sketch from GitHub in the Arduino IDE.
2. Navigate to Tools > Board. Select the appropriate board that you are using. ESP32 dev Module.
3. In partition select No OTA (large APP)
4. Select the correct comm. port by going to Tools > Port.
5. Connect the GPIO0 to GND and hit the reset button on the module.
6. Hit the upload button.
7. Disconnect the GPIO0 with the GND and hit the reset button.
8. When the tab says Done Uploading you can open the serial monitor to see the IP at which the camera will stream.Playing With the Camera
Open a web browser in any phone or computer and head over to the IP as shown by the serial monitor.
If the serial monitor is not accessible for some reason you can use Angry IP scanner to see the IP of the camera.
As soon as you enter the IP on your browser you will be able to see a webpage which has different options to configure the camera which you can use.
Enjoy securing your candies with this camera!