Temp controlled cooling fan and inverted analog stick.

Having trouble with your GBZ build? Ask your questions here!
DeRock89
Posts: 94
Joined: Wed Sep 06, 2017 6:25 pm
Been thanked: 9 times

Temp controlled cooling fan and inverted analog stick.

Post by DeRock89 » Mon Oct 30, 2017 6:56 am

I have two inquiries and I'm hoping to hit two birds with one stone to only make one post.

1) How do I have a cooling fan kick on at a certain temp like with kites SAIO board instead of the fan running all of the time? I'm not using that board but I have the same cooling fan.

2) I'm using two PSP 1000 analog sticks. They work fine but up and down is inverted. I followed sotas tutorial for installing them and programming the leonardo. I pushed up for up and down for down when configuring the controls in Retropie, but it's inverted within games that use the Analog sticks like N64 games. It seems to be the left stick only that's inverted.

The solder contacts are facing south or down with both sticks. Initially I had the left ones solder contacts facing up just exactly like they are in sotas build but it was inverted then to, so I rotated to where the contacts were facing down and reglued it, but it's still invereted. Granted. I think it could have possibly been left and right that was inverted, I don't remember. I just know there was an issue with them being inverted so I rotated the stick.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Temp controlled cooling fan and inverted analog stick.

Post by HoolyHoo » Mon Oct 30, 2017 7:08 am

DeRock89 wrote:
Mon Oct 30, 2017 6:56 am
I have two inquiries and I'm hoping to hit two birds with one stone to only make one post.

1) How do I have a cooling fan kick on at a certain temp like with kites SAIO board instead of the fan running all of the time? I'm not using that board but I have the same cooling fan.

2) I'm using two PSP 1000 analog sticks. They work fine but up and down is inverted. I followed sotas tutorial for installing them and programming the leonardo. I pushed up for up and down for down when configuring the controls in Retropie, but it's inverted within games that use the Analog sticks like N64 games. It seems to be the left stick only that's inverted.

The solder contacts are facing south or down with both sticks. Initially I had the left ones solder contacts facing up just exactly like they are in sotas build but it was inverted then to, so I rotated to where the contacts were facing down and reglued it, but it's still invereted. Granted. I think it could have possibly been left and right that was inverted, I don't remember. I just know there was an issue with them being inverted so I rotated the stick.
Power the fan with the 5v pin going through a transistor that is connected to a GPIO pin. A script would control the fan by toggling the GPIO at whatever temps are coded.

As far as the analog sticks, I assume you can invert the control within the arduino code.

Hope this helps. ;)

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Temp controlled cooling fan and inverted analog stick.

Post by YaYa » Mon Oct 30, 2017 8:04 am

If you have the same fan that Kite is selling, DO NOT connect it to 5V. It supports only 3.3V.

In addition to HoolyHoo, you can also try to find a small circuitry with temp sensor and relay to switch on/off fan spinning... More easy than coding, but good luck to find something small enough to be usable with a GBZ
Follow me on instagram Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Temp controlled cooling fan and inverted analog stick.

Post by YaYa » Mon Oct 30, 2017 8:06 am

Something like this
http://s.aliexpress.com/vAV3mIRb

That will work on 5V and throw 3.3V or adjustable voltage
Follow me on instagram Image

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Temp controlled cooling fan and inverted analog stick.

Post by HoolyHoo » Mon Oct 30, 2017 8:40 am

The raspberry pi has a built in function to measure the temp already of the cpu. Adding another sensor and relay seems like unnecessary bulk to me in an already tight build. You can connect fan to 5v or 3.3v rail depending on your fan. You can even use a 12v fan and run it on the 5v rail. It will spin enough to do the job on most of those fans. Here is a link to something similar of what I was referencing.

https://hackernoon.com/how-to-control-a ... 13b6e7f92c

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Temp controlled cooling fan and inverted analog stick.

Post by YaYa » Mon Oct 30, 2017 8:55 am

Thanks for the information, i didn’t think of using Pi’s built in sensor :mrgreen: that makes more sense to use GPIO then :D
Follow me on instagram Image

DeRock89
Posts: 94
Joined: Wed Sep 06, 2017 6:25 pm
Been thanked: 9 times

Re: Temp controlled cooling fan and inverted analog stick.

Post by DeRock89 » Mon Oct 30, 2017 9:29 am

YaYa wrote:
Mon Oct 30, 2017 8:04 am
If you have the same fan that Kite is selling, DO NOT connect it to 5V. It supports only 3.3V.

In addition to HoolyHoo, you can also try to find a small circuitry with temp sensor and relay to switch on/off fan spinning... More easy than coding, but good luck to find something small enough to be usable with a GBZ

Do you know if the air blows out the slit in the side or the actual top/bottom?

DeRock89
Posts: 94
Joined: Wed Sep 06, 2017 6:25 pm
Been thanked: 9 times

Re: Temp controlled cooling fan and inverted analog stick.

Post by DeRock89 » Mon Oct 30, 2017 9:35 am

HoolyHoo wrote:
Mon Oct 30, 2017 7:08 am
DeRock89 wrote:
Mon Oct 30, 2017 6:56 am
I have two inquiries and I'm hoping to hit two birds with one stone to only make one post.

1) How do I have a cooling fan kick on at a certain temp like with kites SAIO board instead of the fan running all of the time? I'm not using that board but I have the same cooling fan.

2) I'm using two PSP 1000 analog sticks. They work fine but up and down is inverted. I followed sotas tutorial for installing them and programming the leonardo. I pushed up for up and down for down when configuring the controls in Retropie, but it's inverted within games that use the Analog sticks like N64 games. It seems to be the left stick only that's inverted.

The solder contacts are facing south or down with both sticks. Initially I had the left ones solder contacts facing up just exactly like they are in sotas build but it was inverted then to, so I rotated to where the contacts were facing down and reglued it, but it's still invereted. Granted. I think it could have possibly been left and right that was inverted, I don't remember. I just know there was an issue with them being inverted so I rotated the stick.
Power the fan with the 5v pin going through a transistor that is connected to a GPIO pin. A script would control the fan by toggling the GPIO at whatever temps are coded.

As far as the analog sticks, I assume you can invert the control within the arduino code.

Hope this helps. ;)
I figured I could invert it in Retropie, just push up for down, and down for up during configuration. I want to understand why this is an issue and how to fix it from a better solution then just changing the Retropie config. It confounds me that changing the orientation of the analog stick produced the same result. Logically to me, if up is down and down is up, if it's rotated 180 degrees, then down will be down, and up will be up. Why did this do nothing?

My experience with arduino coding is none existent. I just followed sotas tutorial. How do I change the code to fix this?

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Temp controlled cooling fan and inverted analog stick.

Post by YaYa » Mon Oct 30, 2017 9:47 am

DeRock89 wrote:
Mon Oct 30, 2017 9:29 am
YaYa wrote:
Mon Oct 30, 2017 8:04 am
If you have the same fan that Kite is selling, DO NOT connect it to 5V. It supports only 3.3V.

In addition to HoolyHoo, you can also try to find a small circuitry with temp sensor and relay to switch on/off fan spinning... More easy than coding, but good luck to find something small enough to be usable with a GBZ

Do you know if the air blows out the slit in the side or the actual top/bottom?


The air is flowing from the side... taken both from down and up to the side... it is a blower, not a fan
Follow me on instagram Image

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Temp controlled cooling fan and inverted analog stick.

Post by HoolyHoo » Mon Oct 30, 2017 9:49 am

DeRock89 wrote:
Mon Oct 30, 2017 9:35 am
HoolyHoo wrote:
Mon Oct 30, 2017 7:08 am
DeRock89 wrote:
Mon Oct 30, 2017 6:56 am
I have two inquiries and I'm hoping to hit two birds with one stone to only make one post.

1) How do I have a cooling fan kick on at a certain temp like with kites SAIO board instead of the fan running all of the time? I'm not using that board but I have the same cooling fan.

2) I'm using two PSP 1000 analog sticks. They work fine but up and down is inverted. I followed sotas tutorial for installing them and programming the leonardo. I pushed up for up and down for down when configuring the controls in Retropie, but it's inverted within games that use the Analog sticks like N64 games. It seems to be the left stick only that's inverted.

The solder contacts are facing south or down with both sticks. Initially I had the left ones solder contacts facing up just exactly like they are in sotas build but it was inverted then to, so I rotated to where the contacts were facing down and reglued it, but it's still invereted. Granted. I think it could have possibly been left and right that was inverted, I don't remember. I just know there was an issue with them being inverted so I rotated the stick.
Power the fan with the 5v pin going through a transistor that is connected to a GPIO pin. A script would control the fan by toggling the GPIO at whatever temps are coded.

As far as the analog sticks, I assume you can invert the control within the arduino code.

Hope this helps. ;)
I figured I could invert it in Retropie, just push up for down, and down for up during configuration. I want to understand why this is an issue and how to fix it from a better solution then just changing the Retropie config. It confounds me that changing the orientation of the analog stick produced the same result. Logically to me, if up is down and down is up, if it's rotated 180 degrees, then down will be down, and up will be up. Why did this do nothing?

My experience with arduino coding is none existent. I just followed sotas tutorial. How do I change the code to fix this?
The answer may lie in what emulator you are using for Nintendo 64. I believe the default one (which has the best performance) isn’t a libretro emulator. Libretro emulators play nice with ES as they use RetroArch for the keyconfigs but unfortunately performance suffers with N64.

As far as the Arduino code, I haven’t looked at it to be able to answer that for you, sorry.

Edit: take a look at this part of his code.
AFFB1FFB-537C-4F83-9532-449E07DF7279.jpeg
AFFB1FFB-537C-4F83-9532-449E07DF7279.jpeg (98.52 KiB) Viewed 8348 times
Edit the axis you need inverted by changing the 0 to a 1.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest