User Tools

Site Tools


admin:samba

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
admin:samba [2025/05/10 15:32] rjversluisadmin:samba [2025/05/11 21:28] (current) – [Shell script] rjversluis
Line 1: Line 1:
-======Samba====== +======NASpi====== 
-{{:admin:naspi.png?480}}\\ +{{:admin:naspi:naspi-20250511.jpg?320}} {{:admin:naspi.png?480}}\\
  
  \\  \\
Line 125: Line 124:
 <code bash>sudo systemctl enable pigpiod</code> <code bash>sudo systemctl enable pigpiod</code>
  
-### 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 /home/pi/fan.sh& +
 #!/bin/bash #!/bin/bash
 while true while true
Line 170: Line 153:
   sleep 10   sleep 10
 done done
 +</code>
  
 +====Startup at reboot====
 +crontab -e
 +<code bash>@reboot /home/pi/fan.sh&</code>
  
 +====Connecting the Fan====
 +<code>
 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.\\
 +</code>
 +{{:admin:naspi:naspi-fan.jpg?0x300}}{{?admin:naspi:rpi-fan.png?0x300}}\\
  
  
 + \\ 
 +=====3D==== 
 +====OpenSCAD==== 
 +SSDBox and rpi4-box: 
 +  * https://gitlab.com/rocrail/rocrail3d/-/tree/master/RPi?ref_type=heads
  \\  \\
 =====Links===== =====Links=====
admin/samba.1746883939.txt.gz · Last modified: 2025/05/10 15:32 by rjversluis