Skip to main content
edited body
Source Link
Ghanima
  • 15.9k
  • 16
  • 63
  • 120

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). Check for the special function of GPIO pins e.g. here. I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as (pigpio)[http://abyz.me.uk/rpi/pigpio/pdif2.html#set_bank_1]pigpio, that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). Check for the special function of GPIO pins e.g. here. I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as (pigpio)[http://abyz.me.uk/rpi/pigpio/pdif2.html#set_bank_1], that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). Check for the special function of GPIO pins e.g. here. I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as pigpio, that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.

added 89 characters in body
Source Link
Ghanima
  • 15.9k
  • 16
  • 63
  • 120

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). Check for the special function of GPIO pins e.g. here. I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as (pigpio)[http://abyz.me.uk/rpi/pigpio/pdif2.html#set_bank_1], that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as (pigpio)[http://abyz.me.uk/rpi/pigpio/pdif2.html#set_bank_1], that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). Check for the special function of GPIO pins e.g. here. I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as (pigpio)[http://abyz.me.uk/rpi/pigpio/pdif2.html#set_bank_1], that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.

Source Link
Ghanima
  • 15.9k
  • 16
  • 63
  • 120

Unless special consideration - not yet mentioned in the question - apply, I'd say: worry not, pick any pin that is free (i.e. not to be used otherwise, such as I2C or 1-wire if you chose to use those interfaces too). I would pick pins to simplify pcb routing if possible.

If using a library to control the GPIO that allows for a banked access of multiple pins, such as (pigpio)[http://abyz.me.uk/rpi/pigpio/pdif2.html#set_bank_1], that is "reading/writing all of the GPIO in a bank as one operation" it is advisable to pick pins in one bank. Luckily for all the Pi's so far (beside the Compute Module) all accesible pins are in bank 1.


An alternative to reduce the number of GPIO pins used (if that is a worry) is a 3-Line To 8-Line Decoder/Demultiplexer such as the 74HC138. It selects one of 8 outputs based on the value of three inputs. The HC series has a wide Operating Voltage Range (2 V to 6 V) that will play well with the Pi without further ado.