User Tools

Site Tools


raspberry_pi_external_power_control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
raspberry_pi_external_power_control [2025/07/28 16:25] – created rickbeilraspberry_pi_external_power_control [2025/07/28 17:11] (current) – external edit 127.0.0.1
Line 101: Line 101:
  
 ==== GPIO Pin Setup ==== ==== GPIO Pin Setup ====
 +Use [[https://lab.arts.ac.uk/books/raspberry-pi/page/what-are-gpio-pins-on-raspberry-pi|GPIO Pin Layout]] as a reference to what is discussed. \\
 +
 +When hooking up the jumper cables to the raspberry pi it is important to note that these wires have specific locations that they must be placed at. The different types of locations are provided in the link attached above. \\
 +
 +To properly hook up the power relay to the Raspberry Pi you must connect the corresponding positive wire that is hooked into the power relay to one of the different GPIO labeled pins on the diagram (i.e. GPIO 2 (SDA),  GPIO 17, GPIO 23). **Note** keep track of the small label number that is in the diagram as that is the number that you will use in the code. Once you have hooked up the positive lead to the Raspberry Pi next is the negative. This wire can be placed on any pin labeled ground in the diagram. \\
 +
 +Now that you have connected the wires to the proper locations on the Raspberry Pi GPIO board next thing is to go into the python code that was written and change out the # with the small number in the circle of the corresponding GPIO pin that you selected. This will now allow you to properly have control over your power relay and any appliances connected to it. 
  
  
  
raspberry_pi_external_power_control.1753719932.txt.gz · Last modified: 2025/07/28 17:40 (external edit)