Does it matter witch pins I use for switches?

Hi!

I am new to arduino and the community, I am planning on building a wireless remote with a Pro Mini 328. I am curious on witch pins to use for different things, like a toggle switch, can I connect it to any digital pin? Like d12 or d3? Does it matter? Thanks beforehand!

Best regards Max

Maybe, maybe not. Check if the wireless stuff, the receiver, needs special pins. Then select different pins for the toggle switch.

Hey, thanks for the response! Is there a difference between pin A5 and A4 for example?

I'm using Arduino UNOs but I think that the Pro Mini i based on the same controller circuit.

For a toggle switch I would use digital pins and pinMode(D2, INPUT_PULLUP).

The switch connects between GND and the input pin.

It's possible to use analog input pins too.

Stay away from D0 and D1.

A6 and A7 are for analog on the Pro Mini.

A4 and A5 can be used as digital inputs, analog inputs and I2C.

The rest can be used with simple on/off switches.

D13, 12, 11 and 10 can also be used in SPI communications.

FYI

Thank you very much! This helped a lot!

Nice!
Your clear presentation of the not very complicated project cleared the grounds for us.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.