LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling antenna with stepper motors

Hello, my name is Paul and I need some ideas on how to make a project.

I need to control a fake antenna (I am saying fake because it won't be attached to anything, just for display purposes) using LabView.

The antenna will be very small (about 15cm in diameter and made from light materials). I am using 2 stepper motors with 2 EasyDriver 4.4 drivers and an Arduino UNO R3 board.

The antenna needs to move 360 degrees on a round base and 90 degrees of elevation.

I found a video on youtube that is a lot more complicated and a lot heavier than what I need, but should give you a better perspective of what I am talking about.

http://www.youtube.com/watch?v=vihdaseWNQw

I'm trying to get the antenna to track a satellite. I have to enter the azimuth and elevation of the satellite into LabView, and the antenna, from the 0 position (I will use the magnetic north as 0) will have to move accordingly to face the satellite.

So the base will have to be capable of a 360 degrees turn (for azimuth) and the elevation a 90 degree angle (for elevation).

I drew a quick sketch hoping you will understand better what I'm trying to do. I only connected one stepper motor for a test run. I opened the "Arduino Stepper Motor.vi" in LabView and tested on stepper motor 1. It didn't move (but maybe I didn't set it up correctly in labview). The setup was made exactly as the picture I attached.

The stepper motor 1 (which controls elevation) has to move the antenna 90 degrees. So I'm guesing I have to divide the 90 degrees to 1.8 degrees (the motors deg/step) to find out how many steps I need in total. And the same for stepper motor 2 (360 / 1.8).

So I need a .vi that automaticaly transforms the degrees which you set the elevation and azimuth to steps for the stepper motors. And when I press "Start" the two motors move to the desired position. I also need a "Reset" button to automaticaly come back to the original position (which will be 0 degrees azimuth and 0 degrees elevation - let's say the magnetic north) each time I run the program.

And one more thing: is there an explanation document for the "Arduino Stepper Motor.vi" ?

There are a few things I don't know how to set up, like the "Stepper Configure.vi" - seems like anything I change doesn't really do anything and the same thing with the "Init.vi" , "Stepper write.vi", "Stepper ToGo.vi" or "Stepper Close.vi".

http://img232.imageshack.us/img232/6739/setupdrawing.jpg

http://img20.imageshack.us/img20/5483/setupga.jpg

http://img43.imageshack.us/img43/7730/easydriversteppermotord.png

Thank you !

0 Kudos
Message 1 of 1
(2,776 Views)