test new Pinguino board

441 views
Skip to first unread message

lab_TDP_Severi

unread,
Aug 27, 2012, 1:24:31 PM8/27/12
to pingui...@googlegroups.com
I made a new Pinguino board, very similar to Pinguino 1.0. I made the pcb and loaded bootloader in 18F2550.
I checked power supply and usb connections between A connector of cable and 18F2550. All seems going well.
But when I connect to pc it is not recognized.

Here what I did:

Windows 7
I installed driver I found in https://sites.google.com/site/pinguinotutorial/installation/windows-7 . The driver install very quickly, less than 1 second, so I'm not sure the installation is done.
Then I connect my Pinguino to pc but nothing happens in device manager or elsewhere.

Window XP
I downloaded and expanded the driver found in http://www.hackinglab.org/pinguino/download/driver%20pinguino%20windows/. I get a folder with several file including mchpusb.sys and mchpusb.inf. Usually these type of files are used during driver installation but when I connect my Pinguino nothing happens in device manager so how can I start driver installation?

Note that I tried 3 different 18F2550 with 3 different bootloader,
The two found in https://sites.google.com/site/pinguinotutorial/bootloader and bootlader found in IDE folder installed in Windows.

So here's few question:

1) if I put a non programmed 18F2550 in Pinguino board is it recognized in device manager?

2) is there a way to test usb connection between pc and Pinguino?

3) which test you suggest for my Pinguino board?



Luis Panadero

unread,
Aug 28, 2012, 11:09:39 AM8/28/12
to pingui...@googlegroups.com
If you are making this board https://sites.google.com/site/pinguinotutorial/hardware/traditional , these desing  have serius desing eroors  and can't never work well if not fix it.
To fix it, you should replace C3 ( Vusb capacitor) to a 470 nF capacitor and if you use USB power, you must to put a 100-220 nF capacitor between pin 20 and 21 to shield the 18F2550 from RF noise.

Also you can try with this variation that have a ICSP connector (very useful if you have a Pickit 2) and have the fixes made. I used it programming directly with MPLAB + C18 compiler and MPLAB + CCS C compiler without boot-loader but using USB functions and I can say that works. It should work with Pinguino software, but I not tested it yet.

A video that shows that It works (It's generating the sound of a aeroplane engine) :
http://www.youtube.com/watch?v=criulig2_lU&list=PLC335C062A204D1D2&index=1&feature=plpp_video
Pinguino 18F2550 with ICSP.svg

Luis Panadero

unread,
Aug 28, 2012, 11:12:43 AM8/28/12
to pingui...@googlegroups.com
I forgot to say that :

1) Nope. You must put Pinguino boot-loader or other firmware that configure the USB.

3) Put a program that blinks a Led connected to a User pin. It's the minimal check that you can do to it.


El lunes, 27 de agosto de 2012 19:24:31 UTC+2, lab_TDP_Severi escribió:

lab_TDP_Severi

unread,
Aug 31, 2012, 1:57:57 AM8/31/12
to pingui...@googlegroups.com

Hi Luis


Thank you very much for your answer and for schematic.

I see we have very similar opinions.

I copied “traditional Pinguino” but in my Pinuguino I've already added a 100 nF filtering capacitor at microcontroller power supply (pins 19 and 20) and increased capacitance to 470 nF at Vusb (pin 14).

I use Pickit 2 and I appreciate debug feature of MPLAB so I added ICSP connector too.


Unfortunately for the moment my PCB don't works.

The problem is in PCB because I test 18F2550 programmed with bootloader in an different PCB (home made Pickit 2) and it's correctly recognized.


Further control show a broken track in crystal connection, I fixed it and now Pinguino is “partially” recognized. I means partially because:

1) In Windows 7 a small window appears warning for new device but nothing happens in device manager. As I told before the driver install too quickly, less than 1 second, so I'm not sure the installation is done.


2) in Linux “lsusb” command don't recognize it.

lab_TDP_Severi

unread,
Aug 31, 2012, 11:54:20 AM8/31/12
to pingui...@googlegroups.com
I can confirm the problem is in my PCB.

I had several home made PICkit2 clone, using one of this PCB with 18F2550 programmed with bootloader
1) in Linux with #lsusb command is recognized in Linux as " ID 04d8:feaa Microchip Technology, Inc".
2) in Windows XP I can install correctly the driver.
3) in Windows 7 is recognized as "Pinguino Project".


The same 18F2550 programmed with bootloader in my PCB isn't recognized in Linux.
In Windows 7 is recognized as USB device but not as Pinguino.
As soon as possible I'll check crystal oscillation with a oscilloscope.

Luis Panadero Guardeño

unread,
Sep 1, 2012, 8:59:31 AM9/1/12
to pingui...@googlegroups.com


El viernes, 31 de agosto de 2012 17:54:20 UTC+2, lab_TDP_Severi escribió:
I can confirm the problem is in my PCB.

I had several home made PICkit2 clone, using one of this PCB with 18F2550 programmed with bootloader
1) in Linux with #lsusb command is recognized in Linux as " ID 04d8:feaa Microchip Technology, Inc".
2) in Windows XP I can install correctly the driver.


I had similar problems with my board before I fixed Vusb capacitor and added a filtering capacitor at microcontroller power supply pins.

lab_TDP_Severi

unread,
Sep 3, 2012, 2:11:55 PM9/3/12
to pingui...@googlegroups.com


Il giorno sabato 1 settembre 2012 14:59:31 UTC+2, Luis Panadero Guardeño ha scritto:

I had similar problems with my board before I fixed Vusb capacitor and added a filtering capacitor at microcontroller power supply pins.

Hi Luis

Guess where the problem was? Capacitor at Vusb was soldered with few tin and solder joint was broken but it was difficult to see also with magnifying glass.

I soldered it again and now it works. It's recognized in Linux and in Windows.

It's first time I works with usb and I'm learning quite a lot from mistakes. As usual. But with your help I spare quite a lot of time. And I'm writing a short troubleshoot guide.

Now I can start to use IDE and programs.

Thank you very much.

 
Reply all
Reply to author
Forward
0 new messages