Go Down

Topic: Using Arduino with 2 pots and an LCD display (Read 1 time) previous topic - next topic

HazardsMind

Are you familiar with the LCD library? If not, try the example sketches first then work on your project, otherwise you will have a hard time understanding whats going on with the code.

You dont need:
int pot1out = 11; //potentiometer out for digital pin 11
int pot2out = 3; //potentiometer out for digital pin 3

Just input the data and use LCD.print to output the data on the LCD.
Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

greysun

But that code is setup so that the signal goes from pins 11 and 3 to my pedal circuit.

So the pots go into the analog inputs, read on the LCD, then out of 11 and 3 to my tremolo LFO.

If I take that code out, how will I get a signal back to the pedal circuit?

HazardsMind

Quote
So the pots go into the analog inputs, read on the LCD, then out of 11 and 3 to my tremolo LFO.


Oh, my bad.

Uhh, I dont think that will work properly, because even if you use PWM, it still wont output the same data as you put in. The output pin send out either HIGH, LOW, 0 - 255 PWM, or 0 - 1024 using the servo Iibrary.

If your input values are within a decent range 0-255 or 0-1024 then maybe it will work, also you might want to add a capacitor to smooth out the digital signal.

Maybe someone else can give you a better answer, I have never done what you want to do, so I am uncertain it will even work that way.
Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

greysun

Yea, the digital conversion is what I was afraid of. Anyone have any other ideas here?

The LFO in my pedal circuit all hits an LED - the audio signal is put through a photoresistor.

Is there a way to have a 5 knob arduino wave generator that goes to 1LED? If could get the following from an Arduino, I could just go that route:

Speed: rate of the effect, from a steady swell, to a rapid fire arm
Symmetry: from ramp-up sawtooth, to triangle, to ramp-down. (pulse width when Smoothness is at square)
Depth: amount of effect from barely a shudder to full tremulation. Can achieve silence to blaring loud squarewave chop
Spacing: loud/quiet "balance" waveshaper... adjusts spacing between volume pulses
Smoothness: blend between full on/off squarewave "chop" to smooth buttery sine-tri-round wave

Thoughts there? That's probably way out of my league right there, hehe.

Go Up