I am wanting to use my Arduino Uno and breadboard to create a button, that when pressed, mimicks a button on my PS4 Controller being pressed for a certain amount of time (say 500 milliseconds), and then nothing should happen until I press the button again, where it should do the exact same thing as the first time I pressed it.
I have been able to take apart my controller and have soldered a wire to the contact point for the button I want to press, and also have a wire coming off of ground from the remote, when these two wires are touched, it is just like the button being pressed.
Now I am having trouble with the coding of the system to make this happen, and am unsure as to what should be wired where. If anybody knows how to create some code that would satisfy my need, your time would be greatly appreciate. Sorry if I am bad at explaining things. Thank you.