BasicX
Discussion forum for the BasicX family of microcontroller chips.
Search Results for "getadc"
Post a new Thread
Don Kinzer - Jul 5 2004
The BasicX System Library manual says that in order to use GetADC()
you needn't configure the pin as an input. I did a quick experiment
to verify that and the evi... 
prolink3s - Nov 4 2002
Hi I having trouble getting the correct voltage reading using
GetADC. Using a voltmeter it says 0.3volts but GetADC says it is
only 0.03. What is going on and how... 
prolink3s - Nov 6 2002
I have a question about the GetADC channels.
Are they open collectors?
Because I am trying to do a GetADC and keep on getting
voltage readings around 0.03.
T... 
- Sep 21 2000
Divide the output of GetADC() by 4? Ex.
byte bVal
bVal = CByte( GetADC(13) \ 4 )
This would actually get you a maximum of 256. You could simply
subtra... 
- Apr 19 2001
Does anyone know if the GetADC() functions always run code to
re-configure the input pins to A/D type, regardless of whether they
were already set that way? I wou... 
p_dubinsky - Aug 3 2004
Does anyone know how long a GetADC command takes? Would it be faster
to use an off module ADC (assuming 10 bit resolution)?
Thanks,
Paul
... 
William Keith - May 20 2001
I now have the lm34 working (Thank you to Dave & Tom).
I am however unable to figure out how to display the temp with 2 digits after the decimal point (72.45)
I ... 
yiwy - May 26 2003
Thank everybody for your answers, I am building my project with
Basicx-24 microcontroller and one Serial 2x16 LCD. This
microcontroller has been working well, bu... 
- May 7 2001
Hi guys,
From the BX documentation, GetADC(pinnumber) has an integer range
of (0 - 1023). Let say if the input analog voltage is 1.8V, then ,
if the mathemat... 
gouardopatrick - Jan 29 2009
Hello,
I want to read 4 AC voltage at 50 Hz coming from a Current Sensor
using the BX-24.
The BX-24 (or other type of processor) read only DC voltage but the
idea is to us... 
Frank Manning - Feb 3 2000
> From:
>
> The Atmel info sheet specifies between 22 and 66 uSecs depending
> on precision of 1.5 to 0.5 LSB.
>
> In the real world, how many samples per se... 
Jack Wu - Aug 18 2003
Hi i was playing with the GetADC command, i used a
loop to gather the voltage off of a pin, i think it is
broken because the readings are always wrong. here is
th... 
slimsohn - May 6 2003
Hi, I'm trying to read an input voltage of 3.2V from the BasicX.
I want to input it into pin 13 and then output it.
My current code is:
Const Volt_in As ... 
jmayn2002 - Dec 17 2001
hi i was doing the example for get adc to read a thermister. my
question is how do i see the value for the voltage or resistance on
the screen.below is the code i... 
limorgarcia - Oct 27 2003
Hey all,
I'm trying to run two servo motors with two pots. I am not sure of
how to code it so each set would run seperately. this is my code and
it doesn't work... 
Daniel Navascués Benito - Jul 7 2000
Hi group
I'm using the getADC function (integer version) to catch data from a sensor. I've used this piece of code to do that:
----------------------------
... 
rauseo82 - Mar 20 2006
i am attempting to add memory using an external eeprom. the good
news is that i have added the memory and know that it works. the bad
news is i can't get my information ont... 
flashsanchez - Jan 17 2005
I hooked up a potentiometer fine to my BX-24 and I have that running
fine but now I am having problems trying to measure the resistance of
a Cds. I guess this is... 
Tony Brenke - Apr 19 2000
well first of all the gp2d12 are analog sensors.
you need to use your AD converter to mesure these.
connect the yellow wire to a pin. (13 through 20 only)
... 
Paul Stowitts - Sep 28 2002
I have a BX-24 set up to use pins 13 and 14 as analog inputs using GetADC.
Pins 15, 16 and 17 are used as outputs for LEDs. If I turn any, or all, of
the LEDs on an... 
CHANCE - Jun 17 2005
Hi
my friend T. Andley gave me a reference to this site re: Bx-24. Him
and I do hacks with the robosapien robot.
I just recently purchased a BX-24 Dev kit, along wi... 
Chris H. - Jan 9 2000
That is what I'm doing, but it does not work. Niether Register.PORTC or
Register.PINC is returning anything as far as I can tell. I want to read the
entire port as ... 
Chris Parker - Nov 26 1999
Hi,
Another simple question, I'm sorry. I know I should be able to figure this out myself, but I am stumped. I have an LM35DX temperature sensor which I have conne... 
- Oct 30 2000
Hi, I'm new to this group and new to microcontroler/basic stamp
programing. I'd like to build a simple volt meter that measures 0 to 5
volts and outputs the volta... 
Neil Jepsen - Jan 31 2002
Cory...this should work:
dim volts as integer
volts = getADC(18)
debug.print "volts = "& cstr(volts) '0-5v => 0 - 1023
Corey Fogarty wrote:
... 
Emil E. Hrivnak - Apr 18 2003
You can use any one of them. I use all 8 to measure sensors scaled from 0
to 5 volts. Here's a sample of my code:
Const Forward_Power_Base As Single = 0.0
... 
Dexter Francis - Jun 19 2003
Greetings all -
I'm writing a little test routine for a BX-24 that should read the state of
all the I/O pins and store those values in an array for later use.
... 
don_kinzer - Nov 10 2003
--- In , "Rich Beckwith" wrote:
> ... I get a return value of 704 while measuring a 7040 Khz signal.
>
> freq1 = counttransitions(freq_in, 0.05)
... 
btecontrols - Jul 12 2005
--- In basicx@basi..., orthner@orth... wrote:
> At 10:04 PM 1/13/00 -0700, you wrote:
> >From: "Jack Schoof"
> >
> >Where is variable defined? Above the s... 
Tom Becker - Sep 21 2004
I've seen a number of comments that suggest interaction of digital and
analog neighboring pins but which offer no explanation nor a solution
other than reassigning ... 
Joseph Obernberger - Aug 3 2003
Hi - just wanted to thank everyone for the help so far!
I'm having a problem using the serial port (Com1) inside a task with the
Debug.Print command. I start two t... 
nuepatrick - Jul 7 2006
Please disreguard the previous post
Here is a better version of what I need to do. The only problem I am
having now is that the displayed value is not tracking the measured
... 
- May 22 2002
The program I'm running is NOT fancy. I'll include it at the end of this
e-mail. My desire is for this program to run continuously. It DOES run fine
for hours or ... 
Chris Griffith - Nov 8 2002
Can you please Unsubscribe me!!
--- wrote:
> There are 8 messages in this issue.
>
> Topics in this digest:
>
> 1. Simple question about GetADC chann... 
Jon Hylands - Aug 29 2000
On Tue, 29 Aug 2000 19:21:36 -0000, wrote:
> what value would i get in data? I got differnt values most of the time
If you've defined the pin as an input pin... 
simmicht - Sep 19 2002
I was sampling a 400hz signal the other day (as we all do) and I was
pleased to get about 14 samples per cycle (2.5ms cycle). This was
using the code block A belo... 
nuepatrick - Jul 7 2006
I am trying to measure 10 - 15 volts. I have the following program
'--------------------------------------------------------------------
' This program will measure the battery... 
- Nov 15 2001
Hi all,
I am attempting to read the voltage from from a joy stick.
I originally hooked it up as follows:
Joy stick pin to
1 -------------------- +5 volts... 
paul...@yahoo.com - Nov 18 2008
I am new to the bx 24 and for a starter project I have designed a tracking solar panel system. I have two small panels that i would like to compare voltages to in order to tell if... 
|
1 |
2 |
3 |
4 |
5 |
next