How to Use SPACEBLOCK Microcontroller Board

This is a microcontroller board specifically designed for SPACEBLOCK.
After logging into the SPACEBLOCK official website, you can connect the SPACEBLOCK dedicated microcontroller board to your computer, tablet, or smartphone via USB, allowing you to control various parts such as microcontroller boards, motors, and sensor modules through programming.
SPACEBLOCK
Microcontroller Board


Blue pin socket
Yellow pin socket
Horizontal pin socket
USB MicroB connector
Battery box connector
Built-in LED

SD card reader
About Types of Pins

3.3V, 5V
These pins carry electrical current. Pins labeled 3.3V provide a voltage of 3.3V, while those labeled 5V provide 5V.
GND
This pin denotes the ground reference point, similar to the negative pole of a battery.
A0~A15, B0~B15, C14~C15
These pins support digital and analog input/output as well as PWM output.
Digital pins can read voltage received from other digital pins as either High (true) or Low (false), or output voltage as 0V or the reference voltage.
Analog pins can read voltage received from other analog pins as a value between 0 and 1023 (0 to 3.3V).
PWM pins can output PWM signals, allowing control of motors or generating sound from speakers.
Available pins may vary depending on the parts or blocks used. Please refer to the instructions for each part or block for more details.
Regarding T1, T2, T3, T4 Notation
T stands for Timer. A10 corresponds to T1 (Timer 1), A0 to T2 (Timer 2), B0 to T3 (Timer 3), and B10 to T4 (Timer 4).
If you are using the 'Create Timer' block in the basic category, pins that overlap with the corresponding timer cannot be used. Please select a different pin to use.

Regarding PullUp Notation
Pins A4, A6 to A7 support this notation. These pins are stabilized in a High state by connecting a pull-up resistor to them. This is used when voltage stability cannot be achieved with regular pins, especially with certain sensor modules. Additionally, because voltage is adjusted by the resistor, the values obtained may vary compared to unsupported pins.

About User Buttons (PA8, PA9)
While pressing the user buttons on the SPACEBLOCK microcontroller board, the digital signals of A8 and A9 change. While pressing the PA8 user button, the digital signal of A8 becomes Low (false), and while pressing the PA9 user button, the digital signal of A9 becomes Low (false).
Specifications
| Installed Microcontroller | 32bit STM32F103CBT6 |
|---|---|
| Core Processor | 32bit ARM Cortex-M3 |
| Maximum Operating Frequency | 72MHz |
| RAM | 20KB |
| Flash Memory | 128KB |
| EEPROM | 2KB |
| Buttons | Reset button x1, User button x2 |
| LED | Power LED x1, User LED x1 |
| GPIO | 35 |
| USB Connector | Micro B |
| Card Reader | Compatible with microSD (SD card sold separately) |
| RTC Button Cell Battery Holder | Compatible with CR1220 (battery sold separately) |
| Power Source | USB, Battery Box, or External Supply (3.3V, 5V) |
| Size | 47 x 57 (mm) |
| Package Size | 92 x 120 x 23 (mm) |
※Official Vendor ID has been obtained from the USB Implementers Forum, Inc.
※When connecting USB, turn off the battery box and do not supply power simultaneously from USB and the battery box.
Connection Method
How to Connect your Computer (or Smartphone, Tablet) to the SPACEBLOCK Microcontroller Board
① Use a USB cable (Type A to Micro B) to connect the SPACEBLOCK microcontroller board.
※ If your computer, Chromebook, or Android smartphone/tablet does not have a USB Type-A port, you will need to prepare a USB adapter compatible with your device.<br />※ When using a cable other than the included one, please use a cable that supports data transfer. Charge-only cables cannot be used for connection.

※ When connecting the USB cable to the SPACEBLOCK microcontroller board, make sure to align the connector straight and connect it. Applying excessive force may cause malfunction.

