RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    [SOLVED] Full power fan on N64

    Scheduled Pinned Locked Moved Help and Support
    fanretropiegpio 18powermaximun
    2 Posts 1 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pointfree
      last edited by pointfree

      Hey everyone.
      I hope someone can help me in this matter.
      I have a fan connected to my raspberry pi 3 to the GPIO pin 18 and control the output power according to the temperature of the CPU via a script and everything works perfectly.
      The problem comes when I start the N64 emulator, the fan goes full power and does not decrease until I restart the raspberry.

      Anyone know which file is the one that executes the order to put GPIO pin 18 to 1024 pwm ???

      1 Reply Last reply Reply Quote 0
      • P
        pointfree
        last edited by

        Well, I've solved it myself.
        I put it here in case someone serves.

        What it does when starting the emulator N64 is to restart the GPIO of the Raspberry Pi and the pins that are configured as output PWM are put to full power.

        What I have done to solve it is to insert the following command:

        Gpio -g mode 18 pwm

        I put it inside the infinite loop that checks the temperature.

        I hope that it would be useful to someone.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.