Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 29,209
» Latest member: liseyah198
» Forum threads: 16,121
» Forum posts: 116,582
Full Statistics
|
Latest Threads |
Crippling noise from insi...
Forum: General Discussion on Pinecil
Last Post: dreieck
Today, 10:41 AM
» Replies: 3
» Views: 2,166
|
Replacement international...
Forum: General
Last Post: Cadair
Today, 02:44 AM
» Replies: 0
» Views: 30
|
Pinecil v2 issue
Forum: General Discussion on Pinecil
Last Post: autumnharris
Today, 01:35 AM
» Replies: 0
» Views: 20
|
Calls on ppp
Forum: PinePhone Pro Software
Last Post: chbwzxgk
Yesterday, 06:41 PM
» Replies: 6
» Views: 188
|
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: anonymous
Yesterday, 03:28 AM
» Replies: 62
» Views: 16,147
|
New pinetab2 - can't char...
Forum: General Discussion on PineTab
Last Post: tmhorne
05-13-2025, 12:42 PM
» Replies: 10
» Views: 1,529
|
Case for the rock64 that ...
Forum: Rock64 Hardware and Accessories
Last Post: tophneal
05-13-2025, 07:32 AM
» Replies: 2
» Views: 1,156
|
SOQuartz64 4GB CM & Waves...
Forum: Quartz64 Hardware and Accessories
Last Post: Nicholas97
05-13-2025, 02:35 AM
» Replies: 3
» Views: 2,178
|
Pinephone + Keyboard for ...
Forum: PinePhone Hardware
Last Post: FONJGS55
05-11-2025, 07:51 AM
» Replies: 8
» Views: 1,648
|
Page turner for PineNote ...
Forum: PineNote Software
Last Post: macmartin
05-09-2025, 09:10 AM
» Replies: 0
» Views: 163
|
|
|
[30/11/2016] pine64-config |
Posted by: Terra854 - 07-25-2016, 08:46 AM - Forum: Linux on Pine A64(+)
- Replies (10)
|
 |
Pine A64 Configuration Tool [30/11/2016]
This tool is based on the raspi-config tool for the Raspberry Pi and it provides a straight-forward way to configure your Pine64.
Source code is available at https://github.com/Terra854/pine64-config
Prerequisites
You will need to have the xterm package installed in order to use this tool. You will also need to install newt (for openSUSE) or whiptail (for Debian/Ubuntu).
Note that for openSUSE, the tool and it's dependencies has been preloaded in the images.
Downloads
Github link
Installation/Update the tool
To install or to update this tool for your Pine64, you will need to run the following command:
Code: sudo ./install.sh [ubuntu/debian/opensuse]
This will build the scripts that is relevant to your distribution of Linux and installs it to /usr/local/sbin.
Once it is installed, you can execute it with:
Code: sudo pine64-config.sh
Enjoy!
Changelog
25/7/2016
- Initial Release
26/7/2016
- Added Debian support
2/8/2016
- Minor bugfix
3/10/2016
- Lot's of bug fixes and improvements.
- openSUSE is now supported.
- Added the ability to change the cpu governor
- Added a heath monitor (looping the pine64_health script)
6/10/2016
- Major bugfixes
30/11/2016
- Fixed the cpu governor feature
If you want to contribute or to file bugs, please feel free to post an issue or open a pull request on the GitHub page.
|
|
|
Active Cooling soft PWM follow-on fan motor speed controller driver |
Posted by: MarkHaysHarris777 - 07-25-2016, 07:21 AM - Forum: Pi2, Euler and Exp GPIO Ports
- Replies (3)
|
 |