② After logging into the SPACEBLOCK site, open the project screen.
(For first-time users, you can open it by selecting 'My Projects' → 'New Project'.)
If the message 'Device connected!' appears and the device is 'ON', the connection is complete.

③ If you want to reconnect after disconnecting the device, press the 'Device OFF' button at the top right of the project screen. A dialog box like the image below will appear, so press the 'Connect Device' button.

When 'spaceblock.jp is requesting a connection' appears, select 'SPACEBLOCK - Paired' and press the connect button.

How to Disconnect your Computer (or Smartphone, Tablet) from the SPACEBLOCK Microcontroller Board
① Press the 'Device ON' button at the top right of the project screen.
② When prompted with 'Do you want to disconnect the device?', press the 'Disconnect' button.

③ You will see a message saying 'Device disconnected'.
The disconnection between the browser and the SPACEBLOCK microcontroller board is complete.
About the Reset Button
Pressing the reset button while connected to the SPACEBLOCK microcontroller board allows you to reconnect immediately.
Connecting via USB (iPhone / iPad)
On iPhone and iPad, press 'Connect via USB' in the SPACEBLOCK dedicated app (iOS) to connect.
※ Only one device can be connected via USB on iPhone / iPad at a time; connecting multiple devices simultaneously is not supported.
iPhones and iPads with a USB Type-C port can be connected directly with a USB cable. For iPhones and iPads with a Lightning port, connect through the official Apple 'Lightning to USB Camera Adapter'.
※ Power tends to run short when lighting up LEDs and similar parts, so we recommend using a self-powered (externally powered) USB hub.
*To connect and write programs over USB from an iPhone or iPad, the SPACEBLOCK board's firmware must be up to date.
On boards that are not supported, a guide appears when you press "Connect via USB". Running the "Firmware Update" below enables connecting and writing from an iPhone or iPad.
About the Firmware Update
If your SPACEBLOCK board's firmware is out of date, log in to the web app and open "Check Firmware" in the settings menu (https://app.spaceblock.jp/upgrade) to update it to the latest version. (If the connected board is already up to date, "Up to date. No update is needed." is shown.)
After the update, boards purchased before mid-August 2024 support Bluetooth connection with the BLE module, and boards purchased in or before October 2026 support USB connection and writing from an iPhone or iPad.
Always run the firmware update on a Windows, Mac or Chromebook computer with the board connected by a USB cable. It cannot be run over Bluetooth or from an iPhone, iPad or Android device. If you do not have such a computer, the Firmware Update Service can update the board for you.
*Please use Google Chrome or Microsoft Edge (it cannot be run in Safari or Firefox).
(1) Log in to the web app and open "Check Firmware" in the settings menu (https://app.spaceblock.jp/upgrade).
(2) Press "Connect the device via USB" to connect the SPACEBLOCK board.
(3) Press "Start Update", read the notes shown, and start.
(4) The rest runs automatically. (Writing the updater program → Checking the device → Rewriting the firmware → Restoring the standard program)
It takes about 1 to 2 minutes and the progress is shown on screen. Leave the screen as it is until it finishes (the screen is kept from turning off).
Never unplug the USB cable or turn off the power until it finishes. If the power is cut partway through, the SPACEBLOCK board may no longer start up, and you may need to apply to the Firmware Update Service.
*When the update starts, the board is first restarted in write mode and its state is checked. If the check fails or the update files cannot be downloaded, the update stops without rewriting the firmware, for safety. In that case, the SPACEBLOCK board can be used as before. Boards that are already up to date are only checked (no update is made).
*If writing the update program or checking the board fails, the standard program is written back automatically and the board returns to its previous state ("The update failed and the device has been restored." is shown). If a step after rewriting the firmware fails, the standard program will be erased, but the web app detects this and guides you to initialize the board. Running "Initialize" restores it.
Standalone
Mode
You can write programs to the SPACEBLOCK microcontroller board and operate it independently. Use a battery box.
When using a battery box, make sure to disconnect the USB first, then turn on the battery box. Do not supply power simultaneously from USB and the battery box.
Activate Standalone Mode and Operate the SPACEBLOCK Microcontroller Board Independently
① Go to the screen of the project you want to write and select 'Start Standalone' from the menu at the bottom of the screen.

② Press the 'Run' button when the following image appears.

③ The writing screen will appear.
(Please wait without disconnecting the SPACEBLOCK microcontroller board from the USB cable.)

④ Once the writing is complete, disconnect the SPACEBLOCK microcontroller board.

⑤ When you connect the SPACEBLOCK microcontroller board with the included battery box or via USB power supply, the programmed program will run.

Troubleshooting
If SPACEBLOCK isn't working or you encounter any issues, try the following steps:
Some Blocks (Programs) Not Functioning Properly
If the SPACEBLOCK microcontroller board is not functioning properly due to multiple modules connected to the same pin or if the firmware version is outdated, try updating it. (If there is a new version, update instructions will be displayed during connection.)
SPACEBLOCK Not Responding While Running the Program
If the connected SPACEBLOCK microcontroller board does not respond while running the program, it may be frozen. Disconnect the USB cable and reconnect it. If powered by a battery box, turn off the power or remove it once, then reconnect it along with the USB cable.
Unable to Connect to SPACEBLOCK or No Response Even After Connection
If you cannot connect to the SPACEBLOCK microcontroller board from the programming screen, please check the following first:
- When using a cable other than the included one, make sure it supports data transfer (charge-only cables cannot be used for connection).
- When connecting via a USB hub or adapter, try a different cable/adapter or connect directly to your device's port.
If you still cannot connect, resetting the SPACEBLOCK microcontroller board may help. Follow these steps to initialize the SPACEBLOCK microcontroller board:
① Connect the SPACEBLOCK microcontroller board via USB cable.
② Press the reset button on the microcontroller board.

③ The built-in LED will light up in red, then press and hold the PA8 button during this time. (Depending on your browser, a message like 'SPACEBLOCK detected' may appear.)

④ Press the 'Device OFF' button on the project screen to reconnect. (If it reconnects automatically, press 'Device ON' to disconnect once.)
⑤ When 'Device is booting in write mode~' is displayed, press the 'Initialize' button.

⑥ Once the writing is complete, initialization is complete.

Cannot Initialize / The Firmware Update Was Interrupted (Cable Unplugged, etc.)
If the USB cable is unplugged or the power is cut during a firmware update, the SPACEBLOCK board may no longer start up.
First, try the initialization steps in "Unable to Connect to SPACEBLOCK or No Response Even After Connection" above. In most cases, initializing restores the board.
If initializing does not restore it, or you cannot initialize it, please apply to the Firmware Update Service.
No Environment to Run the Firmware Update
The firmware update is run on a Windows, Mac or Chromebook computer with the board connected by a USB cable (browser: Google Chrome or Microsoft Edge). If you do not have such an environment, for example if you only use an iPhone, iPad or Android device, the Firmware Update Service will take the board and update it for you.
Click here for the Board Firmware Update ServiceThe Board in Write Mode Does Not Appear in the List on Windows
When the board is put in write mode for a firmware update or initialization, if the SPACEBLOCK board does not appear in the list on a Windows computer, old driver information may remain.
Open Device Manager, choose "Show hidden devices" from the "View" menu, delete "SPACEBLOCK" from the list, and then plug the USB cable back in.
The Firmware Update or Writing from an iPhone / iPad Failed
If the firmware update or writing from an iPhone / iPad fails, the SPACEBLOCK microcontroller board remains in write mode.
Reconnect using 'Connect via USB' and try writing again.
If it still cannot connect, unplug and reconnect the USB cable (or press the reset button). The built-in LED will light up in red, so press and hold the PA8 button during that time to enter write mode, then try again.