Hey guys! I am back after 2 months with an awesome project. This is a complete tutorial to make PIC microcontroller based Arduino, which can run Arduino programs on PIC18F4550 or PIC18F2550 microcontroller, one advantage on this microcontroller is that it doesn't require any external programmers, since it has inbuilt USB support. So guys, let's get started!
Step 1: Things Needed- PIC18F2550 (28pin) x1
- Crystal 20Mhz x1
- Capacitor -22pf x2
- Resistor 470ohm x2
- USB B type PCB mount x1
- Capacitor 220nf x1
- Jumpers (a few)
- LED x1 or 2
- Push button
- Resistor 10K ohm x1
Connect all the components as shown in the circuit diagram on Breadboard or you can make your own PCB board, here I used Breadboard for my project.
Step 3: Downloading PINGUINO IDEDownload Pinguino IDE from this website: http://www.pinguino.cc/download.php
Step 4: Download Bootloader File!https://github.com/PinguinoIDE/pinguino-bootloader...
Step 5: I used PICKIT2 which I Purchased it from Amazon Indiahttps://electrosome.com/pickit2/
Here we just need to put microcontroller on to the ZIF socket and connect it to PC, open PICKIT2 software and upload the code.
NOTE: If you are using standard PICKIT2 then follow next step!
Step 6: How to use PICKIT2 to Upload HEX file to the PIC microcontrollerDownload PICKIT2 software here: http://pickit2.software.informer.com/download/
Download PDF from Microchip on uploading HEX file to PIC microcontroller using PICKIT2: http://ww1.microchip.com/downloads/en/DeviceDoc/PI...
PICkit is a family of programmers for PIC microcontrollers made by Microchip Technology. They are used to program and debug microcontrollers, as well as program EEPROM. Some models also feature logic analyzer and serial communications (UART) tool. The PICkit 2 — introduced in May 2005 — replaced the PICkit 1. The most notable difference between the two is that the PICkit 2 has a separate programmer/debugger unit which plugs into the board carrying the chip to be programmed, whereas the PICkit 1 was a single unit. This makes it possible to use the programmer with a custom circuit board via an In Circuit Serial Programming (ICSP) header. This feature is not intended for so-called "production" programming, however. The PICkit 2 uses an internal PIC18F2550 with Full Speed USB. The latest PICkit 2 firmware allows the user to program and debug most of the 8 and 16 bit PIC micro and dsPIC members of the Microchip product line.
More info from this website: https://www.pantechsolutions.net/microcontroller-b...
Step 7: After BootloadingMake Pinguino circuit and connect it to the computer through USB, upload Pinguino project drivers. You can download it from Pinguino official website and everything is ready to Code.
Step 8: Pinguino BLINKvoid setup()
{
pinMode(USERLED, OUTPUT);
}
void loop()
{
digitalWrite(USERLED, LOW);
delay(50);
digitalWrite(USERLED, HIGH);
delay(50);
}
For more examples: http://wiki.pinguino.cc/index.php/6_ways_to_blink_...
Step 9: Uploading code to Pinguino boardStep 10: Build Your own Pinguino on PCBBuild your own PCB and solder all components. I have uploaded design files download and follow PCB designing steps on my other tutorials.
Step 11: ADDING LCD 16*2 DISPLAY!/* ----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------- LCD 2x16
----------------------------------------------------------------------------
01 - VSS (GND)
02 - VDD (+5V)
03 - Vo (R = 1K Ohm to GND)
04 - RS (pin 8 in this ex.)
05 - RW (GND = LOW = write mode)
06 - EN (pin 9 in this ex.)
07 a 10 - D0 a D3 (connected to GND in this ex.)
11 a 16 - D4 to D7 (pin 0 to 3 in this ex.)
15 - LED+ (R = 470 Ohm to +5V)
16 - LED- (GND)
---------------------------------------------------------------------------*/
void setup()
{
lcd.pins(0, 1, 2, 3, 4, 5, 0, 0, 0, 0); // RS, E, D4 ~ D8
// LCD format
lcd.begin(16, 2); // cols, lines, [dotsize]
lcd.home(); // 0, 0
lcd.printf("PINGUINO PROJECT");
lcd.setCursor(0, 1);
lcd.printf(">INSTRUCTABLES<");
}
void loop()
{
}
Comments
Please log in or sign up to comment.