Pinguino Software Installation (Windows 7)

Pinguino IDE

Warning! Windows XP users, please refer to Windows XP page (http://tutorial.cytron.com.my/2011/08/18/pinguino-insta…tion-window-xp/). The following steps work for window 7.

LibUSB 1.2.5:

Pinguino needs LibUSB to communicate with your computer. Follow the steps below:

1)Download libusb-win32-bin-1.2.5.0.zip (http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.5.0/libusb-win32-bin-1.2.5.0.zip/download)

2)Connect your Pinguino board.

3)Install inf-wizard inside the folder(…\libusb-win32-bin-1.2.5.0\bin\inf-wizard)

  • Click <Next>
  • Select Pinguino Project(Vendor ID=04D8 / Product ID=FEAA) from list and click <Next>
  • Click <Next> and save to C:\<create your own folder name>
  • Click <Install Now..>

4)Then you need to know what processor is in your computer.

* If your computer is an X86 32 bit system:
1. go to the libusb-win32-bin-1.2.5.0\bin\x86 folder,
2. rename the file libusb0_x86.dll to libusb0.dll,
3. copy this new file in the c:\Windows\system32\ folder,
4. copy the file libusb0.sys to the c:\Windows\system32\drivers\ folder,

* If your computer is an X86 64 bit system:
1. go to the libusb-win32-bin-1.2.5.0\bin\x86 folder,
2. rename the file libusb0_x86.dll to libusb0.dll,
3. copy this new file in the c:\Windows\syswow64\ folder,
4. copy the file libusb0.sys to the c:\Windows\system32\drivers\ folder,

* If your computer is an AMD 64 bit system:
1. go to the libusb-win32-bin-1.2.5.0\bin\amd64 folder,
2. copy this new file in the c:\Windows\system32\ folder,
3. copy the file libusb0.sys to the c:\Windows\system32\drivers\ folder,

* If your computer is an intel IA64 bit system:
1. go to the libusb-win32-bin-1.2.5.0\bin\ia64 folder,
2. copy the file libusb0.dll in the c:\Windows\system32\ folder,
3. copy the file libusb0.sys to the c:\Windows\system32\drivers\ folder,

Run Pinguino IDE:

1)Download and install python 2.6.6 (http://www.python.org/download/releases/2.6.6/)

  • Select <Install for all users> and click <Next>
  • Click <Next>
  • Click <Next>
  • Installation running…
  • Click <Finish>

2)Download and install wxPython2.8-win32-unicode-2.8.12.0-py26 (http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython2.8-win32-unicode-2.8.12.1-py26.exe/download?use_mirror=cdnetworks-kr-2)

  • Click <Next>
  • Select <I accept the agreement> and click <Next>
  • Click <Next>
  • Click <Next>
  • Installation running…
  • Tick the 3 object show as picture above and click <Finish>
  • Compiling running

3)Download and install pyusb-0.4.3.win32-py2.6 (http://sourceforge.net/projects/pyusb/files/PyUSB%200.x/0.4.3/pyusb-0.4.3.win32-py2.6.exe/download?use_mirror=cdnetworks-kr-2)

  • Click <Next>
  • Click <Next>
  • Click <Next>
  • Click <Finish>

IDE:

Pinguino Beta 9.05:

1)Downlaod Pinguino Beta 9.05 (http://www.pinguino.cc/download/latestpinguino/lastreleasewindows.zip)

2)Extract pinguino in a new folder (eg: C:\Pinguinobeta905\), go to the folder and right click on pinguinobeta9-05windows then click on ‘Open with’ and select python

Pinguino IDE x.2 (still in testing stage):

1)Download Pinguino IDE x.2 (http://www.pinguino.cc/download/testing/x.2.tar.bz2) and extract pinguino in a new folder (eg: C:\Pinguinobetax2\).

2)Download win32 compiler(http://www.pinguino.cc/download/testing/win32.tar.bz2) and extract into Pinguino IDE x.2 folder.

3)Download and install pyserial-2.5.win32.exe (http://pypi.python.org/pypi/pyserial)

  • Click <Next>
  • Click <Next>
  • Click <Next>
  • Click <Finish>

4)Right click on pinguinobetax2 then click on ‘Open with’ and select python

Error Writing Program to Pinguino Board?

Since this is still the beta version, you may have problem to get the IDE running properly at this stage. After discussed the issue with talented guys there at Pinguino community, Regis Blanchot (Thanks!) offers a fix to solve the problem.

– Download Pinguinobetax2_fix.zip.

– Unzip the file and replace “pinguinobetax2.py” in your IDE folder with the one provided in with the fix. Regis wrote a python class “upu.py” to replace “vascoboot1.3.py” too. Just put “upu.py” in the same directory as “pinguinobetax2.py”.

– Then you need to rename “C:\Pinguinobetax2\p8\include\pinguino\basics” into “C:\Pinguinobetax2\p8\include\pinguino\core”. You can do the same for p32 folder.

Burn the bootloader:

The Bootloader is a small program running inside your PIC (18F2550 or 18F4550) which is responsible for transferring your user program to the program memory and handing over the control to this program afterwards. Without it your Pinguino board will have no use at all. The bootloader of your choice can be programmed using a standard PIC programmer which supports the PIC used.The first time you start your board, you must program the bootloader in the PIC with a PIC programmer.

1)Connect your Pinguino board with USB ICSP PIC Programmer.

2)Download bootloaderV2.12.hex from http://www.pinguino.cc/download/bootloader/

3)Program the bootloader into the PIC.

Run the Example: LED Blinking

Requirement: LED, 470 ohms resistor

Schematic:

Program:

// test blink with Pinguino

#define PIC18F4550

void setup()
{
pinMode(0,OUTPUT);
}

void loop()
{
digitalWrite(0,HIGH);
delay(500);
digitalWrite(0,LOW);
delay(500);
}

After your program is ready, follow the step below:

  • Click on the compile button in Pinguino IDE to compile. Make sure your compilation done and no error.
  • Click on the upload button in Pinguino IDE to upload program into PIC18F4550.
  • Push the reset button and wait for 3 sec.
  • Click 
  • The following screen will be shown when program is uploaded successfully.

If you get ‘PIC not found !!’ you have not waited long enough, just click ‘write’ again.

If you get ‘PIC found’ followed by nothing you waited too long. In this case Reset your Pinguino board, wait 3 seconds and try again.

For Pinguino Beta 9.05 IDE, the default processor is 18F2550. If 18F4550 is used, the#define 18F4550directive must be used.

For Pinguino IDE x.2, #define 18F4550 directive no more needed. You just need to go Preferences–>Board to choose the board you used.

,

Related Post

Pinguino + XBee Shield

Pinguino + Graphic LCD Shield

Pinguino + 2 Amp Motor Driver Shield

Pinguino + Input Shield

2 thoughts on “Pinguino Software Installation (Windows 7)

Leave a Reply

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