Get the latest Pinguino IDE for Windows.

Download (57 MB) and run the new NSI Windows installer (thank you Victor, great work !) for the Pinguino Project and get the latest version of the IDE (Editor and PIC libraries).
All required softwares to run the Pinguino IDE on your system will be automatically installed. Nothing to do.
You will have choice to install (or not) the compiler you want (for 8- and/or 32-bit processors). The installer will automatically install the right compilers based on host system architecture (32- or 64-bit OS).
Please stay tuned and run the installer again to update the IDE.
Enjoy,
Régis

6 ways to blink a led with a Pinguino

Here are 6 ways to blink the built-in LED on your Pinguino board :

void setup()
{
TRISAbits.TRISA4 = OUTPUT;
}

void loop()
{
LATAbits.LATA4 = LOW;
delay(50);
LATAbits.LATA4 = HIGH;
delay(500);
}
Example 1 : with PIC registers
void setup()
{
pinMode(USERLED, OUTPUT);
}

void loop()
{
digitalWrite(USERLED, LOW);
delay(500);
digitalWrite(USERLED, HIGH);
delay(500);
}
Example 2 : the Arduino way
void setup()
{
pinMode(USERLED, OUTPUT);
}

void loop()
{
toggle(USERLED);
delay(500);
}
Example 3 : even simpler ?
void myBlink() { toggle(USERLED); }

void setup()
{
pinMode(USERLED, OUTPUT);
// Use Timer0 to toggle the USERLED every 500 ms
OnTimer0(myBlink, INT_MILLISEC, 500);
}

void loop()
{
}
Example 4 : using an interrupt
void setup()
{
pinMode(USERLED, OUTPUT);
// Enable Watchdog Timer
// Watchdog is driven by the Internal Oscillator (8MHz)
// Nominal period of Watchdog is 4ms
// Watchdog postscaler is set to 1:32768 by config. bits
// Watchdog timer will overload after 32768*4ms = 135sec = 2.25min
System.watchdog();
}

void loop()
{
System.clearWatchdog(); // clear watchdog timer
// Enter Sleep Mode
System.sleep(); // wait for watchdog timer overload
// Back to Run Mode
toggle(USERLED); // toggle the led
}
Example 5 : using the watchdog
blink.gpde
void setup()
{
pinMode(USERLED, OUTPUT);
}

void loop()
{
toggle(USERLED);
delay(500);
}
Example 6 : using the Pinguino Graphical Language

New Pinguino 45K50 !

The Pinguino 45K50 is now available as a Kit in the Pinguino Shop for 9.90 € (inc. VAT).

P45K50-03aThis new Pinguino is based on the PIC18F45K50 which is pin to pin comparable with the older 4550 serie, and is also capable of running at 5V. It also features a USB precision integrated oscillator, enabling you to build USB projects without the need of any external oscillator, and a CTMU unit for measurement applications.

The Pinguino 45K50 is also very easy to build as it needs only few components (4 resistors, 3 capacitors, 2 LEDs, 1 reset button and 1 USB connector) to work.

The PCB has been designed to be upgradeable. If you need it, you can add a 5V regulator to feed the board from an external power supply. It’s also possible to add an external crystal. In this case, note that the PCB is fully compatible with the PIC18F4550 so you can easily turn your Pinguino 45K50 to a Pinguino 4550.

The Pinguino 45K50 comes pre-programmed with a USB bootloader, so you won’t even need a programmer to use it. You only need a USB cable and a computer (PC or Raspberry Pi).

More info. and building instructions are available on the Pinguino Wiki.

Enjoy !