![]() There’s also some rudimentary face recognition, but we found this to be quite unreliable. The fact that it outputs data in a standard format, and so works well with open-source IoT hubs, is a bonus. You can get streaming output at up to 1284×1024 pixels (we got a frame rate of about 6 fps at this size, and faster at smaller sizes). ![]() Press ‘Start stream’ to see the output of the camera.įor a cheap IP webcam, this works well if you’re happy using the Arduino IDE to upload credentials. If you point a web browser to that URL, you’ll see the camera control page. In the serial monitor, you’ll see a bit of debug code followed by something like: Open the serial monitor in the Arduino IDE, set the baud rate to 115200 (bottom-right corner), and press the reset button on the ESP32-CAM. You can now unplug the IO0 to GND connection but leave everything else connected for now. There’ll be a message in the black box at the bottom of the screen saying that the upload was successful (or not). Press the upload button (the arrow icon) and – after a short wait – your code should be on your board. With that setup,you can plug your USB to UART adapter into your computer’s USB port, and now you should be able to select a Port from the Tools menu in the Arduino IDE. Also, you’ll need to connect IO0 on the ESP32-CAM and GND – this puts the board into flashing mode, and we’ll remove this once we’ve programmed the board. You’ll need four connections between the UART adapter and the ESP32 Camera: 5 V (this may be labelled VUSB) to 5 V, GND to GND, TX on the USB adapter to U0R on the ESP32-CAM, and RX on the adapter to U0T on the ESP32-CAM. We used a Particle Debugger because we happened to have one with us, but this is overkill for this project. Any USB to UART adapter should work, and they are available for a few pounds. You may notice that there’s no USB port on this board, so you’ll need a USB to serial adapter to program it. That’s the software side of things set up for this board, so let’s now take a look at the hardware. You’ll also need to set the Partition Scheme to Huge App and the Upload Speed to 115200 (these are in the Tools menu). Then delete the // at the start of this line to enable it.įinally, you’ll need to enter your WiFi details in the following lines: First, add ‘//’ to the start of the following line to comment it out. You’ll need to make a few changes to this sketch. This is in Files > Examples > ESP32 > Camera > CameraWebServer. Once you’ve selected this, you should find the web server example sketch, which is a great test to make sure everything’s connected properly. Instead, we used the definition for another, similar board: the ESP32 Wrover Module. However, we weren’t able to program the board using this. In that section, you should see an entry for AI Thinker ” ESP32-CAM. In the Tools > Boards section, you should now have an ESP32 Arduino section. To install the ESP32 boards, go to File > Preferences and add ‘ ’ to the Additional Board Manager URLs box – this is a comma-separated list, so add a comma before it if you already have any URLs in the box. There are a few ways of programming the ESP32-CAM, but we’re most familiar with Let’s take a look at what it takes to get the board up and running. We’re not sure why they’re listed using this name and not the current microSD, but you can use microSD cards in this port (though you will have to add support to them in your software). This is a little odd as this is the original name for what has now become microSD. The memory card slot is listed as ‘TF’ (which stands for TransFlash) on every spec sheet we’ve seen. The ESP32 has plenty of processing power, with two 120MHz 32-bit processing cores. In principle, this is a pretty beefy unit. Also on the board is a memory card slot and a camera connector that can take an OV2640 or OV7670 camera module (the former was included in the price of our board). The board is based on an ESP32 module, which is a programmable microcontroller with built-in WiFi and Bluetooth, with an additional 4MB of external RAM. Although there’s no specific mounting for the camera, it sits nicely on top of the memory card slot, so with a drop of glue or tape, you can secure it easily. The flex cable from the camera slots into the main board. The main board (which is an ESP32 module mounted on a larger board) and a separate camera module. We ordered one for £6.66 (including delivery to the UK) from YX Electronic Components on AliExpress. When we first heard about the ESP32-CAM from AI-Thinker, we had to find out if we had such a product for our maker toolbox. A cheap, hackable, WiFi-enabled camera is a holy grail for makers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |