Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,806
» Latest member: Josephdeers
» Forum threads: 16,295
» Forum posts: 117,336

Full Statistics

Latest Threads
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: wdt
2 hours ago
» Replies: 4
» Views: 573
NEW pinephone keyboard ca...
Forum: PinePhone Accessories
Last Post: ragele
5 hours ago
» Replies: 0
» Views: 22
curious iPhone user here
Forum: General Discussion of PinePhone Pro
Last Post: Zebulon Walton
6 hours ago
» Replies: 18
» Views: 8,825
PinePhone 16 GB – Free to...
Forum: PinePhone Hardware
Last Post: Anna
Yesterday, 08:37 AM
» Replies: 0
» Views: 49
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
01-10-2026, 03:27 PM
» Replies: 14
» Views: 6,846
Star64 Irradium (based on...
Forum: Getting Started
Last Post: mara
01-10-2026, 01:27 PM
» Replies: 11
» Views: 13,179
Rockchip gets DMCA'ed on ...
Forum: General Discussion on PinePhone
Last Post: biketool
01-10-2026, 10:24 AM
» Replies: 2
» Views: 308
How large is the user bas...
Forum: General Discussion of PinePhone Pro
Last Post: andrey
01-05-2026, 01:22 PM
» Replies: 0
» Views: 132
http://pinenote.mweigand....
Forum: PineNote Software
Last Post: nailliK
01-04-2026, 10:47 AM
» Replies: 0
» Views: 127
Disable vibrations
Forum: Mobian on PinePhone
Last Post: baptx
01-03-2026, 12:26 PM
» Replies: 9
» Views: 12,651

 
  Adding an accelerometer to Android
Posted by: modsbyus - 06-18-2016, 03:37 PM - Forum: Android on Pine A64(+) - Replies (11)

I have a accelerometer for Arduino (MPU-6050) It has connections for VCC, GND, SCL SDA, XDA, XCL, AD0, and INT. How difficult would it be to use this with Android for the screen rotation and other compass/Gyro android features? Could it possibly be plug and play?


  Android Touchscreen/HDMI
Posted by: Severian - 06-18-2016, 03:00 PM - Forum: Getting Started - Replies (2)

My P64 2G board arrived the other day, today was the first chance I had to try it out. I bought the pledge kit that comes with the playbox and touchscreen. Of course the playbox is delayed, but I can still try everything out. Hooked everything up, wouldn't boot, or rather, touchscreen remained black, not powered up, whatever. Spent a few hours looking on the boards, and came to the conclusion that maybe the supplied android card may not have the right img, so disconnected the touchscreen and used hdmi cable to my 46" tv. Booted right up to android screen, looks like a 46" smart phone, lol. Well that's good, at least I know the board works, LOL

So, I am guessing I need to burn a different android img to use touchscreen?

Is there a way to use touch screen and HDMI simultaneously so I can use this to stream hulu/Netflix?

Can I use a wireless keyboard with a builtin touchpad?

Can I use an external hard drive to store media to watch from?

Thanks in advance for any helpful answers!!


Information [solved] Openhab not starting
Posted by: socken23 - 06-18-2016, 02:57 PM - Forum: openHAB - Replies (10)

Hi all

Got my pine this week and downloaded the current openhab image today. Copying to SD worked great (dd in Linux) and pine starts up fine. 

Openhab is not started though so i tried to manually start it again. Still nothing. Here is the output from the status command

Code:
openhab.service - Starts and stops openHAB   Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: en
   Active: inactive (dead) since Sat 2016-06-18 20:39:54 UTC; 10min ago
     Docs: http://www.openhab.org
  Process: 1999 ExecStart=/opt/openhab/start.sh (code=exited, status=0/SUCCESS)
 Main PID: 1999 (code=exited, status=0/SUCCESS)
 
Jun 18 20:39:54 openhab systemd[1]: Started Starts and stops openHAB.
Jun 18 20:39:54 openhab start.sh[1999]: Launching the openHAB runtime...

The log folder under userdata doesn't even exist. Don't know where to start looking. Any ideas? 

Thanks


  Kickstarter claims I received board - not true.
Posted by: pedalman - 06-18-2016, 02:09 PM - Forum: Shipment Related Discussion - Replies (2)

Several weeks ago, I sent an email to Pine A64 asking for a shipment date. I was told I would receive a reply in 4 days, but have yet to receive a response. I went to Kickstarter's Pine A64 web page, and they think I already received my reward (backer # 3457). I have not received my Pine A64, and have not received any of the accessories I ordered in February. Is there any way to resolve this?


  Building Stratum One NTP Server
Posted by: lospinos - 06-18-2016, 12:45 PM - Forum: Pine A64 Projects, Ideas and Tutorials - Replies (5)

I found this project for Raspberry Pi, a Stratum One NTP server using a GPIO expansion card.
http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

The expansion card is available from:
https://store.uputronics.com/index.php?r...duct_id=81

I would like to use my Pine64 instead of the RPi.

Anybody here knows if the GPIO header has the same pinout as the RPi? Ideally, I want to buy this card and plug it into my Pine.


  Startup Guide (READ THIS FIRST)
Posted by: ScorpionTNT - 06-18-2016, 12:39 PM - Forum: Getting Started - Replies (3)

If you just got your board like me, and want to image it, you may be confused or frustrated at the download. I was too, but after a bit of research, I found that you have to use a program like 7zip or winrar to extract the .xz file, and it has the image file in it.


  Considering Legal Action
Posted by: ChasFred - 06-18-2016, 10:48 AM - Forum: General Discussion on PINE A64(+) - Replies (21)

After repeated emails to Pine64, Kickstarter, and Backerkit with no sresponse except bot type emails I am considering legal action.  I pledged to a $89 package.  Received a tracking number that said the package had been delivered over a month ago and the shipping address for the tracking number was not MY address.

I am starting to think the whole thing is a scam.

Totally feed up!


Charles in AZ


Big Grin My Desktop Good Morning from Rochester MN
Posted by: MarkHaysHarris777 - 06-18-2016, 07:27 AM - Forum: General Discussion on PINE A64(+) - Replies (7)

   

Good morning from Rochester MN...

... this is my desk at the moment. SoC is a beautiful 40c with a sold 3v2 and fluctuating 4v86.

The 5v supply is a bit of a mystery. W/ usb receiver, fan, and LED lab running 4v86... with the fan and receiver unplugged 4v5-4v72 / short time after plugging the fan and receiver back in then 4v86 !

I'm using an older 2A PSU from my PI, so will report back when the new supply arrives.

marcus


Sad No update on shipping for Backer number #245
Posted by: seven77j - 06-18-2016, 06:22 AM - Forum: Shipment Related Discussion - Replies (14)

Backer number #245. 7 weeks after the 4/28 CN tracking number was sent. Nothing received. The tracking numbers has show only up to 23rd of April. No response to my mails also.


  AXP803 Battery Charger Support
Posted by: xalius - 06-18-2016, 03:28 AM - Forum: Linux on Pine A64(+) - Replies (14)

I am currently investigating how the battery charger in the PMIC (AXP803) is supported by the software. Being a hardware guy I was working my way up from the bottom side of things, starting with the physical connection and the PMIC:

The battery seems to be connected to the PMIC via a load sensing (current sensing) shunt and the PMIC has a switch that connects the battery to the inputs of the voltage
regulators once certain conditions are met. There is also an input on the battery connector to attach a 10k NTC for monitoring the battery temperature. The PMIC contains a battery charger that charges the battery depending on what DC power source is available (USB/DC IN).

From the AXP803 Datasheet:

- Vbat charge target voltage = 4.2V typical
- Charge current can be set between 200 and 2800mA, 1200mA typical
- Trickle charge current is 10% of normal charge current

- There are two safety timers which can be programmed to limit regular/trickle charging after x minutes (480 min / 50min typical)
- Charging stops in CV mode if the normal charge current drops below 10% of the set charge current
- The NTC monitor has different trip points like cold fault, hot fault for operation and charging which can be programmed in the PMIC
- Battery isolation current is 40uA


- Turning on the PMIC happens by either applying USB/DC_IN or pushing the power button
- Turning off the PMIC happens by undervoltage lockout, fault condition, power button or software writes to a register
- The charger starts working once the voltage input from USB/DC_IN is between 4.1V and 7V

- Input to the regulators is automatically selected from Battery, DC_IN or USB
- USB/DC_IN are preferred over Battery
- If USB and DC_IN are not connected together, DC_IN is preferred over USB
- If USB/DC_IN drops below certain thresholds, Battery takes over
- Input can be controlled by registers

- The function of the charge LED can be controlled via registers

- The PMIC is connected to the A64 via a I2C interface

I have looked at the device tree file and it seems to contain some default setting for the PMIC (and the charger):


Code:
pmu0@0 {
           compatible = "allwinner,pmu0";
           device_type = "pmu0";
           pmu_batdeten = <0x00000001>;
           pmu_init_chgend_rate = <0x00000014>;
           pmu_init_chg_enabled = <0x00000001>;
           pmu_init_adc_freq = <0x00000320>;
           pmu_init_adcts_freq = <0x00000320>;
           pmu_init_chg_pretime = <0x00000046>;
           pmu_init_chg_csttime = <0x000002d0>;
           pmu_batt_cap_correct = <0x00000001>;
           pmu_chg_end_on_en = <0x00000000>;
           pmu_pwroff_vol = <0x00000ce4>;
           pmu_pwron_vol = <0x00000a28>;
           pmu_powkey_off_delay_time = <0x00000000>;
           pmu_pwrok_time = <0x00000040>;
           pmu_reset_shutdown_en = <0x00000001>;
           pmu_restvol_adjust_time = <0x0000003c>;
           pmu_ocv_cou_adjust_time = <0x0000003c>;
           pmu_vbusen_func = <0x00000001>;
           pmu_reset = <0x00000000>;
           pmu_IRQ_wakeup = <0x00000001>;
           pmu_hot_shutdowm = <0x00000001>;
           pmu_inshort = <0x00000000>;
           pmu_bat_shutdown_ltf = <0x00000c80>;
           pmu_bat_shutdown_htf = <0x000000ed>;
           status = "okay";
           pmu_id = <0x00000006>;
           pmu_twi_addr = <0x00000034>;
           pmu_twi_id = <0x00000001>;
           pmu_irq_id = <0x00000040>;
           pmu_chg_ic_temp = <0x00000000>;
           pmu_battery_rdc = <0x00000058>;
           pmu_battery_cap = <0x000012c0>;
           pmu_runtime_chgcur = <0x000001c2>;
           pmu_suspend_chgcur = <0x000005dc>;
           pmu_shutdown_chgcur = <0x000005dc>;
           pmu_init_chgvol = <0x00001068>;
           pmu_ac_vol = <0x00000fa0>;
           pmu_ac_cur = <0x00000dac>;
           pmu_usbpc_vol = <0x00001130>;
           pmu_usbpc_cur = <0x000001f4>;
           pmu_battery_warning_level1 = <0x0000000f>;
           pmu_battery_warning_level2 = <0x00000000>;
           pmu_chgled_func = <0x00000000>;
           pmu_chgled_type = <0x00000000>;
           pmu_bat_para1 = <0x00000000>;
           pmu_bat_para2 = <0x00000000>;
           pmu_bat_para3 = <0x00000000>;
           pmu_bat_para4 = <0x00000000>;
           pmu_bat_para5 = <0x00000000>;
           pmu_bat_para6 = <0x00000000>;
           pmu_bat_para7 = <0x00000001>;
           pmu_bat_para8 = <0x00000001>;
           pmu_bat_para9 = <0x00000002>;
           pmu_bat_para10 = <0x00000003>;
           pmu_bat_para11 = <0x00000004>;
           pmu_bat_para12 = <0x0000000a>;
           pmu_bat_para13 = <0x00000011>;
           pmu_bat_para14 = <0x0000001a>;
           pmu_bat_para15 = <0x00000029>;
           pmu_bat_para16 = <0x0000002e>;
           pmu_bat_para17 = <0x00000033>;
           pmu_bat_para18 = <0x00000038>;
           pmu_bat_para19 = <0x0000003b>;
           pmu_bat_para20 = <0x00000041>;
           pmu_bat_para21 = <0x00000045>;
           pmu_bat_para22 = <0x0000004b>;
           pmu_bat_para23 = <0x0000004f>;
           pmu_bat_para24 = <0x00000053>;
           pmu_bat_para25 = <0x00000059>;
           pmu_bat_para26 = <0x0000005f>;
           pmu_bat_para27 = <0x00000062>;
           pmu_bat_para28 = <0x00000064>;
           pmu_bat_para29 = <0x00000064>;
           pmu_bat_para30 = <0x00000064>;
           pmu_bat_para31 = <0x00000064>;
           pmu_bat_para32 = <0x00000064>;
           pmu_bat_temp_enable = <0x00000001>;
           pmu_bat_charge_ltf = <0x000008d5>;
           pmu_bat_charge_htf = <0x00000184>;
           pmu_bat_temp_para1 = <0x00001d2a>;
           pmu_bat_temp_para2 = <0x00001180>;
           pmu_bat_temp_para3 = <0x00000dbe>;
           pmu_bat_temp_para4 = <0x00000ae2>;
           pmu_bat_temp_para5 = <0x000008af>;
           pmu_bat_temp_para6 = <0x000006fc>;
           pmu_bat_temp_para7 = <0x000005a8>;
           pmu_bat_temp_para8 = <0x000003c9>;
           pmu_bat_temp_para9 = <0x00000298>;
           pmu_bat_temp_para10 = <0x000001d2>;
           pmu_bat_temp_para11 = <0x00000189>;
           pmu_bat_temp_para12 = <0x0000014d>;
           pmu_bat_temp_para13 = <0x0000011b>;
           pmu_bat_temp_para14 = <0x000000f2>;
           pmu_bat_temp_para15 = <0x000000b3>;
           pmu_bat_temp_para16 = <0x00000086>;
           pmu_powkey_off_time = <0x00001770>;
           pmu_powkey_off_func = <0x00000000>;
           pmu_powkey_off_en = <0x00000001>;
           pmu_powkey_long_time = <0x000005dc>;
           pmu_powkey_on_time = <0x000003e8>;
           power_start = <0x00000000>;
};


There seems to be a driver for the PMIC in the Linux kernel (drivers/power/axp_power/) that interfaces with the PMIC and is used for register access, controlling the various output voltages (CPU frequency scaling etc...) and the battery charger operation. Some of  the information is also exported via sysfs and can be read from /sys/class/power_supply/ , /sys/class/regulator and other places.

My question is now, what would be the correct way to handle battery charging, what would be a good way to set the charger defaults and are there any userspace tools available already that can use the subsystems for monitoring etc... ?