Sharing data from a CPB with a RPi Zero

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ATSa
 
Posts: 25
Joined: Sun Mar 03, 2019 3:00 pm

Sharing data from a CPB with a RPi Zero

Post by ATSa »

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?

User avatar
mikeysklar
 
Posts: 14179
Joined: Mon Aug 01, 2016 8:10 pm

Re: Sharing data from a CPB with a RPi Zero

Post by mikeysklar »

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.

User avatar
ATSa
 
Posts: 25
Joined: Sun Mar 03, 2019 3:00 pm

Re: Sharing data from a CPB with a RPi Zero

Post by ATSa »

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 …

User avatar
adafruit2
 
Posts: 22192
Joined: Fri Mar 11, 2005 7:36 pm

Re: Sharing data from a CPB with a RPi Zero

Post by adafruit2 »


Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”