adcon problems with adcin


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    OK then, so you're not going to use the USB feature in?

    Let me know, i have some spare time today... to be honest, i'm out of solution to fix my actual Projects bugs.... ARRGGHHHH! Seems i need a break
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I use this:

    DEFINE OSC 4
    DEFINE ADC_BITS 8
    DEFINE ADC_SAMPLEUS 50
    ' Set clock source (3=rc)
    DEFINE ADC_CLOCK 3


    ......................

    for counter2 = 0 to 7
    SUM = 0
    FOR COUNTER1 = 1 to 10

    ADCIN counter2,A[counter2]

    PAUSEUS 24 'Pause between ADCINs

    SUM = SUM + A[counter2]

    NEXT COUNTER1

    A[counter2] = SUM/10


    And is working very good.

    Regard.

  3. #3
    Join Date
    Jul 2006
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    I might use the USB feature... I don't know if I need the feature right now though.

    I think I will use this code...but are the adc_bits and adc_sampleus numbers arbitrary?

    DEFINE OSC 4
    DEFINE ADC_BITS 8
    DEFINE ADC_SAMPLEUS 50
    ' Set clock source (3=rc)
    DEFINE ADC_CLOCK 3

    And mister_e I could use your expertise on a few questions: I am using an infrared emitter and the strength of that beam will be measured by an infrared receiver (which will be measured with the adcin command). However, I cannot seem to find an infrared receiver. Do you know of any online stores that sell them?

    The other thing I need are really cheap gearhead motors. Any suggestions?

    Last question: If I do end up using the USB feature, what software could I use to receive USB data (or should I write my own) which I can then process?

    I appreciate your help and wish you luck with your own projects.

    -Mike

Similar Threads

  1. ADCIN and PIC18F4331 Arghhhhh !
    By GrandPa in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th December 2010, 21:27
  2. ADCIN setup help need
    By dangill in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th February 2008, 16:22
  3. ADCIN problems with PIC16F73
    By passion1 in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 26th July 2007, 12:38
  4. Problems with MicroCode Studio ICD
    By Muzza in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th July 2006, 03:37
  5. help using adcin
    By harryweb in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st January 2006, 08:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts