What are the pin numbers for D3, D4, ...
-
Hi All,
I bought a couple of Sensebender Micro's and got them working with a Raspberry Pi 2 as a gateway and controller.
I want to use the digital outputs of the Sensebender Micro's but don't know the pin numbers of D3-D7, nor am I able to find them.
Simply using D3, and so on, in my scripts fails (although using A0 works).
Please help.
-
-
Hi Hek, Many thanks for the schematic,
Nevertheless, I struggle a bit.
I (serial) printed the values of A0..A3 and they are 14..17.
On the schematic I see A0..A3 and for each one, I see two numbers: pcint8 and 23 for A0, pcint9 and 24 for A1 etc, but I don't see anywhere 14..17 in relationship to A0..A3. Or is there something simple like add 6 to the pcint value or subtract 9 from the other one.
Help is appreciated!
-
Hi Hek,
I think I got it, When using PD3, PD4 it seems to work.
I'll test a bit and see whether I can get it confirmed.
Thanks
-
Use the following to set D3 high
pinMode(3, OUTPUT); digitalWrite(3, HIGH);
Pins D3 - D7, and A0-A2 etc. is the same pins as on standard arduino. So you can address them in the same way, as with standard arduino (uno)
-
-
@tbowmo are you still here man?so what is the pin? I also lost my PIN to d3 game controller and I want to get this connected to my phone to play, that's the third step and it won't connect unless I know the pin to this apparently.
-
@Vuinne-Ryvmar You seem to be confused about what this forum is. Maybe you just ended up here on a random Google search?
But in our case on an Arduino, D3 is literally the name for one of the metal legs coming off of the little controller, and we call it a pin sometimes. @tbowmo was looking for how to send the command to turn the power on or off to that part of the board, not a code to enable connecting up a controller to their phone.
I see that a D3 game controller is a thing, but I doubt you will have any luck getting help with that here. It's not what this site is about.
This is what we work with: