Good day everyone!
I'm just a newbie in using arduino and i'm now having a hard time working on my project which is about interfacing arduino and stepper motors.
Basically my project goes like this:
I have an object tracker program in my computer coded in visual c++ (with the aid of opencv library). This object tracker specifically detects a red ball (size of a pingpong ball) from the realtime capture of a webcam (with 640x480 resolution) and is able to store in a text file the coordinates of the ball (x,y) as it moves across in the image frame. So far, i've already done this part.
Now my goal is to, in realtime, be able to control/move two stepper motors concurrently through arduino based on the coordinates obtained from the object tracker program. Two stepper motors will be used (one for the x coordinate and one for the y coordinate). After which i will attach a low cost laser pointer in the stepper motors.
In a nutshell, my project shall be able to track a (moving/still) red ball as it is being detected in the camera by a laser pointer through the mechanism of the stepper motors and arduino.
i've done some research, and i've learned so far that in order to send data (coordinates) from the computer to the arduino is through serial communication.
I would like to ask any kind of help that you can give as to where i begin working on the arduino until i get it how to work with the stepper motors.