Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

Change Email
OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

Testing ESP32-CAM

I just got an ESP32-CAM from a friend, but he’s not sure if it’s working properly. I’m testing it using the Arduino IDE with the example camera code. I’ve wired the ESP32-CAM to an Arduino as the programmer. The code uploads successfully, but I gett this error in the serial monitor:

E (396) quad_psram: PSRAM ID read error 0xffffffff, PSRAM chip not found or not supported
  1. melta101#0000

    interesting…
    i never gotten this error

  2. melta101#0000

    in the code
    did you choose the correct board?

  3. melta101#0000

    there are like 4 – 5 boards when i was tested it with arduino IDE

  4. wafa_ath#0000

    Since the code uploaded ,i think it’s the correct board…

  5. melta101#0000

    i mean the board selection from the code itself, not arduino IDE

  6. melta101#0000

    because the soc family is same, it would upload
    but PSRAM changes in different soc spec

  7. 32bitSaviour#0000

    Either the psram is faulty or misconfigured.
    Or could there be esp32cam variants that come without the psram?

  8. 32bitSaviour#0000

    I think arduino offered a way to configure the psram, no?

  9. melta101#0000

    when i used the example
    it used #defines boards
    where you uncomment the board, you want to use

  10. 32bitSaviour#0000

    I also know that the camera can work without the psram but do not expect fancy resolutions.😅

  11. melta101#0000

    i think the stream would slower
    havnt had one without PSRAM to confirm

  12. 32bitSaviour#0000

    @wafa_ath maybe ask google how you can manually configure your psram in arduino and see if the issue persists.
    I imagine your model will need some decent resolution.

  13. wafa_ath#0000

    Ow yes i did that too

  14. melta101#0000

    as @32bitwidesaviour said
    try manually configure the PSRAM

  15. wafa_ath#0000

    Okay, thank i will see

  16. 32bitSaviour#0000

    @wafa_ath
    “`
    west build -b esp32s3_devkitm/esp32s3/procpu samples/boards/espressif/cache_coex
    “`
    You can flash this to your board to test PSRAM with zephyr.
    https://github.com/zephyrproject-rtos/zephyr/blob/main/tests%2Fboards%2Fespressif%2Fcache_coex%2Fsrc%2Fcache_coex.c#L263

  17. wafa_ath#0000

    Happy news @32bitwidesaviour, the ESP32-CAM worked fine,but the model I trained is in YOLOv5, and I need to retrain or convert it to TensorFlow Lite (a fairly simple process) to make it compatible for deployment on the ESP32-CAM.

  18. ZacckOsiemo#0000

    yes I want to see hoe the Tensorflow Lite model works

  19. 32bitSaviour#0000

    With Zephyr?

  20. wafa_ath#0000

    Absolutely that why i tagged you

  21. wafa_ath#0000

    I take (simple process) back 🙂, apparently Yolov5 and tansorflow lite have different architecture make Yolov5 much faster training an object detection model, in tansorflow lite it took sooo much time comparing (not doing much but the waiting is killing )

  22. ZacckOsiemo#0000

    wait but why are you training in tensorflow lite. Why not the Tensorfloe then we convert to lite?

  23. wafa_ath#0000

    My mistake, i mean tansorflow and not tansorflow lite

  24. wafa_ath#0000

    Yes exactly what am trying to do

  25. ZacckOsiemo#0000

    thank you keep trying!

  26. daleonpz#0000

    i did it actually. I deployed a YoloV5 model on a esp32 .

    https://github.com/daleonpz/POC_CV_tinyml

    I have scripts in python that may help you. Also I documented step by step the process

  27. wafa_ath#0000

    That’s great! So, after training the model with YOLOv5, you converted it to TFLite format for quantization, right? Since YOLOv5 is trained with PyTorch and TensorFlow Lite uses a different architecture, how did it handle the conversion process?
    0image.png

  28. daleonpz#0000

    the python library handles it for me.. you just need to give the right parameters to convert from pytorch to tf, then i convert the tf to tflite using a script I wrote, which gives me at the end the C array

  29. wafa_ath#0000

    Oh i see , so you go from yolo pytorch to tf than convert it to tf lite , in case like me witch i already have Yolov5 trained model it would help me , but if someone wants to build from the beginning don’t you think it’s an extra steps or does it have butter results?

  30. daleonpz#0000

    I cannot say, I did’nt compare the outputs. But I got a pytorch model and I needed a tflite, so I did what was necessary to get the format I wanted

  31. wafa_ath#0000

    Thank you so much for sharing this, it’s really helpful

  32. wafa_ath#0000

    Setting up the environment is harder than the actual work (ps: it’s my first time with zephyr) 😅

  33. 32bitSaviour#0000

    Are you stuck? Do you need assistance?

  34. madness#0000

    i’m working with zephyr too, pretty new to it, it’s really difficult

  35. 32bitSaviour#0000

    what challenges are you having?

  36. daleonpz#0000
  37. daleonpz#0000

    that may help

  38. wafa_ath#0000

    am just trying to figure out how to setup esp32-cam with zephyr

  39. wafa_ath#0000

    what are you working on

  40. ZacckOsiemo#0000

    what part is difficult Wafa?

  41. madness#0000

    just all the configuration that is in there. when something doesn’t compile, it’s not always easy to understand why because there are so many settings behind the scenes. i have no problem with writing code as that is basically the same. also the rtt screwed me up at one point because i didn’t have it set to automatically look for the address but use a fixed one and for a few days things were working sometimes and sometimes they weren’t and it drove me nuts until i saw that and fixed the rtt setting.

  42. madness#0000

    it’s a sensor, battery powered, using nordic’s processor with nrf connect sdk

  43. madness#0000

    you’re trying to run zephyr on the esp32? i played with esp32 cam but for me the arduino-style code worked the best/quickest.

  44. wafa_ath#0000

    Yes i did the Arduino-style code and it worked fine , but i am trying to learn zephyr 😅

  45. madness#0000

    that’s a great reason actually. i would suggest to use a different processor, nrf52840 and use nordic nrf connect sdk. i don’t know about esp32 on this but nordic has really good zephyr tutorials in the form of courses. 2 boards come to mind, Seeed Studio XIAO nRF52840, only $14 to $17, and nrf52840 dk, costs about $50. take a look at their beginner course to see what i mean: https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/

  46. ZacckOsiemo#0000

    Wafa what is the difficulty with running Zephyr on Esp32, @32bitwidesaviour and I have done it with ease

  47. wafa_ath#0000

    Oh maybe because am new 😅 , so i saw Zephyr does support ESP32 boards, but it doesn’t provide direct, support for the ESP32-CAM module. that require custom configuration.

  48. ZacckOsiemo#0000

    Oh I see, is the CAM module closed source

  49. ZacckOsiemo#0000

    I would think there is support

  50. melta101#0000

    i remember there is
    OV series recently got added

  51. melta101#0000

    by charles

  52. melta101#0000

    if i am not wrong

  53. ZacckOsiemo#0000

    yeah that’s what I thought, if we identlgy what image sensor it is

  54. ZacckOsiemo#0000

    the rest is just hooking up

  55. melta101#0000

    i am also almost done with SPI driver

  56. melta101#0000

    but it’s very hacky at this point
    need to clean it up🫠

  57. ZacckOsiemo#0000

    I want to see the hacky version

  58. ZacckOsiemo#0000

    please can we have a session on it?

  59. melta101#0000
  60. ZacckOsiemo#0000

    digging into this after OH

  61. melta101#0000

    feedback is very much welcome

  62. 32bitSaviour#0000

    Just some overlay files to tell Zephyr what and where things are. We can do this.

CONTRIBUTE TO THIS THREAD

Browse other questions tagged