Hey Guys.
I want to turn on the wittyPi via my Arduno using this code:
void setup(){
pinMode(7,OUTPUT);
}
void loop(){
digitalWrite(7,HIGH);
delay(350);
digitalWrite(7,LOW);
delay(100000);
}
I set it to 350ms because of this section in the user manual (http://www.uugear.com/doc/WittyPi2_UserManual.pdf - page 30/31):
Alternatively, if you wish to trigger Witty Pi 2 with external signal, you can use a N-channel MOSFET to achieve this:
[/color]
The signal should be a positive pulse, and the pulse length should be longer than 300ms. Processing a pulse will be equal to taping the switch once, so it will turn on your Raspberry Pi if your Pi is off, or turn off your Raspberry Pi if your Pi is on.[/quote]If I use it without the MOSFET it quickly boots up, but then immediatley shuts down. But if I use a MOSFET to seperate the voltage-potentials of the devices nothing at all happens. So my question is: How do I have to wire the "Arduino - MOSFET - wittyPi" setup that everything works properly? A diagram or just a quick explanation would be very useful. I am planning to use a 2N7000 transistor for this purpose I hope this one suits my needs. Unfortunately my knowledge on MOSFETs is very low. If you want to know any further details feel free to ask