Difference between revisions of "ROCKPI S PoE HAT"
(→Software support) |
m (Fixed mute/unmute docs and updated verbiage) |
||
Line 42: | Line 42: | ||
root@rockpis:/home/rock# echo 1 > /sys/class/gpio/gpio15/value | root@rockpis:/home/rock# echo 1 > /sys/class/gpio/gpio15/value | ||
− | * | + | * Unmute head phone jack. |
root@rockpis:/home/rock# echo 1 > /sys/class/gpio/gpio15/value | root@rockpis:/home/rock# echo 1 > /sys/class/gpio/gpio15/value | ||
Line 50: | Line 50: | ||
* Mute head phone jack. | * Mute head phone jack. | ||
− | root@rockpis:/home/rock# echo | + | root@rockpis:/home/rock# echo 0 > /sys/class/gpio/gpio15/value |
=== Model === | === Model === |
Latest revision as of 20:32, 9 April 2024
Home > PoE HAT > ROCK Pi S PoE HAT
Introduction
ROCK Pi S PoE HAT is a HAT accessories designed for ROCK Pi S. The ROCK Pi S PoE HAT allows you to power your ROCK Pi S using Power over Ethernet–enabled networks; for this product to be used, the network it is connected to needs to have power-sourcing equipment installed.
It comes with the following features:
- 802.3af up to 10W(5V/2A)
- Optional 26PIN x2 GPIO pass-through exported
- Works with ROCK Pi S
- Clean design by hiding the the big transformer inside
- EEPROM for HAT identity and driver probe
- headphone jack exported
- Provide 12V power output with 2P connector
Supplied with this product
- ROCK Pi S PoE HAT
- Mechanical spacers
Other hardware needed
- ROCK Pi S
- An Ethernet cable
- Power-sourcing equipment for a 802.3af or 802.3at Power over Ethernet network
Software support
The PoE doesn't require software to power and run.
For the head phone jack and PDM Mic Array support, please update to the latest ROCK Pi S firmware.
Usage of Headphone jack
- Initialize GPIO0_B7.
root@rockpis:/home/rock# echo 15 > /sys/class/gpio/export root@rockpis:/home/rock# echo out > /sys/class/gpio/gpio15/direction root@rockpis:/home/rock# echo 1 > /sys/class/gpio/gpio15/value
- Unmute head phone jack.
root@rockpis:/home/rock# echo 1 > /sys/class/gpio/gpio15/value
- Play songs.
root@rockpis:/home/rock# aplay -D plughw:1,0 01.wav
- Mute head phone jack.
root@rockpis:/home/rock# echo 0 > /sys/class/gpio/gpio15/value
Model
Model | Description |
---|---|
FS | For ROCK Pi S |
FSL | FS with 26PIN x2 GPIO pass-through exported |
The difference between F3 and F4 is, F3 and F4 uses different GPIO for fan control. F4 use ADC for temperature detection, while F3 uses DS18B20.
PINOUT
PoE HAT for ROCK Pi S
Description | Function | Pin# | Pin# | Function | Description | |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | |||||
5 | 6 | |||||
GPIO2_B3 | 7 | 8 | ||||
9 | 10 | |||||
11 | 12 | |||||
control fan speed | PWM1 | 13 | 14 | |||
GPIO4_C5 | 15 | 16 | GPIO4_D2 | enable/disable fan motor driver | ||
17 | 18 | |||||
19 | 20 | |||||
21 | 22 | |||||
23 | 24 | |||||
25 | 26 | ADC_IN0 | Get ADC value to get the temperature value | |||
connect to EEPROM SDA pin | I2C2_SDA | 27 | 28 | I2C2_SCL | connect to EEPROM SCL pin | |
29 | 30 | |||||
31 | 32 | |||||
33 | 34 | |||||
35 | 36 | |||||
37 | 38 | |||||
39 | 40 |
FPC pinout
Number | Pin Name |
---|---|
1 | VCC5V |
2 | VCC5V |
3 | VCC_IO_MIC |
4 | GND |
5 | GND |
6 | VCC_1V8_MIC |
7 | ADC_IN0 |
8 | ADC_KEY_IN1 |
9 | GND |
10 |
I2S0_MCLK |
11 | GND |
12 | GPIO2_A6 / I2S0_8CH_SCLK_RX / PDM_CLK_S_M2 |
13 | GND |
14 | GPIO2_A5 / I2S0_SCLK_TX |
15 | GND |
16 | GPIO2_B0 / I2S0_8CH_LRCK_RX |
17 | GND |
18 | GPIO2_A7 / I2S0_8CH_LRCK_TX |
19 | GPIO2_B1 / I2S0_8CH_SDO0 |
20 | GPIO2_B2 / I2S0_8CH_SDO1 |
21 | GPIO2_B3 / I2S0_8CH_SDO2 |
22 | GPIO2_B4 / I2S0_8CH_SDO3 |
23 | GPIO2_B5 / I2S0_8CH_SDI0 / PDM_SDI0_M2 |
24 | GPIO2_B6 / I2S0_8CH_SDI1 / PDM_SDI1_M2 |
25 | GPIO2_B7 / I2S0_8CH_SDI2 / PDM_SDI2_M2 |
26 | GPIO2_C0 / I2S0_8CH_SDI3 / PDM_SDI3_M2 |
27 | GND |
28 | GPIO0_C0 / PWM3 / I2C3_SCL_M0 |
29 | GPIO0_B3 / I2C1_SDA |
30 | GPIO0_B4 / I2C1_SCL |
31 | GND |
32 | GND |