5 ways to blink a led with a Pinguino

Here are 5 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

<pre><code>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
christian louboutin sale,ralph lauren outlet,louis vuitton outlet uk,cheap michael kors bags,cheap wedding dresses

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. christian louboutin schuhe online,cheap ralph lauren ,cheap louis vuitton ,cheap michael kors bags uk,evening dresses on sale 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.

cheap louis vuitton speedy
cheap authentic louis vuitton speedy
louis vuitton speedy
louis vuitton speedy 35
louis vuitton speedy 25
louis vuitton speedy 30
louis vuitton speedy 40The 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 !

New library : I2C 18 bits of resolution A/D converter

#Pinguino can now drive the Microchip MCP342x family. A two channel low-noise, high accuracy delta-sigma A/D converter with differential inputs and up to 18 bits of resolution. The on-board precision 2.048V reference voltage enables an input range of ±2.048V differentially. The device uses a two-wire I2C™ compatible serial interface and operates from a single power supply ranging from 2.7V to 5.5V. The MCP342x devices perform conversions at rates of 3.75, 15, 60 or 240 samples per second depending on user controllable configuration bit settings using the two-wire I2C Compatible compatible serial interface.

#Pinguino has now it’s own (DIY) debugger

Most Pinguino boards does not have displays so debugging programs is not as easy as it could be in a real PC environment. There are also some situations where you cannot simply add breakpoints to you code and view them in your IDE because you cannot stop the program flow (real time decoding of a data stream cannot be stopped to see what happens at a certain point of the code).

One simple thing that could be done is to put along the program flow some two-digit codes as a flag evidence and pass them to an external device that would display them. So you will know where you are in the program flow and what branch is being executed. This was the original idea behind Fabio’s project.

In his article Fabio shows you the complete development and building from scratch of his tiny debugger. The aim of this project is to explain to students and hobbyists a working method that can lead from ideas to a real working device.

Pinguino IDE v11.0 preview

The new Pinguino IDE version (11.0) has not been yet officially released but it’s time to let you take a look at it. Please meet Yeison’s great work on our new github account.
Let’s make 2014 the Pinguino year !

Posted in IDE

First version of the Pinguino Web IDE soon available

Niki works hard to release the first version of the Pinguino Web IDE. Here’s the current feature list:

o Supports loading, syntax highlighting & snippets in 20 languages (Pinguino, C/C++, CSS, HTML, Javascript, JSON, Perl, PHP, Python, SVG, Text, XML, SH, AsciiDoc, Powershell, Makefile, Java, INI’s, Diff & Coffee script) so that you can use it as your main programmers editor.
o Editor runs around 100% faster than Python IDE version. – Compiles 2-3x faster.
o Auto-complete available from first entered character
o Split editor views (horizontal & vertical)
o View diffs of your source code before saving.
o Select from 24 Pinguino P8 & P32 boards
o View colour-coded hex files

As this is web based, Niki have added some tools to this IDE. Support tools include:

o Serial terminal using configuration profiles. You can choose start bits, data bits, stop bits, baud rates and view data in one of 6 modes:
1. ASCII
2. Decimal values
3. Hex values
4. Binary values
5. Octal values
6. Combo – everything above on one line per character

o Image to Raw converter. Convert any supported (by Chrome) image to various graphical display formats, including:
1. 32bpp (RGBA or ARGB)
2. 24bpp (No alpha)
3. 18bpp
4. 16bpp
5. 8bpp (various formats)
6. 1bpp (for monochrome displays)

href=”http://der-obel.de/sacs/longchamp/?phantom=longchamp+pas+cher”>longchamp pas cher
sac longchamp pas cher
sac longchamp pliage pas cher
longchamp soldes
sac longchampo Number-base converter – convert between decimal, hex, binary & octalStill to do:o Bootloaders / ICSP
o Session support

Due to a few features, this requires Chrome v34 which is currently the Canary build. Chrome 34 should be out to the general public around January 15th, so Niki will try to have the first version of the Web IDE ready for this!

Posted in IDE

Bootloaders news

Want some good news about bootloaders ?
– 8-bit Pinguino : version 5 of the bootloader is on its way (thanks to André, France) and it will be a HID bootloader based on the actual bootloader (v4.x).
– 32-bit Pinguino : version 1 of the Pinguino bootloader is also on its way (thanks to Andrej, Croatia) and it will be a compact and open source bootloader.