Skip to content

Commit

Permalink
Merge pull request #30 from jwillikers/update-wiring
Browse files Browse the repository at this point in the history
Finesse the wiring documentation
  • Loading branch information
jwillikers authored Nov 18, 2024
2 parents b9c98cc + 155720b commit 3504218
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 24 deletions.
30 changes: 18 additions & 12 deletions boards/pico/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ This is a dead-simple PWM fan controller that simply lowers the speed of the {No
The microcontroller simply sets the fan speed and then does nothing.
The fan setup might evolve in the future to take into account temperature sensing and dynamic speed adjustment.

The 3.3V Raspberry Pi Pico requires a logic-level shifter to boost the PWM signal up to 5V for the fan.
I use the 74AHCT125 to perform the logic-level conversion, using pin #40, `VBUS`, to provide the 5V reference voltage.
The 3.3V Raspberry Pi Pico requires a logic level shifter to boost the PWM signal up to 5V for the fan.
I use the 74AHCT125 to perform the logic level conversion, using pin #40, `VBUS`, to provide the 5V reference voltage.

The Raspberry Pi Pico draws 1.99 mA of current in this particular configuration.

Expand All @@ -96,28 +96,34 @@ The 74AHCT125 is wired as shown in the <<74AHCT125 Wiring>> table.
All pins omitted from the table are connected to ground.

.74AHCT125 Wiring
[cols="1,4"]
[cols="1,2,2"]
|===
| 74AHCT125 | Signal
| 74AHCT125 Pin
| Signal
| Connection

| 1
| 3.3 Volt power
| 2
| 3.3V logic level input
| Pico pin #20 (GP15)

| 9
| 3.3 Volt PWM input signal
| 3
| 5V logic level output
| 1N4001 to fan header pin #4 (Control)

| 10
| 5 Volt PWM output signal
| 8
| 5V
| Pico pin #40 (VBUS)
|===

The output signal from the logic-level shifter is sent through the 1N4001 power blocking diode to the fan header.
The output signal from the logic level shifter is sent through the 1N4001 power blocking diode to the fan header.
The pins on the 4-pin fan header are classified in the <<4-pin Fan Header Pinout>> table.
The pins are numbered one through four from left to right with the pins reaching upwards and the overhang positioned between the viewer and the pins.

.4-pin Fan Header Pinout
[cols="1,4"]
|===
| Fan Header Pin | Signal
| Fan Header Pin
| Signal

| 1
| GND
Expand Down
30 changes: 18 additions & 12 deletions boards/qt-py-ch32v203/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ This is a dead-simple PWM fan controller that simply lowers the speed of the {No
The microcontroller simply sets the fan speed and then does nothing.
The fan setup might evolve in the future to take into account temperature sensing and dynamic speed adjustment.

The 3.3V QT Py CH32V203 requires a logic-level shifter to boost the PWM signal up to 5V for the fan.
I use the 74AHCT125 to perform the logic-level conversion, using pin #40, `VBUS`, to provide the 5V reference voltage.
The 3.3V QT Py CH32V203 requires a logic level shifter to boost the PWM signal up to 5V for the fan.
I use the 74AHCT125 to perform the logic level conversion, using pin #40, `VBUS`, to provide the 5V reference voltage.

The QT Py CH32V203 draws only 1.11 mA of current in this particular configuration.

Expand All @@ -83,28 +83,34 @@ The 74AHCT125 is wired as shown in the <<74AHCT125 Wiring>> table.
All pins omitted from the table are connected to ground.

.74AHCT125 Wiring
[cols="1,4"]
[cols="1,2,2"]
|===
| 74AHCT125 | Signal
| 74AHCT125 Pin
| Signal
| Connection

| 1
| 3.3 Volt power
| 2
| 3.3V logic level input
| QT Py CH32V203 pin #5 (SDA)

| 9
| 3.3 Volt PWM input signal
| 3
| 5V logic level output
| 1N4001 to fan header pin #4 (Control)

| 10
| 5 Volt PWM output signal
| 8
| 5V
| QT Py CH32V203 pin #14 (5V)
|===

The output signal from the logic-level shifter is sent through the 1N4001 power blocking diode to the fan header.
The output signal from the logic level shifter is sent through the 1N4001 power blocking diode to the fan header.
The pins on the 4-pin fan header are classified in the <<4-pin Fan Header Pinout>> table.
The pins are numbered one through four from left to right with the pins reaching upwards and the overhang positioned between the viewer and the pins.

.4-pin Fan Header Pinout
[cols="1,4"]
|===
| Fan Header Pin | Signal
| Fan Header Pin
| Signal

| 1
| GND
Expand Down

0 comments on commit 3504218

Please sign in to comment.