Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

A “Hello, World!” lesson is  usually designed  for   beginners to learn new programming languages. In addition, A “Hello, world!”  program is also  used as a sanity test to make sure that a programming tool is properly installed and standard output hardware works well.

So let’s  do a “Hello World” project with Mixly  as the starting point of graphical programming for Arduino tutorial and test the Arduino Serial port I/O function.

Notice:

Not much is needed for this lesson, Make sure you have a good quality syncing cable,do not pick a ‘charge only’ USB cable

Notice: Shut off your battery or Unplug your power adapter when upload sketch code to OSOYOO Basic Board for Arduino.

Connect your OSOYOO UNO board to the Computer via a A to B USB cable,then double click the Mixly software icon on your desktop.

If Mixly is not English, you should change the language first:

You can download the code directly, then click “Open” in Mixly to choose the code you download:

Download the Code

Or you can do as following operations:

“SerialPort” block:

  1. Click the “SerialPort” block;
  2. Choose the “Serial baud rate” module;
  3. Drag the “Serial baud rate” module to the blank area, default baud rate is 9600 hz;
  4. Click the “SerialPort” block again;
  5. Choose the “Serial println” module;
  6. Drag the “Serial println” module under the “Serial baud rate” block , fit the bulge  and combine two blocks together.

“Text” block:

  1. Click the “Text” block;
  2. Choose the “hello” module;
  3. Drag the “hello” module to the position shown below and change the text to “Hello World!”(3);

This program will print “Hello World!” on the serial port.

  1. After  programming is completed, you can click the “<” button to check the corresponding code on the right bar.
  2. Click “Save” after programming is done.

5-code-button-min.png (1000×594)

  1. Select the board type:
    In this lesson, we are using a Uno board, so just select “Arduino/Genuino Uno” from drop-down menu (1);
  2. Select the serial port  from the COM menu:
    This is likely to be COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). To find out, you can disconnect your OSOYOO Basic Board for Arduino and re-open the menu; the entry that disappears should be the OSOYOO Basic Board for Arduino. Reconnect the board and select that serial port.
  3. Upload the code. If the uploading fails, check board type and COM port setting in 1) 2) are all correct, also check USB cable type and connection is correct and then try again.

Finally, the status should change to ‘Upload success!’.

how_to_play.png (1150×56)

A few seconds after  uploading finishes, you should see the TX  LED on the board start to blink (in orange).

  1. Click the Serial Monitor button (1);
  2. Make sure the serial monitor’s COM port is corresponding to your OSOYOO Basic Board for Arduino port, and check if the serial monitor baud rate is same as your sketch setting.
  3. If you have successfully completed all the operations and procedures, you will see the Arduino serial continuously output the string “Hello World”.

Congratulations! You have graphically programmed a  “hello world” project in your OSOYOO Basic Board for Arduino!