This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to connect two potentiometers in f28335

Other Parts Discussed in Thread: CONTROLSUITE

I am using f28335 starter kit of texas instruments (C2000). I am working
with matlab 2010, ccs 3.3v. At this time I can read data from 1
potentiometer. My question is:

Is it possible to connect more than 1 potentiometer to f28335 for data
reading. I have one ADC (12 bits) with 8 A-channels and 8 B-channels.


I am using one ADC block from simulink library of matlab. In the ADC block I am using A mode and DMA channel 1. Like a sample time I put 0.001ms.

  • Hi,

    Tihomir Tiankov said:
    Is it possible to connect more than 1 potentiometer to f28335 for data
    reading.

    You want to add pots just to vary voltages right? If yes then off course you can!

    Regards,

    Gautam

  • But in my starter kit I have only one ADC 12 bits with 8 A-chanels and 8 B-channels. I have connected one potentiometer to this ADC. I think that for the second potentiometer I need another ADC. I would like to vary voltages of two different potentiometers using matlab simulink. 

  • Tihomir Tiankov said:
    But in my starter kit I have only one ADC 12 bits with 8 A-chanels and 8 B-channels. I have connected one potentiometer to this ADC. I think that for the second potentiometer I need another ADC. I would like to vary voltages of two different potentiometers using matlab simulink. 

    Which starter kit are you talking about? This one http://www.ti.com/tool/TMDSEZ28335  ??

    This has 16 ADC channels ie as you mentioned above 8A and 8B and all these can be configured individually by fixing 16 various pots to 16 channels and vary the ADC signal.

    Regards,

    Gautam

  • Could someone send me any example how to configure the channels of ADC for reading more than one potentiometer using simulink and adc blocks for f28335 experimenter kit.

    My second problem is also using only one potentiometer. I can configure only the first channel (ADCINA0) for data raeding from one potentiometer. When  I try to connect the potentiometer to ADCINA1 nothing happens. Could someone help me?

  • Tihomir Tiankov1 said:

    Could someone send me any example how to configure the channels of ADC for reading more than one potentiometer using simulink and adc blocks for f28335 experimenter kit.

    My second problem is also using only one potentiometer. I can configure only the first channel (ADCINA0) for data raeding from one potentiometer. When  I try to connect the potentiometer to ADCINA1 nothing happens. Could someone help me?

    This is the connection diagram:

    Where Vin should not exceed more that 3V.

    Also, I hope you've downloaded controlSuite. If so then check this example project:

    C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\adc_soc

    2 Adc channels are configured and you can copy the config to add more.

    Regards,

    Gautam

  • Hi

    I didn't understand exactly how to configure ADC channels for data reading of more than one potentiometer. Therefore I started my experiments using only one potentiometer. I have connected my potentiometer according to your scheme. I can read one potentiometer, connected to channel A0 of ADC block. I can't read the same potentiometer, connecting it to channel A1 of ADC block. Why I can read the potentiometer only from channel A0. 

    Regards

    Tihomir

  • Tihomir Tiankov said:
    I can't read the same potentiometer, connecting it to channel A1 of ADC block. Why I can read the potentiometer only from channel A0. 

    Tihomir, you need to configure ADCs for your controller. I'm not sure whether you're able to do that! Have you configured other ADCs in the code by referring the sample code?

    Regards,

    Gautam