Difference between revisions of "Getting started: Microduino IDE for Mac"

From Microduino Wiki
Jump to: navigation, search
(Microduino / mCookie Setup)
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Language|Getting started: Mac}}
+
 
 
{| style="width: 80%;"
 
{| style="width: 80%;"
 
|-
 
|-
 
|
 
|
 +
 +
The guide below is a software setup guide for Mac OS aimed for general use of Microduino products.
 +
 +
For kit specific getting started guides please follow the appropriate links in the [[#Kit_Specific_Software_Setup_Guides]] section:
 +
 +
=Kit Specific Software Setup Guides=
 +
{{Clickable_headed_image_table_box_small|header=Itty Bitty City|link=Getting_Started_with_Itty_Bitty_City_(Mac)|image=File:IBC.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_small|header=mCookie 101 Basic|link=Getting_Started_with_101_Basic_Kit_(Mac)|image=File:mCookie_Basic_Kit.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_small|header=mCookie 201 Advanced|link=Getting_Started_with_201_Advanced_Kit_(Mac)|image=File:mCookie_Advanced_Kit.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_small|header=mCookie 301 Expert|link=Getting_Started_with_301_Expert_Kit_(Mac)|image=File:mCookie_Expert_Kit.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_small|header=mCookie 102 Basic|link=Getting_Started_with_102_Basic_Kit_(Mac)|image=File:mCookie_102_Basic_Kit.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_small|header=mCookie 202 Advanced|link=Getting_Started_with_202_Advanced_Kit_(Mac)|image=File:mCookie_202_Advanced_Kit.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_small|header=mCookie 302 Expert|link=Getting_Started_with_302_Expert_Kit_(Mac)|image=File:mCookie_302_Expert_Kit.png|image_size=140px|table_width=175px|table_height=150px}}
 +
{{Clickable_headed_image_table_box_clear}}
 +
<big><b>If your kit is not listed, please proceed following the general setup guide below.</b></big>
  
 
=Download=
 
=Download=
*Select the corresponding download for your Mac OS version: http://microduinoinc.com/download/
+
Download the latest MacOS IDE (Version 6.0, 2020-02-27): [http://oss.microduino.cn/download/download/Arduino%20IDE%20for%20Microduino-mac-1.8.4-V6.0.dmg <big>HERE</big>]<br clear=all>
 +
Download the latest MacOS IDE (Version 5.0, 2019-03-25): [https://microduinoinc.com/downloads/Arduino%20IDE%20for%20Microduino-mac-1.8.4-V5.0.dmg <big>HERE</big>]
 +
[[File:Arduino_Download.png|link=https://microduinoinc.com/downloads/Arduino%20IDE%20for%20Microduino-mac-1.8.4-V5.0.dmg|150px|left|thumb]]<br clear=all>
  
 
=Installation=
 
=Installation=
 +
==Security Settings==
 
*Change your settings to allow identified developers by going to: (Apple Logo) >>> '''System Preferences...'''
 
*Change your settings to allow identified developers by going to: (Apple Logo) >>> '''System Preferences...'''
 
*Then go to '''Security & Privacy'''.
 
*Then go to '''Security & Privacy'''.
Line 17: Line 35:
 
*Click the '''Lock''' icon again to lock and save changes.
 
*Click the '''Lock''' icon again to lock and save changes.
 
[[File:MacTutorial_Settings_3.png|600px]]
 
[[File:MacTutorial_Settings_3.png|600px]]
 +
==Drivers Installation==
 +
===FTDI Driver===
 
*Open the downloaded file. A folder will open containing the Microduino IDE and drivers for the hardware.
 
*Open the downloaded file. A folder will open containing the Microduino IDE and drivers for the hardware.
 
[[File:MacTutorial_1_OpenDmg.png|400px]]
 
[[File:MacTutorial_1_OpenDmg.png|400px]]
Line 27: Line 47:
 
*Follow the on-screen instructions to install the driver.
 
*Follow the on-screen instructions to install the driver.
 
[[File:MacTutorial_3_InstallDriver1.png|400px]]
 
[[File:MacTutorial_3_InstallDriver1.png|400px]]
*Once completed. Open the '''USBTTL-C Install''' folder. This is another driver that needs to be installed.  
+
===CP210X Driver===
 +
*Once completed return to the '''Drivers''' folder. Open the '''CP210X Install''' folder. This is another driver that needs to be installed.
 +
[[File:MacTutorial_2_DmgContents.png|400px]]
 +
[[File:Mac_Install_SliDriver.png|400px]]
 +
*Open '''SliLabsUSBDriverDisk.dmg'''. Follow the on-screen instructions to install the driver.
 +
[[File:Mac_Driver_Install_SliDriver_Prompt.png|400px]]
 +
===CH34x Driver===
 +
*Once completed return to the '''Drivers''' folder. Open the '''USBTTL-C Install''' folder. This is another driver that needs to be installed.  
 +
*'''<span style="color:#FF0000">Important Note</span>''': '''This driver requires you to restart your computer. Save all work before installing this driver!!!'''
 
* ('''Note''': The Mac OS X 10.6 or older package does not contain this. Therefore, you can skip this step.)
 
* ('''Note''': The Mac OS X 10.6 or older package does not contain this. Therefore, you can skip this step.)
 +
[[File:MacTutorial_2_DmgContents.png|400px]]
 
[[File:MacTutorial_4_DriverFolder.png|400px]]
 
[[File:MacTutorial_4_DriverFolder.png|400px]]
 
*Open '''CH34x_Install.pkg'''. Follow the on-screen instructions to install the driver.
 
*Open '''CH34x_Install.pkg'''. Follow the on-screen instructions to install the driver.
 
[[File:MacTutorial_5_InstallDriver2.png|400px]]
 
[[File:MacTutorial_5_InstallDriver2.png|400px]]
 +
==Application Copying==
 
*Drag the '''Arduino for Microduino.app''' application to your '''Applications''' folder to install the IDE.
 
*Drag the '''Arduino for Microduino.app''' application to your '''Applications''' folder to install the IDE.
 
<br>
 
<br>
Line 42: Line 72:
 
[[File:MacTutorial_8_LaunchApp.png|400px]]
 
[[File:MacTutorial_8_LaunchApp.png|400px]]
  
=Microduino / mCookie Setup=
+
=Microduino / mCookie CoreUSB Setup=
<div class="toccolours mw-collapsible mw-collapsed" style="width:60em;">
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px; text-align:center;">  
This section is for Microduino CoreUSB or mCookie CoreUSB ONLY. Otherwise, skip to the next section.
+
[[File:Microduino-core32U4-rect-nologo.jpg|200px]] [[File:MCookie-core32U4-rect.jpg|200px]]
<br>Expand to view contents.  
+
<br>For '''Microduino CoreUSB''' or '''mCookie CoreUSB''' ONLY. '''Expand''' to view contents.
<div class="mw-collapsible-content">
+
<br>Otherwise, skip to the next section.
 +
<div class="mw-collapsible-content" style="text-align:left;">
 +
<hr>
 
*Connect [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] to your computer. A popup will appear. Click continue.
 
*Connect [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] to your computer. A popup will appear. Click continue.
[[File:mCookie_GettingStart_1_EN.png|500px|center|thumb]]
+
[[File:mCookie_GettingStart_1_EN.png|500px|center|thumb]]<br>
 
*Your Mac is trying to recognize the new device. Briefly press the key to the right of your shift key.
 
*Your Mac is trying to recognize the new device. Briefly press the key to the right of your shift key.
[[File:mCookie_GettingStart_2_EN.png|500px|center|thumb]]
+
[[File:mCookie_GettingStart_2_EN.png|500px|center|thumb]]<br>
 
*A popup will appear saying that your keyboard cannot be recognized. Click "Skip".
 
*A popup will appear saying that your keyboard cannot be recognized. Click "Skip".
[[File:mCookie_GettingStart_3_EN.png|500px|center|thumb]]
+
[[File:mCookie_GettingStart_3_EN.png|500px|center|thumb]]<br>
 
*Select the keyboard layout for your region (ANSI for most users). Click done.
 
*Select the keyboard layout for your region (ANSI for most users). Click done.
[[File:mCookie_GettingStart_4_EN.png|500px|center|thumb]]
+
[[File:mCookie_GettingStart_4_EN.png|500px|center|thumb]]<br>
 
</div>
 
</div>
 
</div>
 
</div>

Latest revision as of 00:00, 28 February 2020

The guide below is a software setup guide for Mac OS aimed for general use of Microduino products.

For kit specific getting started guides please follow the appropriate links in the #Kit_Specific_Software_Setup_Guides section:

Kit Specific Software Setup Guides

If your kit is not listed, please proceed following the general setup guide below.

Download

Download the latest MacOS IDE (Version 6.0, 2020-02-27): HERE
Download the latest MacOS IDE (Version 5.0, 2019-03-25): HERE

Arduino Download.png

Installation

Security Settings

  • Change your settings to allow identified developers by going to: (Apple Logo) >>> System Preferences...
  • Then go to Security & Privacy.

MacTutorial Settings 2.png

  • Click on then Lock icon and enter your credentials to be able to change settings.
  • Under Allow apps download from: select App Store and identified developers
  • Click the Lock icon again to lock and save changes.

MacTutorial Settings 3.png

Drivers Installation

FTDI Driver

  • Open the downloaded file. A folder will open containing the Microduino IDE and drivers for the hardware.

MacTutorial 1 OpenDmg.png

  • Open the Drivers folder. Drivers are needed to communicate with the Microduino hardware.

MacTutorial 2 DmgContents.png

  • Install ONE of the driver packages:
    • Driver_OS10.3.mpkg if you have Mac OS 10.3 or below.
    • Driver_OS10.4-10.8.mpkg if you have Mac OS 10.4 to Mac OS 10.8.
    • Driver_OS10.9-Newer.mpkg if you have Mac OS 10.9 or newer.
  • Follow the on-screen instructions to install the driver.

MacTutorial 3 InstallDriver1.png

CP210X Driver

  • Once completed return to the Drivers folder. Open the CP210X Install folder. This is another driver that needs to be installed.

MacTutorial 2 DmgContents.png Mac Install SliDriver.png

  • Open SliLabsUSBDriverDisk.dmg. Follow the on-screen instructions to install the driver.

Mac Driver Install SliDriver Prompt.png

CH34x Driver

  • Once completed return to the Drivers folder. Open the USBTTL-C Install folder. This is another driver that needs to be installed.
  • Important Note: This driver requires you to restart your computer. Save all work before installing this driver!!!
  • (Note: The Mac OS X 10.6 or older package does not contain this. Therefore, you can skip this step.)

MacTutorial 2 DmgContents.png MacTutorial 4 DriverFolder.png

  • Open CH34x_Install.pkg. Follow the on-screen instructions to install the driver.

MacTutorial 5 InstallDriver2.png

Application Copying

  • Drag the Arduino for Microduino.app application to your Applications folder to install the IDE.



MacTutorial 6 DragApp.png]

  • The software is now installed and ready to use. Double-click the application to launch it!

MacTutorial 7 InstalledApp.png MacTutorial 8 LaunchApp.png

Microduino / mCookie CoreUSB Setup

Microduino-core32U4-rect-nologo.jpg MCookie-core32U4-rect.jpg
For Microduino CoreUSB or mCookie CoreUSB ONLY. Expand to view contents.
Otherwise, skip to the next section.


MCookie GettingStart 1 EN.png

  • Your Mac is trying to recognize the new device. Briefly press the key to the right of your shift key.
MCookie GettingStart 2 EN.png

  • A popup will appear saying that your keyboard cannot be recognized. Click "Skip".
MCookie GettingStart 3 EN.png

  • Select the keyboard layout for your region (ANSI for most users). Click done.
MCookie GettingStart 4 EN.png

Confirm Drivers Installed Successfully

Confirm that the drivers are installed successfully based on your hardware.

Refer to the table below for which programmer each kit uses:

Programmer Contained in Kit Programmable Boards
USBTTL 102 Basic Kit Core, Core+, CoreRF
mBattery Itty Bitty City, 202 Advanced Kit, 302 Expert Kit Core, Core+, CoreRF
(CoreUSB)* X01 Series Kits: 101 Basic Kit; 201 Advanced Kit; 301 Expert Kit CoreUSB
  • NOTE: CoreUSB is a core module with an integrated programmer.

USBTTL

  • Connect Microduino-USBTTL to your computer. Verify that there are available Port options under Tools.
MicroduinoGettingStart-USBTTL mac1.jpg

CoreUSB

MicroduinoGettingStart-CoreUSB mac1.jpg

mBattery

MBattery-t.jpg
IMPORTANT: Ensure that mBattery is "ON" by pressing and holding the button. A red LED should be on, which indicates that power is being supplied to the modules.
  • Verify that there are available Port options under Tools.
MacTutorial CH340 Port.png

Selecting Board Type and Processor

Selecting the Board Type and Processor is required to compile the correct code for the core module.

Configuring the software is done under Tools > Board and Tools > Processor.

Below is the table which lists all the core modules with corresponding Board and Processor. The table also lists kits that contain specific core modules.

Example usage would be for the Core module in Itty Bitty City. Board is Microduino/mCookie-Core (328p) and Processor is Atmega328P@16M,5V.

Name Board Processor Contained in Kit
Core (168pa) Microduino/mCookie-Core (168pa) Atmega168pa@8M,3.3V
Atmega168pa@16M,5V
Core (328p) Microduino/mCookie-Core (328p) Atmega328P@8M,3.3V
Atmega328P@16M,5V Itty Bitty City Kit, X02 Series Kits: 102 Basic Kit; 202 Advanced Kit; 302 Expert Kit
Core+ (644pa) Microduino/mCookie-Core+ (644pa) Atmega644pa@16M,3.3V
Atmega644pa@16M,5V 302 Expert Kit
Core+ (1284pa) Microduino/mCookie-Core+ (1284pa) Atmega1284pa@8M,3.3V
Atmega1284pa@16M,5V
CoreUSB Microduino/mCookie-Core USB (32u4) USB X01 Series Kits: 101 Basic Kit; 201 Advanced Kit; 301 Expert Kit
CoreRF Microduino/mCookie RF (128rfa1)

Determining Processor Variant

Core

MicroduinoGettingStart-Core3V3.jpg MicroduinoGettingStart-Core+3V3.jpg

Core+

MicroduinoGettingStart-Core5V.jpg MicroduinoGettingStart-Core+5V.jpg

Arduino IDE Basics

Interface

MicroduinoGettingStart-IDE1.jpg
  • [Verify]: Checks for errors in the code.
  • [Upload]: Uploads the program to a MCU.
  • [Serial Monitor]: Useful in debugging programs.

Tools

MicroduinoGettingStart-Tools1.jpg
  • [Board]: Select the corresponding core module to which the program is being uploaded.
  • [Processor]: Select the corresponding processor.
  • [Port]: Select the common USB port.

Uploading Code

  1. Select board type and processor.
  2. Select the port.
  3. Click upload.


  • Note: If using mBattery to upload to a core module. Ensure that mBattery is "ON" and supplying power to the modules. There will be a red LED on.

MBattery-t.jpg