ADC component connection

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Post Reply
boa279
Posts: 38
Joined: Mon Sep 15, 2008 11:47 pm
Contact:

ADC component connection

Post by boa279 »

I might just be retarded but how is an ADC item actually connected. There is no schematic in the help files. Im going to use a POT as an example: im guessing 5 vdc is applied to the pot wiper and either end is applied to the pic depending on whether I want ascending or descending values...correct?? THANKS!!!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ADC component connection

Post by Benj »

Hello

The ADC component is connected to an I/O pin that is labelled on the chip as ADC0 through to ADCn. To change the pin connection simply go into the components connection menu and change the pin as needed. Then all you have to do is perfom a sample and then read the value as an 8-bit byte or a 10-bit value.

To connect analogue devices to the I/O pin eg a pot simply connect the two ends of the pot to 5V and Ground and then connect the middle of the pot to the analogue I/O pin.

boa279
Posts: 38
Joined: Mon Sep 15, 2008 11:47 pm
Contact:

Re: ADC component connection

Post by boa279 »

Exactly what I was looking for...THANKS!!

Post Reply