Bluefruit in the Classroom

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
randomhacksdrc
 
Posts: 41
Joined: Thu Feb 11, 2016 11:51 am

Bluefruit in the Classroom

Post by randomhacksdrc »

I teach instrumentation and I have 40 students who purchased the Circuit Playground Bluefruit. Today we went over how to use Bluetooth and on the Bluetooth Connect app and there were 40 CIRCUITPYxxxx devices that the students could connect to.

Each Bluefruit has a unique 4 digit code. For example my Bluefruit is CIRCUITPYf8e8 and I know that because I turned my Bluefruit on first and saw it pop op. Once the other 40 students tried to activate bluetooth though they didn't know which 4 digit code was theirs.

Is there anyway to know what the 4 digit code is for each student outside of having them separate by 30 feet or walk outside the classroom one at a time?

User avatar
dastels
 
Posts: 15655
Joined: Tue Oct 20, 2015 3:22 pm

Re: Bluefruit in the Classroom

Post by dastels »

This seems to work. In the REPL:

Code: Select all

from adafruit_ble import BLERadio
ble = BLERadio()
ble.name
For my board that returns 'CIRCUITPY34e7' which looks like what you're lookign for.

Dave

User avatar
randomhacksdrc
 
Posts: 41
Joined: Thu Feb 11, 2016 11:51 am

Re: Bluefruit in the Classroom

Post by randomhacksdrc »

Worked perfectly. Added it to my tutorial. Thanks again.

https://tangibles-that-teach.gitbook.io ... t-cpb-only

User avatar
kattni
 
Posts: 132
Joined: Fri Aug 18, 2017 6:33 pm

Re: Bluefruit in the Classroom

Post by kattni »

I have added this to one of our Learn guides as well. Thank you for asking!

https://learn.adafruit.com/circuitpytho ... ect-basics

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

Return to “For Educators”