ESP32 cam - Capture and send image over esp-now

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024

ความคิดเห็น • 128

  • @Johan-bb4sy
    @Johan-bb4sy ปีที่แล้ว +1

    impressive, doing this with ESP now

    • @talofer99
      @talofer99  ปีที่แล้ว +1

      Thank you very much :)

  • @Parahooners
    @Parahooners ปีที่แล้ว +2

    Awesome project ❤ going to try and make a small pocket camera for a paramotor to see the remaining fuel in flight.
    Thanks for sharing and posting a great tutorial

    • @talofer99
      @talofer99  ปีที่แล้ว

      Hi, first thank you very much for your kind words :)
      I finally managed to get an image from the camera directly to the screen, I'm just lacking some time to make a video on it.
      so if you want to make one with just one board .... I hope to make a video on it soon :)

  • @scottwood1143
    @scottwood1143 2 ปีที่แล้ว +1

    Nice work and clear presentation- thanks!

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much :)

  • @ismailouafi7384
    @ismailouafi7384 2 ปีที่แล้ว +1

    Nice Work , you helped me a lot in my project !!!! .

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much
      Glad to hear that!
      What are you building ?

  • @smokeysky
    @smokeysky 2 ปีที่แล้ว +1

    I see this video is pretty new :D
    I'm going to mess around with this to get a picture on my Lilygo T-watch 2020 V1 from one of those esp cams.
    Thanks!

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      Sounds cool, I never used one of thus, I thought of ordering one.
      I'm working on a new video, showing streaming mjpeg and finding the stream on the local network. just been busy, so it takes me time to get it done :)

    • @smokeysky
      @smokeysky 2 ปีที่แล้ว +1

      @@talofer99 Id like to see that!
      I ended up using th-cam.com/video/aIxaR6legnw/w-d-xo.html for a live video stream.
      Only downside is that it uses the watch as an access point, would be nice to just find it on a general network ^.^
      is also gonna be my next project xD

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      @@smokeysky cool, I was guessing some one did something like that, I wonder how it's done will look into the code there.
      I still did not find the time (super busy) to make the video - the camera is on the table for over 3 weeks now :)

  • @zaighummohd6018
    @zaighummohd6018 ปีที่แล้ว +2

    is it possible to send picture via ble/ wifi to esp32??

    • @talofer99
      @talofer99  ปีที่แล้ว

      esp-now is using the wifi.... but in close network.
      It can be done over wifi, the camera library has an example of making the image available over http.
      It can be done over BLE as well, it will probably be the same speed as esp-now
      I done it also via UART but it was way too slow.

  • @DesignsDigitalz
    @DesignsDigitalz 2 ปีที่แล้ว +1

    Awesome example, very useful :)

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much.

  • @Ibiky_Stern
    @Ibiky_Stern ปีที่แล้ว +1

    If add a speaker, it will be nice door bell :3 ty for video

    • @talofer99
      @talofer99  ปีที่แล้ว +1

      Thank you.
      Its an interesting Idea, I already got them both working one the same board ... so can stream the image to the screen and make a door bell will be super cool :)

    • @Ibiky_Stern
      @Ibiky_Stern ปีที่แล้ว +1

      @@talofer99 i would like to see the result, and make it ^^ would be supercool ))

  • @ivanz9324
    @ivanz9324 9 หลายเดือนก่อน +1

    So, looks like ESP-NOW protocol has not enough transfer speed for streaming video from ESP32 cam, right?

    • @talofer99
      @talofer99  9 หลายเดือนก่อน

      I agree a d its not really the speed as the limitation on the package size.

  • @djohnson4523
    @djohnson4523 8 หลายเดือนก่อน +2

    I love the ESP32-CAM. I am researching how to connect ESP32-CAMs via wifi or ESPNOW such that several cameras can capture an image and transmit to a central ESP32-CAM so that it can save the photo to the SD card. This would give a central location to collect photos from an area. Like a animal refuge area, several trail cams collecting images and sending to a single SD card. Is that a project you might take on for a video?

    • @talofer99
      @talofer99  8 หลายเดือนก่อน

      I done part of it in this video
      th-cam.com/video/wmH6TewY3YQ/w-d-xo.html
      All that is left is to save it.

  • @zaqwsx28
    @zaqwsx28 2 ปีที่แล้ว +1

    This is great. I'm trying to save the images on the SD-card of the receiver. Instead of using the SD-card as a buffer I want to use SPIFFS.

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      I was not able to get the spiff working on the esp32-cam.
      If you do get it to work let me know.

  • @kabiragarwal1365
    @kabiragarwal1365 2 ปีที่แล้ว +1

    Awesome project I subscribed. I really want to make a system in which the images captured by the esp32 cam will be transferred to a separate esp32 board and then shown on a screen. but it should be a wired circuit so that it could also work without wifi. please make a video on it.

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much :)
      I tried it and you can see it in the end of the video - its possible, but very slow.

    • @kabiragarwal1365
      @kabiragarwal1365 2 ปีที่แล้ว +1

      @@talofer99 I have no problem with the speed but can you make a separate video in which you make it step by step because I am a beginner. It would really help a lot 🙂

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      Sound like an interesting idea.

    • @kabiragarwal1365
      @kabiragarwal1365 2 ปีที่แล้ว +1

      @@talofer99 👍👍please try you are awesome 🚀🚀

  • @rw4833
    @rw4833 ปีที่แล้ว +1

    Wow, this project is super cool! Will try this out soon. Btw just a quick question - approximately what was the maximum size of the image you were able to transmit? Would it be able to handle say 200-300 KB images? Thanks again for this interesting project.

    • @talofer99
      @talofer99  ปีที่แล้ว +3

      Thank you very much :)
      The espnow transmit limit is 250 Bytes, place some CRC on top and part number I
      used 240 Bytes for the actual image data.
      So in order to transmit 240K (to make it easy) you will need a 1K packages ....so it's doable - not practical.
      I got on my table the setup with the display connected to the esp32 camera board - which took me some time to figure out - so it steams the camera to the screen.
      got to find time to make a video on it as well.

    • @rw4833
      @rw4833 ปีที่แล้ว +1

      @@talofer99 cool, thanks for clarifying that. I'll give it a try and see how it goes. The boards will be pretty close to each other. Not sure if that helps with reliable transmission. Another option would be bluetooth but I won't bet on reliability of bluetooth on cheap devices though.
      Even a wired connection to send the pictures across to another ESP32 will be interesting :)

    • @talofer99
      @talofer99  ปีที่แล้ว +2

      Sorry for the late reply.
      I did try it with Serial, not sure id I mentioned it in the video, and it was slower .
      This is not surprising since the data rate of transfer is 2.4ghz .... so even if you get half the speed, its way faster then UART.
      And I would go with BLE and not Classic Bluetooth, and I think it might work, I used to upload code using BT few years back, and no issues.

    • @rw4833
      @rw4833 ปีที่แล้ว +1

      @@talofer99 Oh ok cool! I'll give it a try with classic BT. I'll just need to check how reliably it can connect, send every time. I remember I had once read a post where someone was able to upload code to esp32 at 922190bps. Again this can only be confirmed once I try it out. I am hoping to make some time for testing both the methods - classic BT and Serial at 922190bps! :) Thanks once again for the ideas and the tips.

    • @talofer99
      @talofer99  ปีที่แล้ว +1

      @@rw4833 cool, if you do get it to work - let me know :)

  • @DrSchmalzbrot
    @DrSchmalzbrot ปีที่แล้ว +1

    Hey, this video was very helpful. I am currently working on a similar project, but I dont use a monitor. Instead I have to send the photo which was saved as a SPIFF via a telegram bot to a telegram chat. Do you know if this is possible? Could you maybe tell me which telegram bot sending command I need in this case?

    • @talofer99
      @talofer99  ปีที่แล้ว

      Hi, I never tried to send something in telegram with esp.
      I know the image can be sent - but not sure how to do it on telegram.
      If it possible, you are only a google search a way from it :)

  • @SusanAmberBruce
    @SusanAmberBruce 2 ปีที่แล้ว +1

    cool project

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you :)

  • @awaagrikh8331
    @awaagrikh8331 2 ปีที่แล้ว +1

    Hi, do your code have mechanism like CRC check to verify the file is not corrupted at the receiver end?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      No, it does not have CRC mechanism in it.
      Yes that means that the file can be corrupted on the transfer.

    • @awaagrikh8331
      @awaagrikh8331 2 ปีที่แล้ว +1

      @@talofer99 what do you suggest for archiving this? Calculate CRC and send it in the last packet?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@awaagrikh8331 If you want to be on the safe side and in a better chance to recover the file, I would got with a simple CRC16 for each package. add 2 bytes in the end for the CRC.

    • @awaagrikh8331
      @awaagrikh8331 2 ปีที่แล้ว +1

      @@talofer99 So it is either calculate cRC for the whole file and resent everything again or each packet CRC

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@awaagrikh8331 yes, that's basically it.

  • @glennimmanuel9338
    @glennimmanuel9338 ปีที่แล้ว +1

    can i get a diagram of your project?

    • @talofer99
      @talofer99  ปีที่แล้ว

      Sorry, I never really create one, unless its super complicated.
      If you need to know how to connect the screen, you can watch it on this video
      th-cam.com/video/NK0Sx49XQdI/w-d-xo.html

    • @glennimmanuel9338
      @glennimmanuel9338 ปีที่แล้ว +1

      ​@@talofer99actually I need to know how to wire a push button with the ESP32-CAM because I connected the button to the RX pin, but the ESP still can't capture a photo using the push button.

    • @talofer99
      @talofer99  ปีที่แล้ว

      @@glennimmanuel9338 not sure what code you used. but if you initiated the serial this might not work.

  • @wei48221
    @wei48221 2 ปีที่แล้ว +1

    Awesome!!

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you :)

  • @saydiy1528
    @saydiy1528 2 ปีที่แล้ว +1

    HI, GREAT. just not clear where filled the MAC address? thanks.

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      No need, there is an active scan on the camera, looking for the other unit.
      look at the Camera.ino and find ScanAndConnectToSlave()

    • @saydiy1528
      @saydiy1528 2 ปีที่แล้ว +1

      @@talofer99 Thank you a lot. much better now. the display just shown "SYSTEM STARTED" , no picture?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@saydiy1528 the camera needs or button press or UART command.
      I explain this in the video.

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      I can see you asked about the reset of the unit in the notification but can not see the actual comment
      So make sure you set the Flash Frequency to 40 not 80 and then upload the code.

    • @saydiy1528
      @saydiy1528 2 ปีที่แล้ว

      @@talofer99 Thank you. I typed p and got some image shown (I used ILI9341 cause of can't test out GC9A01), still the button never trig cam.

  • @summerfun6114
    @summerfun6114 2 ปีที่แล้ว +1

    Hi, great project. how about use ESP32CAM + TFT, and leave out ESP32? and in this case, is it OK for one ESP32 to handle more than one ESP32CAM? Thx.

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      It's possible, been done by others, I'm working on trying it with the screen in the video, juts was not successful, and got no time lately :)

    • @summerfun6114
      @summerfun6114 2 ปีที่แล้ว +1

      @@talofer99 Thank you for reply. have a nice day.

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      @@summerfun6114 I hope to get it running , it will be a cool project of a camera with screen for the kid :)

    • @summerfun6114
      @summerfun6114 2 ปีที่แล้ว +1

      @@talofer99 ya, there are some body did it, I can‘t copy it works, actually just noise, almost can see any nothing. BTW. is the Payload limited to 250 bytes obstacle the stream here?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@summerfun6114 if you refer to stream the image to a screen ? then no - there is no real limit here.
      If you refer to the ESPNOW, then yes, you can barely get 1-2 images per second.

  • @omumbare8582
    @omumbare8582 2 ปีที่แล้ว +1

    can you stream video over esp now? from esp cam to esp32?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Since the pay load limit per messahe is 254 byte I think its not really doable.
      I seen a project when the camera esp32 was acting as AP and the other unit showed the stream.

    • @omumbare8582
      @omumbare8582 2 ปีที่แล้ว +1

      @@talofer99 is there any way to stream a video from esp cam without wifi? And the method you are talking about, how can it be done is there any reference?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@omumbare8582 Not that I know of.
      I can not find the link will try to find it.
      I'm sure if you google it, you can find it.

  • @alin-pe4bp
    @alin-pe4bp 2 ปีที่แล้ว +1

    It must've taken you a lot of time ??!

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      It took me a few good evenings :)

  • @berkeates4639
    @berkeates4639 8 หลายเดือนก่อน +2

    Sir I have a problem to run the system correctly. The only difference about hardware is display. I've changed the display class settings into the device's that I'm using. Should I change another thing?? The image is seen from the display but it isn't fill all of it and it is meaningless.

    • @talofer99
      @talofer99  8 หลายเดือนก่อน +1

      What display do you use ?
      What code do you use ?

    • @berkeates4639
      @berkeates4639 8 หลายเดือนก่อน +1

      @@talofer99 I used exactly same code as yours and the display is st7789 240x240. Thank you for quick response🙏🏻

    • @talofer99
      @talofer99  8 หลายเดือนก่อน +1

      You could not use the same code (exactly) since it will not work.
      What are the changes you made in the code ?

    • @berkeates4639
      @berkeates4639 8 หลายเดือนก่อน

      @@talofer99 I’ve just changed the display class part of the code

    • @talofer99
      @talofer99  8 หลายเดือนก่อน +1

      @@berkeates4639so it should work.
      maybe try different library.

  • @alin-pe4bp
    @alin-pe4bp 2 ปีที่แล้ว +2

    hello! very nice and unique tutorial, Thanks for the effort you put into making the video. i'm having some trouble writing the code for a similar application, can we get the code please it would make my life way easier.

    • @talofer99
      @talofer99  2 ปีที่แล้ว +1

      Hi,
      Thank you very much.
      Sure, it actually made me finally upload the code to git, here is a link
      github.com/talofer99/ESP32CAM-Capture-and-send-image-over-esp-now

    • @alin-pe4bp
      @alin-pe4bp 2 ปีที่แล้ว +1

      @@talofer99 thanks

  • @jonathanroberts8213
    @jonathanroberts8213 2 ปีที่แล้ว +1

    Great video! I have the same arduino board for the display. Would you be able to confirm what pin goes to what? This is the bit that i am struggling with. Thanks.

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you :)
      The SPI pins are
      GPIO 23 is the mosi
      GPIO 18 is the clock
      GPIO 05 is the SS
      You can see the pinout here
      www.mischianti.org/2021/02/21/esp32-wemos-lolin32-high-resolution-pinout-and-specs/
      For the rest of the pins there is the table from the example :
      * ESP32 various dev board : TFT_CS: 5, TFT_DC: 27, TFT_RST: 33, TFT_BL: 22
      Hope it helps out .... if not let me know :)

  • @MrBobWareham
    @MrBobWareham 2 ปีที่แล้ว +1

    Loved the video, thank you for sharing your project and code, you mentioned that you are looking at streaming video, so I have joined your channel in the hope of seeing more thanks, Bob in the UK

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much :)
      I did look into the video streaming and I know that in theory its possible but did not had the time to dive deep into it.
      Been very busy with work, but have some nice project coming (soon I hope) that I have been working on.
      I did test some of the streaming options in this video
      th-cam.com/video/wmH6TewY3YQ/w-d-xo.html

  • @desmondlow7586
    @desmondlow7586 2 ปีที่แล้ว +1

    Nice video. However, can you make another video showing how to display what's the ESP32 CAM is seeing with only 1 display? Instead of streaming from another ESP32

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      I did not think its possible, but sow something like it few days back. I will try to find the time to try it out, thanks for the idea.

    • @desmondlow7586
      @desmondlow7586 2 ปีที่แล้ว +1

      @@talofer99 thanks for the consideration too. XD

  • @SenseofScience
    @SenseofScience 2 ปีที่แล้ว +1

    Can I use esp8266 instead of esp32

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      for the camera I do not think so, for the screen I can guess its doable.

  • @joesalas3397
    @joesalas3397 2 ปีที่แล้ว +1

    Hi, this video is just amazing, have u tested it long distance?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much.
      I tried it in the house, and I got about 6 meters.
      Didn't try it in any longer distance it would be interesting to test.
      From doing a quick read people are talking about long ranges "possible" with esp-now.

    • @joesalas3397
      @joesalas3397 2 ปีที่แล้ว +1

      @@talofer99 i saw a french guy experimenting with this. really amazing, i am gonna try long distance with your video. thanks a lot.

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@joesalas3397 let me know how it went :)

  • @yawarsaeed6499
    @yawarsaeed6499 2 ปีที่แล้ว +1

    Awesome

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      Thank you very much :)

  • @SolutionFinder
    @SolutionFinder 2 ปีที่แล้ว +1

    Can we do streaming..?

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      not on esp-now with its limits.
      you can with setting the unit as AP or stream it to the net.
      I made a video on this
      th-cam.com/video/wmH6TewY3YQ/w-d-xo.html

    • @SolutionFinder
      @SolutionFinder 2 ปีที่แล้ว +1

      @@talofer99 I have esp32watch, I want streaming esp32cam video in my watch.

    • @talofer99
      @talofer99  2 ปีที่แล้ว

      @@SolutionFinder I sow something like that done with setting the esp32 cam as AP and then streaming to another esp with screen.
      I'm sure that if you google the description you will find it.