LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

robot roaming

Hi, 

 

I am trying to write a simple code for a robot to move a certain distance, then turn right and after going another distance turn right again, without using any sensors. I am pretty novice with labview. Does anyone have any example code?

 

So far I have written one where I can control the velocity but I cannot make it turn. 

 

Thanks

Stefan

0 Kudos
Message 1 of 6
(3,073 Views)

I'm assuming this is a wheeled robot with each side being controlled individually.

In this case to turn all you need to do is have one side going faster than the other. For instance to rotate the robot right, you could turn the left wheel forwards, and the right wheel backwards.

 

 

As for the distance requirement, assuming there is a fixed relationship between motor velocity and distance (ie, no slippage, no torque issues, and no noticible velocirty ramping) then distance is just velocity x time, so, running the motors for a certain time at a certain velocity will give you a certain distance. (this of course relies on things being ideal, so your milage may vary)

 

 

0 Kudos
Message 2 of 6
(3,059 Views)

Hi all,

 

Are you familiar with the Robotics Module that NI produces? If not, you can find more information about it here, including case studies and other hardware options:

http://www.ni.com/labview/robotics/

 

However, I think that you should have a look at the LabVIEW Robotics Community page if you haven't done so already. It's a great resource for sharing code and you may find what you're looking for, as well as other interesting pieces of code:

https://decibel.ni.com/content/community/zone/labviewrobotics 


ShalimarA | CLA
Message 3 of 6
(3,008 Views)

HI. Stefan

It really is very difficult to control a robot, without any sensor. You will always need some kind of information no matter how small, in this case. I think it would take at least a couple of encoders for the wheels of the robot.

 

Now the other option is to work with sensors that do not alter the structure of the robot (a camera properly located to control the movements for example).



Ing. Jonathan E. Cruz Ortiz

ENERGÍA PROACTIVA S.A.S

Cel : (+57) 3173669343 - (+57) 3124451894

0 Kudos
Message 4 of 6
(2,991 Views)

hi,

 

Yea it has encoders, i forgot to mention... I managed to do it using the encoders, but i have a problem when the robot turns left/right, instead of turning 90 degrees like i tell it to do, it makes a few spins. I am not sure why that is.

0 Kudos
Message 5 of 6
(2,969 Views)

Hi StefanB,

 

Why don't you try changing your stop conditions in the 'Rotate' case? I don't have a robot at hand to try this, but I wonder whether the rotate stage repeats several times, until you send the command to 'Drive' because of the false constant wired in to the stop terminal. 


ShalimarA | CLA
0 Kudos
Message 6 of 6
(2,947 Views)