Intro: 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. Amazon DE
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 Amazon DE, 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 PIC18F4550chip after I completed building the PIC18F4550programmer .
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 , Arduinocompatible and Easy-to-build.
I was such excited to build it and try all Arduinoprojects 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:
بدأت تعلم المتحكم الدقيق منذ إحدى عشر عاماً . و كان أول ما تعلمته هو المتحكم الدقيق من عائلة
و منذ فترة قصيرة حاولت تجربة الاردوينو و كنت أود تصميم دائرة الكترونية بسيطة مشابهة باستخدام المتحكم الدقيق من عائلة
يمكنك قراءة هذه المقالة باللغة العربية
You can find this instructable on my blog :
Wish you the best. And have fun ,Live free And Read Books on Amazon
Step 1: Components
The first circuit is the circuit diagram on the Pinguino website.
And the second circuit is the one I 've built in detail.
Step 2: 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 a fret sawto cut the board into the size which the components actually fit into.
Step 3: Install Pinguino Boot Loader
The boot loader is the initial software that enables the Microcontroller to communicate with the PC through the USB port.
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.
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
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 !!
Step 4: 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
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
2- Download vcredist_x86.exe (for win32) --- If you encounter the message of not existing msvc*90.dll in Windows,it has to be installedfrom here
3- Download and Install Python from here:
4- Download and install wxPython 188.8.131.52(unicode) for Python 2.6
5- Download and install pyusb-1.0.0a2-py2.6
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
(Don't discard this file yet. In some cases the library has to be installed twice to work.)
7- Download and install pyserial
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:
Now, from the folder of Pinguino IDE ( ..\PINGUINO\x4-easy-rev959\ ) start pinguino.exe file.
Now you can open any example or Arduinosketch, compile it and then upload it into your Pinguino board and start your application.
Thank you for visiting my instructable. Have fun.
Step 5: Hello World
The example here
Show you how to send text on the USB port using CDC emulated RS232
Just copy and paste the code
HELLO WORLD CDC
// put your setup code here, to run once:
// 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
Run Hyper terminal
with the following settings:
Speed (Baud): 115200
Data bits: 8
Stop bits: 1
Flow control: XON/XOFF
Thank you for reading my instructable.
Do you like audio books and want to learn something new on the Go ?
This instructable is brought to you by Audible, the famous Audio Books Platform. You can now listen to free Audio Books from Audible.
Wish you the best. And have fun ,Live free And Read Books on Amazon
You can also find my book Learn By Making on Amazon website.
If you like this instructable you can support us by many ways:
1. Leave comments stating your point of view about this article.
2. Buy our book on Amazon Learn By Making.
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.
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.
You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.
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.
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.
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.
Thank you for visiting our instructable.
Here are some of my latest books on Amazon.