I am very new to this and know very little but trying to learn but what I need to do is have 1 logic in and 2 logic outs-when the logic in goes low one logic out will start high like the input go low but it going low needs to be delayed going low for about 300 milliseconds and when the input goes high it goes high instantly-on the other logic out it starts low when the input goes low it goes high instantly but when the input goes high the second logic output delays going low for 300 milliseconds-appreciate any help I am very new hoping this will do what I need it to do and examples or where I can find examples to build on-I am not a person that re invents the wheel or tries not to anyway-Thanks!!!
Would you draw a timing diagram for us to look at as your explaination is hard to visualize.
Divide it into chunks.
Start with a program that uses a button. Get the LED to turn on when you press the button, and then go off.
Then program it to turn the LED off 500 ms after you release the button.
Check out the Blink without delay code.
You need to explain what you actually mean by instantly, instantly isn't physically possible, but perhaps
you mean "within a millisecond", "within 10us", "within 5 ns"?
Have you heard of punctuation - commas and full-stops. They make stuff much easier to read.
Is this what you are trying to say
I am very new to this and know very little but trying to learn.
what I need to do is have 1 logic in and 2 logic outs. when the logic in goes low one logic out will start high.
like the input go low but it going low needs to be delayed going low for about 300 milliseconds and when the input goes high it goes high instantly-
on the other logic out it starts low when the input goes low it goes high instantly but when the input goes high the second logic output delays going low for 300 milliseconds
-appreciate any help (I am very new hoping this will do what I need it to do) and examples or where I can find examples to build on. I am not a person that re invents the wheel or tries not to anyway-Thanks!!!
If so, I think I understand paragraphs 1, 2, 4 and 5, but I don't understand paragraph 3. Does it mean that the output should wait 300msecs after the input goes LOW before the output goes HIGH?
I agree completely with @KeithRB. You may find this Thread useful - planning and implementing a program
I also think it would be very useful if you tell us exactly what your project is trying to do - what is controlling the input, what are the outputs controlling and why the different delays are necessary. There might be a better way.
...R
What I am trying to do is control a Yaesu System Fusion Repeater with an SCom 7330 repeater controller.
I will try to use better grammar and punctuation and contrary to popular belief not all people on the autism spectrum are great at programming.
This is what I want to do-when the repeater controller keys activates the repeater it grounds the push to talk pin(low) of the repeater. I need one input which needs to go from high(unkeyed) to low(keyed) and I need 2 outputs-output one would follow the input logic-when the input goes low this output will go low but I need it to go low after say 300 milliseconds of the input going low and when the input goes high there is no delay when the output goes high. Output number 2-when the input is high this output is low and when the input goes low this output 2 goes high without any delay and when the input goes high,this output 2 stays high for 300 milliseconds before it goes back to low. I hope that is easier to understand-Thanks to all that responded.
radiofixr:
not all people on the autism spectrum are great at programming
We haven't got anywhere near programming. You are still just writing an explanation. I had to copy your long paragraph into my editor and break it up like this so I can understand it.
This is what I want to do-
when the repeater controller keys activates the repeater it grounds the push to talk pin(low) of the repeater.
I need one input which needs to go from high(unkeyed) to low(keyed) and I need 2 outputs-
output one would follow the input logic-
when the input goes low this output will go low
but I need it to go low after say 300 milliseconds of the
input going low
and when the input goes high there is no delay when the output goes high.Output number 2-
when the input is high this output is low and when the input goes low
this output 2 goes high without any delayand when the input goes high,this output 2 stays high for
300 milliseconds before it goes back to low.I hope that is easier to understand-Thanks to all that responded.
I think I now understand what you want and it is entirely feasible.
As @KeithRB said, start with short programs that allow you to learn how to detect inputs, change outputs and manage timing using millis(). The Thread planning and implementing a program may be useful.
...R
I am sorry if my grammar and sentence and paragraph structure is not up to the standards-I have difficulty sometimes writing things out when I have something to explain-I have difficulty reading things like what is described in the arduino programming language and understanding it-other things electronic like schematics and circuitry,I have no problems-I learn differently that is why I try to ask those who are more adept at programming languages because maybe just maybe someone may have done what I am trying to do already and why try to reinvent the wheel-I have helped many people building circuitry that will do what they need it to do just by description,that is more natural to me,understanding programming languages is difficult to me by reading it in a book-thanks to all that responded to my question,you have a pretty cool community here!
radiofixr:
I am sorry if my grammar and sentence and paragraph structure is not up to the standards-I have difficulty sometimes writing things out when I have something to explain-I have difficulty reading things like what is described in the arduino programming language and understanding it-other things electronic like schematics and circuitry,I have no problems-I learn differently that is why I try to ask those who are more adept at programming languages because maybe just maybe someone may have done what I am trying to do already and why try to reinvent the wheel-I have helped many people building circuitry that will do what they need it to do just by description,that is more natural to me,understanding programming languages is difficult to me by reading it in a book-thanks to all that responded to my question,you have a pretty cool community here!
I have twice now reformatted your text to make it easier to read. And here you are with a third chunk of text all in one sentence.
If you choose not to take any notice of my suggestions about you can help us to help you I must assume it would equally be a waste of time to give advice about complicated stuff.
Computer programming requires a lot more attention to detail than writing a description of the project.
...R
Figured out what I had to do-thanks for your suggestions.
Sorry to put the vise grips on peoples mental health and having to get berated by people who obviously know more than I do and can make people feel like crap.
I tend not to berate people no matter how they ask for help-all questions are valid ones.
I also pay attention to detail when repairing electronic devices,which takes its own level of attention to detail,just as important as programming.