Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Cheap WiFi Webcam: ESP32 + OV2640 camera

    Scheduled Pinned Locked Moved
    Duet Web Control
    10
    28
    6.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • frank26080115undefined
      frank26080115
      last edited by frank26080115

      I got as small board from Amazon that was a ESP32 with a OV2640 camera integrated, and has a USB-C port for power and flashing, cost about $20 on Prime 1-day. Apparently the same setup can be obtained for under $10 if you order from China (eBay/AliExpress/etc)

      0_1555127277236_ESP32-Camera-Board-Battery-Support[1].jpg

      The software setup was pretty easy, I've worked with Espressif chips before so it was extra easy for me.

      • install Arduino
      • install the Espressif toolchain either by using the Arduino board manager or by using a few git commands (instructions from Espressif's github)
      • install CP210X drivers
      • downloading the code from https://github.com/geeksville/Micro-RTSP
      • put that code as a library in the Arduino libraries folder

      EDIT: uploaded example of sketch folder, showing where the sketch and libraries are located, change contents inside wifikeys.h with SSID and password https://github.com/frank26080115/HephaestusConfig/blob/master/other/esp32cam_sketchbook.zip

      • put the example code in a sketch folder
      • setup your own WiFi network credentials in the example sketch code
      • hit compile and hit upload (selected board target is M5Stack-Core-ESP32
      • check your router to find its IP address
      • go to http://x.x.x.x/ to view your video stream, http://x.x.x.x/jpg for a static image
      • setup DWC to load http://x.x.x.x/ or http://x.x.x.x/jpg , if you choose the live stream, you need to check the "stream" checkbox

      then it looks like...

      0_1555127208994_dwc_webcam_print.JPG

      (uh... can somebody please fix the sizing of the dialog when the image is rotated? thanks)

      cheaper and less complicated than a Raspberry Pi, cheaper than really any WiFi camera out there that DWC would support. horrible camera though...

      1 Reply Last reply Reply Quote 2
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Not bad.

        I'd probably still go with a Pi zero W with camera module. 8MP camera is quite good and as easy as flashing MotionOS to the card. Cost is nearly double though depending how hard you hunt.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • DennisHallundefined
          DennisHall
          last edited by

          I have a couple of AruCam 8MPx cameras and their associated ArduCam boards I was using for my previous printers. I really love the ArduCam systems because they just work out of box. I had setup my router with dedicated IPs for each as well as for my many other Arduino YUNs so I've got WiFi for pretty much everything, including powering on the printers.

          Just some fun stuff I did, but definitely learned alot in the process and - yup cameras on the printers are a great thing. Gives me huge piece of mind.

          With your idea, though, I like it alot since you could mount it on the edge of the bed being so small.
          Are you going to make a bed mount for the camera or leave it on the chassis (I think that is where you have it now)?

          1 Reply Last reply Reply Quote 0
          • XTLundefined
            XTL
            last edited by

            I've also considered getting an esp cam. One of the top reasons being that it's basically just a controller and powering it on and off randomly should not be much of a worry the way it is with the more of a computer class RPi type boards.

            1 Reply Last reply Reply Quote 0
            • frank26080115undefined
              frank26080115
              last edited by

              @DennisHall

              My camera is only 2MP so it'll suck at really showing me how good a layer is. At most it will be used to detect spaghetti prints while I am away. With that in mind, it's more convenient for me to mount it on the top front corner of my printer looking downwards. If I wanted a good timelapse, I actually have a clip on GoPro mount that has a flexible arm.

              @XTL

              You'll be happy to know that the ESP cam connects insanely fast. The source code I linked only supports one WiFi access point, but it should be trivial to support multiple by doing a scan and checking against a list.

              But obviously if your Duet and ESP are not on the same network then you might not get the image.

              I actually recently got a portable travel router that can extend a network but under its own name, it also doubles as a network drive, and it has a switch on the side that's configured to turn ON/OFF my VPN, cost about $60 and runs off USB 5V power. It's nice to have when you are doing IoT stuff.

              1 Reply Last reply Reply Quote 1
              • frank26080115undefined
                frank26080115
                last edited by

                I spent the day adding a USB port panel to my printer, and mounted my camera using two pieces of plastic and a section of flexible coolant hose

                1_1555298339834_20190414_191459 (Large).jpg 0_1555298339833_20190414_191350 (Large).jpg 2_1555298339834_20190414_191513 (Large).jpg

                1 Reply Last reply Reply Quote 1
                • appjawsundefined
                  appjaws
                  last edited by

                  Just ordered an ESP32 + camera.
                  Has anyone got a printable case that could be mounted on V profile?

                  appjaws - Core XYUV Duet Ethernet Duex5
                  firmware 3.5.0-rc.4 Web Interface 3.5.0-rc.4
                  Ormerod 1-converted to laser engraver, Duet wifi
                  OpenSCAD version 2024.03.18
                  Simplify3D 5.1.2

                  1 Reply Last reply Reply Quote 1
                  • zaptaundefined
                    zapta
                    last edited by

                    @frank26080115 said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                    cost about $20 on Prime 1-day

                    Frank, can you post an amazon link? I see there many similar cameras and would like to make sure its exactly the same as yours.

                    Also, do you see still images or actual video?

                    frank26080115undefined 1 Reply Last reply Reply Quote 0
                    • frank26080115undefined
                      frank26080115 @zapta
                      last edited by

                      @zapta said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                      Frank, can you post an amazon link? I see there many similar cameras and would like to make sure its exactly the same as yours.

                      Also, do you see still images or actual video?

                      https://smile.amazon.com/gp/product/B07DVD4J7N/

                      both still images and actual video. http://1.2.3.4/ for video, http://1.2.3.4/jpg for still image

                      1 Reply Last reply Reply Quote 0
                      • zaptaundefined
                        zapta
                        last edited by

                        Thanks Frank. I will give it a try. I also have a Wize V2 on order. Will see what's inside. Hopefully can put the relevant parts in a smaller case.

                        One of the reviews of the ESP32/OV2640 says that the video is limited to 800x600 by the ESP32's speed. Is it so?

                        (I don't expect to evaluate layer quality from the video, just to verify that things are still going well more or less)

                        1 Reply Last reply Reply Quote 0
                        • appjawsundefined
                          appjaws
                          last edited by

                          appjaws 11 May 2019, 14:50

                          I have installed a M5Cam as per your instructions but the video is upside down.

                          I'm sure there is a way to rotate the video but I haven't been able to find an answer.

                          I have my camera the same way up as yours Can you help please?

                          kind regards

                          appjaws - Core XYUV Duet Ethernet Duex5
                          firmware 3.5.0-rc.4 Web Interface 3.5.0-rc.4
                          Ormerod 1-converted to laser engraver, Duet wifi
                          OpenSCAD version 2024.03.18
                          Simplify3D 5.1.2

                          1 Reply Last reply Reply Quote 0
                          • BonniCaseundefined
                            BonniCase
                            last edited by

                            Hi...this works good but not always. I want to use mine as a timelapse camera and have been looking into extreme low light (starlight ideally)
                            and was hoping several second exposures would be possible, I came to the conclusion I needed that FREX pin broken out.
                            Came to the conclusion that this is probably not the best sensor for this funtionality.

                            1 Reply Last reply Reply Quote 0
                            • jensen3500undefined
                              jensen3500
                              last edited by

                              I tried to use the example from https://github.com/frank26080115/HephaestusConfig/blob/master/other/esp32cam_sketchbook.zip but when I compile I get an error. Has someone the same problem?

                              1 Reply Last reply Reply Quote 0
                              • arhiundefined
                                arhi
                                last edited by

                                esp32-cam is ~4$ in PRC with free delivery

                                I'm looking for the cheapest wired solution (I need ~20 of them) and cheapest I could find is itead camera based on GOKE GK7102s chip. No full open source firmware but there are some hacks available... I think I'll be going with rpi3b+ and rpi camera .. waiting for quote for 20 of them to see if it's going to break my budget or not but after few months of research I think this is going to be the best option 😞

                                1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User
                                  last edited by

                                  @arhi said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                                  cheapest wired solution

                                  does esp32 + enc26j80 (from memory) fit the bill? or even esp with SLIP ?

                                  arhiundefined 2 Replies Last reply Reply Quote 0
                                  • arhiundefined
                                    arhi @A Former User
                                    last edited by arhi

                                    @bearer said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                                    @arhi said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                                    cheapest wired solution

                                    does esp32 + enc26j80 (from memory) fit the bill? or even esp with SLIP ?

                                    dunno what's SLIP ?

                                    I'm testing ESP32-CAM with ENC26J80 but having some issues getting it work for (for now)

                                    trying to find solution that's good & not too expensive... I had very high hopes for itead camera as most of their stuff is open source or if not open sourced by them open source by "some crazy dude on github" 😄 but .. no 😞 .. (still not gave up on them, testing the latest hack I found trying to rebuild the whole linux to put mine there ... maybe there is a way to have everything custom except blob for camera but that I can deal with, major problem I have is I once already got my lan intruded trough PRC camera that I could not update - that's why I wanna go wired only we'll see)

                                    difference between rpi1 and rpi3 in price are minor while huge in performance so with rpi3 I can then offload a whole bunch of stuff from zoneminder to rpi.. and I can use all those rpi's in network for bunch of other stuff I normally use rpi's so the camera's can also be a cluster nodes 😄 .. so money well spent ..

                                    we'll see if I manage to get esp32-cam to work with enc that's 7$ total for the whole device, that's cheaper than the power supply for the pi 😄

                                    what's that slip thing?

                                    p.s. I have also W5500 here that I will test if I give up on ENC

                                    A Former User? 1 Reply Last reply Reply Quote 0
                                    • A Former User?
                                      A Former User @arhi
                                      last edited by

                                      @arhi said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                                      dunno what's SLIP

                                      modem without the modem bit 😉 serial 1/3rd down the page https://www.tldp.org/HOWTO/NET3-4-HOWTO-7.html

                                      I've had success with the enc28j60 for both esp and (antique) pi's but the speed is in the low hundreds kb/s range.

                                      arhiundefined 1 Reply Last reply Reply Quote 0
                                      • arhiundefined
                                        arhi @A Former User
                                        last edited by

                                        @bearer that's kinda slow, I'd like to have a video stream worth watching 😄

                                        A Former User? 1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @arhi
                                          last edited by

                                          @arhi said in Cheap WiFi Webcam: ESP32 + OV2640 camera:

                                          @bearer that's kinda slow, I'd like to have a video stream worth watching 😄

                                          it is slow, but the resolution of the espcam isn't something to write home about either, so might work - both options.

                                          arhiundefined 1 Reply Last reply Reply Quote 0
                                          • arhiundefined
                                            arhi @A Former User
                                            last edited by

                                            @bearer enc work is under way so I'll try to get it to work, also w5500 (I think that one is used on duet) so we'll see how it will behave

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA