Go to Post You can reduce the size of your wench. - ngreen [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 16-02-2004, 21:10
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Question Emergency! Need Help With Ir Sensors

Hi! guys I only have 7 more days and I am not even done with my IR sensors.
* The problem I am having is Using navigate.c whenever i put navigate.c in my robot it doesn't work unless i connect the motors to PWM 3&4 and. Once I am done connecting the motors to PWM 3&4 the robot goes crazy it just goes everywhere and it doesn't move it's servon motors and doesn't detect beacon.

* When I put my Motors on PWM 13 & 15 the robot doesn't move at all it doesn't perform any movement all it does is just straightens up the sensors and that's it. The programm gives the command "MOVE TO CENTRE" but it doesn't perform the action.

* Does anyone know why I am having this troubles please help me? I am pretty much furustrated and if you want to contact me my msn is jigarjuhi@yahoo.ca and that's my e-mail so it's 2 in 1. Please help me!
  #2   Spotlight this post!  
Unread 16-02-2004, 21:21
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Emergency! Need Help With Ir Sensors

Quote:
Originally Posted by magical hands
Hi! guys I only have 7 more days and I am not even done with my IR sensors.
* The problem I am having is Using navigate.c whenever i put navigate.c in my robot it doesn't work unless i connect the motors to PWM 3&4 and. Once I am done connecting the motors to PWM 3&4 the robot goes crazy it just goes everywhere and it doesn't move it's servon motors and doesn't detect beacon.

* When I put my Motors on PWM 13 & 15 the robot doesn't move at all it doesn't perform any movement all it does is just straightens up the sensors and that's it. The programm gives the command "MOVE TO CENTRE" but it doesn't perform the action.

* Does anyone know why I am having this troubles please help me? I am pretty much furustrated and if you want to contact me my msn is jigarjuhi@yahoo.ca and that's my e-mail so it's 2 in 1. Please help me!
Ok, here goes,
What pwm's are you plugging the servos into?
Made sure that the cable orientation is correct the IR's, servos, motors, PWMs?
I'm loading up the navigate code right now!!
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.
  #3   Spotlight this post!  
Unread 16-02-2004, 21:40
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Emergency! Need Help With Ir Sensors

of course it doesn't move when you plug the motors into pwms 13 and 15 - navigate doesn't output to those pwms.

if it's moving crazily when you plug them in to pwms 03 and 04 (the correct ones), then you probably need to adjust the values in the program to suit your sensors, as well as make sure the servos are hooked up correctly.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #4   Spotlight this post!  
Unread 16-02-2004, 22:18
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Exclamation Re: Emergency! Need Help With Ir Sensors

Quote:
Originally Posted by Ryan Cumings
Ok, here goes,
What pwm's are you plugging the servos into?
Made sure that the cable orientation is correct the IR's, servos, motors, PWMs?
I'm loading up the navigate code right now!!
I am currently using PWM 1 and PWm 2 for servo motors
I use the IR's in Digital I/O 1,2,3,4 and motors into PWM 13 and 15.
  #5   Spotlight this post!  
Unread 16-02-2004, 22:30
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Emergency! Need Help With Ir Sensors

As delta pointed out, 3 and 4 are the correct ones (how did you come up with 13 and 15?). I would just recomend leaving them unplugged or blocking up the robot to see how it acts through the debug port.
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.
  #6   Spotlight this post!  
Unread 16-02-2004, 22:36
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,856
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: Emergency! Need Help With Ir Sensors

Quote:
Originally Posted by magical hands
I am currently using PWM 1 and PWm 2 for servo motors
I use the IR's in Digital I/O 1,2,3,4 and motors into PWM 13 and 15.
I believe the IR sensors belong on digital 1&2 and digital 4&5.
Verify by looking at the comments in the header of the receiver.c file.

The motors go on pwm3 & 4
The servos go on pwm1 & 2
Verify by looking at the code in navigate.h
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-02-2004 at 22:39.
  #7   Spotlight this post!  
Unread 16-02-2004, 22:46
rswsmay's Avatar
rswsmay rswsmay is offline
Registered User
AKA: Robert
FRC #1177 (Mecha-Jags)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2002
Location: Lithonia
Posts: 60
rswsmay is a jewel in the roughrswsmay is a jewel in the roughrswsmay is a jewel in the roughrswsmay is a jewel in the rough
Re: Emergency! Need Help With Ir Sensors

Are you utilizing PWM 13 and PWM 15 because you are using a tank drive system?
__________________
Knowledge is only strength.... Knowledge and Wisdom, thats true power.
  #8   Spotlight this post!  
Unread 17-02-2004, 00:07
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Emergency! Need Help With Ir Sensors

13 and 15 would probably come from the code for single-joystick navigation in the default program.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #9   Spotlight this post!  
Unread 17-02-2004, 23:45
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: Emergency! Need Help With Ir Sensors

for some reason after connection the motors to pwm 3 and 4 the robot just goes crazy it just sought of goes everywhere bashing everything. Anyone knows why?
  #10   Spotlight this post!  
Unread 18-02-2004, 00:28
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Emergency! Need Help With Ir Sensors

are your motor polarities correct? if one were backwards, the robot would turn when it thinks it's going forward, and go forward or back when it thinks it's turning... this would cause some really strange behavior.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #11   Spotlight this post!  
Unread 18-02-2004, 08:07
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,856
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: Emergency! Need Help With Ir Sensors

Quote:
Originally Posted by magical hands
for some reason after connection the motors to pwm 3 and 4 the robot just goes crazy it just sought of goes everywhere bashing everything. Anyone knows why?
I'd put it up on blocks and check the status of the IR sensor tracking.
Call the tracker alone without the navigate and print out the tracker status:
Tracker_Data[left].Status, Tracker_Data[right].Status

Also observe how the servos behave.
Does it hold on the beacon or look all over the room?

After you're sure the tracker/beacon combo are working correctly, then move on to debugging the navigator code.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #12   Spotlight this post!  
Unread 18-02-2004, 12:14
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: Emergency! Need Help With Ir Sensors

Hey,
is there a way to see if the IR / optical sensors work, i mena for the beacon you just get a camera, what is the way to c if the IR sensors are working. And whts the shipping time, if any of you have ordered new IR sensors..
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
  #13   Spotlight this post!  
Unread 18-02-2004, 12:29
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,856
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: Emergency! Need Help With Ir Sensors

Quote:
Originally Posted by thoughtful
Hey,
is there a way to see if the IR / optical sensors work, i mena for the beacon you just get a camera, what is the way to c if the IR sensors are working. And whts the shipping time, if any of you have ordered new IR sensors..
There are several easy methods.

- You can just check the IR receiver buffers, see Kevin's FAQ or other posts for what to look at and how to interpret the data.

- You can disconnect the servos and printf the Tracker_Data[left].Status & Tracker_Data[right].Status, i.e., the tracker states are:
NONE_IN_VIEW 0
RIGHT_IN_VIEW 1
LEFT_IN_VIEW 2
BOTH_IN_VIEW 3

- Using a regular digital input printf the value of the sensor. In the presence of the beacon or a compatable IR source like a TV remote you will see a mixture of 1's & 0's. Bad sensors show all 1's or all 0's.

For shipping you can order overnight of course. 1st class TX to NY was a couple of days (Friday to Tuesday over a holiday).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-02-2004 at 12:32.
  #14   Spotlight this post!  
Unread 19-02-2004, 01:11
danielkitchener's Avatar
danielkitchener danielkitchener is offline
408 Computer Nerd
AKA: Daniel Kitchener
#0408 (Roboticks)
Team Role: Alumni
 
Join Date: Sep 2003
Rookie Year: 2001
Location: Pompano Beach, Fl
Posts: 52
danielkitchener is on a distinguished road
Re: Emergency! Need Help With Ir Sensors

We also had similar problems with our robot going crazy with the tracking code...but then we realized our IR sensors weren't plugged in. But FYI, i think servos are supposed to plug in to PWMs 3 and 4. Your robot was going crazy because the pwm values were switching back and forth because the program thought they were servos and was sweeping the field with them...
  #15   Spotlight this post!  
Unread 19-02-2004, 01:16
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: Emergency! Need Help With Ir Sensors

i had tht hunch dont know if it is true, but can you please point out where the motors will go than..i mean drive motors
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
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
Interrupts and rotation sensors kor Programming 3 12-02-2004 11:05
Line tracking sensors - Wiring up? ahmed Electrical 2 09-02-2004 20:52
wiring diagram for light sensors??? pagemauck Control System 1 21-01-2004 16:32
what type of sensors are good and convenient magical hands Programming 7 04-01-2004 23:04
Q&A Discuss: optical sensors CD47-Bot Extra Discussion 0 15-02-2003 22:58


All times are GMT -5. The time now is 00:04.

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