Odd Question?

Hi,

Is it possible to tell/ask the Arduino to stop reading Analog Input pins and if so how?

The reason for asking this odd question, I'm playing with a MIDI Controller using PieterP's/tttapa MIDI_controller library using an Arduino Due and a few linear potentiometers.

My DAW has a learn function, where I click 'on screen the control i want to control', then move my linear pot to be mapped.

The problem I have, with using some cheap pots, is I get quite a lot of jitter from all the pots so mapping an individual pot can be hard.

So my thinking was, if I had a switch, when toggled it would isolate the 1 pot to be mapped. For example press switch 1 all analog pins would be ignored except A0. Press switch 2 all analog inputs would be ignored except A1 etc.

Is this possible, to not read a pin or pins?

Sorry, I have no code for this as I don't know if this is do-able or not, or how to ask the Arduino to do so?

Dizzwold.

dizzwold:
Hi,

Is it possible to tell/ask the Arduino to stop reading Analog Input pins and if so how?

The reason for asking this odd question, I'm playing with a MIDI Controller using PieterP's/tttapa MIDI_controller library using an Arduino Due and a few linear potentiometers.

My DAW has a learn function, where I click 'on screen the control i want to control', then move my linear pot to be mapped.

The problem I have, with using some cheap pots, is I get quite a lot of jitter from all the pots so mapping an individual pot can be hard.

So my thinking was, if I had a switch, when toggled it would isolate the 1 pot to be mapped. For example press switch 1 all analog pins would be ignored except A0. Press switch 2 all analog inputs would be ignored except A1 etc.

Is this possible, to not read a pin or pins?

Sorry, I have no code for this as I don't know if this is do-able or not, or how to ask the Arduino to do so?

Dizzwold.

Of course, all is doable. You really need to study the program examples.

Paul

Hi Paul_KD7HB,

Thanks for your reply.

Are you talking about the Arduino IDE, Examples, Control, WhileStatemenCondition, or something else?

Dizzwold.

dizzwold:
Hi Paul_KD7HB,

Thanks for your reply.

Are you talking about the Arduino IDE, Examples, Control, WhileStatemenCondition, or something else?

Dizzwold.

You asked if certain things were doable, and I answered based on an Arduino microcontroller. I am not going to answer "how".

Paul

Hi Paul_KD7HB,

LOL.

Ok, sorry, "how", poor choice of words.

I'm still very much a novice and don't ask for everything on a silver plater, just some direction to what I should look into and research more, so I learn at the same time.

Dizzwold.

Well, you are suggesting you will modify existing, operating equipment and in the process perhaps destroy some of it. My first suggestion is to duplicate what you already have before making any changes. I always order at least two of everything before I start a project just for insurance.

Do you have experience in modifying electronic equipment and getting it to work afterward?

Paul

Hi Paul_KD7HB,

I might not have made my question fully clear.

Is it possible to do this in the software?

Sorry for any confusion.

My electronics skills are good, I was a service engineer for panasonic.

Regards.

Dizzwold.

dizzwold:
So my thinking was, if I had a switch, when toggled it would isolate the 1 pot to be mapped. For example press switch 1 all analog pins would be ignored except A0. Press switch 2 all analog inputs would be ignored except A1 etc.

Is this possible, to not read a pin or pins?

Of course it is. Your program has to include an instruction to read a pin. They don't get read by magic. So you can easily write your program so it does or does not read any pin.

Note that an Arduino has only one ADC so each pin must be read separately.

...R