記事一覧

M5Stack Arduino IDE initial setting (macOS)

M5Stack Arduino IDE initial setting (macOS)



Hello everyone! I’m RoboTakao!

I recently bought MStack Gray at Make Faire Tokyo 2018. I tried to work.

M5stack00.jpg

Start up by connecting USB to M5Stack. A sample program for factory shipment works.



First of all, it is the initial setting for use with Arduino IDE.

Steps
1) Installing the USB driver
2) Setting on terminal on Mac side
3) Arduino IDE settings

1)Installing the USB driver

First go to the Official site (http://m5stack.com) and click the "Get Start" tab

M5stack01.png

Click the link of SiLabs CP 2104 Driver
M5stack02.png

Look for the driver for macOS and click

M5stack03.png
M5stack04.png

As the disk image SiLabsUSBDriverDisk.dmg is downloaded, mount it.
Proceed according to the instructions OK

M5stack05.png

M5stack06.png

M5stack07.png

M5stack08.png

M5stack09.png

M5stack10.png

M5stack11.png

M5stack12.png

2)Setting on terminal on Mac side

Click Instructions for Mac and follow the instructions.

M5stack13.png

Open a terminal and type the following command

M5stack15.png

mkdir -p ~/Documents/Arduino/hardware/espressif && \
cd ~/Documents/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python get.py

Although it did not happen in my environment, please do the following when the following error occurs.

M5stack16.png

xcode-select –install

3) Arduino IDE settings
First, if Arduino IDE is not installed, install it.

Start up Arduino IDE
Choose Sketch -> Include Library -> Manage Libraries...

M5stack17.png

Type m5stack into the search box.
Click the row to select the library.
Click the Install button to install the library.

M5stack18.png

Click "File-> Examples". Here are some test programs in "M5Stack->"

M5stack19.png

Try to open a sketch called HelloWorld inside Basics.

M5stack20.png

tools -> Boards -> M5Stack-Core-ESP32

M5stack21.png

tools -> Serialports -> /dev/cu.SLAB_USBtoUART

M5stack22.png

Although there was no problem in my environment,
Sometimes Slab_USBtoUART does not appear in some cases.
In this case, open security and privacy in the system preferences and set it to "permit".

M5stack23.png

M5stack24.png

M5stack25.png

Compile and write in the same way as Arduino.

HelloWorld is displayed on the screen.

M5stack27.jpg

Good Bye! Thank you!

スポンサードリンク

コメント

コメントの投稿

非公開コメント

プロフィール

RoboTakao

Author:RoboTakao
みなさんご訪問ありがとうございます。ロボット作りたいけどお小遣いそんなにないし、簡単でローコストでロボットを作るための私のプロジェクトを紹介します。

ウェブサイトもありますのでそちらもよろしくお願いします。
http://robotakao.jp/

スポンサーリンク