Go to Post It's easy to get overwhelmed. Don't get overwhelmed, just keep working at things a little bit at a time. (Oh, and don't forget to have fun!) - DominickC [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-10-2013, 16:21
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Servos, cameras, and inverting limit switches

Hello people. Currently our robotics team is working on updating our robot, just to finish what we started last year. I have ran into a few problems that I haven't been able to figure out and any help would be good.

Servos. I can't get them to move, I've tried to set the position and angle to getPosition/Angle and add a decimal or whole number to it. (1 or below.) I've looked at the labVIEW example for servos and tried using buttons to set the angle to a solid number, but haven't been able to figure out. This is all in teliop as I haven't moved all the code to periodic tasks for last years program. (I will probably do that for this year.)

Camera. Do I have to add anything to the code? We've tried the configuration software, reset it, used it again, used ethernet cable to connect the camera to the bridge, and made sure it has power. I remember not having to add anything, but i'm not 100% sure.

Inverting limit switches. I've tried moving the code from the true case in the case selector I use to the false area and the false code to the true area. I've also tried running the boolean through a not gate before sticking it into the case selector. I tried these at two different times. Both times it worked exactly the same as before. The objective is to use limit switches (already been shrink wrapped) to allow a motor to move in a certain direction only if the limit switch is pressed. We already have it working the other way, but cannot get it to work this way.

Thanks for any help and time.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-10-2013, 16:48
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

Servos require a power jumper on the bare pins beside the PWM output the servo uses. This jumper routes power out the PWM, otherwise the servo gets a PWM signal, but no power for it's motor.

The default Dashboard is equipped to handle a camera connected directly to the robot bridge. The camera must be setup using the Axis Camera Utility, and the Dashboard needs the Enable button pushed.

Limit Switch direction depends on how it's been wired as well as the code.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 28-10-2013, 16:17
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Servos, cameras, and inverting limit switches

Sorry about the slow reply.

Quote:
Originally Posted by Mark McLeod View Post
Servos require a power jumper on the bare pins beside the PWM output the servo uses. This jumper routes power out the PWM, otherwise the servo gets a PWM signal, but no power for it's motor.
Thanks. I didn't know that.
EDIT: My mentor/teacher thinks you are supposed to put all the pins in pwm output section. Is their a way around this that is resonable?
Quote:
Originally Posted by Mark McLeod View Post
The default Dashboard is equipped to handle a camera connected directly to the robot bridge. The camera must be setup using the Axis Camera Utility, and the Dashboard needs the Enable button pushed.
Pretty certain We've done all of that, the setup is the only thing with the name of "axis camera", right? The bridge is just the ethernet thing also, right? Enable button is just the on pushed while in the driver station, right?
Quote:
Originally Posted by Mark McLeod View Post
Limit Switch direction depends on how it's been wired as well as the code.
I know that. they shrink-wrapped the limit switches though, so I figured it would be easier to change the code. however, reversing the code has no change and I'm not sure why. Should I include my code here?

Last edited by sthreet : 28-10-2013 at 16:33.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-10-2013, 16:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

Quote:
Originally Posted by sthreet View Post
Pretty certain We've done all of that, the setup is the only thing with the name of "axis camera", right? The bridge is just the ethernet thing also, right? Enable button is just the on pushed while in the driver station, right?
Yep, "axis camera" is the only one, and the Ethernet thing is the right place.
It sounds like you used the right setup procedure.

There is a bandwidth limit set by the bridge (Ethernet thing) that will block the camera image.
Using the Dashboard controls try lowering the camera resolution and frames per second. That will reduce the bandwidth demand to test if bandwidth might be the problem.

Quote:
I know that. they shrink-wrapped the limit switches though, so I figured it would be easier to change the code. however, reversing the code has no change and I'm not sure why. Should I include my code here?
Post your vi or a zipped project and we'll see if we can spot any code issues. As long as it isn't reversed in two places (two wrongs make a right here) the code change should have worked.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 28-10-2013, 16:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

Quote:
Originally Posted by sthreet View Post
Should I include my code here?
Yes, at least the part you're trying to make work. It would also help to have detailed information on the wiring of your switch, and a brief description of what you want to happen when the switch is pressed vs. not pressed.

Do you know how to use VI snippets? If you don't want to post your full project, select the code you want to share with us and choose "Create VI Snippet from Selection" from the Edit menu. It'll prompt you to save the snippet as a .png file that you can then attach here. Everyone will be able to see it as a picture, and it will become live LabVIEW code when it's dragged into a LabVIEW block diagram.
Reply With Quote
  #6   Spotlight this post!  
Unread 28-10-2013, 19:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

Quote:
Originally Posted by sthreet View Post
Thanks. I didn't know that.
EDIT: My mentor/teacher thinks you are supposed to put all the pins in pwm output section. Is their a way around this that is resonable?
The jumper is only required for the PWM channel that drives the servo. It is not required for any other PWM channel.
Reply With Quote
  #7   Spotlight this post!  
Unread 29-10-2013, 16:37
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Servos, cameras, and inverting limit switches

Heres the code.

I reversed the code for the motors to move in one direction. ("UP")
However, their is no difference either direction. On the unshown case all numbers are 0. Both limit switches/motors interact exactly the same. the different numbers for one of the motors is because one of the motors moves faster.

I will try lowering camera quality/size.

EDIT: Tried camera, didn't work at all. Also tried unplugging it and didn't notice any change. (thought little green dot next to it might change.) Does wireless affect it? For some reason wireless won't connect so I put an ethernet cable in the bridge.

EDIT: I didn't understand what you meant about the servos, but when I said "jumpers" my teacher/mentor understood and we got them working now.

Not sure why wireless isn't working, changing the f-key that is supposed to toggle wireless doesn't do it, I think wireless might be turned off. How do you turn it on/off on the tiny slow laptop thingy?
Attached Thumbnails
Click image for larger version

Name:	no worky.png
Views:	42
Size:	54.6 KB
ID:	15374  

Last edited by sthreet : 30-10-2013 at 14:45.
Reply With Quote
  #8   Spotlight this post!  
Unread 05-11-2013, 16:19
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Servos, cameras, and inverting limit switches

This is probably the wrong section, but it may be a labview issue.

I get this code when I try to connect to the robot. This is in diagnostics of driver panel.

Warning <code> 44001 at modified network configuration
Set the object already exists

IP is supposed to be 10.xx.yy.z where xxyy is your team number and z is any number within limits, right? (forgot limits for z but 5 and 9 would work, right?)

Connecting a cable to the bridge has stopped working as well.
Reply With Quote
  #9   Spotlight this post!  
Unread 05-11-2013, 19:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

44001 isn't an error, it's just an informational message.
It's telling you the other devices that it is able to connect to.

10.xx.yy.5 should be your Driver Station PC's Ethernet adapter.
10.xx.yy.9 should be your Driver Station PC's wireless adapter.

These can be set automatically when the Driver station is started.
  1. Go to the Setup tab
  2. Click on "Choose NIC..."
  3. See if both the wireless and wired networks are NOT set to manual.
Get the Ethernet connection working again, before working on the wireless connection.

Your wireless connection problem can be due to several things, in addition to an incorrect IP address/netmask.
  • If you haven't used wireless since your last competition, then the robot bridge probably still still has the playing field security set. There is a Bridge Configuration Tool we use to setup the robot bridge properly for home use.
  • Check to see if your PC can see the robot network on the Windows wireless connection list. You may have to manually connect to it if you haven't chosen to Connect automatically.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-11-2013 at 19:33.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-11-2013, 14:46
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Servos, cameras, and inverting limit switches

Quote:
Originally Posted by Mark McLeod View Post
If you haven't used wireless since your last competition, then the robot bridge probably still still has the playing field security set. There is a Bridge Configuration Tool we use to setup the robot bridge properly for home use.
I think I'm going to have to do this, but I just want to make sure it won't screw it up for future competitions, or their is something you can do to change it for competitions in the future.

I can see the network, but attempting to connect to it doesn't work.
Reply With Quote
  #11   Spotlight this post!  
Unread 06-11-2013, 15:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

It won't mess up the bridge for future competition use, so don't worry about that.
The Bridge Configuration tool actually gets run at each competition before you can connect to the playing field. It gives each team a unique security code.
That security code left over from your last competition is why you can see the wireless network, but it won't let you connect. Your PC doesn't know the security code.

One other thing to check is that the robot bridge is switched to one of the AP modes.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #12   Spotlight this post!  
Unread 08-11-2013, 16:53
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Servos, cameras, and inverting limit switches

Quote:
Originally Posted by Mark McLeod View Post
One other thing to check is that the robot bridge is switched to one of the AP modes.
How do I check that? I got it working through ethernet with the configuration, but it doesn't work with wireless.
Reply With Quote
  #13   Spotlight this post!  
Unread 08-11-2013, 18:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

There is a manual switch on the back of the robot's DLink bridge.
Depending on the model you are using, the switch will be marked differently.

The Rev A switch will be marked "Bridge", "Auto", "AP"
The Rev B switch will be marked "Bridge", AP 2.4GHz", "AP 5GHz"

You want either "AP" or "AP 2.4GHz"
Don't choose "AP 5GHz" unless you know that you're using a laptop that's 5GHz capable. The FIRST issued Classmates only support 2.4GHz.

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #14   Spotlight this post!  
Unread 13-11-2013, 16:13
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Servos, cameras, and inverting limit switches

Quote:
Originally Posted by Mark McLeod View Post
You want either "AP" or "AP 2.4GHz"
Don't choose "AP 5GHz" unless you know that you're using a laptop that's 5GHz capable. The FIRST issued Classmates only support 2.4GHz.
Got that right. What else could be causing a problem with wireless but not ethernet?
Reply With Quote
  #15   Spotlight this post!  
Unread 16-11-2013, 07:51
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Servos, cameras, and inverting limit switches

What I'd do next is connect an ethernet cable between PC and DLink. Open the web page on the DLink -- the FIRST directions tell you how to do this if you are having problems.

Then check what SSID the DLink will use. Team number is what is suggested I believe. Check the security settings and perhaps turn them off if they may be the issue.

On that laptop or on another wireless enabled laptop verify that you can see a wifi network with that SSID name and attempt to Connect to it. For the laptops used in FIRST, you may want to set them to auto-connect to it.

If you get this working, the programming tools and DS will likely work. If not, then it is an IP issue.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi