from arduino
I have a wimote and like to push the bottons from arduino
for example
sensor reads
digital pin activates (?????) that pushes a botton.
or is any other way that you may recommed.
thank you.
;D
from arduino
I have a wimote and like to push the bottons from arduino
for example
sensor reads
digital pin activates (?????) that pushes a botton.
or is any other way that you may recommed.
thank you.
;D
Take a look at the digitalWrite() function. If you have the button hooked up to your arduino, then you can toggle digitalWrite() for the pin it is hooked up to and "simulate" the button being pressed.
Hi Ricard
yes Idid
( you always ask the same? LOL)
sensor reads
digital pin activates (?????) that pushes a botton.
Yep, if I understand you correctly, thats how I would do it.
thank you KnuttyD
I did your suggestion few days back.
but my idea of using COM for the arduino and the wiimote then wire the bottons to digital pin , did not work
I am not shure why.
that is why I came out with the question.
I am doing some web search and perhaps relays will do the job
Can you post a sketch of how you have the circuit wired up? I am not sure what you mean :
ok
here is the setup
wii + and -
I have soldered wires to the bottons ( they are pushbottons )
one black for ground one red for +.
the black wire from the bottons goes to ground from arduino
the red wire goes to digital pin
.
so the digital write in theory when goes High should simulate a push of a botton
but does not.
Huh. What happens when you short the 2 sides of the button you are trying to press?
right
if I remove the wii from the arduino and
short black wire and red wire the wii sends a botton push signal.
so I would like to simulate that with digital pin.
Use a cheap Optocoupler.