kriswiner / calipile Goto Github PK
View Code? Open in Web Editor NEWArduino sketch for Excelitas' CaliPile TPiS 1S 1385 Thermoipile I2C sensor
Arduino sketch for Excelitas' CaliPile TPiS 1S 1385 Thermoipile I2C sensor
TPAMBLP3 should be a 16 bit number (or 15 bit after divide by 2) but is currently stored in an 8 bit variable "temp" before being returned. temp should be uint16_t
Hi, if I compile your code, I get this error
sketch\CaliPile.cpp:248:14: error: 'class TwoWire' has no member named 'transfer' Wire.transfer(address, &temp[0], 2, NULL, 0); ^
If I see in the Wire library (https://www.arduino.cc/en/Reference/Wire) I cannot see this wire.transfer();
Do you know what is the alternative function to be used?
Thank you for your support ๐
For correct result on Arduino UNO, I had to change this line:
//TPOBJ = ( (uint32_t) ( (uint32_t)rawData[0] << 24) | ( (uint32_t)rawData[1] << 16) | (rawData[2] & 0x80) << 8) >> 15;
to
TPOBJ = ( (uint32_t) ( (uint32_t)rawData[0] << 24) | ( (uint32_t)rawData[1] << 16) | ((uint32_t)rawData[2] & 0x80) << 8) >> 15;
//rawData[2] needs cast to uint32_t
In CaliPile_Butterfly.ino, should the temp threshold exceeded interrupt mask be:
if(intStatus & 0x02) // not 0x10)
{bin 0000 0010 is 0x02 not 0x10} ?
hello,
I use CaliPile_Butterfly.ino in arduino nano this code contentiously print Presence detected! Motion detected! without anyone in the room. how to tune this module to detect human motion...???
I try to work presence and motion detection concept in same code CaliPile_Butterfly.ino in motion detection part everything work but in presence finding part detect once or twice but my exception is continuous signal if person is present ...???
writeByte(CALIPILE_ADDRESS, CALIPILE_SLP12, TC_8s << 4 | TC_1s);
writeByte(CALIPILE_ADDRESS, CALIPILE_TP_PRES_THLD, 0x32);
writeByte(CALIPILE_ADDRESS, CALIPILE_TP_MOT_THLD, 0x0A);
writeByte(CALIPILE_ADDRESS, CALIPILE_SRC_SELECT, temp | src_TPOBJLP1_TPOBJLP2 << 2 | cycTime_30ms);
i set the above value as per data sheet in (session 7.2)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.