I want to make a pulse voltage like a turn signal into an input so it can run on ardunio MC. Anybody know the best approach? I was also wondering if i can make the signal from pulse into a constant signal voltage? Can i use this somehow as a logic gate input?
Hello d.brne2,
You can configure the Arduino’s Digital I/O pins to handle a digital High input, such as a pulse. It would act similar to a button push. You’ll most likely use the [digitalRead() function. Set an if() statement that will trigger once the digitalRead() signal goes high. Make sure that the digital pin is tied to ground with a 1k, 2.2k, or 4.7k resistor so it’s not left floating.](digitalRead() - Arduino Reference)
Thank you for responding! I did what you said and it did not work for what i am doing. Yes the output did for digitalRead did work if i used it as a button or connected it to ground. But what i need is to use an external voltage signal to act as an input. This input would be converted into a HIGH or LOW connection that i can use within the Arduino and program., whether the voltage is on or off. Can this be done?
Are you wanting to read this signal as an Analog input?
What voltages are you working with?
depends on what is more compatible and stable. if i can read it as an analog yes great. But if i can read it as a digital low or high even better. im working with a 12v pulse signal.
i used the digital signal as an input like you recommended, which i created an open circuit and hooked up a relay connected to my external voltage source. this relay closed the digital output giving me my results i wanted but im curious to know if i can bypass this relay system completely. to convert this external pulse signal into a constant and use it directly into the mirco controller.
What are your thoughts? What do you think i should go with? The relay system isn’t bad, it would completely separate the power sources, which is a good thing.
12v DC
Hello,
At this point, I think this project is out of scope for Technical Support. However, this is still a fantastic post for the community. I wish you the best of luck with your project.