Pages: [1]   Go Down
Author Topic: Not Enough Analog Out pins  (Read 492 times)
0 Members and 1 Guest are viewing this topic.
Space Coast Florida
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

BHZ, MG, Brazil
Offline Offline
Sr. Member
****
Karma: 10
Posts: 346
Android developer; Arduino enthusiast
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:

http://arduino.cc/en/Tutorial/ShiftOut

http://www.instructables.com/id/Multiplexing-with-Arduino-and-the-74HC595/

Logged

Learn to live: Live to learn.
Showing off my work: http://arduino.cc/forum/index.php/topic,126197.0.html

Space Coast Florida
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I only have 3 analog outputs left but a lot of digital pins.
Logged

BHZ, MG, Brazil
Offline Offline
Sr. Member
****
Karma: 10
Posts: 346
Android developer; Arduino enthusiast
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Learn to live: Live to learn.
Showing off my work: http://arduino.cc/forum/index.php/topic,126197.0.html

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using the adafruit 2.8 TFT display...

This?
https://www.adafruit.com/products/376
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am a bit lost here... what do you mean?

"Analog pin" = pin capable of PWM output.
Logged

BHZ, MG, Brazil
Offline Offline
Sr. Member
****
Karma: 10
Posts: 346
Android developer; Arduino enthusiast
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

"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.
Logged

Learn to live: Live to learn.
Showing off my work: http://arduino.cc/forum/index.php/topic,126197.0.html

Space Coast Florida
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Exactly. I read somewhere about Pseudo pwm on a digital pin but I dont know.
Logged

Space Coast Florida
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But this is a small issue on the butt of a larger problem.

Motor Acceleration Timer Deceleration Problem
http://arduino.cc/forum/index.php/topic,162373.msg1213468.html#msg1213468
Logged

Pages: [1]   Go Up
Jump to: