Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Circuit Playground Bluefruit Workshop "Baot" Co...

Circuit Playground Bluefruit Workshop "Baot" CodeFest 2021

Circuit Playground Bluefruit is a small board designed and manufactured by Adafruit. It’s main chip is the nRF52840 that supports Bluetooth Low Energy and it is packed with sensors, LEDs and other peripherals.
It can be programmed in many ways: from visual programming using MakeCode, to C/C++ with Arduino or even using Python!
In this workshop we will learn about the board capabilities and how to program it and create various applications.

dafnamordechai

April 05, 2022
Tweet

More Decks by dafnamordechai

Other Decks in Technology

Transcript

  1. Hello! @Dafna_Mordechai • Dafna Mordechai, BSc. in Computer Science, The

    Hebrew University of Jerusalem (2008) • RT Embedded Software Engineer • Love technology, and love sharing it with others
  2. ★ ARM® Cortex®-M0+ processor ★ Register size of 32-bit ★

    Running at 3.3V ★ 32KB of SRAM. ★ Maximum frequency of 48MHz ★ Programmable Flash (up to 256KB) ★ Up to 52 programmable I/O pins see product datasheet Atmel’s ATSAMD21
  3. CircuitPython Express Atmel’s ATSAMD21 ARM Cortex M0 Processor, running at

    3.3V and 48MHz 2 MB of SPI Flash storage used to store code and libraries. MicroUSB port for programming and debugging
  4. Circuit Playground Express • USB port can act like serial

    port, keyboard, mouse, joystick or MIDI! • 10 x mini NeoPixels (RGB LEDs) • 7 pads can act as capacitive touch inputs and the 1 remaining is a true analog output • Infrared (IR) receiver and transmitter. Can also act as a proximity sensor. • 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 Mini speaker with class D amplifier (7.5mm magnetic speaker/buzzer) • 1 x Sound sensor (MEMS microphone) • 8 x alligator-clip friendly input/output pins • Includes I2C, UART, 8 pins that can do analog inputs, multiple PWM output • Green “ON” LED so you know its powered • Red board.D13 LED for basic blinking • 2 x Push buttons, labeled A and B • 1 x Slide switch • Reset button
  5. How to Program? ★ Python (with Mu IDE) ★ C/C++

    (with Arduino IDE) ★ Visual programing (with MakeCode, running Java Script in the background)
  6. Machine Compilers vs. Interpreters Machine Source code Python Input (data)

    Output interpreter Executable (Byte Code) (Byte Code) Source code C/C++ Input (data) Compiler Output
  7. CircuitPython vs. MicroPython • MicroPython is a full Python compiler

    and runtime that runs on the microcontroller, and gives the programmer access to low-level hardware. • Selected core Python libraries are included. • CircuitPython is an open-source derivative of MicroPython. • CircuitPython is created and maintained by Adafruit, and is supported on Adafruit’s educational development boards. • Updates to MicroPython are rolled out to CircuitPython.
  8. CircuitPython Installations You can download from here the latest version:

    https://circuitpython.org/board/circuitplayground_express/ This file, when uploading it into your boot folder, will install circuitPython on the board: adafruit-circuitpython-circuitplayground_express-en_US-4.1.0.uf2 And the cpx library from here: https://circuitpython.org/libraries
  9. Mu IDE • Install: Window | MacOS • More Info:

    https://mu.readthedocs.io/en/latest/# • Save your code.py on the device
  10. Circuit Playground Express • Circuit Playground Express Product • https://circuitpython.org/

    • https://github.com/adafruit/circuitpython • CircuitPython Essentials • Learning Resources from Adafruit @Adafruit
  11. Want to Learn More? • A curated list of awesome

    CircuitPython guides, videos, libraries, frameworks, software and resources. • CircuitPython vs MicroPython: Key Differences (YouTube) • CircuitPython with Jupyter Notebooks • Circuit Playground Express: Piano in the Key of Lime • CircuitPython: Python on hardware (YouTube) • CircuitPython Workshop (YouTube) • slides about micropython by Samuel de Ancos • Circuit Playground Express Workshop (YouTube Playlist)