Codes for the occupancy sensing module that utilizes ToF and color sensor.
BLE
Folder for BLE communication on RPi
TCS34725
Folder for information of TCS34725 color sensor
TMD37253
Folder for information of TMD37253 color sensor
tools
Folder for some helpful tools used in development
-include in folder BLE
This is the section for simple bluetooth communication implementation on RPi, there is only point to point communication at this point
-include in folder TCS34725
This is a section for implementation codes for color sensor TCS34725
The code is fully C++ and uses WiringPi for I2C interface access
Following is the process of how to use the codes in this section:
- Download the whole repository to the system.
- Use command
chmod +x install.shto make shell file executable. - Run
install.shto setupWiringPion the system, the output on the terminal should be the version ofWiringPiand the pins map of current board if everything goes right. - Compile
TCS34725_testcode.cppusing commandg++ TCS34725_testcode.cpp -o TCS34725_show.exe -l wiringPi - Run
TCS34725_show.exe
Inside the main function of TCS34725_testcode.cpp:
- I2C address and enbale register settings can be changed in the
User Settingssection - Any changes for register data could be add to
Setup the sensorsection - How to read, process, and output color data codes will be added to
Brief Show casesection
-include in folder TMD37253
This is a section for implementation codes for color sensor TMD37253
The code is fully c and uses modified WiringPi methods for I2C interface access
For this part:
TMD3725_driver_RPiis the folder that holds acdriver that can enable TMD3725 on RPiTMD3725_testcode.cpphas a brief example that usesWiringPifor TMD3725 implementation, for test purpose
- Detailed notes are in the
README.mdinTMD3725_driver_RPi