We're having a project for segregating plastics and metal garbages and we are using Raspberry pi4B with webcam, the object recognition is fine but the problem is that I'm wondering how the servo motor rotates when the Raspberry pi detected an object as plastics or metal. Is the servo connected to arduino or the raspberry? Any idea how to do it?
Hi,
I'm fairly new to this. I have one question :
- why are you talking about an arduino and a rasberry ?
If you have the rasberry, you can use the GPIO on the rasberry to to control the servo
I'm currently using arduino uno for the other components, but I'm not sure if the servo should be in the arduino uno or the raspberry pi.
I don't think there is such a thing as raspberry or Arduino specific servo motors. They are all controlled the same way using pwm signals.
If you can, use the raspberry to control everything it will make things simpler further down the line
But I don't know how the servo motor will rotate based on the camera object detection.
Could you explain your set up in more detail? As i understand it you would only need the servo motor to be on one side or the other.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.