PINE64
C++ Sensor Library - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Projects, Ideas and Tutorials (https://forum.pine64.org/forumdisplay.php?fid=19)
+--- Thread: C++ Sensor Library (/showthread.php?tid=2274)



C++ Sensor Library - Artyom - 09-25-2016

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;
}


RE: C++ Sensor Library - Artyom - 09-27-2016

Good evening. If someone will need a library PM me. If someone wants to help develop, I will be glad. PM me.


RE: C++ Sensor Library - Artyom - 10-01-2016

Some additional info about library. I am still working. Alpha release have 2 sensors (TSL2561 and BME280).

(10-01-2016, 02:50 AM)Artyom Wrote: Some additional info about library. I am still working. Alpha release have 2 sensors (TSL2561 and BME280).
[Image: 46ac0266a87e1646edb58d2f8bb0f6ea.jpg][Image: eff5d37802251866be8a312e909e8916.jpg]

And additional photo. Test programm... [Image: c0d6693eec6516edc1ff3ea8dc804c7b.jpg]


RE: C++ Sensor Library - Artyom - 10-01-2016

Hi again. Now you can test library. Download from here: https://github.com/blademoon/Sensus


RE: C++ Sensor Library - Zoidiano0 - 10-01-2016

thanks mate ill give it a try, so i can test the sensors that i have Big Grin


RE: C++ Sensor Library - Artyom - 10-01-2016

(10-01-2016, 07:54 AM)Zoidiano0 Wrote: thanks mate ill give it a try, so i can test the sensors that i have Big Grin

Do not forget to write to me like your sensor has been tested, okay?


C++ Sensor Library - Artyom - 10-22-2016

Hello. I publish a new version of the library for interfacing with sensors. This stable release.

Fixed the following issues:
- Exhaustion of descriptors.

The new version of the library can be downloaded here:
https://github.com/blademoon/Sensus

All tested and working properly.

Comments and suggestions please send me by email: blademoon@yandex.ru.

(10-22-2016, 02:32 AM)Artyom Wrote: Hello. I publish a new version of the library for interfacing with sensors. This stable release.

Fixed the following issues:
- Exhaustion of descriptors.

The new version of the library can be downloaded here:
https://github.com/blademoon/Sensus

All tested and working properly.

Comments and suggestions please send me by email: blademoon@yandex.ru.

Or leave comments and suggestions here)))


RE: C++ Sensor Library - Artyom - 11-08-2016

Yesterday ordered a new sensor - TCS34725 RGB Color Sensor with IR Filter and White LED for Arduino UNO R3. For details on the sensor here: https://www.aliexpress.com/item/TCS34725-RGB-Color-Sensor-with-IR-Filter-and-White-LED-for-Arduino-UNO-R3/32756859926.html?spm=2114.13010608.0.0.klUceD.

When the send and the time will add to the library two new sensors.