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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 30,016
» Latest member: Valerie
» Forum threads: 16,342
» Forum posts: 117,464

Full Statistics

Latest Threads
Star64 Irradium (based on...
Forum: Getting Started
Last Post: mara
Yesterday, 11:45 AM
» Replies: 18
» Views: 15,480
US Tariffs & Recent Supre...
Forum: General
Last Post: evilbunny
05-10-2026, 03:18 AM
» Replies: 2
» Views: 491
Updated Pinebook Pro?
Forum: General Discussion on Pinebook Pro
Last Post: tllim
05-08-2026, 12:25 PM
» Replies: 1
» Views: 199
Volumio 3 Pine A64+ unoff...
Forum: Linux on Pine A64(+)
Last Post: tllim
05-08-2026, 12:21 PM
» Replies: 2
» Views: 178
Star64: All listed distro...
Forum: Getting Started
Last Post: tantamount
05-08-2026, 08:56 AM
» Replies: 0
» Views: 115
Unresponsive / inaccurate...
Forum: General Discussion on PineTime
Last Post: PerfectJam
05-07-2026, 03:37 AM
» Replies: 0
» Views: 97
Unresponsive / inaccurate...
Forum: General Discussion on PineTime
Last Post: PerfectJam
05-07-2026, 03:36 AM
» Replies: 0
» Views: 87
The "Should I buy a Quart...
Forum: General Discussion on Quartz64
Last Post: kapqa
05-05-2026, 07:57 AM
» Replies: 5
» Views: 20,430
Volumio (PINE A64-LTS / S...
Forum: Linux on PINE A64-LTS / SOPINE
Last Post: shinzuka
05-04-2026, 09:02 AM
» Replies: 9
» Views: 17,062
Mobian image for the Pine...
Forum: Mobian on PinePhone
Last Post: Korfou
04-27-2026, 09:57 AM
» Replies: 2
» Views: 453

 
  Getting Temperature/Humidity/Ambient Light data with Python
Posted by: Yomet - 09-28-2016, 03:34 PM - Forum: POT modules - Replies (8)

Hi,

I have tried to get data from both the Temp/Humidity and the Ambient Light sensor by using python and python-smbus. I have found and read the tech docs of both adapters as specified by Pine64 but have not gotten all the way to reading the correct data, i.e. I get data from the T/H sensor but it says that it's -5 C inside and I don't believe that since I'm sitting in short-sleeves...  Smile

I also found the posts from khgoh (http://forum.pine64.org/showthread.php?tid=231&page=3) and skimmed through the source code for the WifiRemoteI2C server but that is in C (C++) and does not help me at all, or rather, it does not help me solving it in python...

My problem is that the value I get from the T/H sensor does not convert correctly into the ambient temperature and relative humidity.

I would really appreciate if someone told me where I am going wrong and how to correct it.

Many thanks

DS

Source:

Code:
import smbus
import time

bus = smbus.SMBus(1)
address = 0x40
cmd_temp = 0xE3
cmd_humid = 0xE5
temp = 0L
humid = 0L

temp = bus.read_word_data(address, cmd_humid)
print "RH read_word_data returns ", humid
print ""
humid = 125.0 * humid / 65536 - 6
print "RH: ", humid, " %"
print ""
print ""

temp = bus.read_word_data(address, cmd_temp)
print "Temp read_word_data returns ", temp
print ""
temp = 175.72 * temp / 65536 - 46.85
print "Temperature: ", temp, " C"
print ""
print ""


Output:

Code:
debian@pine64:~/i2c$ python getTemp2.py
RH read_word_data returns  0

RH:  -6.0  %


Temp read_word_data returns  10341

Temperature:  -19.1229412842  C


debian@pine64:~/i2c$


  surveillance control center for ip cameras
Posted by: Miguel Campos - 09-28-2016, 08:41 AM - Forum: Pine A64 Projects, Ideas and Tutorials - No Replies

Hi guys
   After some time having the pine finally I have decided a practical use for it.
I'm getting an ip camera for testing sricam sp013  and I will try to create some kind of control center with my pine.
so I can control then without sending data to Chinese pages :-)
and I can access it through internet.

Has any one try anything like this?
any advice on which can be a good point to start?

Regards.
Guybrush


  Time Capsule - failing getting libkrb5-dev
Posted by: wojciech_czyz - 09-28-2016, 08:11 AM - Forum: Debian - Replies (1)

Hi,

I have been trying to get working Time Capsule using Debian of Pine64, yet following many of the threads there are always some problems.
I am stuck getting libkrb5-dev:

Code:
sudo apt-get install build-essential devscripts debhelper cdbs autotools-dev dh-buildinfo libdb-dev libwrap0-dev libpam0g-dev libcups2-dev libkrb5-dev libltdl3-dev libgcrypt11-dev libcrack2-dev libavahi-client-dev libldap2-dev libacl1-dev libevent-dev d-shlibs dh-systemd avahi-daemon libc6-dev libnss-mdns

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libkrb5-dev : Depends: krb5-multidev (= 1.12.1+dfsg-19+deb8u2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I used the image from Pine64.pro

Debian Mate (3.10.102 BSP 2), Released Jul 18 2016

Updated kernel, uboot and packages, yet always get this.

Is there solution for this?

Thank you!
Wojciech


  Where to start
Posted by: Freedom1029 - 09-28-2016, 06:41 AM - Forum: openHAB - Replies (12)

Hi there,
I am starting with my Pine64 board and want to install OpenHab.  As it is, I have an empty SD card.  So my question is how to proceed to get up and running with openhab.
Thanks,


  Order #8165002
Posted by: Akke920 - 09-28-2016, 04:58 AM - Forum: Shipment Related Discussion - Replies (5)

Hello, this order has ben held by the customs in SHENZHEN since 2016-09-06.

Could you solve this with the carrier please? This order was made in August so i've waited a pretty long time already.

Thank you!

Tracking number: LX970003649CN


  3,5mm audio out not working
Posted by: MikkoL - 09-28-2016, 01:32 AM - Forum: Android on Pine A64(+) - Replies (9)

Hello, 

I don't seem to be getting audio from 3,5mm jack working. I have tried ayufan's Android 5.1 and 7.0 builds (TV and no TV), to no luck whatsoever. Also tried plugging the jack only after a reboot, but still nothing. Sound comes only through HDMI. 

Can anybody help? Or confirm that it really doesn't work? From what I read, this has been an issue before, but some reports at least from the Linux side are saying it shold work.

Mikko


  Order #1650
Posted by: mathiraj - 09-27-2016, 09:59 AM - Forum: Shipment Related Discussion - Replies (2)

i ordered pine64, more than five days ago. Still haven't received any notification about shipment. Money is debited from my bank account but no communication regarding shipment. Email to sales got no response.
i created this account just to ask this question. When will the order be shipped? When will i receive it?


  Official C4 Labs LCD Enclosure *UPDATED WITH ASSEMBLY VIDEO*
Posted by: Bluphire - 09-26-2016, 05:26 PM - Forum: Enclosures - Replies (12)

I decided to start a new thread dedicated to the C4 Labs LCD Enclosure.

Below are pictures of the final design for the LCD enclosure from C4 Labs.

GET YOUR'S HERE!

Matt

[Image: Screen%20Case%202_zpsc2yugwm1.jpg]
[Image: Screen%20Case%201_zpso80e567s.jpg]
[Image: Screen%20Case%205_zpsqconamiv.jpg]
[Image: Screen%20Case%206_zpsg0g9jbqx.jpg]
[Image: Screen%20Case%204_zpsmaveyezq.jpg]
[Image: Screen%20Case%203_zpsefgegfmw.jpg]

Dustin's Official Assembly Video:
https://www.youtube.com/watch?v=Ti_mDkcqe98&list=PLl-5TWrCnCxUrHiT8CLOIszRi8QEgkVUT&index=3


My assembly video Part 1: (See Part 2 on my channel)


  Received a bad LCD, can't get support.
Posted by: bryanlyon - 09-26-2016, 12:28 PM - Forum: LCD and Touch Panel - Replies (3)

So, I received a bad LCD.  The cable on the back of the LCD arrived with a small tear in it.  I've tried over and over to get support from pine64 staff with about a half dozen emails, and support tickets but haven't gotten any help.  Does anyone know if I can easily replace the cable myself?  I really want to use my LCD and am fairly sure I'll never get support from pine64 to get it fixed.

Thanks!


  C++ Sensor Library
Posted by: Artyom - 09-25-2016, 10:55 AM - Forum: Pine A64 Projects, Ideas and Tutorials - Replies (7)

In this thread provides information about library for working with sensors for the C ++ programming language.


SIMPLE TEST FILE FOR MY LITTLE LIBRARY:

#include <iostream>
#include <TSL2561.h>
#include <TSL2561.c>

using namespace std;

int main () {
       float cur_illum, low_bow_illum;

       cur_illum = tsl2561_getdata(TSL2561_TOTAL_LUX);

       cout << "CURRENT TOTAL LIGHTING (LUX): " << cur_illum << endl;
       cout << "CURRENT VISIBLE LIGHTNING (LUX): " << tsl2561_getdata(TSL2561_VISIBLE_LUX) << endl;
       cout << "CURRNET INFRARED LIGHTNING (LUX):" << tsl2561_getdata(TSL2561_INFRARED_LUX) << endl;

return 0;
}



Attached Files Thumbnail(s)