Circuit Playground Bluefruit

From Miscellany
Revision as of 15:25, 26 October 2022 by Kat (talk | contribs) (→‎CircuitPython)

Adafruit's Circuit Playground Bluefruit

Third gen version of Adafruit's popular circular MCU

Description

  • The main chip is an nRF52840, with Bluetooth Low Energy
  • Outer Diameter: ~50.6mm / ~2.0"
  • Weight: 8.9g
CPB-front.pngCPB-back.png

Features

  • 1 x nRF52840 Cortex M4 processor with Bluetooth Low Energy support
  • 10 x mini NeoPixels, each one can display any color
  • 1 x Motion sensor (LIS3DH triple-axis accelerometer with tap detection, free-fall detection)
  • 1 x Temperature sensor (thermistor)
  • 1 x Light sensor (phototransistor). Can also act as a color sensor and pulse sensor.
  • 1 x Sound sensor (MEMS microphone)
  • 1 x Mini speaker with class D amplifier (7.5mm magnetic speaker/buzzer)
  • 2 x Push buttons, labeled A and B
  • 1 x Slide switch
  • 8 x alligator-clip friendly input/output pins
  • Includes I2C, UART, 6 pins that can do analog inputs, multiple PWM outputs
  • Green "ON" LED so you know its powered
  • Red "#13" LED for basic blinking
  • Reset button
  • 2 MB of SPI Flash storage, used primarily with CircuitPython to store code and libraries.
  • MicroUSB port for programming and debugging
  • USB port can act like serial port, keyboard, mouse, joystick or MIDI

Pinouts

CPB-pinouts.png

Software

Arduino IDE

Set up Arduino support on CPB

MicroPython

Adafruit no longer supports MicroPython on its boards. Use CircuitPython for official support.
MicroPython is a complete re-write of the Python (version 3.4) programming language so that it fits and runs on a microcontroller. It includes many optimizations so that it runs efficiently and uses very little RAM.

CircuitPython

Adafruit recommends using Mu Editor to program in CircuitPython

Projects



Back to Programming with MicroPython