These usually come with one of two addresses (0x27 and 0x3F), so if one doesn’t work, try the other. I’ve used the LCD display shown in Figure 5 in several of my projects and the $6 cost on Amazon makes them attractive. There are a lot of different small LCD displays that would work I chose the four-line by 20-character 2004 type display with the attached I 2C serial interface, making it easy to connect with its two-wire interface. The simplest method is to attach an LCD display to the ESP32-CAM which will display the IP address. What’s needed is a way for the ESP32-CAM to display its IP address each time it’s powered up. When he powers up the ESP32-CAM, his router will assign it a different IP address and he won’t know what it is unless he programs the ESP32-CAM and gets the new IP address from the serial monitor. He may power off the ESP32-CAM and while powered down another device may connect to his router and occupy that address. I can enter his SSID name and password and then show him how to enter the IP address his router assigns, but sooner rather than later that local IP address is going to change. Putting the ESP32-CAM in a small box and powering it with five volts just isn’t going to work for my neighbor. If things are not working, I suggest this Web page for troubleshooting hints: If a larger frame size is selected in Resolution, be prepared for slower frame rates. That takes an entirely different program. jpg image file to a Micro SD card you insert in the SD card socket on the ESP32-CAM. Note that the Get Still button at the bottom will simply freeze a video frame on the display. Now, you can explore how the various buttons will change your video. Scroll up to the top and you should see your live video. Scroll down to the bottom of the page and click on the Start Stream button. A page should appear with a set of selection buttons. Type the IP address into the URL bar of a Web browser and then hit Enter. Your local IP address will no doubt be different than mine. The needed IP address for connection is displayed. The five second delay gives you time to get the serial monitor running.Īfter a few seconds, you should see a message like the following ( Figure 3):įigure 3. Plug the SP2102 module back into the USB port to power the ESP32-CAM and then in the Tools menu, quickly run the serial monitor. When it finishes, unplug the SP2102 module from your USB port, then remove the jumper wire between pin GPIO0 and ground. Now you can compile and upload the program to the ESP32-CAM module. This will give you five seconds to get the serial monitor running (in the Tools menu) before it starts sending the local IP address you’ll need to view the video. You’ll need to replace the line of asterisks in ssid and password with the name of your wireless router and its password.Īt the top of the setup() routine, I suggest you insert a delay(5000) line. In the CameraWebServer program, comment out: Next, from the Tools menu, select Board and then ESP32 WROVER Module.įrom the Tools menu, select Partition Scheme and then Huge APP (3MB No OTA/1MEG SPIFFS). Once the ESP32 add-on is installed, go to File, then Examples, then ESP32, then Camera, and finally CameraWebServer. A very nice tutorial on how to do this can be found at. CP2102 connections for programming the ESP32-CAM.īefore you can program, you need to install the ESP32 add-on into your Arduino IDE. An additional patch cable is used to strap two of the ESP32-CAM pins together when programming. This requires four female-to-female patch cables between the pins of the CP2102 and the ESP32-CAM. Instead, you have to use a USB to TTL converter, like a CP2102. It doesn’t have a nice USB interface for use with the Graphical User Interface (GUI) of the Arduino IDE (integrated development environment). The first challenge is getting it programmed. While it’s an inexpensive way (less the $10) to produce a video signal and stream it to your Web browser through your in-house router, it’s more of a module for the technical person than plug-and-play. So, I began thinking about putting one in a small 3D printed box for him.Īs I thought about this project, some of the shortcomings of this module came to mind. He expressed an interest in a video camera in his entry way. While talking to a neighbor, I mentioned I was experimenting with the ESP32-CAM module ( Figure 1).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |