Hello Guest it is March 28, 2024, 05:24:55 AM

Author Topic: cannot get encoder or mpg to work, need help  (Read 5001 times)

0 Members and 1 Guest are viewing this topic.

cannot get encoder or mpg to work, need help
« on: June 18, 2007, 12:42:54 PM »
I took a 6 volt battery and hooked it up to the +5 and ground lines of the encoder (the encoder says 6V is within the range spec for it btw).  I connected the A channel to pin 10 and B channel to pin 11 of the parallel port.  When I turn the encoder I dont get a reading.  After setting the pins in the config screen the reading is simply -1 and doesnt change.  What am I doing wrong?  I tried 2 different encoders with the same result.
« Last Edit: June 18, 2007, 12:45:19 PM by mbwittig »

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: cannot get encoder or mpg to work, need help
« Reply #1 on: June 18, 2007, 01:20:09 PM »
Hi, Mbwittig

Did you connect the Neg. to a known good Gnd pin on your interface Cable ?

Maybe this is It, Chip

« Last Edit: June 19, 2007, 01:08:13 AM by afn09556 »
Re: cannot get encoder or mpg to work, need help
« Reply #2 on: June 18, 2007, 01:47:05 PM »
OK so I have to run a wire from the negative terminal of the battery to a ground pin on the parallel port?
Re: cannot get encoder or mpg to work, need help
« Reply #3 on: June 18, 2007, 05:31:58 PM »
Off course you have to connect battery gnd to the lpt pins 18 - 25, as this is the way of closing current loop.
Cheers

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: cannot get encoder or mpg to work, need help
« Reply #4 on: June 19, 2007, 01:05:53 AM »
Hi, Mbwittig

Yes neg. to Gnd, Not all cables or PPort cards use all the 18-25 pins, If your using a brake-out board all are probably tied together on the board though.

Thanks, Chip
Re: cannot get encoder or mpg to work, need help
« Reply #5 on: June 20, 2007, 06:24:58 AM »
Hi all

Will 6 volt not destroy your port if no precautionary measure is taken?
If i want to put an encoder directly to the port do i need to put a resistor in series with the a and b channel?

Greetings:
Willem

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: cannot get encoder or mpg to work, need help
« Reply #6 on: June 21, 2007, 01:24:46 AM »
Hi, Willem

The 6 volts isn't connected to the port, Just the Gnd/Neg, A and B outputs thay should be 5 volts from what i've seen.

Thanks, Chip
Re: cannot get encoder or mpg to work, need help
« Reply #7 on: June 21, 2007, 02:24:09 AM »
Hi Chip

My mistake , the output signal is of course stabilized.
Bud how about a resistor in series with A-B , shall that be necessarily and if yes what value should it have?
I ask this becourse my intention is to use two encoders for MPG purpose and i dont like to add a seccond break out board.

Greetings:
Willem

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: cannot get encoder or mpg to work, need help
« Reply #8 on: June 21, 2007, 02:25:33 PM »
Hi, Willem

If there 5 volts no resistor needed, some TTL encoders require a pull-up resistor, I think theres a good description on the Rutex web site.

There tied to the A & B lines then to 5 volts, Around 470 ohm's, Hears the link to look at.

http://www.rutex.com/pdf/R9xHbdi.pdf

I've used two encoders also, Direct to port.

Hope this Helps, Chip
Re: cannot get encoder or mpg to work, need help
« Reply #9 on: June 21, 2007, 03:01:53 PM »
Thanks Chip

I take my chance and give it a try , in the worst case it can cost a lpt board.


Greetings:
Willem