-
Notifications
You must be signed in to change notification settings - Fork 0
Integrate CCS811 sensor + update code #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CloeD
wants to merge
15
commits into
master
Choose a base branch
from
integration_sensors
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5b53fc7
Add doc file with co2 captor doc
CloeD 4fabdef
Add documentation to README
CloeD 6164a77
Modify pin address
CloeD fb2d43b
Add code for sensor CCS811
CloeD b1c9054
Remove old documentation
CloeD 9083884
Resolve PR comments
CloeD 652b302
Resolve PR comments
CloeD 3e44f1b
Add log option to node with roslaunch
CloeD 4b9d0bb
Remode hardcoded values
CloeD 3c39917
Remove unused variables
CloeD d715c74
Translate comments in enlish to french
CloeD 0387d97
FOrmatting
CloeD 8d5bda3
Add master modifications
CloeD cbbc5cb
Fix CO2 value not showing + remove temp-humidity
b9ca1c6
Fix Ludo comment + remove args reading
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
# capra_telaire_ros | ||
|
||
capra_co2_ros is a node to interact with a Telaire T6713 CO2 sensor using I2C. | ||
capra_co2_ros is a node to interact with a KS0457 keyestudio CCS811 Carbon Dioxide Air Quality sensor using I2C. | ||
|
||
|
||
## Documentation | ||
Documentation can be found on the [wiki page](https://wiki.keyestudio.com/KS0457_keyestudio_CCS811_Carbon_Dioxide_Air_Quality_Sensor) of the sensor. The [code of the library](https://www.dropbox.com/sh/or1jzflapzbdepd/AAAGrCZgyjPOtNyLYNcyzL90a/Libraries/CCS811?dl=0&preview=CCS811.cpp) was reproduced for a Jetson as we do not use an Arduino. | ||
|
||
|
||
## Pin connections | ||
The CCS811 sensor has six pins. According to the wiki page, we only need to connect five pins: the ground (GND), the VCC, the data (SDA), the clock (SCL) and the WAKE pin. The WAKE needs to be connected to ground and the sensor feeds off 5V. | ||
|
||
|
||
## Testing on the Jetson AGX Xavier | ||
After pluggin the sensor to the Jetson, connect to the Jetson by ssh: | ||
```ssh markhor@IPADDR``` | ||
Replace IPADDR by the IP address of the Jetson. It is connected to the Capra network, so a simple netdiscover of the network should give you the IP address. | ||
|
||
Launch the code with ```roslaunch capra_telaire_ros telaire.launch``` | ||
|
||
Make sure that the permissions of the pin you are connected to are right. You can check the address of the pin by executing the following command: | ||
```sudo i2cdetect -y -r 8``` | ||
|
||
Seeing 5A after execution of the command indicates the wiring is ok. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.