(for schematic diagram and in-line wiring harness, see this link)
edit: I changed the default soft-pwm to GPIO23, pin(16).
The PWM (pulse width modulation) is 'soft' because it does not use a hardware oscillator. The Python codes turn the transistor on and off ( 16ms on, 4ms off) about 50 pps. The base-emitter pulls only about 2ma from the GPIO pin, while the collector current takes the main motor drive current (about 140ma for this fan).
The following two pics are my 'double' controller one half driving the PI 3B, and the other half driving the PineA64. In each case the Python code is the same; posted below:
In the pic above I also have my ada fruit gps (746) breakout mounted on the ttyS4 uart4 on the PineA64 euler bus.
fan_motor.sh
Code: #!/usr/bin/python
#
# fan_motor.sh
#*****************************************************************
# author: Mark H. Harris
# license: GPLv3
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MECHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENCIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#*****************************************************************
## Import the necessary header modules
from time import sleep
import signal as SIGNAL
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
## SOFTWARE PWM GPIO23 pin(16)
soft_pwm = 23
GPIO.setup(soft_pwm, GPIO.OUT)
ms_on = .016
ms_off = .004
hup_flag = False
## FUNCTION DEFINITIONS
def motor_duty_on(m_pin, t_delay):
GPIO.output(m_pin, True)
sleep(t_delay)
def motor_duty_off(m_pin, t_delay):
GPIO.output(m_pin, False)
sleep(t_delay)
def end():
GPIO.cleanup()
quit()
def ssighup(signum, frame):
global hup_flag
global ms_on
global ms_off
if (hup_flag):
ms_on = .016
hup_flag=False
else:
ms_on = .250
hup_flag=True
print(" ")
print("HUP: duty_cycle toggled value: "+str(ms_on))
SIGNAL.signal(SIGNAL.SIGHUP, ssighup)
kb_interrupt = False
while(not kb_interrupt):
try:
motor_duty_on(soft_pwm, ms_on)
motor_duty_off(soft_pwm, ms_off)
except KeyboardInterrupt:
kb_interrupt = True
print(" ")
print("motor controller ended by interrupt, bye!")
end()
marcus
edit: I changed the default soft-pwm to GPIO23, pin(16).
|
|
|
Active Cooling 5v brushless fan with Motor Speed Controller soft PWM |
Posted by: MarkHaysHarris777 - 07-25-2016, 06:47 AM - Forum: Pi2, Euler and Exp GPIO Ports
- Replies (14)
|
 |
The fan above is a 5v brushless 140ma fan (free standing on rubber fan mounts) capable of moving 5cfpm ; being driven by a python software PWM motor speed control driver using a PN2222 transistor to handle the current. The GPIO pin signals the transistor via 1k ohm resistor. The codes rely on the RPi.GPIO-PineA64 module from github.
I will be uploading the python codes near the bottom of this post.
The following two pics are close-in shots of the fan, and the transistor current driver:
The PN2222 transistor above can also be replaced by the 2N2222; although, the emitter collector pins are swapped-- the emitter goes to ground.
The fans ship from Jin LI , and as such take three to six weeks to ship to the U.S. Its the shipping, not Jin LI's fault. These little fans move a lot of air; however, they are also noisy. The speed control circuit quiets the fans considerably to a slight whisper, still moves the air more efficiently, and may be controlled off, or controlled by signal based on SoC temperature.
fan_motor.sh
Code: #!/usr/bin/python
#
# fan_motor.sh
#*****************************************************************
# author: Mark H. Harris
# license: GPLv3
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MECHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENCIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#*****************************************************************
## Import the necessary header modules
from time import sleep
import signal as SIGNAL
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
## SOFTWARE PWM GPIO23 pin(16)
soft_pwm = 23
GPIO.setup(soft_pwm, GPIO.OUT)
ms_on = .016
ms_off = .004
hup_flag = False
## FUNCTION DEFINITIONS
def motor_duty_on(m_pin, t_delay):
GPIO.output(m_pin, True)
sleep(t_delay)
def motor_duty_off(m_pin, t_delay):
GPIO.output(m_pin, False)
sleep(t_delay)
def end():
GPIO.cleanup()
quit()
def ssighup(signum, frame):
global hup_flag
global ms_on
global ms_off
if (hup_flag):
ms_on = .016
hup_flag=False
else:
ms_on = .250
hup_flag=True
print(" ")
print("HUP: duty_cycle toggled value: "+str(ms_on))
SIGNAL.signal(SIGNAL.SIGHUP, ssighup)
kb_interrupt = False
while(not kb_interrupt):
try:
motor_duty_on(soft_pwm, ms_on)
motor_duty_off(soft_pwm, ms_off)
except KeyboardInterrupt:
kb_interrupt = True
print(" ")
print("motor controller ended by interrupt, bye!")
end()
The code may be signaled with a -SIGHUP which when received by the speed controller code will toggle the duty cycle of the soft PWM. from 80% to 100%. A second HUP will toggle the duty cycle back to 80%, or slow speed.
There will be a follow-on post with some more pics, as well a simple schematic.
edit: I changed the default soft-pwm pin to GPIO23, pin(16).
marcushh777
|
|
|
GbE: Optionally force master mode for RTL PHY |
Posted by: xalius - 07-25-2016, 06:04 AM - Forum: Linux on Pine A64(+)
- Replies (1)
|
 |
