Skip to content

Commit 87619a1

Browse files
committed
Add hardware, reorganize repo
1 parent 10579ba commit 87619a1

File tree

123 files changed

+64681
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+64681
-0
lines changed

Data-Logger-PCB/Hardware.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Hardware
2+
3+
This document is for the hardware portion of the project.
4+
5+
## Hardware Design Log
6+
1. Import ESP32-C3-Mini-1 symbol and footprint from [Espressif KiCad Library](https://github.com/espressif/kicad-libraries)
7+
2. Place `ESP32-CE-Mini-1` module with decoupling/bulking caps
8+
3. Create `enable` circuit for ESP32C3
9+
4. Create programming circuit for ESP32C3
10+
- Only need `USB D+/D-` pins `18/19` to program the ESP32-C3 because it has a `integrated USB Serial/JTAG Controller`, see [doc](https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/usb-serial-jtag-console.html)
11+
- [USB C plug vs recepticle](https://www.arrow.com/en/research-and-events/articles/usb-technology-c-plug-and-receptacle-pinouts)
12+
5. Add power circuits
13+
- Linear LDO will do for the first version
14+
- Need `0.5A` max
15+
- Add [PMOS reverse polarity protection circuit](https://components101.com/articles/design-guide-pmos-mosfet-for-reverse-voltage-polarity-protection)
16+
6. ADC circuit
17+
- Op-amp voltage follower
18+
- 5 voltage ranges monitored:
19+
- 2 x `3.3v`
20+
- 1 x `5v`
21+
- 1 x `12v`
22+
- 1 x `24v`
23+
7. uSD card circuit
24+
- [pull-ups for all unused pins](https://electronics.stackexchange.com/questions/39571/how-to-do-pulling-up-or-down-correctly-when-interfacing-a-microsd-card)
25+
26+
27+
## Convert EasyEDA footprints to KiCAD
28+
JLCPCB is the cheapest board house including assembly. But you have to use their specific [parts library](https://jlcpcb.com/parts). To easily get footprints for parts you can:
29+
1. Open the footprint in EasyEDA
30+
2. `File` > `Export` > `EasyEDA`
31+
3. Insteall [lc2kicad](https://github.com/RigoLigoRLC/LC2KiCad)
32+
4. Alias the command so it's easier to user
33+
```bash
34+
alias lc2kicad="${Path_to_repo}/submodules/lc2kicad/build/lc2kicad"
35+
```
36+
5. Convert `EasyEDA` footprint to KiCAD
37+
```bash
38+
lc2kicad ~/Downloads/PCB_NEW_PCB_2022-12-04.json
39+
```
40+
6. Open footprint in KiCAD
41+
7. Create new footprint in KiCAD and copy/paste part
42+
43+
https://jlcpcb.com/parts
44+
45+
## TODO
46+
- Page Documentation
47+
- Circuit documenations
48+
- spec specific passives
49+
50+
## Circuits
51+
- ESP32-C3
52+
- Power bulk cap
53+
- Power decoupling cap
54+
- `Enable` circuit
55+
- `RC` circuit
56+
- Programming circuit
57+
58+
## Notes
59+
- Use relative path libraries in KiCAD
60+
- Make sure all data sheets are saved
61+
- Add thermistor circuits
62+
- Add I2C power bus reset circuit
63+
- Add decoupling caps near USB trace switching planes
64+
- [info](https://electronics.stackexchange.com/questions/141264/can-differential-usb-traces-be-routed-relative-to-power-not-ground-planes)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"Id";"Designator";"Package";"Quantity";"Designation";"Supplier and ref";
2+
1;"U5,U4,U8,U6,U7";"LM321MF";5;"LM321MF";;;
3+
2;"IO13,DC-1,DC+1,IO11,IO5,VIN1,IO15,A2N1,A3N1,SDA1,TX0,IO0,IO1,A0N1,3V3,IO6,IO3,A3P1,A4P1,RX0,A4N1,IO10,I2SN1,I2SP1,NRESET1,SCL1,IO9,A0P1,IO8,IO2,IO4,A2P1,IO14,NINT1,IO7,IO12";"TestPoint_THTPad_1.0x1.0mm_Drill0.5mm";36;"TestPoint";;;
4+
3;"R4,R1,R15,R3,R14,R9";"R_0402_1005Metric";6;"10k";;;
5+
4;"C1";"C_0402_1005Metric";1;"1uF";;;
6+
5;"R2,R7";"R_0402_1005Metric";2;"5.1k";;;
7+
6;"C2,C5,C4";"C_0603_1608Metric";3;"10uF";;;
8+
7;"SD1";"472192001";1;"472192001";;;
9+
8;"R12";"R_0402_1005Metric";1;"7.5k";;;
10+
9;"R18,R17";"R_0402_1005Metric";2;"30.1";;;
11+
10;"R6,R5,R13";"R_0402_1005Metric";3;"1k";;;
12+
11;"R16,R8";"R_0402_1005Metric";2;"4.7k";;;
13+
12;"U1";"ESP32-C3-MINI-1";1;"ESP32-C3-MINI-1";;;
14+
13;"R11";"R_0402_1005Metric";1;"3.92k";;;
15+
14;"R10";"R_0402_1005Metric";1;"1.6k";;;
16+
15;"U9,U10";"SOT-23";2;"A03401A";;;
17+
16;"D1";"DFN1610";1;"LTVS16H5.0T5G";;;
18+
17;"U2";"SOT-223-4";1;"AZ1117IH-3.3TRG1";;;
19+
18;"U11";"QFN-28-EP(4x4)";1;"SX1509BIULTRT";;;
20+
19;"C3,C7,C6";"C_0402_1005Metric";3;"0.1uF";;;
21+
20;"USB-C1";"USB-TYPE-C-018";1;"USB-TYPE-C-018";;;

0 commit comments

Comments
 (0)