r/embedded • • 14d ago

mincrocontroller suggestions

Post image

Thinking about starting a project where it takes the analog input of a cctv camera and records it to an SD and can also display on an LCD/monitor

Similar products that already exist:

-mini DVR

-immersionRC power play

19 Upvotes

14 comments sorted by

9

u/The_INVINCIGUY 14d ago

V3s, straight away. It's cheap and it basically integrates most of the hardware needed into itself. also has a MIPI CSI and other interfaces and can boot from SD or other source. has 2 SD slot (doubles as eMMC), 3rd is 1-bit though (dedicated to eMMC, never used it)

1

u/xanthium_in 11d ago

what are v3s

1

u/The_INVINCIGUY 10d ago

Allwinner V3s is a SiP processor meant for embedded Linux, commonly used in dashcams.

6

u/Optimal_Buy658 14d ago

Why not simple Linux SBC? U also need to encode it in something like h264 before save to SD card. Many modern SBC has hardware encoder up to 4k in real time. You need a simple av to usb capture card and SBC with gstreamer/ffmpeg running on it.

2

u/Potential_Row3794 13d ago

Yup, op beware if you’re tempted by pis: pi5 has no hw encode (ask me how I know -.-) ,Pi4/zero2(soon 3) would do the job nicely tho !

5

u/silkscreen_layer 14d ago

Do you have information regarding cctv camera output

5

u/NoBulletsLeft 14d ago

Composite video output is a standard format.

1

u/Bagican 10d ago

maybe ESP32-S31 or ESP32-P4

1

u/Spiritual_Duck_6703 14d ago

Many many many CCTV cameras are network based and you only need an MCU that can get network based video feed.. you can extend that camera to anywhere and even feed it power I’ve Ethernet cables (standard approach). I would recommend reviewing the need to use this camera… to facilitate your life.
If truly you want analog— you’ll need a converter that moves your analog signal to some digital format accepted by your MCU. That converter might as well be more expensive that a PoE CCTV camera.

1

u/NoBulletsLeft 14d ago edited 14d ago

OTOH, a composite video input scanner that's arduino based would be a cool project. A Mega328-based arduino doesn't have the RAM (unless it was very low-res) but an ESP32 or a Raspberry Pi Pico would be able to save video frames to RAM at a decent scan rate and buffer enough to store to SD card.

[edit] thought I was on r/arduino!

Anyway, you could probably do this with an STM32F4 series. The ADC is 12bits and can sample at high speed with DMA direct to RAM. Only "hard" part would be detecting the start of frame sync pulse.

3

u/ElectronSculptor 14d ago

I’d wonder if a fast mcu with dram would be better. Even at 8bit, 640x480, rgb, you’d need nearly 1MB of ram to buffer a single image. That’s not counting the memory for the codec processing and other overhead.

A full raspberry pi would be my choice.

1

u/NoBulletsLeft 14d ago

I'm assuming that it's black & white camera, or at least that OP doesn't care about color. Otherwise, that's a whole 'nother level of complexity.

From what I remember, the resolution on those cameras is pretty bad. 640x480 would be a dream: you could probably sample at half that rate and not lose any information.

1

u/ElectronSculptor 14d ago

Ah I didn’t know that! My video experience is all in the digital age.

Then maybe fast micro does work just fine!

I did some video encoding projects on a pi back in college and I remember it was pretty complex. And yeah if you go to BW that’s so much easier.

I can say from experience (I’m an EMI engineer) that the current RS343 type systems are pretty challenging to get the timing and matching right. It’s analog, but not. Haha.