Go to Post A good measure of Integrity is what you do when nobody's watching. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 20-10-2011, 19:20
Verrazano Verrazano is offline
Registered User
FRC #3512
 
Join Date: Oct 2011
Location: CA
Posts: 7
Verrazano is an unknown quantity at this point
Servo's

Hello my name is Harrison, you can call me Verrazano, I am from team 3512, Spartatroniks. We are a 2nd year team, last year we used labview on our competition robot and we did remarkably well for a rookie team. We were looking to push our boundaries on our competitive side so we went to C++ for more power and control. We have a couple of people who know C++ decently well on our programming team, but we have run into a problem: our first successful bench test was getting a LED running in different patterns off of the I/O board after that we moved up to trying to get a servo motor to work. We tried every example we could possibly find and none of them have worked. I'm pretty confident that we have singled it out as a programming side error not an electrical error. We have the jumper in place to provide power to the servo from the I/O board and all of our wiring has been double checked. We will make one last test to check for electrical error by running a program in labview.

I was just wondering if any one has noticed an error in how we have set it up or if someone has some example code that might help.

thank you for your time and help, ~Verrazano

PS: We also tried to use a victor with I/O board but the PWM just doesn't seem to be getting a signal. This really confused me seeing as it was a new I/O board.

I will post pictures of our set up and the code we have tried thus far.

thanks again!

Last edited by Verrazano : 20-10-2011 at 19:25.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-10-2011, 20:14
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: Servo's

If you're not getting a PWM signal out of the Digital Sidecar, one obvious thing to check is whether or not you've actually enabled the robot from the Driver Station. What is the Robot Signal Light (the small green LED by the RSL connector on the Digital Sidecar connected to the DIO module in Slot 4) doing?
Reply With Quote
  #3   Spotlight this post!  
Unread 20-10-2011, 23:37
Verrazano Verrazano is offline
Registered User
FRC #3512
 
Join Date: Oct 2011
Location: CA
Posts: 7
Verrazano is an unknown quantity at this point
Re: Servo's

Thank you this reinforced what one of my team mates researched earlier. The LED on the I/O sidecar was blinking normally indicating that the CRio was working.
The problem was that PWM functions are restricted with out a driver station. we were attempting to run programs through a debug console.
Fortunately we were able to hook up our driver station and get a camera/2 servo setup working and a motor. It was a very successful night.

Thank you for taking a look at this post and providing input, it is greatly appreciated.
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 03:06.

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