Connecting
Hardware with
Programming
Week 02
Magicbit Introduction with New Blocks
With MagicCode you will get specially designed
blocks to control Magicbit.
With these blocks, you can directly access the pins
on Magicbit and sensors on Magicbit.
Magicbit Introduction with New Blocks
Also, you can use your onboard display with
these new blocks.
Magicbit Introduction with New Blocks
You can directly access the onboard
Potentiometer, Buzzer, LDR, and motor
drivers with these blocks.
Device set up with MagicCode
There are two ways to connect a MagicBit to the computer.
1. Through a USB cable from 2. Wirelessly through WiFi (Useful
a serial connection. when using MagicCode for robotics
and sensing applications).
Device set up with MagicCode
1. Through a USB cable from a serial connection.
Connect your device to the pc with a USB Connector.
Device set up with MagicCode
1. Through a USB cable from a serial connection.
Upload magicCode firmware using Magicbit Uploader
Select the correct serial port and click on Select USB option. Then magiccode
magiccode icon. firmware will be loaded onto the
Magicbit.
Device set up with MagicCode
1. Through a USB cable from a serial connection.
Go to the Device tab in the downright corner of the MagicCode interface.
Select Live Mode. Select your Device by Select MagicBit.
clicking the Select button.
Device set up with MagicCode
1. Through a USB cable from a serial connection.
Select the Serial port where the device is connected.
If you don’t see any
port in the select
port menu, then click
Click on the USB the refresh button.
mode button. Then
serial port
selection menu will
appear. Select the correct
port of your board.
Device set up with MagicCode
1. Through a USB cable from a serial connection.
Click the connect button and connect your device to MagicCode.
After the device has connected, the “Connect” button changes to the “Disconnect”
button and the icon changes.
Device set up with MagicCode
2. Wirelessly through WiFi
Connect your device to the pc with a USB Connector.
Device set up with MagicCode
2. Wirelessly through WiFi
Upload magicbitOS firmware using Magicbit uploader.
Select the correct serial port
and click on magicbitOS button.
Now you can connect the board to a battery, a power bank, or a phone charger brick.
and wirelessly program the Magicbit.
Device set up with MagicCode
2. Wirelessly through WiFi
Boot from MagicCode.
On the boot menu, using
the left key, select
MagicCode and press the
right key to load it.
Device set up with MagicCode
2. Wirelessly through WiFi
Connect to MagicCode
Then a SSID and a
password will appear on
the screen.
Device set up with MagicCode
2. Wirelessly through WiFi
Go to wifi settings in the computer and select the wifi SSID name displayed on the
Magicbit screen with the password. This will connect the board with the computer via
wifi to communicate wirelessly.
Device set up with MagicCode
2. Wirelessly through WiFi
Start building with magiccode
Open MagicCode
software and select the
devices tab.
Device set up with MagicCode
2. Wirelessly through WiFi
Choose the Wi-Fi option and click on If everything works properly
connect. This will connect the disconnect button will appear.
software to the board.
Activity
Display your name on
the Magicbit display
screen.
Activity
Display your name on the Magicbit display screen.
You will need the following blocks to do the activity.
Activity
Display your name on the Magicbit display screen.
Make the following arrangement using the blocks.
Replace with your name
Click on the flag.
Activity
Display your name on the Magicbit display screen.
Result