Benutzer-Werkzeuge

Webseiten-Werkzeuge


public:recalbox

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
public:recalbox [08.05.2018 09:54]
se
public:recalbox [15.05.2018 09:31] (aktuell)
se
Zeile 11: Zeile 11:
   * Welcher Emulator auf welcher Plattform: [[https://github.com/recalbox/recalbox-os/wiki/Board-Compatibility-%28EN%29|Board Compatibility]]   * Welcher Emulator auf welcher Plattform: [[https://github.com/recalbox/recalbox-os/wiki/Board-Compatibility-%28EN%29|Board Compatibility]]
 \\ \\
-:!: **Offene Punkte:** 
-  * [[#Kühlung]] in Arbeit 
-    * Zweipunkt-Regelung läuft 
-    * Pappmuster im Lego Gehäuse funktioniert gut 
-    * Restarbeiten: 3D-Druck 
-  * <del>Raspberry Pi 3 mit internem Bluetooth verwenden</del> 
-    * läuft 1A mit originalen PS3 Controller 
  
 ===== Teileliste ===== ===== Teileliste =====
Zeile 28: Zeile 21:
 |:?: Offizielles Raspberry Gehäuse|7,98 €|[[https://www.amazon.de/dp/B01CCPKCSK|Amazon]]|Belüftung?| |:?: Offizielles Raspberry Gehäuse|7,98 €|[[https://www.amazon.de/dp/B01CCPKCSK|Amazon]]|Belüftung?|
 |:?: NES Retro-Case / Lüftung mies|21,99 €|[[https://www.amazon.de/dp/B076BJBLZD|Amazon]]|Integrierter Lüfter wirkungslos!| |:?: NES Retro-Case / Lüftung mies|21,99 €|[[https://www.amazon.de/dp/B076BJBLZD|Amazon]]|Integrierter Lüfter wirkungslos!|
-|:?: NES LEGO Case| 15-20 €|[[https://moc.bricklink.com/pages/moc/mocitem.page?idmocitem=3075|BL-Shop]]|Preis inkl. Versand|+|:?: NES LEGO Case| 15-20 €|[[https://moc.bricklink.com/pages/moc/mocitem.page?idmocitem=3075|BL-Shop]]|Preis inkl. Versand @ [[https://www.bricklink.com/v2/main.page|Bricklink]]|
 ===== Software-Liste ===== ===== Software-Liste =====
   * **Recalbox** Image: [[https://archive.recalbox.com/|archive @ recalbox.com]].   * **Recalbox** Image: [[https://archive.recalbox.com/|archive @ recalbox.com]].
Zeile 212: Zeile 205:
 \\ \\
 Status: Status:
-  * Aktive Kühlung für Raspi nötig! (s.u.) +  * 5 V Lüfter mit 3,Ohm Vorwiderstand 
-    * Luftkanal Druckfreundlich +  * Zweipunkt-Regelung über Python-Script 
-      * {{:public:fanductv2raspi.png?direct&200|}} +  * Luftkanal 3D-gedruckt: 
-    * Lüfter an 5 V mit Vorwiderstand von ca. 27 - 51 Ohm +    * {{:public:rpi_fan.jpg|}} 
-      * warum nicht gleich [[https://sourceforge.net/p/raspberry-gpio-python/wiki/PWM/|PWM]] ? +    * {{:public:rpi_fan_assembled.jpg|}}
-      * Testen -> Widerstand raus -> VorteilNerfpegel per Software einstellbar +
-    * Temperaturgeregelt +
-      * [[https://github.com/recalbox/recalbox-os/wiki/Temperaturgeregelte-L%C3%BCftersteuerung-(DE)|aus dem Wiki]] +
-      * umgebaut zum "Bang-Bang-Control" (Zweipunktregler): +
-        * Temp_on = 75°C <- evtl. auf 80°C setzen +
-        * Temp_off = 60 °C+
   * Beobachtungen:   * Beobachtungen:
     * Kein wahrnehmbarer Unterschied zwischen "ohne Kühlung" und "mit passiven Kühlkörper"     * Kein wahrnehmbarer Unterschied zwischen "ohne Kühlung" und "mit passiven Kühlkörper"
Zeile 240: Zeile 227:
 <code> <code>
 mount -o remount rw, / mount -o remount rw, /
-/recalbox/scripts+cd /recalbox/scripts 
 +</code> 
 +Dort eines der fan_ctrl...py scripte hinkopieren (pscp) oder neu anlegen und abtippen.\\ 
 +Mit pscp (putty secure copy) wenn das script "fan_ctrl_pwm.py" unter d:\ liegt. 
 +<code> 
 +pscp d:\fan_ctrl_pwm.py pi@<RPI IP>:/recalbox/scripts/
 </code> </code>
  
Zeile 274: Zeile 266:
 </code> </code>
  
-*Anschluss an den Raspi:*\\+**Anschluss an den Raspi:**\\
 (Mit vorwiderstand für den 5 V Lüfter. Muss bei PWM weg) (Mit vorwiderstand für den 5 V Lüfter. Muss bei PWM weg)
 {{ :public:fanctrlhw.png?nolink |}} {{ :public:fanctrlhw.png?nolink |}}
Zeile 301: Zeile 293:
  
 ==== Boot-Video austauschen ==== ==== Boot-Video austauschen ====
-Im letzten release (Stand 4.3.2018) wurde ein Weihnachts-Start-Video eingeführt. Etwas spät für Februar ...\\+//**ALT!** -> aktuelle Versionen haben ein zufälliges Bootvideo.//\\ 
 +Im release (Stand 4.3.2018) wurde ein Weihnachts-Start-Video eingeführt. Etwas spät für Februar ...\\
 Infos aus dem [[https://forum.recalbox.com/topic/12671/recalbox-18-02-09-is-out/27|Forum]] entnommen.\\ Infos aus dem [[https://forum.recalbox.com/topic/12671/recalbox-18-02-09-is-out/27|Forum]] entnommen.\\
 Als erstes das Filesystem umstellen, Standard ist read-only. Und die Animation löschen/umbenennen: Als erstes das Filesystem umstellen, Standard ist read-only. Und die Animation löschen/umbenennen:
Zeile 318: Zeile 311:
 ===== Eigene Scripte ===== ===== Eigene Scripte =====
 ==== Temperatur-Logging ==== ==== Temperatur-Logging ====
 +Dieses Script liest alle X (hier: 5) sekunden die CPU Temperatur aus und schreibt diese mit einem Zeitstempel in eine txt-Datei im csv Format. Bei Excel einfach über "Daten" importieren und "." durch "," ersetzen.
 <file python temp_log.py> <file python temp_log.py>
 # Templogging Script # Templogging Script
Zeile 355: Zeile 349:
  
 ==== Lüfterregelung ==== ==== Lüfterregelung ====
 +Die super einfache Zweipunkt-Regelung schaltet den Lüfter an Pin X bei überschreiten der Temperatur Y ein und bei unterschreiten der Temperatur Z wieder aus.\\
 +Der Pin X schaltet natürlich einen Transistor durch, welcher den Lüfter schaltet...
 +
 <file python fan_ctrl.py> <file python fan_ctrl.py>
 # Fan bang-bang control # Fan bang-bang control
Zeile 399: Zeile 396:
 </file> </file>
  
 +
 +==== Lüfterregelung mit PWM====
 +Gleicher Ablauf wie oben, jedoch kann die Lüftergeschwindigkeit im ON-Zustand über den Parameter "DC" eingestellt werden.\\
 +Getestet: funktioniert prinzipiell, macht aber Geräusche unabhängig von der Frequenz. Glättung für Lüfter nötig -> mehr Teile -> mehr Bauraum nötig. Aufwand für den Nutzen nicht sinnvoll.
 +
 +<file python fan_ctrl_pwm.py>
 +# Fan bang-bang control with pwm
 +import os
 +import time
 +import RPi.GPIO as GPIO
 +
 +# Settings
 +M_TIME = 5     # Measure time interval
 +ON_TEMP = 70   # upper temp value -> Fan turned on
 +OFF_TEMP = 60  # lower temp value -> Fan turned off
 +FAN_PIN = 14   # Transistor for the cooling fan is connected to pin 14
 +PWM_F = 1000   # PWM frequency in kHz. Change only when fan makes fancy noises
 +DC = 50        # PWM duty cycle for the FAN (0 ... 100, where 100 is the maximum)
 +
 +# setup GPIO
 +GPIO.setwarnings(False)
 +GPIO.setmode(GPIO.BCM)
 +GPIO.setup(FAN_PIN, GPIO.OUT)
 +
 +# Activate PWM on the FAN_PIN
 +p = GPIO.PWM(FAN_PIN, PWM_F)
 +
 +# funtion for reading the cpu temperatur and return it as float
 +def getCPUtemp():
 +    res = os.popen('vcgencmd measure_temp').readline()
 +    return (res.replace("temp=", "").replace("'C\n", ""))
 +
 +# main loop for the bang-bang control
 +while True:
 +    # get temperature
 +    temp_float = float(getCPUtemp())
 +
 +    try:
 +        # if actual temp axceeded the upper value, turn fan on
 +        if (temp_float > ON_TEMP):
 +            p.start(DC)
 +        # if actual temp drop below the lower value, turn fan off
 +        elif (temp_float < OFF_TEMP):
 +            p.stop()
 +
 +    except:
 +        # for debugging
 +        print "ERROR"
 +
 +    # cycle time of the control. for temperature it dont have to be fast
 +    time.sleep(M_TIME)
 +</file>
/hp/bi/ab/sf/www/wiki/data/attic/public/recalbox.1525766055.txt.gz · Zuletzt geändert: 08.05.2018 09:54 von se