Yet Another PIC Programmer for the Raspberry Pi

13 posts
by Techmeology » Sun Oct 07, 2012 9:46 pm
Hello, all!

I've been working on (yet another) PIC Programmer for the Raspberry Pi: This particular one features:
  • The ability to program 12 bit and 14 bit PICs
  • Autodetection of 14 bit PICs
  • A modular architecture that could be extended to support other chips
  • Diagnostic LEDs and a simple test circuit (with two more LEDs)
Comments/bug reports are welcome ;)


Check out cool stuff I'm doing, e.g my PIC Programmer for the Raspberry Pi:
Posts: 30
Joined: Wed Mar 28, 2012 8:52 pm
by meltwater » Wed Jan 09, 2013 4:13 pm
Looks like a great project.
Would be interesting to have a go with it and perhaps feature an article on it in the MagPi.

Would a standard serial programmer work with the Raspberry Pi too (via a USB-RS232 adaptor)?
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book:

Meltwater's Pi Hardware -

Like the MagPi? @TheMagP1 @TheMagPiTeam
User avatar
Posts: 1013
Joined: Tue Oct 18, 2011 11:38 am
by Techmeology » Mon Feb 25, 2013 4:55 pm
If you want to do a magpi article, sure! Let me know if I can help with that. The board itself isn't designed to use RS232, but I designed the software to be reasonably modular - you might well be able to use an RS232 adapter.


p.s: Damn, I didn't notice a notification email about your reply - sorry for the delay:p
Check out cool stuff I'm doing, e.g my PIC Programmer for the Raspberry Pi:
Posts: 30
Joined: Wed Mar 28, 2012 8:52 pm
by avstomusic » Sat Apr 20, 2013 4:44 pm
Screen Shot 2013-04-20 at 9.20.13 AM.jpg
Screen Shot 2013-04-20 at 9.20.13 AM.jpg (47.04 KiB) Viewed 3824 times
Thank you, this seems like a a great circuit. Although I'm a little confused as how this connects to the Raspberry PI. I'm new to the pic controllers programming but it doesn't take a degree in electronics to notice that the numbers of the GPIO headers don't quite match. For example in the little table chart says VPP control should be pin 9, which according to the Raspberry PI documentation has no connection, while according to the schematic GPIO numbers, VDD control for example is on pin 4 which again has no connection on the Raspberry GPIO. What are all those numbers referring to? See attached screenshot.
Posts: 1
Joined: Sat Apr 20, 2013 4:24 pm
by cae2100 » Sat Apr 20, 2013 10:33 pm
I thought about doing a design like this, but instead, using a design like the old K150 programmers. Due to the lack of working software in linux, I kinda abandoned the idea. Its something to think about bc it has dc/dc converter for 12v and everything built in, no need for external stuff, but the software is the real issue.

Neat idea for your programmer btw, a little observation is that your using a seperate 5v regulator, why not just use pin 2/5v out on the rpi? The pic chip uses a few uA and maybe a few mA at most, so it wouldnt even be any drain tbh. No use reinventing the wheel and it'd cut down on cost to make it/parts. :P

The 12v, you can maybe use a seperate chip to run as a pwm generator to use a buck/boost converter to convert the DC up to 12/13v needed, then you wouldnt need any external regulators or anything like that. Just make it into a self contained shield for the rpi and it'd be good to go for your projects. I believe roman black has a buck/boost converter that just uses like 2 transistors and some other components to raise the 5v to 13v for the chips.
There's the converter I was talking about.

Edit: Just a question, why use 6v dc when most chips can only handle 5v?
If it isnt smoking and blown into pieces, it's not pushed far enough yet. :P
Posts: 143
Joined: Tue Jan 08, 2013 10:35 am
by Techmeology » Sat Jul 13, 2013 1:41 am

avstomusic: The VDD control pin is used to control whether power is received by the PIC. The circuit itself is not powered by the Pi.
cae2100: Thanks for the suggestions. If I were to make many of these, I might well try to power it from the Pi alone. Some of the design of the programmer arises from the fact that I constructed it from parts I had (or thought I should have). There's a certain CompSci urge to solve a generalised problem in a systematic way:p


p.s: Hopefully I'll get notified next reply:p
Check out cool stuff I'm doing, e.g my PIC Programmer for the Raspberry Pi:
Posts: 30
Joined: Wed Mar 28, 2012 8:52 pm
by mano1 » Thu May 22, 2014 4:04 am
Can I program a PIC12F629 with this setup? I am interested to do this (instead of buying a programmer already built), but haven't programmed a PIC before :)
Posts: 1
Joined: Tue Oct 01, 2013 6:34 am
by danjperron » Fri May 23, 2014 12:17 am
Hi Techmeology,

6 month ago ,

I post a universal pic programmer in python.

I don't have so many leds and I was using the Raspberry Pi to program the I.C. Way simpler

I thing Walter Fukuoka has a nice package about it.

Please have a look before and after this post.

Posts: 2614
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada
by FLYFISH TECHNOLOGIES » Fri May 23, 2014 12:44 am
mano1 wrote:I am interested to do this (instead of buying a programmer already built), but haven't programmed a PIC before :)

You might think about a circuit/chip with pre-programmed bootloader. It should be the proper start, when you're becoming familiar with this area (one typical trap are fuses, which you can avoid by using this "prefabricated" approach). Later on, you'll quickly find out that in-circuit debugger is worth every cent spent for it... ;-)

Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
User avatar
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
by hampi » Fri May 23, 2014 2:58 pm
One more PIC programmer

and my PCB for it

The programmer code is plain C if you like the unix command line interface.
Posts: 223
Joined: Fri May 31, 2013 11:29 am
by rtek1000 » Wed Aug 20, 2014 6:11 pm

I would like to make a programmer for eeprom w25q128.

I found a library for Arduino to this memory (SPI):

have some way to use this interface to program eeprom using the RPI?
Posts: 20
Joined: Wed Mar 12, 2014 9:21 pm
by picpgm » Tue Jan 27, 2015 9:49 pm
Hello together,

if you are looking for a PIC programmer for the Raspberry Pi, have a look at PICPgm:

The Linux version which is supporting more than 650 different PIC microcontrollers has been ported to the Raspberry Pi. It uses the GPIO pins to program the PIC.

Posts: 1
Joined: Tue Jan 27, 2015 9:45 pm
by indula » Tue Apr 26, 2016 7:19 am
Hi, I have a PIC which has a 26 pin raspberry connector, can you help me in the process of connecting the raspberry pi with my PIC board? And can I get data from the PIC to the raspberry pi and save it in a database in the Pi.?? Please help me with the steps? Do i have to follow the steps in your blog or what?
Posts: 1
Joined: Mon Jul 13, 2015 11:27 am