How to use the ESP32-CAM and MicroPython

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • Learn how to use the ESP32-CAM in MicroPython to use the onboard camera and connect to the network. Also, learn some simple dos and don'ts of using the device in MicroPython to help you get started. By the end of it, we can rerun scripts with the camera and WiFi all in Thonny which will give us a lot of power to code in MicroPython with this device!
    Support Content:
    www.buymeacoffee.com/mmshilleh
    Link to Medium Post:
    / how-to-use-esp32-cam-w...
    Link to Blog Post:
    shillehtek.com/blogs/news/how...
    Repo:
    github.com/lemariva/micropyth...
    Other Popular Shilleh ESP32 Tutorials:
    Create a Wireless Network with ESP32:
    • Creating a Wireless Ne...
    How to Connect MPU6050 to ESP32:
    • How to Connect MPU6050...
    How to Get Angle with ESP32 and MPU6050
    • Measure Angles Easily ...
    Enhance your projects with ShillehTek sensors and accessories:
    Website: shillehtek.com
    Amazon Store: www.amazon.com/stores/Shilleh...
    TIMESTAMPS
    00:00 Introduction
    00:10 Background
    01:20 Install Firmware
    05:17 Camera in MicroPython Demo
    08:40 Network and Pip Install Packages
  • Наука та технологія

КОМЕНТАРІ • 24

  • @mmshilleh
    @mmshilleh  8 місяців тому +1

    Consider donating if I saved you time! www.buymeacoffee.com/mmshilleh
    Also, a reminder an interactive version can be downloaded on Razzl -> share.razzl.com/hMLn

  • @mattkojetin8198
    @mattkojetin8198 8 місяців тому

    Thank you. Great content.

    • @mmshilleh
      @mmshilleh  8 місяців тому

      Your supportive comments are always appreciated buddy! Thanks

  • @OlegTkhor
    @OlegTkhor 4 місяці тому +1

    Have you tried to stream with esp 32 and micropython? Will it work smooth? Or stream will be to slow?

    • @mmshilleh
      @mmshilleh  4 місяці тому

      Yeah thats not possible! Its not fast enough sadly

  • @robdriessen7675
    @robdriessen7675 7 місяців тому +1

    interesting and timewise aligned with a plan to play around with a esp32-cam icm with a bunch of RPI Pico's. Regrettably, I cannot get your approach to work for me. All steps are fine (no errors, that is) but after loading the firmware, I cannot connct to the device: Thonny does see it, not by specified com-port or otherwise. Tried various options, combine connecting with pushing the IOO / RST buttons on the MB but to no avail. As I can use ESPTOOL to - for example - read the MAC of the device, the device is clearly "alive". Tried all three images provided. nb. I noted that the Micropython community has created a pull-request to add the ESP32-CAM to their range of supported devices; that will simplify getting access to Micropython. Thanks for your video; much appreciated !

    • @mmshilleh
      @mmshilleh  7 місяців тому

      Yes, I think on my friends Windows machine I could not get it to work sadly. Tried everything with no luck, sorry to disappoint everyone but didn't expect it to fall short on another bizarre operating system. Thanks for your comment buddy!

  • @232nate
    @232nate 7 місяців тому +1

    Why is the custom firmware needed? Can't this all be handled with Micropython.

    • @mmshilleh
      @mmshilleh  7 місяців тому

      This is MicroPython, not all versions of it can be uploaded to this controller!

    • @232nate
      @232nate 7 місяців тому

      I thought the version on Micropython would be the best version to use. Thank you for the reply

  • @anthonyrussano
    @anthonyrussano 8 місяців тому +1

    thank you. i have a bunch of these and I hate the arduino ide

    • @mmshilleh
      @mmshilleh  8 місяців тому

      Yes so do I honestly haha

  • @andresgaldamez3074
    @andresgaldamez3074 3 місяці тому +1

    Why is my image file saying it is empty? Is anyone else having this issue?

    • @mmshilleh
      @mmshilleh  3 місяці тому

      Not sure, could be hardware my friend

  • @ovmov3321
    @ovmov3321 3 місяці тому

    I made everything exactly as on the video
    but
    when I run the code I receive "OSError: Camera Init Failed"
    This is second esp32-cam, so the problem with device excluded
    what can be wrong?

    • @mmshilleh
      @mmshilleh  3 місяці тому

      Are you on a windows machine? Could be the issue lol

    • @ovmov3321
      @ovmov3321 3 місяці тому +1

      @@mmshilleh no no macos

    • @mmshilleh
      @mmshilleh  3 місяці тому

      @@ovmov3321 that is weird, are you sure you used the correct driver? There is more than one in the repo

    • @ovmov3321
      @ovmov3321 3 місяці тому

      @@mmshilleh 100000% and I tried several times each of them
      I struggling with it third day) I tried everything 😂

    • @ovmov3321
      @ovmov3321 3 місяці тому

      @@mmshilleh is it possible to contact with you directly? maybe you will find out what I'm missing?

  • @future_is_better
    @future_is_better 5 місяців тому +1

    how to use opencv in micropython

    • @mmshilleh
      @mmshilleh  5 місяців тому

      I wouldn't even try and do that not enough compute, you can barely get a camera to stream video on this thing. I would say that is not possible

    • @abhinavram7920
      @abhinavram7920 4 місяці тому

      @@mmshilleh So if video streaming is out of the question, I can still send the captured image to a lightwight image captioning model to figure out what's in it? Perhaps I could get to send a signal to capture more photos on demand...