3. Octopus:bit Introduction#


ELECFREAKS Octopus:bit is a kind of breakout boards for micro:bit. It can lead out GPIO port, serial port, IIC port, and SPI port on the micro:bit board. The biggest feature of Octopus:bit is that it can switch electric level for some GPIO ports, which makes micro:bit available to be adapted to 5V sensors.

../../_images/wcgxnG01.png

3.1. Shipping List#


1 x ELECFREAKS Octopus:bit

3.2. Hardware#


Features#

  • Input voltage: 3.3V(powered by the edge connector of micro:bit)

  • Extend all of GPIO ports(P0~P16, P19~P20).

  • Beneath each I/O port, there are pins for VCC and GND. These pins are differentiated by different colors, which enable you to connect your extension module easily. The spread of pins is fully compatible with Octopus series’ products.

  • With a voltage boosting module, you can shift the working voltage of P8, P9, P11~P16 between 3.3V and 5V through the voltage switch.

  • Lead out serial port, I2C port and SPI port, among which I2C can connect 3 channels of I2C devices and SPI can connect 2 channels of SPI devices.

  • Available for direct serial port communication between two breakout boards.

Application#

It is suitable for all conditions that require micro:bit GPIO such as programming education, smart device creation, and so on.

Pins & Connectors#

../../_images/wCWdoag1.jpg

3.3. More Details#


Standard GVS Port#

../../_images/gk3dN4E1.png

Among the standard GVS ports, the working voltage of the yellow part(P0~P7, P10)is 3.3V, while the working voltage of the blue part(P8, P9, P11~P16)can be shifted between 3.3V and 5V through a voltage switch. Beneath each I/O port, there are pins for VCC and GND. These pins are differentiated by different colors, which enable you to connect your extension module easily. The spread of pins is fully compatible with Octopus series’ products.

Voltage Switch#

../../_images/JoxT6k21.png

Sliding this switch, we can change the voltage of the blue IO ports(P8, P9, P11~P16)between 3.3V and 5V.

You can see its working range in the below:

../../_images/GHPffMl1.png

Serial Port#

../../_images/8aVYsja1.png

The working voltage of serial port is available to be shifted between 3.3V and 5V through the voltage switch. Connect TX to P8,RX to P12. The left pins are bidirectional serial port, which can run both input and output. The right female header is a one-way output serial port.

Note : To use this port, we have to initialize it according to the program in the below:

../../_images/1gnuYd51.png

3.4. Dimension#


../../_images/ZYrWREG1.jpg

3.5. Software#


Example 1 Music Broadcast#

Hardware Connection#

Connect passive buzzer module to PO.

../../_images/Zc6ChwR1.jpg

Code Example#

../../_images/0MBprkk1.png

You can download the whole program from the link here: https://makecode.microbit.org/_fAmC3WERHdR2

Download the whole program into your micro:bit, the buzzer will play Happy Birthday again and again in round.

3.6. Relative Components#


BBC micro:bit#

../../_images/nKomLk21.png

Octopus Bricks Series#

../../_images/m1Xdqvg1.png

ElecFreaks Micro:bit Tinker Kit#

../../_images/pkfhaWF1.jpg