work for BBC. Opinions are my own and don’t represent those of my employer. • Andrea Grandi • I live in London (UK) • Software Engineer at Marks & Spencer • Python/Django developer • passionate about micro controllers, IoT, Arduino, Golang and mobile development
Nicholas Tollervey (one of the MicroPython/microbit core developers) at British Computing Society • A few Python developers met with selected teachers • Damien George (creator of MicroPython) was present • I got a precious micro:bit board
optimised to run on microcontrollers • created thanks to a Kickstarter campaign by Damien George • open source (MIT): github.com/micropython • 2700+ stars, 540+ forks • Initially created for the PyBoard • Includes a REPL (read-eval-print-loop)
board to all 7th grade kids in UK (~ 1M boards!) • Kids should learn programming in a funny way and with more direct access to computer components • encourage kids to build things and not just being consumers • It will be available for purchase later for everyone else • released as open source once completed
the costs covered by nearly 30 partners (designers, manufacturers, distributors, etc… ) • ARM 32-bit 16 MHz CPU (nRF51822 Cortex-M0) • 256 KB flash • 16 KB RAM • 25 leds (5 x 5) • 3.3 V power needed • 5 cm x 4.2 cm size
• 168 MHz Cortex M4 CPU • 1024 KB flash ROM and 192 KB RAM • Micro USB for power/serial • Micro SD card slot • 3-axis accelerometer (MMA7660) • 24 GPIO on left and right edges and 5 GPIO on bottom row • leds, buttons
using one of the available languages • compile it to get the *.hex file • copy the *.hex file on the device, connecting it with the micro USB cable • micro:bit led will start blinking, it will stop when it’s flashed • that’s it!
written by Nicholas Tollervey with the help of the community • web based • needs Internet connection • produces a *.hex file you need to drag & drop on the mounted board
by Nicholas Tollervey with the help of the community • can flash the device directly • integrated REPL • written in Python/Qt5 • open source • works offline (perfect for schools that want to avoid young kids going online)
# if you shake the device, you make microbit sad while True: if accelerometer.was_gesture('shake'): display.show(Image.SAD) sleep(2000) display.show(Image.HAPPY)
available • fork https://github.com/andreagrandi/microantani on GitHub • create a small app for microbit in MicroPython • put the file in the root naming it firstname_lastname.py • make a pull request • the first 3 working examples I will receive will entitle the author to get a microbit for free • complete instructions and rules available in README.md • winners will be announced on Twitter @andreagrandi • boards will be distributed at 17:00 at the registration desk