r/CheapYellowDisplay • • 14d ago

CYD and Camera module?

Sorry I'm a beginner: I've seen someone using a thermal cam with the CYD and I know that there are the ESP32-Cam combinations.

Are there camera modules I can (simply) connect to the CYD? It's okay if the cam are crappy or have low framerate. I know there are those flat-wire O2640ย cameras and there are USB Modules on amazon. I don't really see how I could connect the flat wire to CYD, but would the USB modules work? For example this one is listed as "compatible for ESP32-S3" https://amzn.eu/d/03SpopHi

Sorry, for asking stupid Questions, but would this camera module only work with usb or can I use one of the other 4 pin connector ports? I see "SPI" and "UART" on the board images here https://amzn.eu/d/0d6kUeFC

I'm just trying to figure out what to buy...

2 Upvotes

6 comments sorted by

4

u/EmbeddedNerd_com 14d ago

You're not asking stupid questions at all! ๐Ÿ™‚

The important thing here is that the classic CYD (ESP32-2432S028) is not the same as an ESP32-S3 board.

A few things to keep in mind:

  • USB camera modules: The classic CYD doesn't have USB Host support, so you can't simply plug in a USB camera.
  • OV2640 ribbon cameras: These normally use a parallel camera interface. Although the ESP32 can support them, connecting one directly to a CYD is difficult because of GPIO availability and the existing display/touchscreen connections.
  • SPI camera modules: These are potentially a better option, provided the camera module and its library support your setup. They aren't necessarily plug-and-play.
  • UART/SPI connectors: These are not universal camera ports. UART is generally too slow for normal camera streaming.

If your goal is simply to experiment with a camera and a CYD, I'd first look at an external ESP32-CAM or ESP32-S3 camera board and communicate with the CYD over Wi-Fi.

I also have a guide covering the CYD hardware, pinout and capabilities that might help: https://embeddednerd.com/cheap-yellow-display-cyd-esp32-guide/

One important detail: which exact CYD version do you have? There are several hardware revisions, and that can make a difference.

2

u/deva_nagari 13d ago

I have the "Elegoo" in my shopping cart. It's the one with the ESP32-32E chip. As I've seen so far this is the only one that offers on-board battery connection/loading with JST connector. I've also seen some comments in this subreddit that this version is "no real CYD" but the battery support is quite tempting.

There are also small USB-to-SPI modules. Would those work with the usb camera?

I have so far only found those Arducam SPI cameras ( https://www.arducam.com/arducam-new-2mp-mini-spi-camera-module-for-arduino-uno-raspberry-pi-pico-and-other-mcu.html ) that look promising, but they aren't sold over amazon-germany and I did not find another SPI cam (except one pretty cool night vision cam module, that costs 95โ‚ฌ...). I'll take a look at aliexpress and maybe buy a cam later.

This is already very helpful, THANKS! I was already thinking about going the other way: Buying the ESP32-Cam and then finding a fitting pressure-screen (I just love the stylus), but those seem harder to find then the capacitive screens. And the ESP32-Cam modules are so cheap, I'll just throw one in the basket anyways :)

2

u/EmbeddedNerd_com 13d ago

You're very welcome! ๐Ÿ™‚

I think adding an ESP32-CAM to your basket is actually a good idea. They're inexpensive and give you plenty of room to experiment.

Regarding the USB-to-SPI modules: unfortunately, they won't normally solve the USB camera compatibility problem. A USB camera generally requires USB Host support and the ability to handle its UVC protocol. Simply converting USB signals to SPI isn't enough.

The Arducam SPI camera looks like an interesting alternative, though. Just make sure the specific module has library support for your ESP32 and that its resolution and frame rate meet your expectations.

As for the Elegoo board, I can understand the appeal of the built-in battery connector and charging circuit. Just keep in mind that it's a different hardware implementation from the classic CYD, so pinout and compatibility details may differ.

One alternative worth considering is using an ESP32-CAM or ESP32-S3 camera board as a standalone camera and sending images to the CYD over Wi-Fi. That way, you can keep the touchscreen and stylus experience you like without fighting the hardware limitations.

I'd be interested to see what you eventually build! ๐Ÿ™‚

2

u/rattushackus 14d ago

The problem is that the CYD boards have very few GPIO pins available. It's relatively easy to connect I2C peripherals but SPI is hard unless you are willing to take a soldering iron to the board to modify it.

The thermal camera you saw was probably an MLX90640 that uses I2C. However this is a very low resolution and I2C is too slow for high resolution cameras. If you want a reasonable quality image a CYD probably isn't a great choice. You would be better off with an S3 cam board and a separate display board.

1

u/deva_nagari 12d ago

I would actually be okay with low quality and low framerate. To get a bit of a low-fi "Gameboy Camera" look for photos (no video). But at least on amazon it's easier to find the high quality cameras then the simple ones :-|

But for a start I'll get both: a CYD and a ESP32-S3-Cam. I'm sure I can make use of both in the future and I can add more modules later anytime when I find a fitting camera.

1

u/deva_nagari 14d ago

For context, I want to build a beginner's Cyberdeck with my daughter and the CYD does the heavy lifting on the hardware side out of the box :) My idea was to make a little note/drawing device and it would be incredible if we can also snap low-fi photos and draw on them.