These things are all over aliexpress. This particular one is around US$10 and seems to be identical to the Ai-Thinker design.
These particular boards have no usb port attached (unlike many esp32 dev boards). Therefore to join it to your esphome computer you need a USB to Serial programmer. The best ones seem to have the CP2102 chip. Again there are plenty of places to buy these. They have four pins to connect to the ESP32-Cam board.
CP2102 ESP32-CAM
3v3 3v3
GND GND
RXD UOT
TXD UOR
Also you need to short GPIO0 to GND when doing the initial serial flash to put it in programming mode. Don’t forget to unshort it when restarting. Once we have done the initial USB flash, all future flashing can be done OTA, so make sure you include OTA in your esphome yaml file. Thanks to the author of this page for those wiring details: https://robotzero.one/esp32-cam-arduino-ide/
After that is all done, write a yaml file including the camera setup from here - I copied and pasted the AI-Thinker example and it worked perfectly. https://esphome.io/components/esp32_camera.html
After you have flashed and restarted (not forgetting to unshort GPOI0) you should get a device appearing in home assistant via Integrations. Once you add the new device, there will be a camera entity.
I have one also and got it to work but it is not stable, after a couple of hours it needs to be reset.
Which board did you select when setting it up under esphome? I chose esp-wrover-kit but I’m unsure if that is the correct one.
Depends on the bitrate and resolution. I have a multiple AP Ubiquiti setup one of the easier ways getting around wifi bandwidth is to have more APs spread out near the devices at low power so they do not overlap.
However you are correct that streaming is really hard on wifi.
However i cannot get it to flash, i presume the reset button should set it to flash mode, can anyone confirm or as anyone used one like this?
The board comes preprogrammed as an access point but you can only get live stream from the 192.168.4.1 address no config options, so can only have an adhoc connection.
I have that exact same board and just held the reset button while plugging it in that seemed to put it in flash mode.
I used a USB C to micro USB adaptor.
There are plenty of options about, eg this one with an OLED, a PIR sensor and two buttons, for about US$20, ie roughtly twice the price of the bare unit with the fairly un-useful SD card reader.
If anyone has got this particular board [TTGO-Camera] that Nick’s suggested to work I’d be grateful for seeing the ESPHome config you used. Flashing it with a USB cable from the ESPHome web manager interface is fine - no button pressing or anything else was needed, but the particular camera won’t correctly reply to the SCCB probe, and so fails to configure correctly. It happily does all the other things it should (talks to HA, syncs time, provides web server i/f etc).
I can’t determine if it’s the ov2640 camera itself that isn’t defined in the source perhps, or if it’s because the BME220 chip is not present (which seems unlikely) on the examples I have. The boards all worked OK on delivery with their supplied app software, so I don’t have any reason to suppose they are actually defective as such.
I had that originally and i couldn’t even get the epshome log to show it was sending images. I re-ordered them to be in numerical order and I was at least getthing the log showing that an image was sent, just nothing in HA.
I managed to get this working too without any issues with the AI thinker board. I can confirm you can add other sensors, have got a DHT 22 running along side too. I was thinking of possibly switching it for a PIR or something (accidentally got the APD 9330 instead of the 9600…).
This might be a silly question but is there a stream URL for the esp32cam? I couldn’t seem to find any documentation related to that anyhwere?
I’d be interested to know if the output from the camera successfully ties in with the new camera support in 0.91, for example streaming to a chromecast.
This is one of the reasons I was also looking for this!
Unfortunately attempting to cast it brings up “Failed to call service camera/play_stream. camera.esp32cam does not support play stream service”. Also there is nothing in config relating to esp32cam that I can tack the necessary stream_source onto.
Im running Hass.io on a raspb pi, and was hoping I would be able to process the stream for motion or light intensity but can’t find access to it in any way!?