Hey guys, I am designing a prototype of an anti-missile defense system and I need some help with:
1. the pan/tilt setup to control a laser pointer that I will be mounting on the 2 stepper motors
2. some potential improvements to the project. Let's start:
Components:
1. Play station 3 EYE Camera
PlayStation Eye - Wikipedia, the free encyclopedia
(purchased, drivers installed, working on openCV, code is nearly done; the object is detected and a red circle is placed around it, *remaining part is the object estimation and then sending the coordinates serially through COM1 port to the microcontroller)
2. Computer (to perform the image processing that will detect the object)
3. RS-232 to RS-485 converter + adapter (input to the ORIENTAL driver is RS-485)
4. Renesas M16C62P micro-controller
5. 2 x ORIENTAL MOTORS: Stepper Motors + drivers
Item # CRK546PMRKP, Microstep System with Built-in Controller (24 VDC) on Oriental Motor U.S.A. Corp.
(1 is already shipped, tested and working; the other one still on the way)
6. *Pending: Pan/Tilt setup to mount the 2 motors
7. *Some sort of scalable laser pointing (scalable since my system won’t be precise and chances are I can never get the laser pointer to be on the moving object the whole time, so I would need a scalable one so that I can measure the error)
Items marked with an asterisk are my current challenges. Let me explained my project briefly, so you can get an idea of what I am doing and I can get some quality feedback
Detection System
I implemented a single object detection code on my computer using openCV and the play station EYE. The outcome is decent, but is still not complete, I am getting the current coordinates but I need a way to estimate the motion of the object so I can output the future coordinates to the micro controller so that can ultimately send it to the driver and move the steppers.
*Challenges:
1. to find future position
2. to send the future position serially
3. Interfacing problems (future position comes from the PC serially through COM1 to the micro controller, problem is connecting the micro controller to the driver/motor since I am inputting through RS-485)
Tracking System
I tested the stepper motor and driver and they seem to fulfill the speed requirements of this real time system. They are controlled through hypertext terminal with a language that is easy to comprehend. You can set the acceleration time, deceleration time, starting velocity and running velocity. You have an encoder to tell you your position, set a home position or return to a home position. These are just some of the features of this stepper.
Sample Code:
-------------------------------------------
CRD5xx-KP CRK Series Built-in Controller
Software Version: A378 V.1.03
Copyright 2009-2010
ORIENTAL MOTOR U.S.A. CORP.
-------------------------------------------
>ta
TA=0.500
>ta=0.025
TA=0.025
>VR = 10000
VR=10000
>VS = 10000
VS=10000
>td = 0.025
TD=0.025
>mcp
After running this code on Hypertext terminal, the motor seems to be pretty fast. Good. Next.
*Challenges:
1. Setting up a pan/tilt with 2 of these steppers
2. Again interfacing problems with the micro controller
Your input is greatly appreciated
Thanks in advance.
1. the pan/tilt setup to control a laser pointer that I will be mounting on the 2 stepper motors
2. some potential improvements to the project. Let's start:
Components:
1. Play station 3 EYE Camera
PlayStation Eye - Wikipedia, the free encyclopedia
(purchased, drivers installed, working on openCV, code is nearly done; the object is detected and a red circle is placed around it, *remaining part is the object estimation and then sending the coordinates serially through COM1 port to the microcontroller)
2. Computer (to perform the image processing that will detect the object)
3. RS-232 to RS-485 converter + adapter (input to the ORIENTAL driver is RS-485)
4. Renesas M16C62P micro-controller
5. 2 x ORIENTAL MOTORS: Stepper Motors + drivers
Item # CRK546PMRKP, Microstep System with Built-in Controller (24 VDC) on Oriental Motor U.S.A. Corp.
(1 is already shipped, tested and working; the other one still on the way)
6. *Pending: Pan/Tilt setup to mount the 2 motors
7. *Some sort of scalable laser pointing (scalable since my system won’t be precise and chances are I can never get the laser pointer to be on the moving object the whole time, so I would need a scalable one so that I can measure the error)
Items marked with an asterisk are my current challenges. Let me explained my project briefly, so you can get an idea of what I am doing and I can get some quality feedback
Detection System
I implemented a single object detection code on my computer using openCV and the play station EYE. The outcome is decent, but is still not complete, I am getting the current coordinates but I need a way to estimate the motion of the object so I can output the future coordinates to the micro controller so that can ultimately send it to the driver and move the steppers.
*Challenges:
1. to find future position
2. to send the future position serially
3. Interfacing problems (future position comes from the PC serially through COM1 to the micro controller, problem is connecting the micro controller to the driver/motor since I am inputting through RS-485)
Tracking System
I tested the stepper motor and driver and they seem to fulfill the speed requirements of this real time system. They are controlled through hypertext terminal with a language that is easy to comprehend. You can set the acceleration time, deceleration time, starting velocity and running velocity. You have an encoder to tell you your position, set a home position or return to a home position. These are just some of the features of this stepper.
Sample Code:
-------------------------------------------
CRD5xx-KP CRK Series Built-in Controller
Software Version: A378 V.1.03
Copyright 2009-2010
ORIENTAL MOTOR U.S.A. CORP.
-------------------------------------------
>ta
TA=0.500
>ta=0.025
TA=0.025
>VR = 10000
VR=10000
>VS = 10000
VS=10000
>td = 0.025
TD=0.025
>mcp
After running this code on Hypertext terminal, the motor seems to be pretty fast. Good. Next.
*Challenges:
1. Setting up a pan/tilt with 2 of these steppers
2. Again interfacing problems with the micro controller
Your input is greatly appreciated
Thanks in advance.