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 / 4295
4294  |  4296
Subject: 
ports question (cont)
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Mon, 10 Aug 1998 15:20:46 GMT
Original-From: 
sawad <sawad@utensil.{spamcake}net>
Viewed: 
1650 times
  
... just to follow up on my question: i'm trying to read
the photosensors through the analog ports.
however, the value returned by analog(i) is always
255, so perhaps i have the sensors hooked
wrong.

when i read "analog(0);" it always
retunes 255, no matter how much light
i am shining upon the sensor, which i
have plugged into the rightmost set
of holes in the analog bank.

btw, i am able to turn the motors fwd/rev/off,
and can printf(). basically, the hb (which i bought
assembled) seems to work, so i'm sure i just
have something wrong with my understanding of
how to hook into the analog (and digital) ports.

thank you for your time

sawad



1 Message 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