To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 6465
6464  |  6466
Subject: 
Re: encoders and analog ports
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 9 Jul 1999 14:48:52 GMT
Original-From: 
Aaron Dwyer <AARON@STALLION.OZspamless.AU>
Viewed: 
836 times
  
thanks fred.

i'm now using the servo_a7.icb routines to drive my servo.

i am still experiencing problems with the analog ports.

i have cascading if then else statements that yield varying responses
from my 5 analog ldr's. i have put printf's throughout these statements
to work out what is going on.

with the fencrd0.icb file loaded the other analog ports randomly produce
values on them.

i've turned off my servo (removed servo_a7.icb from the startup) for now
until the analog ports and fencrd0.icb are sorted out, and the problem
is still there.

since the fencrd0.icb reprograms the a/d port. could it be reprogramming
it all the time hence the bogus values on the other a/d ports?

i have replaced the 47K res pack with 100K for a better voltage divider
on the ldr's. i can't see that causing it any problems.

i've tried a different handyboard to rule out a hardware issue.

i don't even have any code for the fencrd0.icb to use yet. it is just
loaded at startup.

any ideas?

thanks.

Fred Martin wrote:

my shaft encoder routines are not compatible with the old servo routines.

please try the new servo routines at

  http://el.www.media.mit.edu/projects/handy-board/software/libs.html

fred

hi there

i'm not yet receiving this list so could any replies please not leave
out my direct email.

my problem is thus.

i've got 5 of the hb's analog ports used by ldr's. they all work fine
and have done so as line detectors for 3 years now.

i have just recently ripped a mouse apart and am trying to have a shaft
encoder.

this has also been successful to a certain degree. using the hb
fencdr0.icb i get a nice velocity and everything is fine with the
encoder part.

however i've found that having the fencdr0.icb loaded the ldr's which
are attached to the other analog ports are returning wild readings. if i
manually in ic, read the sensors analog(1); and such they read back ok.
but since i have my sensor code in a spawned process maybe this has
something to do with it??

so i'm assuming that the fencdr0.icb is somehow interfering with the ldr
analog readings. spurious readings mean no robot = can't have encoder
running at the same time. bugger.

has anyone else every run across this problem. i did a search using the
cool mailing search provided and was a bit swamped.

thanks
aaron.
--
_____________________________________________________________________
Aaron Dwyer
http://members.xoom.com/aarondwyer


--
_____________________________________________________________________
Aaron Dwyer                                     Stallion Technologies
http://members.xoom.com/aarondwyer           http://easy.stallion.com



Message is in Reply To:
  Re: encoders and analog ports
 
my shaft encoder routines are not compatible with the old servo routines. please try the new servo routines at (URL)hi there (...) (25 years ago, 8-Jul-99, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR