mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-23 15:23:51 -05:00
Added printed carriers for MT3608 and TP4056 modules.
This commit is contained in:
parent
d367e743da
commit
65f320141d
BIN
libtest.png
BIN
libtest.png
Binary file not shown.
Before Width: | Height: | Size: 781 KiB After Width: | Height: | Size: 782 KiB |
@ -18,7 +18,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
//! Adapts ESP12 module to 0.1" grid. See <https://hydraraptor.blogspot.com/2018/04/esp-12-module-breakout-adaptor.html>.
|
//! Adapts ESP12 modules and various small PCBs to 0.1" grid. See <https://hydraraptor.blogspot.com/2018/04/esp-12-module-breakout-adaptor.html>.
|
||||||
//
|
//
|
||||||
$extrusion_width = 0.5;
|
$extrusion_width = 0.5;
|
||||||
|
|
||||||
@ -61,3 +61,71 @@ module ESP12F_carrier_stl() { //! Generate the STL for an ESP12 carrier
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module TP4056_carrier_stl() { //! Generate the STL for an TP4056 carrier, two required
|
||||||
|
stl("TP4056_carrier");
|
||||||
|
pitch = 2.54;
|
||||||
|
outer_pitch = 13.9;
|
||||||
|
inner_pitch = 7.54;
|
||||||
|
hole = pitch - 3 * extrusion_width;
|
||||||
|
pins = 6;
|
||||||
|
length1 = outer_pitch + hole + squeezed_wall * 2;
|
||||||
|
length2 = (pins - 1) * pitch + hole + squeezed_wall * 2;
|
||||||
|
height = 3;
|
||||||
|
|
||||||
|
width = hole + squeezed_wall * 2;
|
||||||
|
spacing = inch(0.9);
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
hull() {
|
||||||
|
translate_z(height - eps / 2)
|
||||||
|
cube([width, length1, eps], center = true);
|
||||||
|
|
||||||
|
translate_z(eps / 2)
|
||||||
|
cube([width, length2, eps], center = true);
|
||||||
|
}
|
||||||
|
|
||||||
|
for(i = [0 : pins - 1])
|
||||||
|
let(x = [-outer_pitch / 2, - inner_pitch / 2, 0, 0, inner_pitch / 2, outer_pitch / 2][i])
|
||||||
|
if(x)
|
||||||
|
hull() {
|
||||||
|
translate([0, x, height])
|
||||||
|
cube([hole, hole, eps], center = true);
|
||||||
|
|
||||||
|
translate([0, i * pitch - (pins - 1) * pitch / 2])
|
||||||
|
cube([hole, hole, eps], center = true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module MT3608_carrier_stl() { //! Generate the STL for an MT3608 carrier, two required
|
||||||
|
stl("MT3608_carrier");
|
||||||
|
pcb_width = 17;
|
||||||
|
w_pitch_top = 6.81;
|
||||||
|
w_pitch_bot = inch(0.3);
|
||||||
|
l_pitch_top = 30.855;
|
||||||
|
l_pitch_bot = inch(1.2);
|
||||||
|
hole = 1;
|
||||||
|
height = 3;
|
||||||
|
wall = 2 * extrusion_width;
|
||||||
|
width = hole + 2 * wall;
|
||||||
|
offset = (l_pitch_top - l_pitch_bot) / 2;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
hull() {
|
||||||
|
translate([offset, 0, height - eps / 2])
|
||||||
|
rounded_rectangle([width, pcb_width - 2, eps], 1);
|
||||||
|
|
||||||
|
translate_z(eps / 2)
|
||||||
|
rounded_rectangle([width, pcb_width - 2, eps], 1);
|
||||||
|
}
|
||||||
|
for(side = [-1, 1])
|
||||||
|
hull() {
|
||||||
|
translate([offset, side * w_pitch_top / 2, height])
|
||||||
|
cube([hole, hole, eps], center = true);
|
||||||
|
|
||||||
|
translate([0, side * w_pitch_bot / 2])
|
||||||
|
cube([hole, hole, eps], center = true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -3789,7 +3789,7 @@ of conductive panels, an extra layer of insulation.
|
|||||||
---
|
---
|
||||||
<a name="Carriers"></a>
|
<a name="Carriers"></a>
|
||||||
## Carriers
|
## Carriers
|
||||||
Adapts ESP12 module to 0.1" grid. See <https://hydraraptor.blogspot.com/2018/04/esp-12-module-breakout-adaptor.html>.
|
Adapts ESP12 modules and various small PCBs to 0.1" grid. See <https://hydraraptor.blogspot.com/2018/04/esp-12-module-breakout-adaptor.html>.
|
||||||
|
|
||||||
|
|
||||||
[printed/carriers.scad](printed/carriers.scad) Implementation.
|
[printed/carriers.scad](printed/carriers.scad) Implementation.
|
||||||
@ -3800,6 +3800,8 @@ Adapts ESP12 module to 0.1" grid. See <https://hydraraptor.blogspot.com/2018/04/
|
|||||||
| Module | Description |
|
| Module | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
| ```ESP12F_carrier_stl()``` | Generate the STL for an ESP12 carrier |
|
| ```ESP12F_carrier_stl()``` | Generate the STL for an ESP12 carrier |
|
||||||
|
| ```MT3608_carrier_stl()``` | Generate the STL for an MT3608 carrier, two required |
|
||||||
|
| ```TP4056_carrier_stl()``` | Generate the STL for an TP4056 carrier, two required |
|
||||||
|
|
||||||
![carriers](tests/png/carriers.png)
|
![carriers](tests/png/carriers.png)
|
||||||
|
|
||||||
@ -3807,6 +3809,8 @@ Adapts ESP12 module to 0.1" grid. See <https://hydraraptor.blogspot.com/2018/04/
|
|||||||
| Qty | Filename |
|
| Qty | Filename |
|
||||||
| ---:|:--- |
|
| ---:|:--- |
|
||||||
| 1 | ESP12F_carrier.stl |
|
| 1 | ESP12F_carrier.stl |
|
||||||
|
| 1 | MT3608_carrier.stl |
|
||||||
|
| 1 | TP4056_carrier.stl |
|
||||||
|
|
||||||
|
|
||||||
<a href="#top">Top</a>
|
<a href="#top">Top</a>
|
||||||
|
@ -19,7 +19,16 @@
|
|||||||
include <../utils/core/core.scad>
|
include <../utils/core/core.scad>
|
||||||
use <../printed/carriers.scad>
|
use <../printed/carriers.scad>
|
||||||
|
|
||||||
module carriers()
|
module carriers() {
|
||||||
color(pp1_colour) ESP12F_carrier_stl();
|
color(pp1_colour) ESP12F_carrier_stl();
|
||||||
|
|
||||||
|
translate([0, 15])
|
||||||
|
rotate(90)
|
||||||
|
color(pp1_colour) TP4056_carrier_stl();
|
||||||
|
|
||||||
|
translate([0, 25])
|
||||||
|
rotate(90)
|
||||||
|
color(pp1_colour) MT3608_carrier_stl();
|
||||||
|
}
|
||||||
|
|
||||||
carriers();
|
carriers();
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 54 KiB |
Loading…
Reference in New Issue
Block a user