Arduino Lesson 1
This tutorial will guide you on how to setup Magicbit with Arduino IDE
What is Arduino?
The Arduino Integrated Development Environment is a cross-platform application that is written in functions from C and C++. It is used to write and upload programs to Arduino compatible boards, but also, with the help of third-party cores, other vendor development boards.
Magicbit is based on ESP32 and Arduino core because Magicbit is forked from the espressif/arduino-esp32 . Therefore to programme a Magicbit with the Arduino IDE you will have to follow the follwing steps
Relase Link –https://github.com/magicbitlk/arduino-esp32/releases/download/Magicbit/package_magicbit_index.json
- Install the current Arduino IDE at the 1.8 level or later.
- Start Arduino and open Preferences window.
- Enter the release link above into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
- Open Boards Manager from Tools > Board menu and install Magicbit platform (and don’t forget to – – select Magicbit from Tools > Board menu after installation).
To check whether drivers are correctly installed open the Ardunio IDE and go the Tools menu. There should be a port (Eg:COM1) shown when plugging Magicbit to the computer as shown below. If not please follow Installation drivers section.
Magicbit has CH340 chip as USB-Serial converter which driver already packaged with Ardunio IDE. If port not shown in the Arduino as shown below please install driver from magicbit utility.
Your First Project…
- Open Ardunio IDE if not opened already.
- Select Magicbit from Tools->Boards
- Select port Tools->Ports
- Open Blink Example File->Examples->Basic->Blink
- Upload the code to the Magicbit using upload button on Arduino IDE
- If Green Led on backside of the Magicbit is blinking your have just begun the magic with Magicbit