fmlist_scanner:setup_wiring
Differences
This shows you the differences between two versions of the page.
| fmlist_scanner:setup_wiring [2025/10/30] – created hayati | fmlist_scanner:setup_wiring [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{indexmenu> | ||
| + | {{indexmenu_n> | ||
| + | |||
| + | ====== 4. Setup wiring: ATX-buttons, | ||
| + | |||
| + | Following notes are only for the Raspberry Pi 3B/3B+/4B **NOT** for other models! | ||
| + | |||
| + | ===== GPIO pins ===== | ||
| + | |||
| + | The Raspberry Pi has two pin headers that are physically labeled (column // | ||
| + | WiringPi software does number the pins differently (http:// | ||
| + | The right column with the physical pins 2, 4, 6, .., 40 is lying on the outside of the Raspberry Pi. | ||
| + | Pin 40 is located nearby the USB jacks. The left column with the odd numbered pins is lying inside of the Raspberry Pi board. | ||
| + | You can get an overview of all pins with | ||
| + | |||
| + | < | ||
| + | gpio readall | ||
| + | </ | ||
| + | |||
| + | produces | ||
| + | |||
| + | < | ||
| + | | ||
| + | | BCM | wPi | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | BCM | wPi | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Connection of CPU fan ===== | ||
| + | |||
| + | The connection may differ depending on the model. Therefore observe the manufacturer' | ||
| + | |||
| + | |||
| + | ===== Connection of Piezo-buzzer ===== | ||
| + | |||
| + | The buzzer is connected to the physical pins '' | ||
| + | Test with | ||
| + | |||
| + | < | ||
| + | gpio mode 1 pwm # physical pin 12 corresponds to pin 1 in wiringPi | ||
| + | gpio pwmTone 1 2000 # sound on | ||
| + | gpio pwmTone 1 0 # sound off | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Connection of ATX buttons and LEDs ===== | ||
| + | |||
| + | The ATX button for shutdown is connected to the physical pins 39 and 40. \\ | ||
| + | Test with | ||
| + | |||
| + | < | ||
| + | sudo systemctl stop gpio-input | ||
| + | gpio mode 29 up # physical pin 40 corresponds to pin 29 in wiringPi | ||
| + | gpio read 29 # should deliver 1 if the button is not pressed | ||
| + | # should deliver 0 when the button is pressed | ||
| + | </ | ||
| + | |||
| + | The green LED is connected to physical pin 36 (wiringPi: 27), the ground to pin 34. \\ | ||
| + | The red LED is connected to physical pin 32 (wiringPi: 26), the ground to pin 30. \\ | ||
| + | Test with | ||
| + | |||
| + | < | ||
| + | gpio mode 27 output | ||
| + | gpio write 27 on # corresponding LED (here: green) enlightens | ||
| + | gpio write 27 off # corresponding LED gets dark | ||
| + | </ | ||
| + | |||
| + | **ATTENTION**: | ||
| + | |||
| + | Reactivate the service after testing the buttons | ||
| + | |||
| + | < | ||
| + | sudo systemctl start gpio-input | ||
| + | </ | ||
