{"product_id":"armor-lite-koellichaam-met-pwm-ventilatorregeling-snelheidsregeling-voor-raspberry-pi-4b-module_1872209","title":"Koellichaam met PWM ventilatorregeling voor Raspberry Pi 4B","description":"\u003cp\u003e\u003cstrong\u003eOmschrijving:\u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003eDit is een dun en lichtgewicht koellichaam, uitgerust met een 3510 ultrastille koelventilator. De ventilator ondersteunt PWM snelheidsregeling en is perfect compatibel met Raspberry Pi OS. Voor andere systemen is het nodig om handmatig Python- of C-code te schrijven om de ventilatorsnelheid via PWM te regelen.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eOPMERKING:\u003c\/strong\u003eOndersteunt alleen Raspberry Pi 4B. Automatische snelheidsregeling is alleen beschikbaar voor Raspberry Pi OS.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eKenmerken:\u003c\/strong\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eLichtgewicht en stil\u003c\/li\u003e\n\u003cli\u003eOndersteunt PWM snelheidsregeling\u003c\/li\u003e\n\u003cli\u003eCompatibel met officiële systeemconfiguratie\u003c\/li\u003e\n\u003cli\u003eEenvoudig te installeren en te repareren\u003c\/li\u003e\n\u003cli\u003eGoed warmteafvoereffect\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003e\u003cstrong\u003ePakket bestaat uit:\u003c\/strong\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003e1 x koellichaam met PWM-ventilator voor Raspberry Pi 4B\u003c\/li\u003e\n\u003cli\u003e1 x schroevendraaier\u003c\/li\u003e\n\u003cli\u003e2 x M2.5x6mm schroeven\u003c\/li\u003e\n\u003cli\u003e4 x thermische pads\u003c\/li\u003e\n\u003cli\u003e1 x handleiding\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003e\u003cstrong\u003eHoe de automatisch instelbare ventilator in te schakelen:\u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003eSchakel de Raspberry Pi in en log in. Open een terminal en typ:\u003c\/p\u003e\u003cp\u003e\u003ccode\u003esudo raspi-config\u003c\/code\u003e\u003c\/p\u003e\u003cp\u003eNavigeer naar 4 Prestatie-opties -\u0026gt; P4 Ventilator en selecteer JA -\u0026gt; Invoer of houd het als 14 -\u0026gt; OK -\u0026gt; voer de temperatuur in graden in waarop de ventilator moet inschakelen, bijvoorbeeld: als je de ventilator wilt inschakelen bij 65 graden, voer 65 in en druk op Enter.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eHoe het in te schakelen via programmeren:\u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003eZorg ervoor dat de RPi.GPIO-bibliotheek is geïnstalleerd. Typ:\u003c\/p\u003e\u003cp\u003e\u003ccode\u003epip freeze | grep RPi.GPIO\u003c\/code\u003e\u003c\/p\u003e\u003cp\u003e\u003ccode\u003eRPi.GPIO==0.7.0\u003c\/code\u003e\u003c\/p\u003e\u003cp\u003ebetekent dit dat de bibliotheek correct is geïnstalleerd.\u003c\/p\u003e\u003cp\u003eOpen een terminal en maak een bestand aan met de naam:\u003ccode\u003epwm-fan-control.py\u003c\/code\u003e\u003c\/p\u003e\u003cp\u003eKopieer en plak de volgende code in het bestand en sla het op:\u003c\/p\u003e\u003cpre\u003e\u003ccode\u003eimport RPi.GPIO as GPIO\nimport time\nimport subprocess\n\nGPIO.setmode(GPIO.BCM)\nGPIO.setup(14, GPIO.OUT)\npwm = GPIO.PWM(14, 100)\nprint(\"Druk op Ctrl+C om te stoppen\")\ndc = 0\npwm.start(dc)\n\ntry:\n    while True:\n        temp = subprocess.getoutput(\"vcgencmd measure_temp | sed 's\/[^0-9.]\/\/g'\")\n        if round(float(temp)) \u0026gt;= 65:\n            dc = 100\n        else:\n            dc = 0\n        pwm.ChangeDutyCycle(dc)\n        time.sleep(0.05)\nexcept KeyboardInterrupt:\n    pwm.stop()\n    GPIO.cleanup()\n    print(\"Ctrl + C ingedrukt -- Programma beëindigen\")\u003c\/code\u003e\u003c\/pre\u003e\u003cp\u003eVoer het uit door te typen:\u003c\/p\u003e\u003cp\u003e\u003ccode\u003epython3 pwm-fan-control.py\u003c\/code\u003e\u003c\/p\u003e\u003cp\u003eDe ventilator wordt ingeschakeld wanneer de CPU-temperatuur 65 graden bereikt.\u003c\/p\u003e\n\u003cdiv class=\"product-inline-gallery\"\u003e\n\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0927\/2003\/8224\/files\/456d7a29-7a6d-4d5e-8d98-909f908048e3.jpg?v=1779838917\" loading=\"lazy\" alt=\"\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0927\/2003\/8224\/files\/04beff50-98d0-4891-9648-3d938eca0d98.jpg?v=1779838922\" loading=\"lazy\" alt=\"\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0927\/2003\/8224\/files\/800c23f5-f11c-4d18-8d1c-1e2ded628fb7.jpg?v=1779838927\" loading=\"lazy\" alt=\"\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0927\/2003\/8224\/files\/1e5499bc-4f91-4810-a02f-02a1c1fe568b.jpg?v=1779838932\" loading=\"lazy\" alt=\"\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0927\/2003\/8224\/files\/2f466633-10ab-467b-be99-62b0ceea3618.jpg?v=1779838936\" loading=\"lazy\" alt=\"\"\u003e\n\u003c\/div\u003e","brand":"AllesXL","offers":[{"title":"Standaard","offer_id":53071785492816,"sku":"ALXNL7640446206119","price":24.99,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0927\/2003\/8224\/files\/456d7a29-7a6d-4d5e-8d98-909f908048e3.jpg?v=1779838917","url":"https:\/\/allesxl.com\/products\/armor-lite-koellichaam-met-pwm-ventilatorregeling-snelheidsregeling-voor-raspberry-pi-4b-module_1872209","provider":"allesxl","version":"1.0","type":"link"}