Have been thinking about/chipping away at how to pass data between a CPB and a RPi Zero. Would appreciate review, comment, and suggestions:
A script to have a CPB share sensor data via serial:
https://github.com/AnchorageBot/YouTube ... rmBlink.py
A script to have a RPi Zero collect CPB data via serial:
https://github.com/AnchorageBot/GardenB ... CU_Data.py
A script to have a CPB share sensor data via BLE:
https://github.com/AnchorageBot/YouTube ... alogger.py
How to use the Bluefruit LE Connect app to collect CPB data via BLE:
https://learn.adafruit.com/adafruit-cir ... le-connect
Am looking at how to adapt this script to use a RPi Zero to collect CPB data via BLE:
https://github.com/adafruit/Adafruit_Ci ... central.py
Is there a better way?
Sharing data from a CPB with a RPi Zero
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 14179
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Sharing data from a CPB with a RPi Zero
The easiest way would be to connec the CPB and RPi Zero via USB. Then a print statement from the CPB of sensor values can be recorded on the Pi using the REPL console. You can use the script and screen commands to save the data or have a python catcher script.
The BLE examples will work too, but being wireless increases risk of disconnects and complicates the setup.
The BLE examples will work too, but being wireless increases risk of disconnects and complicates the setup.
- ATSa
- Posts: 25
- Joined: Sun Mar 03, 2019 3:00 pm
Re: Sharing data from a CPB with a RPi Zero
Greatly appreciate the insights; do you happen to have a specific script for a RPi Zero that uses BLE to capture and save data from a CPB?
All of my microcontrollers are currently hooked up to RPis via usb cords and I am very interested giving BLE data collection a try. Cord & pet co-existence as well as the desire to wirelessly collect data from outside are motivators …
All of my microcontrollers are currently hooked up to RPis via usb cords and I am very interested giving BLE data collection a try. Cord & pet co-existence as well as the desire to wirelessly collect data from outside are motivators …
- adafruit2
- Posts: 22192
- Joined: Fri Mar 11, 2005 7:36 pm
Please be positive and constructive with your questions and comments.