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)
-
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Some sensors permanently fail after one/two years
Troubleshooting • 25 Jul 2024, 17:17 • Kokosnoot 25 Jul 2024, 17:17 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 12 days ago • dpcons 12 days ago -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Arduino nano and Uno in same My sensors network with NRF24L01+
Troubleshooting • 26 Jul 2024, 10:30 • DIY89 27 Aug 2024, 09:59 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28