Single-color LED

From Microduino Wiki
Jump to: navigation, search

Case 1:Stars Lamps

Outline

Lit a lamp through the graphical.

Bill of Materials

  • Module
Module Number Function
mCookie-CoreUSB 1 Core board
mCookie-Hub 1 Sensor adapter
Sensor-LED 1 Single-color LED
  • Other equipment
    • USB cable*1
    • Sensor cable*1

Building hardware

  • Setup 1: Connect the interface on the back of the ColorLED with the digital interface (4) of Hub to be the pin that control the LED, and users can change it freely.
  • Setup 2: Connect CoreUSB, Hub, and the single-color LED together, and connect them to the computer with USB cable.

Mixly Programming

  • Step 1: Open the Mixly software, and drag the at the "number output" module in "input/output" tab control to theediting area.
  • Step 2: The introduction of the “number output” module.

Debugging

  • Step1: Choose the board card(CoreUSB(32u4)[usb32u416m]
  • Step2: Choose the COM port.
  • Step3: Upload the program.
  • After succeeding, the single-color LED lights with red color.
  • The above is based on being debugged on the computer. After uploading successfully, the code is in the core, and can also use battery box to supply power.
MCookie-BMPin1.jpg
  • Connect the active battery box with the BM module.