admin:samba
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
admin:samba [2025/05/10 15:32] – rjversluis | admin:samba [2025/05/11 21:28] (current) – [Shell script] rjversluis | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Samba====== | + | ======NASpi====== |
- | {{: | + | {{: |
\\ | \\ | ||
Line 125: | Line 124: | ||
<code bash> | <code bash> | ||
- | ### Lüfter an | + | ====Shell script==== |
- | $ pigs w 4 1 | + | Using GPIO4, header pin 7, for the 100Hz PWM.\\ |
- | ### Lüfter aus | + | <code bash> |
- | $ pigs w 4 0 | + | |
- | ### PWM auf 8 KHz | + | |
- | $ pigs pfs 4 8000 | + | |
- | ### PWM aus | + | |
- | $ pigs p 4 0 | + | |
- | ### PWM 100 Prozent | + | |
- | $ pigs p 4 255 | + | |
- | ### PWM langsamste Drehzahl | + | |
- | $ pigs p 4 70 | + | |
- | ### PWM etwa 50 Prozent | + | |
- | $ pigs p 4 180 | + | |
- | + | ||
- | + | ||
- | crontab -e | + | |
- | @reboot / | + | |
#!/bin/bash | #!/bin/bash | ||
while true | while true | ||
Line 170: | Line 153: | ||
sleep 10 | sleep 10 | ||
done | done | ||
+ | </ | ||
+ | ====Startup at reboot==== | ||
+ | crontab -e | ||
+ | <code bash> | ||
+ | ====Connecting the Fan==== | ||
+ | < | ||
FET BS170 connection: | FET BS170 connection: | ||
---------------------------------------- | ---------------------------------------- | ||
Line 179: | Line 168: | ||
Fan black wire to FET Drain | Fan black wire to FET Drain | ||
+ | A resistor of 47k between GND and FET Gate will shutoff the fan in case the GPIO is in an undefined state.\\ | ||
+ | </ | ||
+ | {{: | ||
+ | \\ | ||
+ | =====3D==== | ||
+ | ====OpenSCAD==== | ||
+ | SSDBox and rpi4-box: | ||
+ | * https:// | ||
\\ | \\ | ||
=====Links===== | =====Links===== |
admin/samba.1746883939.txt.gz · Last modified: 2025/05/10 15:32 by rjversluis