Hi, I am trying to convert analog signal to digital before it is read by Arduino. There are external ADCs but I think what I am asking is different. This is for a standard arduino joystick and just trying to translate the pot output to up/down/left/right (basically, for it to function like 4 separate on-off buttons).
- no SPI/serial input (already have plenty of devices on serial and it’s slow)
- Just need to read when HIGH or LOW. So, from the joystick:
—send signal to pin1 when F-B reading >3.5v (can be 4, doesn’t matter, whenever the joystick is pushed all the way up)
—send signal to pin 2 when F-B reading <1.5v
—send signal to pin 3 when L-R reading >3.5
—send signal to pin 4 when L-R reading <1.5v
is there an off-the-shelf solution for this? Or what is the best way to implement this?
I tried bunch of 74 series chips and can easily capture when potentiometer is either low or when high (translate into digital) separately. But, once I try to capture both high and low, it doesn’t work: I try to connect the joystick (potentiometer) output to two pins of 74 chips and, while they work one at a time, together, one of them is always on when two IC pins are connected to the same potentiomenter. Tried using pull-up/pull-down resistors, diodes, etc. to no avail.