Also, my values from different channels affect each other.. This
problem persists!
I experimented with the internal sensors.. increased the threshold to
150 (since, decimal value of the origin on x-axis is 130 approx.) and
gave sufficient light to the LDR (approx. value 20).
Now, i increased the value on channel0 (LDR) by keeping my thumb on
it.. It also increased the value on channel 1 and triggered the MIDI
messages/LED's on both..
But when the value on channel 1 was increased, it did affect the
channel 0 value but did not trigger the MIDI message or LED since it
could not reach a higher value than 45!
So, basically my values on different channels affect each other.. What
should i do? I am going to make 8 drumpads with piezos in them.
On Nov 4, 6:16 am, Hardik Shah <
imhardiks...@gmail.com> wrote:
> Hi,
> There is a mistake in your program, first you will need to mask off all the
> channel bits in ADMUX register and than load the new channel selection bits.
> ADMUX &= 0xE0;
> ADMUX |= ADC_CHAN;
>
> The conversion rate of adc is in usec so you can store the results of all
> the adc and process it accordingly.
>
> On Mon, Nov 1, 2010 at 12:23 PM, bhaumikbhatt
> <
bhaumikbhatt.nm...@gmail.com>wrote: