Mixly For Arduino

November 19, 2022 | Author: Anonymous | Category: N/A
Share Embed Donate


Short Description

Download Mixly For Arduino...

Description

 

 

Mixly for Arduino  Arduino  Contents 

         

   

Introduction 1 Introduction   - 1 2 Get Started  Started - 3 3 Blocks  Blocks - 4 4 Driver  - 17 Example  - 22 5 Example

Introduction  Arduino is a very popular platform platform since since its being being Open Source Source in terms terms of both both software software and hardware. More and more people want to learn Arduino programming. But once they open the software Arduino IDE to check the samples, the complicated code frustrates them. For those without programming basics, Arduino programming is definitely a big obstacle. Fortunately, you on have Mixly –which  a free,will open source, graphical as visual programm programming ing language software based Arduino, make programming easy as building blocks.

 

 

 

The Mixly GUI software is developed based on Blockly and Java8, which can run on OS Win7 or above. The Arduino IDE installation file, instructional lessons, and sample code are included in the package.

The main interface of Mixly is concise and clear. Block categories are at left, the coding area is at the center. You can see the buttons to center, to zoom in or out, and to delete at the right side. Then the grey bar at the bottom top is the tool bar including all function menus, and the area at the very bottom, is the message display.

Get Started Download the Mixly package, get into the folder  Mixly0.995_WIN: Mixly0.995_WIN : 

 

Double click the Mixly icon

on your desktop:

For convenience, we can right-click and select Send to -> Desktop (create shortcut) to create a desktop shortcut.

Blocks The Mixly includes In/Out, Control, SerialPort, and some other block categories. Next, let’s get through what these categories cover. Note: Block categories supports Normal and Advanced views. For more functions, just click Advanced to use after you've mastered much.  much. 

 

 

  In/Out: In/Out:   DigitalRead, DigitalWrite, detachInterrupt, ShiftOut, etc.



AnalogRead,

AnalogWrite,

attachInterrupt,

 

   Control: Control:  Delay, if…do…, repeat…do…, System running time, setup, etc.  



 

 

Math: Map,  Map, Constrain, operations like +/- , sin/cos, random integer from…to… etc.    Math:



 

 

 Text: Text: text  text join, number to string, length of string, compareTo, etc.



 

 

 Lists: Lists: create  create list, get item at list, set item at list, etc.



 

 

Logic: if  if conditional statement, logical operations  Logic:



 

 

 SerialPort: SerialPort: set  set baud rate, print data, read data



 

 

 Communicate: Communicate: IR  IR receive, IR send, I2C read/write device, to SPI, etc.



 

 

 Sensor: Sensor: ultrasonic,  ultrasonic, DHT11, DS18B20



 

 

 

 Actuator: Tone control, servo and stepper control.  Actuator: Tone



 

 

 Monitor: Monitor: setup  setup LCD pin, LCD print data, set LCD I2C address



 

 

 Variables: Variables: High/Low,  High/Low, True/False, float, integer, Boolean, string variables, etc.



 

 



Functions: define  define function, do procedure with, etc.  Functions:

Driver When you connect the Arduino or SunFounder board to the computer, it may show “Unknown Device” or “USB Serial Port” with a yellow exclamation mark.  

 

“ Unknown Device” Device” or  At that time, you you need to install install the driver yourself.igh yourself.ightt-click on the “Unknown the “USB “USB Serial Port” Port” with yellow exclamation mark, and click “Update “ Update Driver Software”. Software ”. 

Then click “Browse “Browse my computer for driver software”. software ”. 

Click Browse, and select the path to MixlyRollman\Mixly0.995_WIN\Mixly0.995_WIN\arduino-1.8.2\drivers

 

 

Then click Next.

 

 

Click "Install

this driver software anyway".

 

  The driver will be installed successfully after a while. If it fails, replug the USB cable to try and repeat the previous operations.

OK. That's all for the basics of the Mixly software. We'll probe into details later in specific lessons. Get familiar with them and you will find it pretty easy to catch up the following code tutorials. Good luck!

 

 

Example Let’s start Mixly learning from programming a very simple project, blinking LED. First, make sure the LED is connected to pin 9. Drag out a digitalWrite block from In/Out.

Set pin 9 to High to light up the LED.

 

  Then drag out a Delay block from Control category

Set the value to 500, i.e. 0.5s.

Then set pin 9 to LOW in the same way, and keep this state for 0.5s. Thus the LED will be blinking.

 

  Connect the board to computer, and select the board type and port.

Upload the program, then we can see the LED blinking.

 

  http://wiki.sunfounder.cc/index.php?title=Get_started_with_Mixly

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF