

StaLeWaR
-
Posts
39 -
Joined
-
Last visited
Reputation Activity
-
StaLeWaR got a reaction from guidol in Orange Pi PC: Fan on GPIO
Hello to all
Now I'm doing my device based on Orange PC
It will be in the casing so it needs cooling.
I assembled a small fee for fan control
And he wrote a program for controlling and monitoring work
It can run as a daemon
To use I chose to 12V FAN 3PIN. To safely manage them with our Pi PC is necessary to collect the scheme in three transistors.
In the transistor Q3 will be lost that is 0.6V 5% of 12V. Therefore, the maximum speed of passport we can not achieve.
I have received the maximum at 2400 rpm of maximum 2500 passport.
Capacitor C1 pick up empirically, since of it will depend on the minimum threshold drawdown tachometer. As the tachometer now use Hall sensor.
For myself, I put 100uF, because with 50uF at a duty ratio of less than 50% control of the lost turnover.
To work it is necessary:
- Kernel with support for GPIO Support (sysfs interface)
- WiringOP from WereCatf https://github.com/WereCatf/WiringOP.git
git clone https://github.com/WereCatf/WiringOP.git -b h3 cd WiringOP chmod +x ./build sudo ./build
Installation:
- Unpack the archive
- Define the value set that you need.
Pina, minimum and maximum temperature, the number of Hall sensor pulses per revolution of the cooler, while the demon of the reaction, the minimum duty cycle.
- compile
g++ OPi-fan.c -o OPi-fan -lpthread -lwiringPi - Copy of your directory in /usr/local/bin
cp ./OPi-fan /usr/local/bin After that it can be used using various keys run.
The daemon reads the CPU temperature and basis of specified minimum and maximum temperature calculates the duty cycle of the PWM.
The software PWM. The same demon able to calculate RPM cooler. Data on the temperature, porosity and number of revolutions can be obtained from the console.
I tried more or less to describe the online help available on the key -h.
Legs please do not kick as programmer from me bad:D :D
https://github.com/StaLeWaR/OPi-Fan
Display in RPi-Monitor
-
StaLeWaR got a reaction from isan in How orangepi interrupt works?
I know only one which employs an interrupt https://github.com/WereCatf/WiringOP
I use it
-
StaLeWaR reacted to zador.blood.stained in OrangePi Auto On
For sun8i-legacy (H3 Oranges and similar):
1. Create a file /etc/udev/rules.d/72-power-button.rules with these contents:
ACTION=="remove", GOTO="power_switch_end" SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="sunxi-gpiokey", TAG+="power-switch" LABEL="power_switch_end" 2. Create a file /etc/systemd/logind.conf.d/power-button.conf with these contents:
[Login] HandlePowerKey=reboot 3. Reboot (easiest way to apply both changes)
-
StaLeWaR reacted to Igor in Vanilla kernel on Opi PC+ install to emmc
eMMC is faster in all cases. Check background with some tests:
http://forum.armbian.com/index.php/topic/954-sd-card-performance/
-
StaLeWaR got a reaction from gnasch in Orange Pi PC: Fan on GPIO
Today I made a cooling radiator for Orange Pi One.
I used a heat sink on the motherboard.
I used the thermal paste GD900 and a little glue. One drop at angles.
Now idle temperature of 26 °С
In load mode:
root@orangepione:~# sysbench --num-threads=4 --test=cpu --cpu-max-prime=20000 run temperature of 42-43 °С
I think this is a great result !!!
-
StaLeWaR got a reaction from RagnerBG in Orange Pi PC: Fan on GPIO
Hello to all
Now I'm doing my device based on Orange PC
It will be in the casing so it needs cooling.
I assembled a small fee for fan control
And he wrote a program for controlling and monitoring work
It can run as a daemon
To use I chose to 12V FAN 3PIN. To safely manage them with our Pi PC is necessary to collect the scheme in three transistors.
In the transistor Q3 will be lost that is 0.6V 5% of 12V. Therefore, the maximum speed of passport we can not achieve.
I have received the maximum at 2400 rpm of maximum 2500 passport.
Capacitor C1 pick up empirically, since of it will depend on the minimum threshold drawdown tachometer. As the tachometer now use Hall sensor.
For myself, I put 100uF, because with 50uF at a duty ratio of less than 50% control of the lost turnover.
To work it is necessary:
- Kernel with support for GPIO Support (sysfs interface)
- WiringOP from WereCatf https://github.com/WereCatf/WiringOP.git
git clone https://github.com/WereCatf/WiringOP.git -b h3 cd WiringOP chmod +x ./build sudo ./build
Installation:
- Unpack the archive
- Define the value set that you need.
Pina, minimum and maximum temperature, the number of Hall sensor pulses per revolution of the cooler, while the demon of the reaction, the minimum duty cycle.
- compile
g++ OPi-fan.c -o OPi-fan -lpthread -lwiringPi - Copy of your directory in /usr/local/bin
cp ./OPi-fan /usr/local/bin After that it can be used using various keys run.
The daemon reads the CPU temperature and basis of specified minimum and maximum temperature calculates the duty cycle of the PWM.
The software PWM. The same demon able to calculate RPM cooler. Data on the temperature, porosity and number of revolutions can be obtained from the console.
I tried more or less to describe the online help available on the key -h.
Legs please do not kick as programmer from me bad:D :D
https://github.com/StaLeWaR/OPi-Fan
Display in RPi-Monitor