Hi does anybody know what the best way to connect a switch is in pduino. it is a digital input.
How do you set up in the patch and how do you connect the switch physically to the arduino board?
Any help would be great!!
connecting switch in pduino
Hi does anybody know what the best way to connect a switch is in pduino. it is a digital input.
How do you set up in the patch and how do you connect the switch physically to the arduino board?
Any help would be great!!
Ahh in pd do you set the switch using send and receive similar to a resistor or is there a different way to set it up? that could be my problem!
It looks as though you have a 1-pole changover switch (3 connections?) in which case the centre connection switches between the two outer connections, and if it can also stop in the middle then in that position it is connected to neither.
It would be best if you could get hold of a resistor before you continue, because the pins need hardly any current to switch, and it would be best not to risk frying your processor. But with your switch you don't absolutely need one. So... middle contact of your switch to pin 2 (but you have chosen pin 6...., one of the outer contacts to ground and the other to +3.3V. You should be good.
I have to hand you back to Alexandros, as I don't have an Arduino.
David.
Hi, I have set up the switch how you've describe and still no joy!! this is very annoying but thanks for the help so far.
I have lots of resistors to use, i have set this switch up manually on many occasions i am just having issues connecting to with PD
I still believe that the middle leg of the switch should go to ground.
Try to make this circuit
This one uses digital pins 2 and 3. The resistors are 10kOhm, you can get them from your local electronics store.
so you have two inputs digital pins, 2 and 3, which will alternate between 0 and 1, as you change the position of the switch.
I might be wrong about the switch though...
Do you have an Arduino UNO?
I have arduino uno v3 i am using simple analogfirmata
@alexandros i have tried that circuit now and it doesn't work, David showed me an issue some other people were having where they had to change parts in pduino however i cant find the switching inputs patch
@RicWainwright1 I've written a tutorial on Arduino and Pd, without using the Firmata firmware and Pduino. It's a 40 page/10 projects tutorial, but I think it's worth it, as it will be easier if you know how to program the Arduino and use [comport] straight away, instead of the [arduino] abstraction (which is based on [comport]).
You can get it here http://forum.pdpatchrepo.info/topic/8560/arduino-for-pd-ers/4
Oops! Looks like something went wrong!