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.

One more time !! PinguinoVE

I like to hear about the Pinguino community…. And the Venezuelian community of Pinguino is still very active. PinguinoVE has been created at the beginning of this project, using Pinguino to teach home made digital electronic. All the guys working on this project are proud to see what Pinguino is used for and I like to present again this great team.


The last event where PinguinoVE was presented in Venezuela is the national congress of free software. During 3 months, in 11 cities, the PinguinoVE team insured presentation and workshop. More than 30 people for each workshop and 400 people for each presentation. The main question was ‘What is Pinguino ?’ and how can it be used to expand knowledge. The audience was composed of university students,teachers, geeks, government representatives.

And, as usual, Richard Stallman was there.


PinguinoVE website is the main place to see the work of this community.
More photos here.

Thanks Alexis, Jhuliana, Joan and all the team !!
We keep in touch…..

Campus Party Workshop

Hi Guys

Pinguino workshop is more and more active. We are working on communication with sensors with Pinguino32. Infra-red communication is OK, we can now transmit messages with an infra-red led and receive them with a TSOP module. We are going to share the code today on the blog.
Today is our last session, we prepared some code to connect Pinguino32 each other, with IR, Zigbee module and finally, the communication activity will be monitored through a Linksys router with OpenWRT. Benoit is working on a graphical application with processing to display the communication activity.

As usual, Boops is working hard, day and night……….

Campus Party Valencia


As usual, Campus Party is a great event !!
After a quick presentation of Pinguino, we started a “network with sensors” workshop. The goal is to establish communication with sensors beetween PIC32-PINGUINO boards. Light, laser, zigbee, serial and interfacing with a WRT54GL for link with the net.
Fortunately, Boops is with us. He designed a shield for Pinguino 32 with 4 IR LED as transmitter and 2 IR Demodulator as receiver.

As Pinguino IDE is still an experimental version, the first day has been devoted to installation ( windows and Linux ). The second day, we started to test IR transmission and reception. Today, we will design our ‘sensor network’ and establish a common protocol.
Benoit is writing a processing application to monitor communication of modules.

Campus Party is a good way to speak about this project, exchange idea, share knowledge and more……
Now I must go to listen and Android application developement presentation. Yet another interesting subject for Pinguino !!

PIC32-PINGUINO Power Supply

I want to build a Temperature sensor powered by a solar panel. I made some test to define the comsuption of Pinguino 32 in different configuration:

First configuration:
Pinguino 32 is powered by its power connector with a 9 Vdc power supply.

The current is about 80 mA on the power supply. Power input is 0,72 Watt.

Second configuration:
Pinguino 32 is powered by its LiPo charger connector ( as it could be with a battery ).

Now the current is about 90 mA. Power input is about 0,324 Watt.
All the tests were done with a clock frequency of 80 Mhz. Then I decided to swith the clock frequency to 40 Mhz and now the current is about 60 mA with 3,6V ( 0,216 Watts ).

Now, just have to find the good solar panel………

Temperature Sensor

I built this very simple temperature sensor with a DS18B20. It is connected on a PIC32-PINGUINO and powered from the data line.


The DS18B20 library is very simple to use, just one line to check the temperature on the sensor:

#define ONEWIREBUS 9 // define the pin connected to the 18B20+ Dline

void setup()
{
Serial.begin(9600);
pinMode(8,OUTPUT);
digitalWrite(8,HIGH); // pin 8 is used to power the 18B20 ( +Vcc )
pinMode(10,OUTPUT);
digitalWrite(10,LOW); // pin 10 is used to power the 18B20 ( GND )
}

void loop()
{
TEMPERATURE t;

if (DS18B20.read(ONEWIREBUS, SKIPROM, RES9BIT, &t))
{
if (t.sign) Serial.printf(“-“);
else Serial.printf(“+”);
Serial.printf(“%d”,t.integer);
Serial.printf(“.%d”,t.fraction);
Serial.printf(“\n\r”);
}
}

Now it’s time to connect the DS18B20 and the zigbee shield to have a wireless temperature sensor !!

back view


Front view´╗┐

ZIGBEE for PIC32

Pinguino32 uses a MRF24J40MA radio module to communicate with another Pinguino32 !!

This shield uses the UEXT connector of PIC32-PINGUINO and PIC32-PINGUINO-OTG. A very simple library is used to communicate with the module. You need only to initialise the module in the setup()

ZIG.init(channel,PAN_ID,Short_Address);

then to send data, you must use the ZIG.send instruction as described below:

ZIG.send(Dest_Address,“TOTO”,4);

each module must be configured with:
– radio channel ( between 11 and 26 )
– PAN ID ( personnal area network identification between 0 and 65535 )
– address ( between 0 and 65535 ).

to receive data from another module, you must use this instruction:

length=ZIG.read(rxdata);

A simple example has been added to the example folder of revision 147 of Pinguino32X.

Have fun
JP

Pinguino32X windows

Hi Guys

Now Pinguino32X is available for windows. We worked on a lot of improvement for this release. most of the extended functions for 8 bits systems are documented on the pinguino wiki ( wiki.pinguino.cc ). For 32 bits Pinguino, this first version support our Pinguino32 compiler built from GCC4.5.2 and newlib.

You can download Pinguino32X windows here.

For 32 bits boards, our 32 bits compiler can be downloaded here.

Most of the code already existing for 8 bit Pinguino can be used on 32 bits ( Serial, CDC, I/O, analog etc… ) with much more power of course ( Pinguino32 is a 80 MIPS machine !! ).

We are waiting your opinion on this new release.

Have fun
JP