Ran out of analog pins

hi guys so i am making a project that requires 7 force sensors, but arduino uno only has 6 analog pins. is there any way for me to get more analog pins (without upgrading arduino)?
47 Replies
. . . AARAV . . .
:PostOnlyInOneChannel:
Callsign_Vulture
Callsign_VultureOP2d ago
oh whoops sorry but act how do i
. . . AARAV . . .
Post your question only in one place- either delete this one or your other one
Callsign_Vulture
Callsign_VultureOP2d ago
i deleted the other one alr
AnonEngineering
please don't crosspost you could use an analog multiplexer like the CD74HC4067 https://www.sparkfun.com/sparkfun-analog-digital-mux-breakout-cd74hc4067.html
Callsign_Vulture
Callsign_VultureOP2d ago
is it possible for me to use digital pins?
DarwinWasWrong
What arduino are you using ?
. . . AARAV . . .
You would just get an HIGH/LOW, if your module has an digital output. Not something perscise
Callsign_Vulture
Callsign_VultureOP2d ago
Uno oh
. . . AARAV . . .
You would just know if there is force being applied , not how much force
Callsign_Vulture
Callsign_VultureOP2d ago
hold up so if a pill is sitting there can it detect like prob 0.5g pill or multiple pills stacked
. . . AARAV . . .
Yes, it can just detect if force is being applied, not how much force. Only even if your module supports digital output Well if your sensor is rated for that then yes.
Callsign_Vulture
Callsign_VultureOP2d ago
oh ok thanks
AnonEngineering
some sensors have analog & digital outputs
Callsign_Vulture
Callsign_VultureOP2d ago
so this shoudl work rite?
No description
. . . AARAV . . .
Send an pic and we can check
Callsign_Vulture
Callsign_VultureOP2d ago
yep up there
AnonEngineering
those are analog only sensors
. . . AARAV . . .
I’m guessing this is an pill box, an uno might be too big anyways, maybe upgrading the board might be usefull
Callsign_Vulture
Callsign_VultureOP2d ago
yep its a pill box the uno will be outside the box so yeah]
AnonEngineering
an Arduino Nano has 7 analog inputs...
Callsign_Vulture
Callsign_VultureOP2d ago
oh wait i have nano
. . . AARAV . . .
Maybe an ESP32 They have many analog inputs, depends on the board you get
Callsign_Vulture
Callsign_VultureOP2d ago
but i have wires alr soldered onto nano for a prev project
. . . AARAV . . .
You could de-solder them
Callsign_Vulture
Callsign_VultureOP2d ago
bro they are bent
. . . AARAV . . .
That’s the beauty of breadboards
Callsign_Vulture
Callsign_VultureOP2d ago
bc the prev proj i wanted a compact one
. . . AARAV . . .
Consider investing in an ESP32 True
Callsign_Vulture
Callsign_VultureOP2d ago
does ESP32-CAM work? i have that
. . . AARAV . . .
It should, it’s an esp with an hat.
Callsign_Vulture
Callsign_VultureOP2d ago
nice
. . . AARAV . . .
But I don’t think it has enough Alanalog pins, so probably not for this project
Callsign_Vulture
Callsign_VultureOP2d ago
just checked, it has 16 pins
. . . AARAV . . .
I gtg
Callsign_Vulture
Callsign_VultureOP2d ago
ok thanks for ur help is this the same for esp32-cam?
AnonEngineering
it is for the esp32, different dev boards bring out different pins
Callsign_Vulture
Callsign_VultureOP2d ago
oh
DarwinWasWrong
You can use a digitals pins the multiplex the analog units. @Callsign_Vulture
DarwinWasWrong
@AnonEngineering more than one way to cook and egg
Callsign_Vulture
Callsign_VultureOPthis hour
oh can u send the circuit diagram ukw its fine ill use arduino nano ill just get another one
. . . AARAV . . .
. . . AARAV . . .this hour
Consider an ESP32. It sounds like you already have experience, and I think an esp would be better. You could add WiFi notifications if you forgot to take your pill-with no extra modules
Callsign_Vulture
Callsign_VultureOP18h ago
ok
DarwinWasWrong
DarwinWasWrong13h ago
@Callsign_Vulture

Did you find this page helpful?