BOM-DAT/mosfet-dat/P-MOS-dat/P-MOS-dat.md
... ...
@@ -0,0 +1,38 @@
1
+
2
+# P-MOS-dat
3
+
4
+- [[mosfet-dat]]
5
+
6
+## control
7
+
8
+- [[adc-dat]]
9
+
10
+## P-mosfet
11
+
12
+| gate | status | source | drain |
13
+| ---- | ------ | ------ | ----- |
14
+| OFF | ON | - | - |
15
+| ON | OFF | - | - |
16
+
17
+## high-side drive by P-mos
18
+
19
+To use a P-channel MOSFET (P-MOS), you should use it as a high-side switch.
20
+
21
+Explanation:
22
+
23
+- A P-MOS turns ON when its gate voltage is lower than its source voltage (typically, gate pulled to ground or a lower voltage).
24
+- In a high-side configuration, the source is connected to the positive supply (Vcc), and the drain connects to the load.
25
+- When you pull the gate low, the P-MOS conducts, allowing current to flow from Vcc through the load to ground.
26
+
27
+Low-side drive is typically used with N-channel MOSFETs, not P-channel.
28
+
29
+
30
+
31
+## parts
32
+
33
+- [[AO3401-dat]]
34
+
35
+
36
+## ref
37
+
38
+- [[mosfet-dat]]
... ...
\ No newline at end of file
BOM-DAT/mosfet-dat/mosfet-dat.md
... ...
@@ -5,13 +5,15 @@ drive [[motor-dat]], [[LED-dat]]
5 5
6 6
control by [[arduino-dat]] - [[MCU-dat]]
7 7
8
+
9
+
8 10
## tech
9 11
10 12
- [[mosfet-driver-dat]] for high speed usage
11 13
12 14
- [[PWM-dat]]
13 15
14
-- [[n-mosfet-control-dat]]
16
+- [[n-mosfet-control-dat]] - [[P-mos-dat]]
15 17
16 18
## board
17 19
... ...
@@ -155,14 +157,6 @@ The LED flashing when switched by a MOSFET can be caused by several issues. Here
155 157
![](2024-08-28-14-44-40.png)
156 158
157 159
158
-## P-mosfet
159
-
160
-| gate | status | source | drain |
161
-| ---- | ------ | ------ | ----- |
162
-| OFF | ON | - | - |
163
-| ON | OFF | - | - |
164
-
165
-
166 160
167 161
## more mosfet
168 162
Chip-dat/Nordic-dat/NRF52840-dat/2025-07-09-12-46-39.png
... ...
Binary files /dev/null and b/Chip-dat/Nordic-dat/NRF52840-dat/2025-07-09-12-46-39.png differ
Chip-dat/Nordic-dat/NRF52840-dat/2025-07-09-14-30-21.png
... ...
Binary files /dev/null and b/Chip-dat/Nordic-dat/NRF52840-dat/2025-07-09-14-30-21.png differ
Chip-dat/Nordic-dat/NRF52840-dat/NRF52840-dat.md
... ...
@@ -3,6 +3,20 @@
3 3
4 4
- [[NRF52832-dat]]
5 5
6
+
7
+| Feature | nRF52805 | nRF52810 | nRF52811 | nRF52820 | nRF52832 | nRF52833 | nRF52840 | nRF5340 |
8
+| --------------------------- | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :-----: |
9
+| Bluetooth 5.3 | X | X | X | X | X | X | X | X |
10
+| Bluetooth 2 Mbps | X | X | X | X | X | X | X | X |
11
+| Bluetooth Long Range | | | X | X | | x | x | x |
12
+| Bluetooth Direction Finding | | | X | X | | X | | x |
13
+| Bluetooth LE Audio | | | | | | | | X |
14
+| Bluetooth mesh | | | | x | x | x | x | X |
15
+| Thread | | | X | X | | x | x | X |
16
+| Zigbee | | | | X | | x | x | X |
17
+| Matter | | | | | | | X | X |
18
+
19
+
6 20
## nRF52840 Features
7 21
8 22
- 32-bit ARM® Cortex®-M4F processor, 64 MHz
... ...
@@ -38,11 +52,81 @@
38 52
39 53
- [[LCD-dat]]
40 54
55
+## Pin Definitions
56
+
57
+![](2025-07-09-14-30-21.png)
58
+
59
+## NRF52840 Pinout Table
60
+
61
+| Pin Name | Default Func | Alternate Functions | Notes |
62
+|----------|--------------|----------------------|--------------------|
63
+| P0.00 | GPIO | *XL1, Analog In, NFC | |
64
+| P0.01 | GPIO | *XL2, Analog In, NFC | |
65
+| P0.02 | GPIO | Analog In, NFC | |
66
+| P0.03 | GPIO | Analog In, NFC | |
67
+| P0.04 | GPIO | Analog In, NFC | |
68
+| P0.05 | GPIO | Analog In, NFC | |
69
+| P0.06 | GPIO | Analog In, NFC | |
70
+| P0.07 | GPIO | Analog In, NFC | |
71
+| P0.08 | GPIO | | |
72
+| P0.09 | GPIO | NFC1 | NFC antenna option |
73
+| P0.10 | GPIO | NFC2 | NFC antenna option |
74
+| P0.11 | GPIO | | |
75
+| P0.12 | GPIO | | |
76
+| P0.13 | GPIO | | |
77
+| P0.14 | GPIO | | |
78
+| P0.15 | GPIO | | |
79
+| P0.16 | GPIO | | |
80
+| P0.17 | GPIO | | |
81
+| P0.18 | RESET | GPIO | REST pin |
82
+| P0.19 | GPIO | | |
83
+| P0.20 | GPIO | | |
84
+| P0.21 | GPIO | | |
85
+| P0.22 | GPIO | | |
86
+| P0.23 | GPIO | | |
87
+| P0.24 | GPIO | | |
88
+| P0.25 | GPIO | | |
89
+| P0.26 | GPIO | | |
90
+| P0.27 | GPIO | | |
91
+| P0.28 | GPIO | Analog In | |
92
+| P0.29 | GPIO | Analog In | |
93
+| P0.30 | GPIO | Analog In | |
94
+| P0.31 | GPIO | Analog In | |
95
+| P1.00 | GPIO | | |
96
+| P1.01 | GPIO | | |
97
+| P1.02 | GPIO | | |
98
+| P1.03 | GPIO | | |
99
+| P1.04 | GPIO | | |
100
+| P1.05 | GPIO | | |
101
+| P1.06 | GPIO | | |
102
+| P1.07 | GPIO | | |
103
+| P1.08 | GPIO | | |
104
+| P1.09 | GPIO | | |
105
+| P1.10 | GPIO | | Button |
106
+| P1.11 | GPIO | | |
107
+| P1.12 | GPIO | | |
108
+| P1.13 | GPIO | | |
109
+| P1.14 | GPIO | | |
110
+| P1.15 | GPIO | | |
111
+
112
+
41 113
42 114
## solutions
43 115
44 116
- [[NRF52840+SX1262-dat]]
45 117
118
+## NRF52840 SCH
119
+
120
+
121
+![](2025-07-09-12-46-39.png)
122
+
123
+- button == P1.10
124
+- REST == P0.18/RESET
125
+
126
+
127
+
128
+
129
+
46 130
## ref
47 131
48 132
- [[bluetooth-dat]]
Chip-dat/SemTech-dat/SX1262-dat/2025-07-09-12-47-23.png
... ...
Binary files /dev/null and b/Chip-dat/SemTech-dat/SX1262-dat/2025-07-09-12-47-23.png differ
Chip-dat/SemTech-dat/SX1262-dat/2025-07-09-14-14-19.png
... ...
Binary files /dev/null and b/Chip-dat/SemTech-dat/SX1262-dat/2025-07-09-14-14-19.png differ
Chip-dat/SemTech-dat/SX1262-dat/DS_SX1261_2 V2-2.pdf
... ...
Binary files /dev/null and b/Chip-dat/SemTech-dat/SX1262-dat/DS_SX1261_2 V2-2.pdf differ
Chip-dat/SemTech-dat/SX1262-dat/SX1262-dat.md
... ...
@@ -3,6 +3,7 @@
3 3
4 4
- [[lora-dat]] - [[semtech-dat]]
5 5
6
+- datasheet - [[DS_SX1261_2 V2-2.pdf]]
6 7
7 8
- LLCC68ZTR4 (433MHz)
8 9
- LLCC68ZTR8 (868MHz)
... ...
@@ -34,6 +35,8 @@
34 35
35 36
![](2025-06-23-17-10-05.png)
36 37
38
+
39
+
37 40
## SX1262 VS LLCC68
38 41
39 42
- [[LLCC68-dat]]
... ...
@@ -68,7 +71,17 @@
68 71
* The **SX1262** generally offers better performance in terms of power consumption, sensitivity, and size, and supports a wider frequency range and IEEE 802.15.4g. It's a newer generation chip.
69 72
* The **SX1278** is an older, more established chip that is still suitable for many LoRa applications, particularly where cost is a primary concern and the advanced features of the SX1262 are not required.
70 73
71
-
74
+## Pin Definitions
75
+
76
+![](2025-07-09-14-14-19.png)
77
+
78
+
79
+### SX1262 SCH
80
+
81
+![](2025-07-09-12-47-23.png)
82
+
83
+
84
+
72 85
## solutions
73 86
74 87
- [[NRF52840+SX1262-dat]]
Tech-dat/ADC-dat/2025-07-09-14-48-52.png
... ...
Binary files /dev/null and b/Tech-dat/ADC-dat/2025-07-09-14-48-52.png differ
Tech-dat/ADC-dat/ADC-dat.md
... ...
@@ -7,6 +7,47 @@
7 7
- AD7606
8 8
- AD7799
9 9
10
+
11
+## SCH
12
+
13
+### ADC with measure MOSFET control
14
+
15
+- [[transistor-dat]] - [[mosfet-dat]]
16
+
17
+![](2025-07-09-14-48-52.png)
18
+
19
+1. **ADC Ctrl LOW (0V):**
20
+ - Q8 is **OFF** (no base current).
21
+ - The gate of Q7 is pulled up to VBAT via R30.
22
+ - Q7 (P-MOSFET) is **OFF** (Vgs ≈ 0V).
23
+ - No voltage is present at BAT_ADC; the voltage divider is disconnected from VBAT.
24
+ - **ADC input is isolated** (saves power, prevents leakage).
25
+
26
+2. **ADC Ctrl HIGH (e.g., 3.3V or 5V):**
27
+ - Q8 is **ON** (base current flows via R9/R25).
28
+ - Q8 pulls the gate of Q7 **towards GND** through R31.
29
+ - Vgs of Q7 becomes negative (gate lower than source), **turning Q7 ON**.
30
+ - VBAT is now connected to the voltage divider (R32/R33).
31
+ - The divided voltage appears at **BAT_ADC** for ADC measurement.
32
+
33
+### Purpose
34
+
35
+- **Power Saving:** Only connects the voltage divider to the battery when ADC measurement is needed, reducing continuous current drain.
36
+- **Control:** Allows the microcontroller to enable/disable battery voltage sensing.
37
+
38
+### Summary Table
39
+
40
+| ADC Ctrl | Q8 (NPN) | Q7 (P-MOSFET) | BAT_ADC Output |
41
+|----------|----------|---------------|---------------------|
42
+| LOW | OFF | OFF | Disconnected (0V) |
43
+| HIGH | ON | ON | Battery voltage via divider |
44
+
45
+---
46
+**In summary:**
47
+`ADC Ctrl` enables or disables the battery voltage divider connection to the ADC
48
+
49
+
50
+
10 51
## ref
11 52
12 53
- [[tech-dat]]
Tech-dat/RTC-dat/rtc-dat.md
... ...
@@ -14,6 +14,9 @@ Dallas
14 14
15 15
NXP
16 16
- PCF85063A
17
+- PCF8563 Real-time clock/calendar
18
+
19
+
17 20
18 21
BL
19 22
Tech-dat/interactive-dat/display-dat/LCD-dat/LCD-dat.md
... ...
@@ -29,6 +29,9 @@ using with STM32 SPI2
29 29
- [[NRF52840-dat]]
30 30
31 31
32
+
33
+
34
+
32 35
## ref
33 36
34 37
- [[interactive-dat]]
... ...
\ No newline at end of file
solutions-dat/NRF52840+SX1262-dat/2025-07-09-12-46-39.png
... ...
Binary files a/solutions-dat/NRF52840+SX1262-dat/2025-07-09-12-46-39.png and /dev/null differ
solutions-dat/NRF52840+SX1262-dat/2025-07-09-12-47-23.png
... ...
Binary files a/solutions-dat/NRF52840+SX1262-dat/2025-07-09-12-47-23.png and /dev/null differ
solutions-dat/NRF52840+SX1262-dat/NRF52840+SX1262-dat.md
... ...
@@ -3,29 +3,78 @@
3 3
4 4
- [[NRF52840-dat]] - [[SX1262-dat]]
5 5
6
-## T114
6
+- [[UPG2179-dat]]
7 7
8
-![](MeshNode-T114_V2.0_SCH(2)107-09-2025.jpg)
8
+- [[TP4056-dat]]
9 9
10
-### NRF52840
10
+- [[LCD-dat]]
11 11
12
+- [[PCF8563-dat]] - [[RTC-dat]]
12 13
13
-![](2025-07-09-12-46-39.png)
14
+- [[SPI-Flash-dat]]
14 15
15
-- button == P1.10
16
-- REST == P0.18/RESET
16
+- [[ADC-dat]]
17 17
18
+## T114
18 19
20
+![](MeshNode-T114_V2.0_SCH(2)107-09-2025.jpg)
19 21
20
-### SX1262
21 22
22
-![](2025-07-09-12-47-23.png)
23
+## NRF52840 Pinout Table
24
+
25
+| Pin Name | Default Func | Alternate Functions | Notes |
26
+| -------- | ------------ | -------------------- | ----------- |
27
+| P0.00 | GPIO | *XL1, Analog In, NFC | *LS_Crystal |
28
+| P0.01 | GPIO | *XL2, Analog In, NFC | *LS_Crystal |
29
+| P0.02 | GPIO | Analog In, NFC | TFT_LCD |
30
+| P0.03 | GPIO | Analog In, NFC | TFT_LCD |
31
+| P0.04 | GPIO | Analog In, NFC | BAT_ADC |
32
+| P0.05 | GPIO | Analog In, NFC | F_SPI_HOLD |
33
+| P0.06 | GPIO | Analog In, NFC | ADC_CTRL |
34
+| P0.07 | GPIO | Analog In, NFC | F_SPI_WP |
35
+| P0.08 | GPIO | | ~free |
36
+| P0.09 | GPIO | NFC1 | ~free |
37
+| P0.10 | GPIO | NFC2 | ~free |
38
+| P0.11 | GPIO | | TFT_LCD |
39
+| P0.12 | GPIO | | TFT_LCD |
40
+| P0.13 | GPIO | | ~free |
41
+| P0.14 | GPIO | | ~free |
42
+| P0.15 | GPIO | | TFT_LCD |
43
+| P0.16 | GPIO | | ~free |
44
+| P0.17 | GPIO | | LORA |
45
+| P0.18 | GPIO | RESET | REST pin |
46
+| P0.19 | GPIO | | LORA |
47
+| P0.20 | GPIO | | LORA |
48
+| P0.21 | GPIO | | Power |
49
+| P0.22 | GPIO | | LORA |
50
+| P0.23 | GPIO | | LORA |
51
+| P0.24 | GPIO | | LORA |
52
+| P0.25 | GPIO | | LORA |
53
+| P0.26 | GPIO | | I2C_RTC |
54
+| P0.27 | GPIO | | I2C_RTC |
55
+| P0.28 | GPIO | Analog In | ~free |
56
+| P0.29 | GPIO | Analog In | ~free |
57
+| P0.30 | GPIO | Analog In | ~free |
58
+| P0.31 | GPIO | Analog In | ~free |
59
+| P1.00 | GPIO | | PROG |
60
+| P1.01 | GPIO | | ~free |
61
+| P1.02 | GPIO | | GPS |
62
+| P1.03 | GPIO | | LED |
63
+| P1.04 | GPIO | | GPS |
64
+| P1.05 | GPIO | | GPS |
65
+| P1.06 | GPIO | | GPS |
66
+| P1.07 | GPIO | | GPS |
67
+| P1.08 | GPIO | | TFT_LCD |
68
+| P1.09 | GPIO | | TFT_LCD |
69
+| P1.10 | GPIO | | Button |
70
+| P1.11 | GPIO | | ~free |
71
+| P1.12 | GPIO | | F_SPI |
72
+| P1.13 | GPIO | | F_SPI |
73
+| P1.14 | GPIO | | F_SPI |
74
+| P1.15 | GPIO | | F_SPI |
23 75
24
-- [[UPG2179-dat]]
25 76
26
-- [[TP4056-dat]]
27 77
28
-- [[LCD-dat]]
29 78
30 79
## ref
31 80