I want to build a machine that can predictably launch ping-pong balls into cups. It's going to use a mounted webcam to locate the cups (I'm a CS major, so the machine vision stuff is the easy part =) and then I'm a little sketchy on the rest!
Here's my current plan and questions:
I want to put a laser pointer, webcam and catapult device onto a platter, and connect that to a DC motor so that it can spin freely on the vertical axis. The whole thing will spin until the laser pointer is on the target, and then the webcam will triangulate the approximate distance using the laser dot. A second DC motor will spin a spoon-like device to launch the ball.
I want to make this as cheaply as possible, so I'd like to go directly out from my laptop to the DC motors. I'm looking into PWM to control the speed of the motors, but I'm not really sure what I'm doing. I'm thinking that serial or parallel port control would be the best option.
Does this sound feasible? How exactly does the PWM work on a circuit level? I've only taken digital logic and intro to circuits, so I'm mostly out of my comfort zone here.
Thanks so much!!
Here's my current plan and questions:
I want to put a laser pointer, webcam and catapult device onto a platter, and connect that to a DC motor so that it can spin freely on the vertical axis. The whole thing will spin until the laser pointer is on the target, and then the webcam will triangulate the approximate distance using the laser dot. A second DC motor will spin a spoon-like device to launch the ball.
I want to make this as cheaply as possible, so I'd like to go directly out from my laptop to the DC motors. I'm looking into PWM to control the speed of the motors, but I'm not really sure what I'm doing. I'm thinking that serial or parallel port control would be the best option.
Does this sound feasible? How exactly does the PWM work on a circuit level? I've only taken digital logic and intro to circuits, so I'm mostly out of my comfort zone here.
Thanks so much!!