Instructions for connecting the modules to the Raspberry Pi
ms

matt shepherd

Created Jun 08, 2023

Instructions for connecting the modules to the Raspberry Pi

881
1

1. Wiring diagram

Most of the modules require power (vc) and ground (gnd) apart from the actual buttons. To keep it simple of have used 'PIN' numbers as we can all count. These pins are also called 'GPIO' and are numbered differently but we won't go into that in the initial setup.

Wiring diagram
2

2. Connecting the Screen:

  • Refer to the provided diagram for the pin connections.

  • Connect the screen's power and ground pins to the appropriate 3V and GND pins on the Raspberry Pi. **Important** Do not connect to 5V, even though the screen manufacturers say it's for 5v it's best to use 3v to prevent the screen from burning out.

  • Connect the screen's pins to the corresponding pin numbers on the Raspberry Pi.

  • Double-check the connections to ensure they are secure.

I've used a hot glue gun as a more permanent fixing although this is when your system is up and running and fully functional

3

3. Connecting the MCP23017 Board:

  • Refer to the provided diagram for the pin connections.

  • Connect the MCP23017 board's power and ground pins to the appropriate 5V and GND pins on the Raspberry Pi.

  • Connect the MCP23017 board's SDA and SCL pins to the corresponding GPIO pins on the Raspberry Pi.

  • Make sure you have already connected the MCP23017 board's PA0-PA7 pins to the corresponding LED wires on your button/led circuit board. And the buttons to PB0-PB5

4

4. Connecting the Rotary Switch:

  • Refer to the provided diagram for the pin connections.

  • Connect the rotary switch's VC and GND pins on the Raspberry Pi.

  • Connect each of the rotary switch's other pins (DT, SW, CLK) to individual pins on the Raspberry Pi.

  • Make sure to connect the pins in the correct order to match the functionality of your application.

Please note: The program won't start if the rotary switch isn't connected properly

5

5. Connecting using a terminal hat

This is my favourite way to connect the pi mainly because I'm crap and soldering but also I'm sending units in the post so i need a solid way of connecting the cables.

Physical Setup for Terminal HAT with Raspberry Pi and IQaudio DAC

1. Power Down the Raspberry Pi:

- Ensure your Raspberry Pi is turned off and disconnected from any power source. This is important to prevent any electrical damage or short-circuiting during the hardware setup.

2. Attach the IQaudio DAC:

- Carefully align and connect the IQaudio DAC to the Raspberry Pi's GPIO pins. Make sure it is securely and correctly seated.

3. Connect the Ribbon Cable to the DAC:

- Locate the GPIO extension or output pins on the IQaudio DAC where the ribbon cable can be connected.

- Attach one end of the ribbon cable to these pins, ensuring a firm and correct connection.

4. Connect the Terminal HAT:

- Take the other end of the ribbon cable and connect it to the Terminal HAT. Again, ensure that the connections are firm and correctly aligned to avoid any pin mismatch or damage.

5. Securing the Setup:

- If there are any additional securing mechanisms (like screws or clips) provided with the Terminal HAT or the IQaudio DAC, use them to stabilize the connection.

- Ensure that the ribbon cable is not strained or bent at awkward angles.

6. Final Check:

- Double-check all connections for proper alignment and security.

- Make sure that there is no risk of short circuits, and the setup is stable.

Once you have completed these steps, you can power on your Raspberry Pi and resume using it as normal. Since you've mentioned no software changes are needed, your system should be ready to operate with the added Terminal HAT functionality.

Connecting using a terminal hat

#

Notes

1 Step

Note: Ensure that you make the connections securely and double-check the pin configurations to avoid any potential issues. The provided diagram will assist you in making the correct connections.

6

6. # Screen problems

Once your screen is connected it should work out of the box. I just recently had a screen that had the wrong capacitors on the back. Please drop me a message on Discord for more info if you are having issues.

Well done!
Create how-to guides like this in a snap. Get Tango now.