Shop OBEX P1 Docs P2 Docs Learn Events
Basic Analog to Digital Conversion Experiment — Parallax Forums

Basic Analog to Digital Conversion Experiment

sckamsckam Posts: 27
edited 2004-10-05 05:24 in BASIC Stamp
Dear all,
I am testing one of experiments under 'Basic Analogue and Digital'manual.

Under Chapter 3: Basic Analog to Digital Conversion · Page 45.

Attach here the BS2 code and the bmp file showing the experiment.

I have measured the power supply, grounding at BS2 , it is ok.

I also rotate the POT, there is a variable voltage 0-5VDC go into PIN2 of B2.

I have confirmed all the pins at BS2 is wire accordingly and no break.

But I cannot get the digital output value from the experiment....
Can someone try the experiment and let me know your result ?

Thank you.
Best regards.
Kam

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thank you.

Warm regards.
Kam

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-02 09:23
    Double check your connections -- the ADC0831 is very easy and very reliable (I was using one today as a matter of fact). If you connect everything properly, the code will work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • sckamsckam Posts: 27
    edited 2004-10-04 14:10
    Dear Jon,
    I have checked fully the wiring connection, they are wire according to the description:

    I am using the BOE to do the experiments, the Vdd(on the schematic)
    is connect to the Vdd(on the BOE) and the Vss(on the schematic) is
    connect to the Vss(on the BOE).

    Pin 1 on the ADC0831 is connected to pin P0 on the BASIC Stamp.
    The wiper terminal of the pot is connected to pin 2 on the ADC0831.
    Of the two remaining terminals on the pot, one is connected to Vdd on the Board of
    Education, and the other is connected to Vss.
    Pins 3 and 4 on the ADC0831 are connected to Vss.
    Pins 5 and 8 on the ADC0831 are connected to Vdd.
    Pins 7 and 6 on the ADC0831 are connected BASIC Stamp pins P1 and P2
    respectively.

    I have also tried the program SHIFTIN.bs2 on page 312 of "BS Programming Manual(V2.0c)",· with modified the pin assingment accordingly.
    But also no output from BS2.

    I have measured there are input changes from 0 to 5VDC at the input pin 2 of ADC0832CCN.

    But why no output from BS2 at Debug Terminal ?

    Thank you.
    Best regards.
    Kam


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thank you.

    Warm regards.
    Kam
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-04 15:20
    Which ADC are you using in your circuit: ADC0831 or ADC0832?· If the latter, you will have to change the code.· Please consult the attached tech doc for differences in those parts.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office


    Post Edited (Jon Williams) : 10/4/2004 3:27:31 PM GMT
  • sckamsckam Posts: 27
    edited 2004-10-05 05:24
    Dear Jon,
    I will try to look for ADC0831 to replace the ADC0832CCN that I have now.
    So that I will not need to modify my code.

    Then I will re-try again, I will keep you update.

    Thank you.
    Best regards.
    Kam

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thank you.

    Warm regards.
    Kam
Sign In or Register to comment.