Search in Pinguino World !!

Showing posts with label fun. Show all posts
Showing posts with label fun. Show all posts

Wednesday, August 17, 2011

Pinguino 32 with Android.

First test of Pinguino32 with Android is done. We incorporated in Pinguino32X the IOIO ADB library and everything is working fine. My son, Thomas presents here my first Android/Pinguino application ( as usual I drive Led !! )



As most of Android devices are not yet upgraded with Android 2.3.4, we decided to use ADB protocol wich is compatible with Android 1.6 and higher. As usual in Pinguino IDE, you need only 3 instructions to establish a link with an Android device. We are currently working on the release of the Pinguino IDE. It will incorporate Zigbee, ADB and our current job is to incorporate USB Host to connect mouse, keyboard and generally all useful USB devices.

I am very proud of my first Andoid application, even is this one is not optimised as it should be !!


Many thanks to the IOIO project and Ytai Ben-Tsvi, his owner. Most of the job shown here couldn't be done without the IOIO code.

Monday, November 1, 2010

Pinguino as a real time clock

The timer 1 can be used as a real time clock. I wrote this simple example to test this function.
It will be incorporated to the tutorial website.



and this is the code to start the clock and display the result on the serial:


// Real time clock with a 18F2550 and Pinguino
// Jean-Pierre Mandon 2010
byte hours,mins,secs;
void setup()
{
// configure TIMER 1 to be used as RTCC
TMR1H=0x80;
TMR1L=0;
T1CON=0b00001111;

// init current time
hours=12;
mins=0;
secs=0;

// init interrupt for RTCC module
PIE1bits.TMR1IE=1;
INTCONbits.PEIE=1;
INTCONbits.GIE=1;

// init Serial to display time
Serial.begin(9600);
Serial.print("\r\n");
Serial.print("Pinguino clock\r\n");
}


// timer 1 is interrupt driven
void UserInterrupt()
{
TMR1H=0x80;
PIR1bits.TMR1IF=0;
secs++;
if (secs==60)
{
secs=0;
mins++;
if (mins==60)
{
mins=0;
hours++;
if (hours==24) hours=0;
}
}
}

// The main loop display time on a serial terminal
void loop()
{
if (hours<10) Serial.print("0");
Serial.print(hours,DEC);
Serial.print(":");
if (mins<10) Serial.print("0");
Serial.print(mins,DEC);
Serial.print(":");
if (secs<10) Serial.print("0");
Serial.print(secs,DEC);
Serial.print("\r");
}

Saturday, September 4, 2010

Pinguino 2550 with Fritzing

Fritzing is a design software for electronics. I love this software to design small circuits on a breadboard.
Now it is possible to use Fritzing with Pinguino board. I designed this component and incorporated it in Fritzing to draw nice Pinguino breadboards......



The Pinguino Fritzing component can be downloaded here.

You can learn everything about Fritzing here.

Sunday, April 4, 2010

Just for fun !!

I designed this special pinguino to test a technic on plexiglass. It works, but i need to wait my order of USB connector to test it :(





It could be a way to do new objects.