Pinguino Egypt - PIC Based Arduino
It 's been eleven years since I first started learning and building my first Microchip PIC Microcontroller circuit. I really like this Microcontroller family.
Recently, I started reading and trying some Arduino.
I really wished to build a similar circuit based on the Microchip PIC. Even I started to think to design a circuit of my own. I searched online and I found Pinguino.
Just like Arduino, there are many versions of Pinguino using different Microcontrollers from Microchip. I wanted to build the version using PIC18F4550.
I found Pinguino before this time and saw it among many other Arduino clones , but this time was really different.
I was ready to start making circuits with the PIC18F4550 chip after I completed building the PIC18F4550 programmer .
So I decided to start from where the others have reached.
I 've decided to build this magnificent circuit that brings all my dreams together,
PIC based , Arduino compatible and Easy-to-build.
I was such excited to build it and try all Arduino projects with it. So, I started to collect the data and components to start working.
I also wanted to try the PC Software/Embedded Software communication.
Although I was determined to build the circuit on a copper board to stay with me and use it many times, I wanted to quickly assemble it on a bread board to try it ASP !!!
Here are some useful links:
http://wiki.pinguino.cc/index.php/PIC18F4550_Pinguino
http://wiki.pinguino.cc/index.php?title=File:Pin_pinguino_18F4550_%282%29.png&limit=500
http://blog.pinguino.cc/
http://www.hackinglab.org/pinguino/
http://jpmandon.blogspot.com/
https://sites.google.com/site/pinguinotutorial/home
Components
Material I built my board with :
1 Copper Board ( VeroBoard or Stripboard or Perfboard )
1 PIC 18F4550
1 40 Pin IC Socket
1 USB Type B Socket
1 20MHz Crystal
1 220nF Capacitor
1 100nF Capacitor
2 22pF Capacitors
1 Push Button
1 Dip Switch
1 10k Ohm Resistor
1 7805 Voltage Regulator
1 9v Battery Connector
1 Female Pin Header
1 1N4001 Diode ( or any other general purpose diode )
2 Rows of Pin Headers
This circuit is the circuit diagram on the Pinguino website.
And this circuit is the one I've built in detail.
Start Soldering
There are many instructables and other online tutorials for soldering.
I used a large verro board because I didn't know how exactly the circuit will occupy.
I started to solder the components on the board.
After I finished assembling and soldering, I used an architects saw to cut the board into the size which the components actually fit into.
Install Pinguino Boot loader
It also enables the Microcontroller to self update its software sent on the USB port.
This is the link were you can get the boot loaders of your circuit. In my circuit, I 've chosen the PIC18F4550 Microcontroller with the 20MHz Crystal
http://pinguino32.googlecode.com/svn/bootloaders/8/usb/v4.x/hex/
The 18F4550 Microcontroller chip is a self programming Microcontroller.
This means that the Pinguino board can be used to update its Firmware to a new one making it capable of doing a new function.
Initially , the Microcontroller cannot directly communicate with PC using USB port. But it can be programmer as a normal Microcontroller.
You can program your chip on an external USB or Serial Microcontroller programmer.
You have to do this step only once. After this, when completing Pinguino, you will not have to use a programmer any more.
I installed the bootloader using a simple programmer I previously built. It is called JDM Programmer .
You can build it your self. It is simple and direct.
Here is a link for the Instructable of the programmer
http://www.instructables.com/id/18F4550-Programmer-in-Ten-years/
I used the PicPGM programmer with my serial JDM programmer to load the target bootloader file (Bootloader_v4.13_18f4550_X20MHz.hex)
After successfully install the Bootlader Hex file on the Microcontroller chip , you can insert it into the Pinguino board.
Congratulations , you have completed the Pinguino board Hardware part !!
Pinguino IDE Installation
The Pinguino IDE is the software part of the Pinguino where you can develop code for your project, compile it and then upload it into your Pinguino board.
Here is how to install the Pinguino IDE on Windows Xp
http://wiki.pinguino.cc/index.php/Windows
It may looks a little bit long. But believe me , it's not complicated.
It is simple and strait forward steps.
Here what I 've done simply :
1- Download and extract Pinguino IDE for window form here
https://code.google.com/p/pinguino32/downloads/detail?name=Pinguino-IDE-snapshot-i386-unknown-win32-20131209-rev959.7z&can=2&q=
2- Download vcredist_x86.exe (for win32) --- If you encounter the message of not existing msvc*90.dll in Windows,it has to be installed from here
http://www.microsoft.com/en-us/download/details.aspx?id=5582&WT.mc_id=MSCOM_EN_US_DLC_DETAILS_131Z4ENUS22004
3- Download and Install Python from here:
http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
4- Download and install wxPython 2.8.12.1(unicode) for Python 2.6
http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.12.1-py26.exe
5- Download and install pyusb-1.0.0a2-py2.6
http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-alpha-2/pyusb-1.0.0a2.zip/download
To install Pyusb module , you have to follow the next steps :
- Add python path to the PATH variable .. for example c:\python27
- Extract pyusb folder on any location of your hard disk
- Open the command prompt and change directory to the pyusb directory.
- Run the command python setup.py install
- Make sure that the Pyusb module is installed by python directory and look for site-packages folder .. for example : C:\Python27\lib\site-packages if you can find usb folder inside then pyusb is successfully installed.
- You can now remove the Pyusb source folder.
6 - 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
(Don't discard this file yet. In some cases the library has to be installed twice to work.)
7- Download and install pyserial
http://sourceforge.net/projects/pyserial/files/pyserial/2.5/pyserial-2.5.win32.exe/download
Now , with a printer USB cable, connect your Pinguino board to the PC. You 'll get the Found New Hardware popup message.
8- Download and Extract Driver from here:
http://www.hackinglab.org/pinguino/download/driver%20pinguino%20windows/driver%20pinguino%20windows.tar.gz
Now, from the folder of Pinguino IDE ( ..\PINGUINO\x4-easy-rev959\ ) start pinguino.exe file.
That's it.
Now you can open any example or Arduino sketch, compile it and then upload it into your Pinguino board and start your application.
Hello World
The example here
http://wiki.pinguino.cc/index.php/Basics#Hello_World
Show you how to send text on the USB port using CDC emulated RS232
Just copy and paste the code
/*
-------------------------------------------------
HELLO WORLD CDC
-------------------------------------------------
*/
void setup()
{
// put your setup code here, to run once:
}
void loop()
{
// put your main code here, to run repeatedly:
if (CONTROL_LINE) CDC.println("\n\r Hello World !!!");
}
And windows xp will ask for a driver software .
You can find it under Pinguino IDE Folder
..\PINGUINO\x4-easy-rev959\extra\drivers\CDC
Run Hyper terminal
with the following settings:
Choose the com port which the Pinguino driver you installed has created. ( ex. Com 4 )
Speed (Baud): 115200
Data bits: 8
Stop bits: 1
Parity: None
Flow control: XON/XOFF
يمكنك قراءة هذه المقالة باللغة العربية
You can read this article in Arabic
Here is the article on my instructables.com page :
http://www.instructables.com/id/Pinguino-Egypt-PIC-Based-Arduino/
Thank you for visiting my blog. Have fun.
إذا أعجبتك هذه المدونة يمكنك دعمنا بأحد هذه الطرق المجانية لاستمرار نشر مثل هذه المقالات
اترك تعليقاً لنشر وجهة نظرك بخصوص هذه المقالة
قم بشراء كتابنا على موقع أمازون أو مشاركته مع أصدقاءك من المهتمين بكتب الإلكترونيات
قم بالضغط على الروابط الخاصة بالمواقع الداعمة لنا بدون إضافة أى تكلفة عليك إذا قمت بالشراء من هذه المواقع . وفى الحقيقة معظم الخدمات والمنتجات المعروضة هنا مجانية تماماً مما يعنى أنك لن تقوم بدفع أى مبالغ وفى الوقت نفسه تقوم بدعمنا وتستفيد من هذه الخدمات
هذا الرابط خاص ببرامج كيندل المملوك لموقع أمازون
برنامج كيندل مجانى تماماً ويمكنك من قراءة الآلاف من الكتب الإلكترونية ويعمل على كل الأجهزة . على أجهزة كيندل وعلى الكومبيوتر الشخصى والتالبلت بجميع أنواعه والهواتف الذكية آيفون وأندرويد. كما أنك يمكنك القراءة على أى من هذه الأجهزة بدون تثبيت أى برامج من خلال القراءة على متصفح الإنترنت من خلال
Kindle Cloud Reader
كما أن هناك العديد من الكتب الإلكترونية المجانية تماماً كما أن هناك الكتب المتاحة لكى تشتريها من موقع أمازون الشهير
هذه الخدمة مقدمة من موقع أمازون للإشتراك الشهرى مع عرض الإشتراك لأول شهركامل مجاناً مع إمكانية الحصول على العديد من الكتب المدفوعة مجاناً تماماً مع إمكانية إلغاء الإشتراك فى أى وقت بدون دفع أى مبالغ
خدمة أمازون برايم هى أحد الخدمات المميزة التى يقدمها موقع أمازون الشهير و التى تتيح من خلالها العديد من العروض والتخفيضات القيمة والمنتجات المميزة وخدمة الشحن المجانى والشحن فى يوم واحد عند الشراء
أيضاً هذه الخدمة مدفوعة ويمكنك تجربتها مجاناً لمدة شهر بدون دفع أى رسوم أو مبالغ إضافية مع إمكانية الإلغاء فى أى وقت
موقع أوديبل هو أحد مواقع أمازون وهو مختص بالكتب الصوتية المسموعة بكافة أنواعها
Audio Books
منها الكتب العلمية والروايات والكتب التاريخية والدروس والبودكاست
يمكنك الإستمتاع بهذه الفرصة الدائمة للإشتراك المجانى لمدة شهر فى هذا الموقع مع إمكانية تحميل أى كتابين مجانيين مع إمكانية الإلغاء فى أى وقت خلال هذا الشهر وبدون أى رسوم
إذا كان لديك مولود أو تتوقع مولوداً جديداً يمكنك الإشتراك المجانى فى قائمة المولود من موقع أمازون والتى يمكنك من خلالها الإطلاع على أحدث العروض والمنتجات الخاصة بالمولود مع إمكانية عمل قائمة الأمنيات وجعل هذه القائمة ظاهرة لأصدقائك مما يمكنهم من معرفة أفضل الهدايا للمولود أو مختفية ولاتظهر إلا لك فقط
يمكنك زيارة موقعنا الجديد
شكراً على زيارة مدونتنا كل يوم فكرة عربية
If you like this blog you can support us by many ways:
1. Leave comments stating your point of view about this article.
3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
This means that you can enjoy something for free and still support our blog to keep posting useful stuff.
Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices
This is the well-know Amazon Kindle platform. If you sign up for the free reader from Amazon to read any book, we get commission.
There are many useful book for free on Amazon Kindle. Even you can find best sellers offered for free on Kindle format.
The best part is you can have the application on any platform. You can even read any book without installing any application by using Amazon Cloud-Reader on your browser.
Join Amazon Kindle Unlimited 30-Day Free Trial
You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.
Try Amazon Prime 30-Day Free Trial
The Amazon Prime is a special paid service from Amazon that offers good promotions and one-day free shipment for Amazon Shoppers. You can try this service for 30 days. You can cancel you subscription anytime.
Shop Amazon - Give the Gift of Amazon Prime
Try Audible and Get Two Free Audiobooks
Audible is the audio books website from Amazon. Many Kindle books are sold on Audible. You can try this service for free and get 2 free book. You can cancel you subscription anytime.
Shop Amazon - Create an Amazon Baby Registry
If you have a new baby borne or expecting one, you can create your free baby registry to easily save products and get offers and promotions on baby requirements.
4. Visit our new website outatime.tech.
Thank you for visiting our blog.