I'm new to Arduino and programming for it. I have knowledge of programming for Industrial Automation systems, and also development for Windows.
But yesterday I was given an Arduino Uno, with the request to create a small program for it.
And yes, I really think that it's a small program, but as a complete Arduino newbie it's still a big task for me.
Let me explain what is needed :
The program needs to watch two inputs, let's call them INPUT1 and INPUT2
There are also two outputs, let's call them OUTPUT1 and OUTPUT2
When INPUT1 becomes high, then OUTPUT1 should become high also for 250 msec, the same goes for INPUT2, that makes OUTPUT2 go high for 250 msec.
In fact, I need a kind of single shot, because even if the input stays high for a hour, there may be only one pulse on the output.
So the question is, how do i write this for the Arduino ? I know that i should read all the forums in the internet, and find it out by myself, but I'm a bit in a hurry
I would like to have this thing working as soon as possible.
So... who is so kind to help me with my discovery of the wonderfull world of Arduino ?
Give it a try, write some code, paste it here and we can work on that. If not, where is the fun?
Check these videos
Only by watching the first 3 will probably give you more than enough knowledge to almost get everything going.
Its less than one hour of videos so no excuse on that.
good luck
Yes, I would have thought a pair of 555 timers would give you a far simpler, cheaper and more robust solution. I don't see any need to use a microcontroller for something this simple.
First of all, thank you for the many replies to my message, the links to the tutorials on youtube were what I needed !
I've managed to write a small program that does what I need, and it already works on the breadboard.
Tomorrow i will connect the ardiuno to a small relay board and put everything in a little box.
And yes, I know that this was also possible with a NE555 and a bunch of components, but the Arduino gives me the possibilty to add more features, without using a soldering iron