My name is Finn and i am not that good in coding with an arduino, i have a arduino uno and i want to turn a on/off switch into a button sort of output.
So what I want to achieve is as follows:
I have a on/off switch,
when you turn the switch to on (input),
the arduino gets a input and outputs a little pulse form about 0.2 seconds(output),
and if you put the on/off switch back to off it pulses again for about 0.2 seconds(output),
i don't know how to explain this better but i hope someone can help me with this,
Hello, Finn.
Begin with the beginning, just like learning a new language. IF you don't try and try and repeat and fix the errors and try again, you will always remain at the same spot.
What have you tried? How have you wired the switch?
Your topic has been moved to a more suitable location on the forum. Introductory Tutorials is for tutorials that e.g. you write, not for questions. Feel free to write a tutorial once you have solved your problem
You can read up on and play with
Pull-up resistors; Most Arduinos (all ?) have them builtin.
State change detection; you want to react when the switch becomes active and inactive, not when the switch is active / inactive. There is an example in the IDE.