Sfoglia il codice sorgente

add BOMs, better lighting for 3d.js vrml

Thomas Buck 7 mesi fa
parent
commit
fcfa564cd8
4 ha cambiato i file con 73 aggiunte e 28 eliminazioni
  1. 10
    10
      docs/src/js/3d.js
  2. 20
    0
      docs/src/pcb1.md
  3. 26
    1
      docs/src/pcb2.md
  4. 17
    17
      pcb2/lars2.kicad_pcb

+ 10
- 10
docs/src/js/3d.js Vedi File

@@ -116,20 +116,20 @@ export function init_3d(path, container, status, div_width, div_height) {
116 116
     controls.enableDamping = true;
117 117
     controls.autoRotate = true;
118 118
 
119
+    for (const i of [1, -1]) {
120
+        for (const j of [0, 1, 2]) {
121
+            const light = new THREE.DirectionalLight(0xffffff, 0.5);
122
+            light.position.set(i * (j == 0 ? 1 : 0),
123
+                                i * (j == 1 ? 1 : 0),
124
+                                i * (j == 2 ? 1 : 0));
125
+            scene.add(light);
126
+        }
127
+    }
128
+
119 129
     if (path.endsWith(".stl")) {
120 130
         const light_amb = new THREE.AmbientLight(0x424242);
121 131
         scene.add(light_amb);
122 132
 
123
-        for (const i of [1, -1]) {
124
-            for (const j of [0, 1, 2]) {
125
-                const light = new THREE.DirectionalLight(0xffffff, 0.5);
126
-                light.position.set(i * (j == 0 ? 1 : 0),
127
-                                   i * (j == 1 ? 1 : 0),
128
-                                   i * (j == 2 ? 1 : 0));
129
-                scene.add(light);
130
-            }
131
-        }
132
-
133 133
         const material = new THREE.MeshStandardMaterial();
134 134
         //material.roughness = 0.75;
135 135
 

+ 20
- 0
docs/src/pcb1.md Vedi File

@@ -7,3 +7,23 @@ It's a single sided PCB layout suitable for hand etching at home.
7 7
 [![assembled prototype](https://www.xythobuz.de/img/lars_10_small.jpg)](https://www.xythobuz.de/img/lars_10.jpg)
8 8
 
9 9
 You can also [download the Gerber files to order PCBs online](./plot/fab_pcb.zip).
10
+
11
+## Bill of Materials
12
+
13
+These are all the parts required to assemble the prototype.
14
+
15
+| ID | Type | Link |
16
+| -- | ---- | ---- |
17
+| U9 | Raspberry Pi Pico | [Reichelt.de](https://www.reichelt.de/raspberry-pi-pico-rp2040-cortex-m0-microusb-rasp-pi-pico-p295706.html?&nbc=1), [Amazon.de](https://www.amazon.de/Raspberry-Pi-Pico/dp/B09KVB8LVR) |
18
+| U2 | TP4056 Charger Module | [Amazon.de](https://www.amazon.de/AZDelivery-%E2%AD%90%E2%AD%90%E2%AD%90%E2%AD%90%E2%AD%90-TP4056-Laderegler-Lithium/dp/B07D2G345P) |
19
+| U4, U6, U8 | MOSFET Module N-Channel | [Amazon.de](https://www.amazon.de/Schaltersteuerplatine-Motorsteuerplatine-MOSFET-Triggerschalter-Reglersteuerplatine-Dual-Hochleistungs/dp/B0CBK7D1GD) |
20
+| U3, U5, U7 | Step-Up Converter Module | [Amazon.de](https://www.amazon.de/Converter-Spannungswandler-LAOMAO-Netzteil-Kompatibel/dp/B0B932BR7V) |
21
+| J2 | SSD1306 128x64 0.96" Display | [Amazon.de](https://www.amazon.de/AZDelivery-Display-Arduino-Raspberry-gratis/dp/B01L9GC470) |
22
+| S1 | ALPS EC12E24244 | [Reichelt.de](https://www.reichelt.de/drehimpulsegeber-24-impulse-24-rastungen-vertikal-stec12e08-p73923.html?&nbc=1) |
23
+| D1 - D4 | LED 5mm | [Reichelt.de](https://www.reichelt.de/led-5mm-bedrahtet-rot-450-mcd-90--5603r1c-khb-a-p361958.html?&nbc=1) |
24
+| D5 - D8 | 1N5819 Schottky Diode | [Reichelt.de](https://www.reichelt.de/schottkydiode-40-v-1-a-do-41-1n-5819-p41850.html?&nbc=1) |
25
+| R1 - R4 | Resistor 1k Ohm | [Reichelt.de](https://www.reichelt.de/widerstand-metallschicht-1-00-kohm-0207-0-6-w-1--metall-1-00k-p11403.html?&nbc=1) |
26
+| R5 | Resistor 10k Ohm 0.1% Axial | [Reichelt.de](https://www.reichelt.de/widerstand-metallschicht-10-kohm-0207-0-6-w-0-1--mpr-10-0k-p12770.html?&nbc=1) |
27
+| R6 | Resistor 18k Ohm 0.1% Axial | [Reichelt.de](https://www.reichelt.de/widerstand-metallfilm-18-kohm-0-1-0-6-w-tk25-0207-mpr-18-0k-p12837.html?&nbc=1) |
28
+| SW1 - SW4 | 12mm waterproof stainless steel push button | N/A |
29
+| SW5A | Unknown Power Switch | N/A |

+ 26
- 1
docs/src/pcb2.md Vedi File

@@ -1,5 +1,30 @@
1 1
 # LARS V2
2 2
 
3
-**TODO** this is a work in progress
3
+This is the second iteration of the hardware.
4
+The principle is the same as for the prototype, with the same chinese modules used.
5
+Only the buttons have been changed, and there are now 9 of them, with 8 LEDs.
6
+The battery is now mounted on the board.
7
+It is planned to be used without a case.
4 8
 
5 9
 You can [download the Gerber files to order PCBs online](./plot/fab_pcb2.zip).
10
+
11
+## Bill of Materials
12
+
13
+These are all the parts required to assemble the V2 PCB.
14
+
15
+| ID | Type | Link |
16
+| -- | ---- | ---- |
17
+| U1 | Raspberry Pi Pico | [Reichelt.de](https://www.reichelt.de/raspberry-pi-pico-rp2040-cortex-m0-microusb-rasp-pi-pico-p295706.html?&nbc=1), [Amazon.de](https://www.amazon.de/Raspberry-Pi-Pico/dp/B09KVB8LVR) |
18
+| U2 | TP4056 Charger Module | [Amazon.de](https://www.amazon.de/AZDelivery-%E2%AD%90%E2%AD%90%E2%AD%90%E2%AD%90%E2%AD%90-TP4056-Laderegler-Lithium/dp/B07D2G345P) |
19
+| U3 - U5 | MOSFET Module N-Channel | [Amazon.de](https://www.amazon.de/Schaltersteuerplatine-Motorsteuerplatine-MOSFET-Triggerschalter-Reglersteuerplatine-Dual-Hochleistungs/dp/B0CBK7D1GD) |
20
+| U6 - U8 | Step-Up Converter Module | [Amazon.de](https://www.amazon.de/Converter-Spannungswandler-LAOMAO-Netzteil-Kompatibel/dp/B0B932BR7V) |
21
+| OLED1 | SSD1306 128x64 0.96" Display | [Amazon.de](https://www.amazon.de/AZDelivery-Display-Arduino-Raspberry-gratis/dp/B01L9GC470) |
22
+| BT1 | Keystone 1042 | [Reichelt.de](https://www.reichelt.de/batteriehalter-fuer-1-18650-keystone-1042-p213369.html?&nbc=1) |
23
+| S1 | APEM 5236AB | [Reichelt.de](https://www.reichelt.de/kippschalter-1a-250vac-1x-ein-ein-printanschluss-as-500apc-p4396.html?&nbc=1) |
24
+| SW1 | ALPS EC12E24244 | [Reichelt.de](https://www.reichelt.de/drehimpulsegeber-24-impulse-24-rastungen-vertikal-stec12e08-p73923.html?&nbc=1) |
25
+| SW2 - SW10 | DIP 6x6mm push button | [Reichelt.de](https://www.reichelt.de/kurzhubtaster-printmontage-1-schliesser-6-x-6-x-5-mm-dip-dts-62k-v-p360043.html?&nbc=1) |
26
+| D1 - D4 | 1N5819 Schottky Diode | [Reichelt.de](https://www.reichelt.de/schottkydiode-40-v-1-a-do-41-1n-5819-p41850.html?&nbc=1) |
27
+| D5 - D12 | LED 5mm | [Reichelt.de](https://www.reichelt.de/led-5mm-bedrahtet-rot-450-mcd-90--5603r1c-khb-a-p361958.html?&nbc=1) |
28
+| R1 | Resistor 10k Ohm 0.1% Axial | [Reichelt.de](https://www.reichelt.de/widerstand-metallschicht-10-kohm-0207-0-6-w-0-1--mpr-10-0k-p12770.html?&nbc=1) |
29
+| R2 | Resistor 18k Ohm 0.1% Axial | [Reichelt.de](https://www.reichelt.de/widerstand-metallfilm-18-kohm-0-1-0-6-w-tk25-0207-mpr-18-0k-p12837.html?&nbc=1) |
30
+| R3 - R10 | Resistor 1k Ohm | [Reichelt.de](https://www.reichelt.de/widerstand-metallschicht-1-00-kohm-0207-0-6-w-1--metall-1-00k-p11403.html?&nbc=1) |

+ 17
- 17
pcb2/lars2.kicad_pcb Vedi File

@@ -657,7 +657,7 @@
657 657
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
658 658
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
659 659
 		(property "Reference" "R8"
660
-			(at 2.79 -1.75 270)
660
+			(at 2.79 -1.75 -90)
661 661
 			(layer "F.SilkS")
662 662
 			(uuid "1fd053ab-9c8d-4495-b2fb-bcac40f47cec")
663 663
 			(effects
@@ -668,7 +668,7 @@
668 668
 			)
669 669
 		)
670 670
 		(property "Value" "1k"
671
-			(at -0.46 -1.75 270)
671
+			(at -0.46 -1.75 -90)
672 672
 			(layer "F.SilkS")
673 673
 			(uuid "dbc7679f-a644-4cba-bec1-730cef7523eb")
674 674
 			(effects
@@ -2456,7 +2456,7 @@
2456 2456
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
2457 2457
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
2458 2458
 		(property "Reference" "R6"
2459
-			(at 2.79 -1.75 270)
2459
+			(at 2.79 -1.75 -90)
2460 2460
 			(layer "F.SilkS")
2461 2461
 			(uuid "e947bb84-240b-49f3-b5e4-125dd1c5707f")
2462 2462
 			(effects
@@ -2467,7 +2467,7 @@
2467 2467
 			)
2468 2468
 		)
2469 2469
 		(property "Value" "1k"
2470
-			(at -0.46 -1.75 270)
2470
+			(at -0.46 -1.75 -90)
2471 2471
 			(layer "F.SilkS")
2472 2472
 			(uuid "ea70c854-6058-4df9-8d7c-aaff4528f94d")
2473 2473
 			(effects
@@ -3351,7 +3351,7 @@
3351 3351
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
3352 3352
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
3353 3353
 		(property "Reference" "R5"
3354
-			(at 2.79 -1.75 270)
3354
+			(at 2.79 -1.75 -90)
3355 3355
 			(layer "F.SilkS")
3356 3356
 			(uuid "d8c8136b-d9c4-42ea-bc0e-6310ec8459ec")
3357 3357
 			(effects
@@ -3362,7 +3362,7 @@
3362 3362
 			)
3363 3363
 		)
3364 3364
 		(property "Value" "1k"
3365
-			(at -0.46 -1.75 270)
3365
+			(at -0.46 -1.75 -90)
3366 3366
 			(layer "F.SilkS")
3367 3367
 			(uuid "c9fbb316-0103-436c-8639-f851fc9d930f")
3368 3368
 			(effects
@@ -5959,7 +5959,7 @@
5959 5959
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
5960 5960
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
5961 5961
 		(property "Reference" "R3"
5962
-			(at 2.79 -1.75 270)
5962
+			(at 2.79 -1.75 -90)
5963 5963
 			(layer "F.SilkS")
5964 5964
 			(uuid "d0a29dd3-57e4-4002-94e9-43edc0bf14c5")
5965 5965
 			(effects
@@ -5970,7 +5970,7 @@
5970 5970
 			)
5971 5971
 		)
5972 5972
 		(property "Value" "1k"
5973
-			(at -0.46 -1.75 270)
5973
+			(at -0.46 -1.75 -90)
5974 5974
 			(layer "F.SilkS")
5975 5975
 			(uuid "fb073831-f790-484a-8a57-0dcf3e829bd8")
5976 5976
 			(effects
@@ -9360,7 +9360,7 @@
9360 9360
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
9361 9361
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
9362 9362
 		(property "Reference" "R7"
9363
-			(at 2.79 -1.75 270)
9363
+			(at 2.79 -1.75 -90)
9364 9364
 			(layer "F.SilkS")
9365 9365
 			(uuid "2016a318-64c2-4200-8f9a-bcac2a33860b")
9366 9366
 			(effects
@@ -9371,7 +9371,7 @@
9371 9371
 			)
9372 9372
 		)
9373 9373
 		(property "Value" "1k"
9374
-			(at -0.46 -1.75 270)
9374
+			(at -0.46 -1.75 -90)
9375 9375
 			(layer "F.SilkS")
9376 9376
 			(uuid "6e7ebbf0-6bdf-41dd-aa7b-999e93928625")
9377 9377
 			(effects
@@ -9955,7 +9955,7 @@
9955 9955
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
9956 9956
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
9957 9957
 		(property "Reference" "R10"
9958
-			(at 2.29 -1.75 270)
9958
+			(at 2.29 -1.75 -90)
9959 9959
 			(layer "F.SilkS")
9960 9960
 			(uuid "6669cc9c-80dd-4445-8ba5-9670a4fc0a67")
9961 9961
 			(effects
@@ -9966,7 +9966,7 @@
9966 9966
 			)
9967 9967
 		)
9968 9968
 		(property "Value" "1k"
9969
-			(at -0.53 -1.75 270)
9969
+			(at -0.53 -1.75 -90)
9970 9970
 			(layer "F.SilkS")
9971 9971
 			(uuid "e22f5375-e095-4bee-8524-324fd0557275")
9972 9972
 			(effects
@@ -11362,7 +11362,7 @@
11362 11362
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
11363 11363
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
11364 11364
 		(property "Reference" "R4"
11365
-			(at 2.79 -1.75 270)
11365
+			(at 2.79 -1.75 -90)
11366 11366
 			(layer "F.SilkS")
11367 11367
 			(uuid "59e3f314-9f70-435f-80fd-3330e495f898")
11368 11368
 			(effects
@@ -11373,7 +11373,7 @@
11373 11373
 			)
11374 11374
 		)
11375 11375
 		(property "Value" "1k"
11376
-			(at -0.46 -1.75 270)
11376
+			(at -0.46 -1.75 -90)
11377 11377
 			(layer "F.SilkS")
11378 11378
 			(uuid "d696854a-e389-430f-8fa1-6c75bd19c993")
11379 11379
 			(effects
@@ -11898,7 +11898,7 @@
11898 11898
 		(descr "Resistor, Axial_DIN0204 series, Axial, Vertical, pin pitch=2.54mm, 0.167W, length*diameter=3.6*1.6mm^2, http://cdn-reichelt.de/documents/datenblatt/B400/1_4W%23YAG.pdf")
11899 11899
 		(tags "Resistor Axial_DIN0204 series Axial Vertical pin pitch 2.54mm 0.167W length 3.6mm diameter 1.6mm")
11900 11900
 		(property "Reference" "R9"
11901
-			(at 2.79 -1.75 270)
11901
+			(at 2.79 -1.75 -90)
11902 11902
 			(layer "F.SilkS")
11903 11903
 			(uuid "0e124094-ab62-44ec-a0d1-d0445965cc39")
11904 11904
 			(effects
@@ -11909,7 +11909,7 @@
11909 11909
 			)
11910 11910
 		)
11911 11911
 		(property "Value" "1k"
11912
-			(at -0.46 -1.75 270)
11912
+			(at -0.46 -1.75 -90)
11913 11913
 			(layer "F.SilkS")
11914 11914
 			(uuid "bd84c00b-6b93-44f1-ac13-a06bc993672a")
11915 11915
 			(effects
@@ -16870,7 +16870,7 @@
16870 16870
 				(xy 86.629285 139.794206) (xy 86.629288 139.794208) (xy 89.97286 143.137781) (xy 89.972861 143.137782)
16871 16871
 				(xy 90.077438 143.242359) (xy 90.112219 143.27714) (xy 90.247638 143.367624) (xy 90.276086 143.386632)
16872 16872
 				(xy 90.382745 143.430811) (xy 90.458164 143.462051) (xy 90.620677 143.494377) (xy 90.651454 143.500499)
16873
-				(xy 90.651457 143.5005) (xy 90.651459 143.5005) (xy 90.84854 143.5005) (xy 96.534218 143.5005) (xy 96.601257 143.520185)
16873
+				(xy 90.651457 143.5005) (xy 90.651459 143.5005) (xy 96.534218 143.5005) (xy 96.601257 143.520185)
16874 16874
 				(xy 96.621899 143.536819) (xy 96.713181 143.628101) (xy 96.746666 143.689424) (xy 96.7495 143.715782)
16875 16875
 				(xy 96.7495 144.322971) (xy 96.729815 144.39001) (xy 96.71673 144.406953) (xy 96.561836 144.575214)
16876 16876
 				(xy 96.425826 144.783393) (xy 96.325936 145.011118) (xy 96.264892 145.252175) (xy 96.26489 145.252187)

Loading…
Annulla
Salva