I am using the adafruit 2.8 TFT display and it uses all of the analog pins except 42, 44 and 46 so I am using one pin(44) for all four of the motor controllers. I would really like each to have its own signal. Can this be done some other way?
urthlight:
I am using the adafruit 2.8 TFT display and it uses all of the analog pins except 42, 44 and 46 so I am using one pin(44) for all four of the motor controllers. I would really like each to have its own signal. Can this be done some other way?
You have 3 available output pins, and that's excellent news!
You can wire a 74HC595 to those 3 pins and that will give you 8 output signals. In short, you'll communicate serially with the 595 (thus the need for only 3 pins) and it will give you 8 parallel outputs, or, in other words, the 595 will work as a port multiplexer.
More here:
I only have 3 analog outputs left but a lot of digital pins.
urthlight:
I only have 3 analog outputs left but a lot of digital pins.
I am a bit lost here... what do you mean?
AFAIK, analog outputs are simply digital pins. They are the same thing.
urthlight:
I am using the adafruit 2.8 TFT display...
This?
AlxDroidDev:
I am a bit lost here... what do you mean?
"Analog pin" = pin capable of PWM output.
Ok... my bad then. I always called them PWM pins. For me the analog pins are the input pins, since the PWM pins are digital.
Exactly. I read somewhere about Pseudo pwm on a digital pin but I dont know.
But this is a small issue on the butt of a larger problem.
Motor Acceleration Timer Deceleration Problem