# Esp32Cam Photo Transmit via USART and RF

**URL:** <https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611>\
**Category:** Programming\
**Created:** [December 23, 2021, 12:39am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611 "2021-12-23T00:39:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![duhangecer](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@duhangecer](https://forum.arduino.cc/u/duhangecer)\
**Post date:** [December 23, 2021, 12:39am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611/1 "2021-12-23T00:39:44Z")

</div>

I'm taking photo with ESP32-CAM and saving sd card. I want to send taken photo via RF (LoRa, XBee ets.) to another arduino. I don't know where I can start about sending. I don't know how to send. Do u have any advice ?

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [December 23, 2021, 1:32am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611/2 "2021-12-23T01:32:44Z")

</div>

Sure. Research Lora and XBee.

---

<div class="post-metadata">

**Author:** ![duhangecer](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@duhangecer](https://forum.arduino.cc/u/duhangecer)\
**Post date:** [December 23, 2021, 1:35am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611/3 "2021-12-23T01:35:42Z")

</div>

I worked with XBee for 3 years but I generally send basic data packet. So I don't know how to send an image file.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [December 23, 2021, 3:19am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611/4 "2021-12-23T03:19:30Z")

</div>

Break the image file into packets and send them the way you usually do.

Some ideas in this thread: [Images or files from Arduino to PC file directory via serial](https://forum.arduino.cc/t/images-or-files-from-arduino-to-pc-file-directory-via-serial/932118)

---

<div class="post-metadata">

**Author:** ![srnet](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/srnet/32/238868_2.png) [@srnet](https://forum.arduino.cc/u/srnet)\
**Post date:** [December 23, 2021, 9:04am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611/5 "2021-12-23T09:04:55Z")

</div>

> [@duhangecer](#):
>
> I'm taking photo with ESP32-CAM and saving sd card. I want to send taken photo via RF (LoRa, XBee ets.) to another arduino. I don't know where I can start about sending. I don't know how to send. Do u have any advice ?

Details and links to working code are linked to below, first an early setup that required an I2C IO expander to do some of the pin switching, and without the SD card working;

> **[StuartCAM - ESP32CAM Picture Transfers with LoRa](https://stuartsprojects.github.io/2021/11/21/StuartCAM-ESP32CAM-Picture-Transfers-with-LoRa.html)**
>
> The ESP32CAM is a camera module which you can use to send pictures over long distances with SX127X LoRa devices. With the high speed 2.4Ghz SX128X LoRa devices, you can transfer a 800x600 image in around 1 second.

And then eventually after a bit of work a wiring solution that a removed the need for the IO expander and had the SD card working as well;

> **[StuartCAM - ESP32CAM Getting the SD card to Work](https://stuartsprojects.github.io/2021/11/27/StuartCAM-ESP32CAM-Getting-the-SD-to-Work.html)**
>
> The ESP32CAM has an SD card but unfortunately it uses the same pins that the SPI interface needs for the LoRa device. So there are going to be conflicts and whilst I initially had it working, with the image transfer, after a few deep sleeps and wake...

The 2.4Ghz SX1280 LoRa module is by far the best choice here, it can transfer a typical 800x600 image in about 700ms, including extensive error checking.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [June 21, 2022, 9:05am UTC](https://forum.arduino.cc/t/esp32cam-photo-transmit-via-usart-and-rf/938611/6 "2022-06-21T09:05:41Z")

</div>

Closed on June 21, 2022, 9:05am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
