added servo

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2023-10-24 14:13:23 +02:00
parent c13cec4668
commit fe67763884
3 changed files with 22 additions and 3 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "cadmodel-sg90"]
path = cadmodel-sg90
url = https://github.com/ledalert/cadmodel-sg90.git

1
cadmodel-sg90 Submodule

Submodule cadmodel-sg90 added at 2aba157f6a

View File

@@ -1,7 +1,12 @@
angle = 20;
use <cadmodel-sg90/sg90.scad>;
use <cadmodel-sg90/fastener_1.scad>;
flap_angle = 0;
servo_angle = -10;
axle_dia = 4;
axle_len = 40;
raise = 0;
tunnel_w = 160;
tunnel_h = 160;
tunnel_t = 10; // tunnel thickness
@@ -130,7 +135,7 @@ module axles(){
}
module flap(){
translate(z*(sheet_h-rad)/2) rotate(x*angle) {
translate(z*(sheet_h-rad)/2) rotate(x*flap_angle) {
difference(){
rotate(y*90) cylinder(d=2*rad,h=tunnel_w-2*seal,center=true);
sheets();
@@ -155,7 +160,17 @@ module flap(){
}
}
*door();
module servo(){
translate(-[5.5,0,28.5]) sg90();
rotate(servo_angle*z) sg90_f1();
}
module servo_in_place(){
translate([-11,0,-tunnel_h/2 -10])rotate(90*x)servo();
}
door();
tunnel();
flap();
axles();
servo_in_place();