Board-dat/NWI/NWI1200-DAT/NWI1200-DAT.md
... ...
@@ -33,6 +33,8 @@ To the board version V1 - [[NWI1199-DAT]]
33 33
| GND | | GND | |
34 34
| 3V3 | | VCC | |
35 35
36
+
37
+
36 38
## Jumper Setup
37 39
38 40
| Jumpers | func | Set to | Set Default | Note |
... ...
@@ -83,7 +85,65 @@ based on demo code NWI1200-3
83 85
![](2023-09-19-17-28-34.png)
84 86
85 87
86
-
88
+## based on the official arduino code
89
+
90
+ // Important to be defined BEFORE including ETH.h for ETH.begin() to work.
91
+ // Example RMII LAN8720 (Olimex, etc.)
92
+ #ifndef ETH_PHY_TYPE
93
+ #define ETH_PHY_TYPE ETH_PHY_LAN8720
94
+ #define ETH_PHY_ADDR 0
95
+ #define ETH_PHY_MDC 23
96
+ #define ETH_PHY_MDIO 18
97
+ #define ETH_PHY_POWER -1
98
+ #define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
99
+ #endif
100
+
101
+should change
102
+
103
+ #define ETH_POWER_PIN 2
104
+ #define ETH_PHY_ADDR 0
105
+
106
+extra define
107
+
108
+ #define OP1 4
109
+ #define OP2 5
110
+
111
+extra loop for debugging:
112
+
113
+
114
+ void loop() {
115
+
116
+ int OP1_status = digitalRead(OP1);
117
+ int OP2_status = digitalRead(OP2);
118
+
119
+ Serial.print("OP1 status: ");
120
+ Serial.print(OP1_status);
121
+ Serial.print("; OP2 status: ");
122
+ Serial.println(OP2_status);
123
+
124
+ // if (eth_connected) {
125
+ // testClient("google.com", 80);
126
+ // }
127
+
128
+ testClient("163.com", 80);
129
+
130
+ Serial.print("ETH status: ");
131
+ Serial.print(eth_connected);
132
+
133
+ Serial.print(", ETH MAC: ");
134
+ Serial.print(ETH.macAddress());
135
+ Serial.print(", IPv4: ");
136
+ Serial.print(ETH.localIP());
137
+
138
+ if (ETH.fullDuplex()) {
139
+ Serial.print(", FULL_DUPLEX");
140
+ }
141
+ Serial.print(", ");
142
+ Serial.print(ETH.linkSpeed());
143
+ Serial.println("Mbps");
144
+ Serial.println("");
145
+ delay(10000);
146
+ }
87 147
88 148
## demo code find at
89 149
SDK-dat/arduino-dat/Arduino-IDE-DAT/arduino-lib-dat/arduino-code-v2-dat.md
... ...
@@ -5,6 +5,12 @@
5 5
6 6
- [ESP32 board BSP code](https://github.com/Edragon/Arduino-ESP32)
7 7
8
+
9
+
10
+
11
+
12
+
13
+
8 14
## The category list of Sketchbook
9 15
10 16
.
... ...
@@ -30,3 +36,6 @@
30 36
---rf95_reliable_datagram_server
31 37
---sleep_mode
32 38
39
+## ref
40
+
41
+- [[arduino-error-dat]]
... ...
\ No newline at end of file
SDK-dat/arduino-dat/arduino-error-dat.md
... ...
@@ -0,0 +1,30 @@
1
+
2
+# arduino-error-dat.md
3
+
4
+## Error
5
+
6
+add #include <WiFi.h> if you have following code
7
+
8
+ variable or field 'WiFiEvent' declared void
9
+
10
+SYSTEM_EVENT_ETH_START change to ARDUINO_EVENT_ETH_START
11
+
12
+invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
13
+
14
+
15
+## Versions
16
+
17
+arduino version
18
+
19
+ 1.8.19
20
+
21
+arduino ESP32 board version
22
+
23
+ 2.0.13
24
+
25
+## ref
26
+
27
+- [[arduino-dat]]
28
+
29
+
30
+
Tech-dat/power-dat/battery-dat/lithium-battery-dat/2025-03-04-17-42-39.png
... ...
Binary files /dev/null and b/Tech-dat/power-dat/battery-dat/lithium-battery-dat/2025-03-04-17-42-39.png differ
Tech-dat/power-dat/battery-dat/lithium-battery-dat/lithium-battery-dat.md
... ...
@@ -39,4 +39,13 @@ If the battery is at **2.6V**, it's very close to this cutoff threshold, and the
39 39
- battery voltage B+/B- = OK, output == 0V, BMS problem
40 40
41 41
42
+## large battery
43
+
44
+48V
45
+200AH
46
+
47
+![](2025-03-04-17-42-39.png)
48
+
42 49
## ref
50
+
51
+- [[lithium-battery]]
... ...
\ No newline at end of file