• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    arhi @A Former User
    last edited by arhi 7 Sept 2020, 22:27 9 Jul 2020, 22:25

    @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

    ? 1 Reply Last reply 9 Jul 2020, 22:32 Reply Quote 0
    • ?
      A Former User @arhi
      last edited by 9 Jul 2020, 22:32

      @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.

      undefined 1 Reply Last reply 9 Jul 2020, 22:36 Reply Quote 0
      • undefined
        arhi @A Former User
        last edited by 9 Jul 2020, 22:36

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

        ? 1 Reply Last reply 9 Jul 2020, 22:37 Reply Quote 0
        • ?
          A Former User @arhi
          last edited by 9 Jul 2020, 22:37

          @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.

          undefined 1 Reply Last reply 9 Jul 2020, 22:39 Reply Quote 0
          • undefined
            arhi @A Former User
            last edited by 9 Jul 2020, 22:39

            @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
            • undefined
              arhi @A Former User
              last edited by 15 Jul 2020, 11:35

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

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

              Looks like I need to write Ethernet library myself (modify existing one). They use "SPI" object and that's not available on esp32-cam, those pins are attached to the camera module. There should be HSPI available but for that I need to do a lot of search/replace + some initialization to use HSPI port on the esp .. we'll see .. should be simple but..

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by 15 Jul 2020, 11:44

                hmm, bummer, only tried it with the esp8266 eons ago.

                i think i've seen some nutjob implement ethernet with just a line driver and some magnetics
                https://www.youtube.com/watch?v=XKnyAYKP434

                undefined 1 Reply Last reply 15 Jul 2020, 12:03 Reply Quote 0
                • undefined
                  arhi @A Former User
                  last edited by arhi 15 Jul 2020, 12:03

                  @bearer interesting project but dunno if any of my switches support 10baseT and since this is for 8266 again need to rewrite it to fit esp32 .. I'll see how quickly I can fork the Ethernet library to make it use that HSPI that is supposedly available on esp32-cam (actually, first I'll just see if I can output anything on esp32-can via that hspi before I start editing that library).. we'll see .. W5500 is el cheapo, could be a good fit here.. and having both wifi and eth in a camera with sd card could be useful, even without sdcard..

                  I was hoping I will be able to find an open source camera out there for 20$ or under but 😞

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User
                    last edited by 15 Jul 2020, 12:07

                    I'd thunk it'd work with any 10/100/1000 switch, I'd be surprised if people are makings switches that can only do 100/1000.

                    Anyways ,yeah, I was a little lolwhat? when i saw that video the first time, gotta love clever people with too much time on their hands :')

                    undefined 1 Reply Last reply 15 Jul 2020, 12:53 Reply Quote 0
                    • undefined
                      arhi @A Former User
                      last edited by 15 Jul 2020, 12:53

                      @bearer 10b2 is completely different framing, the protocol is totally different from 100b2 and 1000b2. I know my small switches don't do 10b2 (learned that the hard way, had to find some old hub with 100b2 uplink channel to connect some old silicon graphics and sun machines some time ago), dunno about my big managed switches if they do .. anyhow not making that, I don't think it's worth it... will see if I can get this esp32-cam to work somehow with w5500 and if not moving away from that... still have not tried that hacked firmware for the itead camera, found some additional data on that might be useful we'll see, or I'll brick one (thats why I purchased 2 😄 )

                      undefined 1 Reply Last reply 15 Jul 2020, 15:39 Reply Quote 0
                      • undefined
                        arhi @arhi
                        last edited by 15 Jul 2020, 15:39

                        ha, after a lot of search and replace...

                        ets Jun 8 2016 00:22:57
                        rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
                        configsip: 0, SPIWP:0xee
                        clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                        mode:DIO, clock div:1
                        load:0x3fff0018,len:4
                        load:0x3fff001c,len:1216
                        ho 0 tail 12 room 4
                        load:0x40078000,len:9720
                        ho 0 tail 12 room 4
                        load:0x40080400,len:6352
                        entry 0x400806b8
                        Ethernet WebServer Example
                        server is at 192.168.89.11
                        new client
                        GET / HTTP/1.1
                        Host: 192.168.89.11
                        Connection: keep-alive
                        Cache-Control: max-age=0
                        Upgrade-Insecure-Requests: 1
                        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
                        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
                        Accept-Encoding: gzip, deflate
                        Accept-Language: en-US,en;q=0.9
                        DNT: 1

                        😄 ethernet working with W5500 on ESP32-CAM 😄 ... now to send image trough web somehow 😄

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          arhi
                          last edited by 16 Jul 2020, 15:54

                          yeah, it works. ESP32-CAM + W5500 streaming jpegs 😄

                          1 Reply Last reply Reply Quote 1
                          • undefined
                            arhi
                            last edited by 16 Jul 2020, 17:24

                            If anyone is crazy enough to need this 🙂
                            https://github.com/arhi/EthernetSPI2

                            1 Reply Last reply Reply Quote 1
                            25 out of 28
                            • First post
                              25/28
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA