ESP32 Cam - working!

I have seen that it looks like it can be done locally on the device:
https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/

Yes but that is not Esphome.

@daveyrb could you please share the config you used for this board? Thanks.

Sure this is it:

esphome:
  name: test_camera
  platform: ESP32
  board: m5stack-core-esp32

wifi:
  ssid: "redacted"
  password: "redacted"
  manual_ip:
    # Set this to the IP of the ESP
    static_ip: 192.168.0.226
    # Set this to the IP address of the router. Often ends with .1
    gateway: 192.168.0.1
    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.255.0

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

esp32_camera:
  external_clock:
    pin: GPIO27
    frequency: 20MHz
  i2c_pins:
    sda: GPIO25
    scl: GPIO23
  data_pins: [GPIO17, GPIO35, GPIO34, GPIO5, GPIO39, GPIO18, GPIO36, GPIO19]
  vsync_pin: GPIO22
  href_pin: GPIO26
  pixel_clock_pin: GPIO21
  reset_pin: GPIO15
  name: test_camera
  max_framerate: 8 fps
  idle_framerate: 0 fps
3 Likes

Fantastic - thank you!

An external antenna boosted the wifi signal to -26dB. This one Trade Me

1 Like

@nickrout
what is the difference between esp32cam and the ai tinker one? is pir motion sensor on either of them? and did you use esphome to set it up?

If it doesn’t have a pir, it shouldn’t be hard to add one. It’s an esp32 after all.

Not sure which modules you are asking me to compare. All esp32’s with a camera combo that I have seen consist of an esp32 and an ov2640 camera.

I am using esphome. I thought that was clear from posting in the esphome subforum.

you were going on about ai tinker hence why I asked because on my esp32cam there is no where written ai tinker…

Oh OK. Neither does mine, but it physically looks like an ai-thinker. @OttoWinter suggested using the ai-thinker setup, and that worked.

Often the aliexpress listings show the esp32 pin numbers that the ov2640 pins are connected to. These connections seem to be the main structural difference between various models.

As usual the aliexpress listings range from confusing to helpful to misleading. Good luck.

2 Likes

Just posted the issue on the ESPHome issue tracker.

Didn’t know that, Thanks @gijsje

please share me esphome configuration of this board. Thanks in advance!

What do you guys think about a battery powered esp32 camera, which would be awaken from a low-power mode via PIR sensor and then it would record for a predefined time? Door camera setup would come to mind as a use case.

2 Likes

I figured this same thing out today. I was getting like 20% signal 5 ft from the AP and 5% hardly even connecting and not able to get any images for 20 ft away. You don’t even have to move the 0 Ohm resistor, you can just bridge the other solder pads in the diamond next to the antenna connector with solder and it will enable the onboard antenna (you should undo this if you switch to a real antenna). Now getting 70% signal at 20 ft away with a wall in the way.
They should really have a jumper or something easier to select onboard vs external antenna, but I guess that’s what you get for $6.

That looks like an ai-thinker clone. Config is on the esphome pages.

1 Like

I flash esphome, now i can see in home assitant, could you give me link to view cam in http, i type IP of ESP32-cam but not image. Thanks in advance!

There isn’t an http address. The camera works via the esphome API with home assistant only.

1 Like

Thank you for quick reply!