Go to Post Seeing a bunch of teams from Indiana and probably Michagin competing at the same time.... If I wanted to see that, I'd just go to the Championship in Atlanta. :yikes: - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-11-2003, 15:12
ErichKeane ErichKeane is offline
Registered User
FRC #3210
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2004
Location: Hillsboro, OR
Posts: 113
ErichKeane is just really niceErichKeane is just really niceErichKeane is just really niceErichKeane is just really niceErichKeane is just really nice
Send a message via AIM to ErichKeane
Question Use Joysticks w/ 2004 EDU

As programmer (also a student), i am messing around with a 1 Joystick Gradient control system for my school's projectFirst Robot. I just recieved the 2004 EDU kit, but was unable to figure out how to use a joystick with it.

Through some research, i was able to determine that it would not be possible natively to get it connected correctly, so I was wondering if anyone else could help:

Based on the 2004EDU and the previous year's joysticks, how would it be possible to force the joystick to use 2 PWMin ports? Would it be as simple as taking three of the (correct pins obvously) pins and attaching a male connector on the end for each direction, or would a specific converter be required?

Thank you for your time and assistance.
  #2   Spotlight this post!  
Unread 11-11-2003, 15:27
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
with all things in FIRST, start with the directions.

The new edu controller is not designed to have a joystick connect to it directly. It is designed to have a Radio Control (model car or boat) receiver connected to its PWM inputs.

PWM stands for Pulse Width Modulated. When a command is received from the transmitter (based on where the joysticks are being pushed) a pulse is output on the PWM connectors that is somewhere between mostly on and mostly off. I dont know the exact timing off the top of my head.

If you wanted to make a joystick to PWM input circuit, you would have to use a microprocessor to read the analog values of the joystick, and convert that into a pulse width modulated signal.

Or there is a way to connect the joysick to the EDU controller, but its not what you would normally think of doing with a joystick - you could connect it to the analog inputs, supplying 5V from the analog input connector to the joystick, and using the output as a variable voltage.

This would be easier to do, and your RC software could then read the joystick inputs on the analog input ports. Normally those ports are used for other types of sensors, the yaw rate sensor, a potentiometer, a custom circuit...

The details on how to do that are in the 2004 EDU robot controller reference guide, page 9 - hooking a potentiometer to the analog inputs. The joystick contains two potentiometers inside, one for each axis

Last edited by KenWittlief : 11-11-2003 at 15:31.
  #3   Spotlight this post!  
Unread 16-11-2003, 16:09
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
You could not connect a joystick to a PWM input, however you could connect it to the Analog and Digital Inputs.

You'll have to build an adapter that takes the joystick input (a 15-pin male) and connects to the Analog/Digital Inputs on the edu-RC (PWMcable-type connectors).

There's a white paper on ChiefDelphi that gives you the pinouts for a standard joystick.
  #4   Spotlight this post!  
Unread 16-11-2003, 16:41
mattf mattf is offline
Registered User
#0168 (The Flashbacks)
Team Role: Programmer
 
Join Date: Apr 2003
Location: Miami
Posts: 27
mattf is on a distinguished road
Send a message via AIM to mattf
also see this thread:
http://www.chiefdelphi.com/forums/sh...threadid=22652
__________________
2004 UCF Quarterfinalists! (168, 79, 710)
2003 UCF Regional Champions! (212, 168, 108)
  #5   Spotlight this post!  
Unread 03-12-2003, 22:30
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Use Joysticks w/ 2004 EDU

The easiest way to do this is as follows.

DB15 Pins:
1,8,9,15: connect to any of the "analog +5v" pins on the edu controller.
4,5,12: Any ground on the edu controller.
3: analog 1 "sig"
6: analog 2 "sig"

add the following code to user_routines.c right after "void Default_Routine(void){ ":

pwm01 = (unsigned char) (Get_Analog_Value(rc_ana_in01) >> 2);
pwm02 = (unsigned char) (Get_Analog_Value(rc_ana_in02) >> 2);

Hope this helps and that i wasn't too late.
__________________
1139 Alumni
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using an Operator Interface with the 2004 EDU RC wirelessly Dave Flowerday Robotics Education and Curriculum 34 19-04-2004 19:06
2004 Championship Eligibility Criteria!!! dez250 General Forum 214 28-12-2003 20:11
2004 OCCRA Competition Gadget470 OCCRA 2 11-06-2003 12:37
Could use some help with joysticks . . . archiver 2001 5 23-06-2002 23:36
Calibrating speed controllers and joysticks thedillybar Technical Discussion 4 11-02-2002 13:24


All times are GMT -5. The time now is 19:35.

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