Ive been doing some digging, and i haven’t found the answer yet. Hopefully someone knows, for the speed output pins on the all in one board. Is it outputting the singal on a 0-5V or a 0-12V? I have a project, hopefully i can share soon if it works for an electric dry fertilzer drive, and i was wonering if i can run that output into a mega pin 18 without the need for an opticoupler due to the wrong voltage logic.
The output is already an optocoupler. By default it is potential-free. Bridges on the board allow voltage to be applied if needed.
Ok perfect, so i should be able to put that into the pin 18 interupt with no issues or modifications then?
The pin 18 interrupt of what ?
Without context and a shematic of what you want to do, it’s impossible to answer.
Sorry, I’m trying to take the output speed from the Ag Open GPS into a Mega 2560 Arduino. I built an electric fertilizer system that the arduino is driving, but it needs to somehow get speed. I was hoping to run the speed + into the interupt pin D18, and then the Speed - to ground on the arduino. Digitial read the signal, and convert that to speed so that the arduino would know the speed.
I was thinking of coding it like this:
pinMode(SPEED_INPUT_PIN, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(SPEED_INPUT_PIN), speedPulseISR, FALLING);
What voltage is the speed pulse. If the mega is tolerant. Just use speed + and share the ground from Agopen with the mega.
that is what i’m trying to figure out. From the earlier post, i’m assuming there is no voltage if it is set up to an opticoupler. So the input voltage would be what you send to it via the mega, hence changing my code to a Input_Pull up.