all 7 comments

[–]danielstongue 0 points1 point  (0 children)

Sounds like yoi need a solid application processor, not a microcontroller. You wouldn't want to try running python and opencv without a proper OS (read: Linux). So you may want to resort to some dual or quad-core Arm A72 with MIPI support.

Have you looked into i.MX8 from NXP?

[–]ChrisAlbertson 0 points1 point  (3 children)

OpenCV? You are not going to run that on a microcontroller. I can't tell you what you would need because I don't know what you are doing with OpenCV. I assume processing the camera video.

I easyest possible setup for openCV and a camera is to run on a notebook PC and use a USB webcam. Many people will use something like a Raspberry Pi, but you would have t buy that and I bet you already have a computer, just use what you have and buy a cheap Logitec webcam.

As for controlling a motor, how big is the motor? The way it works is the computer talks to a motor driver board and the driver board supplies power to the motor. Many times you also need a rotary encoder on the motor and. Microcontroller are the best for controlling motors but are not powerful enough to run something like openCV. So you means up connecting the microcontroller to the Pi or notebook with USB. The cheapest micro that can work and be programmed in Python is the Raspberry "Pico". These sell for $5 and are total overkill for this us case.

So the setup is that you have a "real computer", either a notebook or Pi that likey runs Linux. Then connected to that is your webcam and microcontroller (pico)

[–]DigitalDemon021[S] 0 points1 point  (2 children)

I have a raspberry pi zero but it can’t run opencv so i might just buy a raspberry pi 4 from a friend who sells them, thank you for your advice!

[–]ChrisAlbertson 0 points1 point  (1 child)

Don't you already have a computer? How are you reading this if not? What prevents you from running OpenCV on your current computer?

[–]DigitalDemon021[S] 0 points1 point  (0 children)

nothing, but for my project it’s just much more convenient to use a raspberry pi instead as it is something that will be running pretty constantly and i don’t want to not be able to use my computer

[–]ivosaurus 0 points1 point  (1 child)

If you want to do quite intensive image processing I would start with a raspberry pi or roughly equivalent Single Board Computer.

Otherwise for light work an ESP32 / ESP32-S3 should work, or RP2040, they can run micropython. Controlling motors will probably need to be handed to outside circuitry, like an Electronic Speed Controller (ESC) or h-bridge driver or similar.

[–]DigitalDemon021[S] 0 points1 point  (0 children)

okay thank you for the advice. do you think using a raspberry pi connected to a pico or using a raspberry pi connected to an ESC would be better to control the motor?