Warning! Windows 7 users, please refer to Windows 7 page (http://tutorial.cytron.com.my/2011/08/20/pinguino-installation-window-7/). The following steps work for window XP.
The IDE for Pinguino is written in Python. So first of all you have to install Python along with some other essential packages.
- Download and install Python 2.5.2 http://www.python.org/ftp/python/2.5.2/python-2.5.2.msi
- Download and install wxpython 2.8 http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-220.127.116.11-py25.exe
- Download and install pyusb http://sourceforge.net/projects/pyusb/files/PyUSB%200.x/0.4.1/pyusb-0.4.1.win32-py2.5.exe/download for windows XP
- Download and install libusb-win32 http://downloads.sourceforge.net/libusb-win32/libusb-win32-filter-bin-0.1.12.1.exe?modtime=1174387137&big_mirror=0
- Before connecting your board, download the Microchip modified driver provided by hackinglab: http://www.hackinglab.org/pinguino/download/driver%20pinguino%20windows/
- Extract the driver in a new folder.
- Now it’s time to connect your pinguino-board. Windows will ask for a driver. Select the driver folder you have just unpacked.
- To check you connection go to C:\Program Files\LibUSB-Win32\bin\ and run testlibusb-win.exe. You should get a bunch of data. (Containing something like – Product : Pinguino Project). If you only get 3 lines, You will have to Install LibUSB-Win32 again.
Run the IDE:
Pinguino Beta 9.05:
- Downlaod Pinguino Beta 9.05 (http://www.pinguino.cc/download/latestpinguino/lastreleasewindows.zip)
- 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):
- 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\).
- Download win32 compiler (http://www.pinguino.cc/download/testing/win32.tar.bz2) and extract into Pinguino IDE x.2 folder.
- Download and install pyserial-2.5.win32.exe (http://pypi.python.org/pypi/pyserial)
- Right click on pinguinobetax2 then click on ‘Open with’ and select python
- Go to Preferences–>Board, choose PICuno Equo (Coming soon in Cytron’s online store!)
Error Writing Program to Pinguino Board?
Since this is still the beta version, you may have problem to get the IDE running 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.
- Connect your Pinguino board with USB ICSP PIC Programmer.
- Download bootloaderV2.12.hex from http://www.pinguino.cc/download/bootloader/
- Program the bootloader into the PIC.
Run the Example: LED Blinking
Requirement: LED, 470 ohms resistor
// test blink with Pinguino
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.
- 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.