A while back I stumbled over this patch for u-boot https://patchwork.ozlabs.org/patch/602067/ forcing the RTL80211C/E PHY into master mode to overcome some issues when the PHY is in slave mode.
Maybe this could be a source for the random GbE problems we see here sometimes?
I was just looking at Olimex blog and read the specs for their A64 board, and one of the features reads:
Code: ...
* Ethernet Gigabit interface works just in master mode
...
I tried adding the register read-modify-write to the 3.10.x BSP driver but failed, maybe someone with better skills can have a look at it? The patch boils down to:
Code: /* RTL8211x 1000BASE-T Control Register */
#define MIIM_RTL8211x_CTRL1000T_MSCE (1 << 12);
#define MIIM_RTL8211X_CTRL1000T_MASTER (1 << 11);
...
unsigned int reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_CTRL1000);
/* force manual master/slave configuration */
reg |= MIIM_RTL8211x_CTRL1000T_MSCE;
/* force master mode */
reg |= MIIM_RTL8211X_CTRL1000T_MASTER;
phy_write(phydev, MDIO_DEVAD_NONE, MII_CTRL1000, reg);
...
One read-modify-write operation....
|
|
|
Pine64 1GB Auto POwer Off |
Posted by: Mohit B - 07-25-2016, 03:08 AM - Forum: Getting Started
- Replies (1)
|
 |
Hi,
I have downloaded the Phoenix Card image of the rooted android on 8 GB card. First boot was OK. I configured my WiFi, tested Bluetooth. I installed YouTube.
As soon as I fired up the YouTube app my screen went black. I rebooted by powering off and then on. While booting it said optimizing android.
Now every-time after 10 seconds of boot the board powers off automatically.
What should I do.
Regards,
MB
|
|
|
When & How to use resize_rootfs.sh? |
Posted by: jesse1234 - 07-25-2016, 01:25 AM - Forum: Getting Started
- Replies (5)
|
 |
Quote:- Execute resize_rootfs.sh script to resize the root partition in order to fully utilize the SD Card
Well I have the Debian Jessie OS up and running but I am using a 32GB SD card that only sees according to the Disk Usage Analyzer only 7.5 GB.
I tried using the terminal to execute the script but I am not sure where in the file system it is located!?
When & How to use resize_rootfs.sh?
Jesse
|
|
|
miss a lot of parts of my backer order |
Posted by: visigalmarco - 07-24-2016, 11:36 PM - Forum: Shipment Related Discussion
- Replies (3)
|
 |
Good morning, this afternoon I receved a very little part of my items in particular:
2- 4 Way 12C Cable;
2- 5 Way to 4-Way I2C Cable;
2- 5 Way 12C Cable;
2- PA642GB;
1- PMSD001;
1- PINE64 Basic Media IR Remote Control;
1- POWER SUPPLY;
1- P64-ALUMENIUM ENCLOSURE.
they are missing:
1- 64GB MicroSD Android
1- 7" LCD Touch Screen
1- 802.11BGN Wifi/ BT4.0 Module
1- PlayBox Kit
1- HDMI to DVI Adapter
1- HDMI to VGA Adapter With Audio
2- 4K HDMI Cable - 3FT
2- 7" LCD Touch Screen Panel
1- Wifi 802.11BGN/ Bluetooth 4.0 Module
2- PINE64 PlayBox Enclosure
2- PINE64 Acrylic Open Enclosure
2- PoE Splitter comply to 802.3af standard
1- PINE64 Z-Wave Module (EU version)
1- PINE A64+ 2GB - PA642GBWIFI
1- 64GB MicroSD Card - 64GBLIN
1- PINE64 Basic Media IR Remote Control
2- 5MP Camera Module
Can you say me when send the rest of my items?
My Backer number is 21,219
best regards
Marco Visigalli
|
|
|
|