pdf-icon

Butterfly Launcher

SKU:A041-B

Description

The Butterfly Launcher is a cool butterfly model launcher. Compared to the old version, the new launcher is equipped with a MEGA328 microprocessor, a lithium battery component, 18 colorful LEDs, and provides two expansion ports (for power and serial communication). In actual use, multiple devices can be connected in series and controlled independently.

Features

  • Expandable connection
  • RGB LED
  • Supports UIFlow (Blockly/graphical language)

Includes

  • Butterfly Launcher
  • Paper butterfly model
  • CONNEXT connection cable
  • Rubber band

Applications

  • Fashion technology
  • STEM education

Specifications

Specification Parameter
Battery Capacity 120mA
RGB LED x 18
Communication Method UART
Net Weight 68g
Gross Weight 68g
Product Dimensions 45 x 35 x 32mm
Package Dimensions 110 x 110 x 30mm

Learn

Serial communication mechanism: When connecting multiple devices in series, to accurately send instructions to a specific device, we attach an "id" variable in the code. As the instruction is transmitted serially through the controller to the device, the variable decreases by one each time it passes a device. The device that reads the variable as 0 executes the command.
Therefore, 1, we can independently control any one of the serial devices and individually set their LED color, blinking mode, brightness, and servo status. 2, As shown in the video below, there is a certain delay when demonstrating the LED lights. Assuming each device has a 100ms delay and we have a total of 10 devices, the last device will have a 1s delay. To optimize this delay, we can program the first device to wait for the last device (due to the nature of the protocol, the delay is unavoidable).

Button Functions (Front)

  • Right: Single click to turn on the power, double click to turn on the power.
  • Left: Long press until the LED circle changes to another color, release the button. Then short press it to adjust the servo arm. Repeat the process to get the correct position.

Assembling the Butterfly Model

External Power Supply (An external power supply is needed for stability when more than 10 devices are connected)



Note:

    1. Add power at the end of the line, or use (HY2.0-4P-usbA connection cable + power bank) or (HY2.0-4P-usbA connection cable + 5V charger)
    1. HY2.0-4P 2 usbA connection cable
    1. Wall plug with HY2.0-4P male port
    1. Connect the device using m5go, connect an additional power supply at the end.
    1. Use uiflow test code to test the line, ensure each device works properly.
    1. Use the button on the device to load the butterfly.
    1. Program the button on the M5GO to launch the butterfly.

PinMap

Mega328 ISP download interface pin definition

Softwares

UiFlow1

Regarding the control program, we have encapsulated a special program block in UIFLow, allowing you to easily write control programs. Below is how to add a program block in UIFLow.

    1. Navigate to "Custom", click "Open" * m5d
    1. Select butterfly.m5d
    1. Expand the Custom option, select the butterfly program block.

Video