Lab 1 – Hello World


  1. To familiarize Pinguino IDE
  2. Program Pinguino to drive LED on-board.


  1. PIC 18F4550 microcontroller board with pre-programmed Pinguino bootloader version 4.x.
  2. USB cable


  1.  Complete Software and Hardware prerequisite tutorials


  • Open Pinguino IDE.

  • From Toolbar at the right-hand side, click on “01.Basics“.
  • Click on folder “Blink” and open “Blink.pde“.
  • A source code file that contains programming below will show on IDE’s editor windows.
Blink a LED
void setup()
// initialize the digital pin USERLED as an output.

void loop()
toggle(USERLED); // alternate ON and OFF
delay(1000); // wait for 500ms
/* Or ...
digitalWrite(USERLED, HIGH);
delay(500); // wait for 500ms
digitalWrite(USERLED, LOW);
delay(500); // wait for 500ms
  • This programming is a simple example to let the LED blinks every 1 second.
  • Do not modify the code.
  • Goto “Settings” and select “Board Configuration“. Modify the setting as shown picture below.

  • Click “Accept“.
  • Goto “Pinguino” and select “Compile“. This will start to compile source code and if the source code is clean of error(s), IDE will pop up a small windows to inform compilation done.
  • Now connect Pinguino board to computer using USB cable.
  • Press “Reset” button on the board to let PIC boot into bootloader mode or else no code is allowed to upload to PIC.
  • Press “Upload Now!” to upload source code to PIC microcontroller.
  • If the code is successfully uploaded, a small pop up will show “File successfully uploaded to Pinguino“.
  • Now user should see the LED on the board start blinking, with 1 second interval.


Leave a Reply

Your email address will not be published. Required fields are marked *