Waveshare ESP32-P4-C6 Module-DEV-KIT: Camera example code

Greetings.

Background:

subject dev kit using OV5647 camera module
Linux Mint 21.3 Cinnamon-V6.0.4
IDE 2.3.6

I have been working with the ESP32-CAM board (AI-THINKER) for several weeks and am fairly comfortable coding for it. I have written a sketch that utilizes the board and camera as a websocket client, and it works well enough.

I recently purchased the subject dev board. Using the ESP32P4 Dev Module I am able to upload and run sketches that do not explicitly use the camera. However, when I attempt to upload the example Camera Web Server sketch, the process fails with esp_camera.h: no such file or directory. I assume that the board definition does not support the camera (obviously could be a bad assumption).

Question:

Is there a more appropriate board definition for the subject dev board? Also, is there an existing example sketch (and any additional required libs) for the subject dev board camera, (once again assuming the example sketch is not applicable)?

Note: I did find a set of defines for the dev kit pin definitions for the camera. Of course I have no idea if they're correct because I can't get past the include issue.

I hope this isn't too vague.

Many thanks.

Hi @stopwalve ,

Welcome to the forum..

interesting, this is what is inside my new Tab5 I just got..

it does have a cam in it also but i do believe the cam interface is different so not using the usual..

haven’t messed with the cam yet but I’ll give it a test tomorrow and let you know..

but more than likely that lib is just not included and we must use something else..

have fun.. ~q

I work with many camera boards but never yet with the eps32p4. I checked the board libraries but I am unsure how to interpret the results. What I do know is the same include works with an esp32s3 but not an esp32p4. Here is a screen grab showing the results.

I truly appreciate the quick response! Hopefully I was cogent enough forthright forum.

I too had similar results ro yours using the S3 board definition.

Many thanks again.

Many thanks for the quick response. I look forward hearing the results of your testing.

Again, many thanks.

i will, looks like the preloaded demo is using these libs..

late for me, tomorrows another day..

have fun.. ~q

Well not so much good news..

The original esp-camera lib only support up to the esp-s3 chips..

The p4 seems to have a MIPI-CSI peripheral interface and this seems to be under current development, I don’t see anything yet for the Arduino core..

Did find this MIPI Cam Demo but it’s only for IDF, might try to mess with it a bit but don’t hold be holding your breath..

sorry for bad news.. ~q

Many thanks for the effort. Prob look into using the idf as well.
Once again, my thanks.

1 Like

Is there anything special about the P4 that you need? If not, get a board that is supported, which will be a lot easier than learning IDF. My current favourite is the SEEED XIAO. I am making game cameras, and when the camera is as small as my thumbnail, it's easier to hide.

The SEEED ESp32S3 Sense (Camera) is a good board, I am working on a mini LoRa tracker board that can use it take and transfer images over long distances.

SEEED recently changed to supplying the board with an OV3660 camera, this camera can be put into low current mode via a register write, whilst the original supplied OV2640 camera used heaps of current once it had been used with no sleep mode.

Have you done any testing re transferring image data over LORA? It is my understanding LORA is for very low bandwidth applications.

Good to hear about the XIAO, now I will have to see about upgrading the camera boards.

Let me know if the image data and LORA works.

The image\file transfer software has been working for a while.

Lots of people assume that because LoRa can go extreme long distances, at very low data rates, that’s all its good at.

UHF LoRa devices can run at 60kbps over some kms with a decent setup, and 2.4Ghz LoRa devices can run at 200kbps in LoRa mode or 2600bps in FLRC mode.

For sure LoRa cannot compete with using mobile phone comms for the image\file transfers, but if you you are in an area with no mobile coverage the only other option would be satellite comms.

The ESP32CAM is not a good platform for a remote LoRa Camera platform since there is a critical shortage of GPIOs. The ESP32S3 Camera Development Boards are a far better alternative, come with camera and SD card sockets and plenty of GPIOs. The SEEED XIAO ESP32S3 sense is good too, small and enough spare GPIOs for the LoRa etc.

1 Like

Thanks for the education, I have only dabbled in LORA so now I will check out what LoRa and FLRC mean.

Fast Long Range Communication, found only in the 2.4Ghz LoRa modules.

I think this is the first time I am hearing of a 2.4Ghz LORA. That is a bit confusing as higher frequencies don't go as far in leafy environments. For direct line of sight they might be better depending on the humidity but in the game camera situation lower frequencies are much better.
It sounds like I will stick to TF cards.

Maybe, but long distance comms to a remote camera can be handy;

Battery is almost flat.

A Dodo just wandered past and had its picture taken ………….

Where I live is 99.999% mixed deciduous and coniferous forest so range is very limited. Likely measured in meters not Kms.

Real World tests, LoRa in a Forest;

https://stuartsprojects.github.io/2018/03/01/lost-in-a-wet-or-dry-forest.html

With the transmitter on the ground;

“If the full 17dBm (50mW) of the transmitter was used the distance covered could increase to 2200m”

“There is more, for this test the signals were being sent at a LoRa® data rate of 1562bps, if the data rate was lowered to 150bps, which is fine for a lot of data gathering and control applications, range would increase by a further 3 times when using the same power.”

So 5km or more ?

Wow, that is very encouraging, 6km with full power and lower data rate (enough for me). With the gear I have been using I was barely able to get maybe 200m but that is through two apartment buildings.
Can you tell me exactly what boards they used to get that range?

Mentioned in the article;

“This third picture is the test transmitter, an Arduino Pro Mini and RFM98 LoRa® device placed in a metal box. A ¼ wave wire antenna is used for the transmitter and receiver.

Although that test was back in 2018, these days a lot of LoRa modules use the updated SX1262, capable of 22dBm. There are plenty of LoRa modules around now that go up to 30dBm, if thats legal in your part of the world.

SEEED do a tiny SX1262 module that will plug into the XIAO board, not tried it with the camera board though;

https://thepihut.com/products/wio-sx1262-for-xiao?variant=54862910161281&country=GB&currency=GBP&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic&gad_source=5&gad_campaignid=22549809780&gclid=EAIaIQobChMI-bvsmYLjkQMVuJlQBh10sTbtEAQYAiABEgJYpvD_BwE