Go to Post This is high school robotics for fun and education. Let's try and keep it that way. - Rod [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 25-11-2005, 16:14
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Encoder Output Problems

I have a Grayhill 63R128 encoder, an Atmel STK500 development board and a LeCroy 9354M oscilloscope. I have it hooked up like so:

Encoder Positive In -> 5vdc pin of Atmel Development Board
Encoder Ground -> Ground pin of dev. board
Probe 1 -> Encoder Output A
Probe 2 -> Encoder Output B
Probe 1 Gnd -> Board ground
Probe 2 Gnd -> Board ground

However, it's not returning a square wave back. Here's the o-scope screen dump http://img.photobucket.com/albums/v7...screendump.jpg

Thanks,
Mike
__________________
http://www.mikesorrenti.com/
  #2   Spotlight this post!  
Unread 25-11-2005, 16:22
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: Encoder Output Problems

I'm not sure if I'm reading that scope printout properly, but I think you're on AC coupling. Also that waveform is what I'd expect from a square wave on AC coupling. Put it on DC coupling and see what happens.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #3   Spotlight this post!  
Unread 25-11-2005, 16:27
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Encoder Output Problems

Quote:
Originally Posted by sciguy125
I'm not sure if I'm reading that scope printout properly, but I think you're on AC coupling. Also that waveform is what I'd expect from a square wave on AC coupling. Put it on DC coupling and see what happens.
I just set the coupling to "DC50Ω" and it's still doing the same thing

EDIT: Same thing, but Output A isn't showing anything.
__________________
http://www.mikesorrenti.com/
  #4   Spotlight this post!  
Unread 25-11-2005, 19:09
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: Encoder Output Problems

If changing to DC coupling didn't help, you may have attenuated probes. Look for a small slider with 1X 10X 100X or something like that on the probe, and play around to see if you get a prettier signal.
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
  #5   Spotlight this post!  
Unread 25-11-2005, 20:08
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,383
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Encoder Output Problems

Quote:
Originally Posted by Mike
I just set the coupling to "DC50Ω" and it's still doing the same thing

EDIT: Same thing, but Output A isn't showing anything.
The wave form output you gave, (and by the way, that goes a long way in helping us understand what you are dealing with, good work! ) displays a classic waveform display of a square wave read through an AC coupled channel. I am not familiar with that particular scope, so when you say you set it to "DC50Ω", I am not completely sure what that means for your scope. I can only assume that it is not correctly "DC" coupling probes 1 and 2 which, according to the picture, are connected to channels 2 and 3 respectively. The part I don't follow is the "50Ω" after the "DC". That is not a setting that I am familiar with for any scope. Also, as Manoel stated, for correct calibration purposes, make sure the probes are set to the same attenuation value that the scope is looking for. Some scopes do this automatically, some do not, so just double check it.

If possible, can you put up another picture of what your screen looks like with the new "DC50Ω" setting?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #6   Spotlight this post!  
Unread 25-11-2005, 21:43
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Encoder Output Problems

I emailed my electronics mentor and he said that I may need a pull-up resistor. I've never used an oscilloscope before, my dad bought this (industry grade) one home from his work, so it's really complicated...

I also posted on another forum, and they said DC50 is wrong
Quote:
that requires substantial DC drive. Basically in 50Ω mode the scope places a 50Ω resistor to across the probes tip and gnd.
I put it in DCM1Ω and I am now getting back correct square waves.

Thanks for the help =)
__________________
http://www.mikesorrenti.com/
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
Non Contact Magnetic Encoder with PWM Output Tom Bottiglieri Programming 3 09-10-2005 01:19
Kevin Watson's encoder code with RPM output MaxM Programming 2 05-02-2005 00:06
Updated Encoder Code Available Kevin Watson Programming 2 04-01-2005 01:00


All times are GMT -5. The time now is 11:53.

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