PDA

View Full Version : Test USB Expansion Card



mabderezai
02-27-2011, 02:41 AM
Hello,
Let me give a quick background of where I am at...
I purchased components from Digikey.com to build 1 USB expansion, 4 Mastercards and 4 display cards, and the Boards I ordered from the Open Cockpits site...
I have so far assembled the USB card, and I am not sure if I programmed the Pic Controller (16C745)... anyone assembled a USB Expansion card with advice on how to program the pic?

Assuming I have programed the pic correctly, how would I go about testing the card? I had a hard time finding the actual SIOC software GUI that the tutorials talk about... honestly OC is very poorly organized ... (maybe to keep people from making their own cards?) ummm...

so in summery:
how do you program the 16C745 Pic for the USB Expansion card (what Clock, WDT,PWRT setting as well)
How do you test the USB Expansion card to see if it works without buying/assembling the other cards? (what software, what steps)

Any help would be great ...

P.S.
When all this is said and done, I think I'm gona write a dummies guide to Open Cockpits or a step by step detailed tutorial... that leaves no step out...
:evil:

mefiu
02-28-2011, 04:46 AM
From my discussion at OpenCockpit's forum.
Maybe that could help.
http://opencockpits.com/modules.php?op=modload&name=Forums&file=viewtopic&topic=3500&forum=1

I found the problem.
PIC controller was badly programmed.

You said: "I not use specific parameters to write code to PIC ! ".

Well, what I had to do is to setup at least this settings to make it work:

Oscillator type: HS
Code protection: OFF
BODEN: enabled
WRT: enabled
any others: disabled

I think that the manual "How to program a PIC microcontroller" should be directly linked from the page where DISPLAY II is presented.

What I also suggest is to make it clear in the document that this manual is also valid for DISPLAYS II, beacuse at the moment it is not obvious that this settings are correct for other IOCards.

Marsh
04-22-2011, 10:49 AM
I'm looking to do the same thing you did, but I'm not having much success finding a detailed BOM. Seems the info OC gives narrows things down to a family of components - but often not enough to specify a component. I was thinking, for example, since I need 3 stepper cards I’d order one kit and 2 PCB’s. Then examine each kit component and reverse engineer to generate a BOM. IC’s all have part# on them, resistors should be coded (probably all 1/4watters). Then order components to finish all cards. But if someone’s already done that legwork, great! How did programming the chips go?

DeckerZ
11-08-2011, 07:56 AM
Hello,
When all this is said and done, I think I'm gona write a dummies guide to Open Cockpits or a step by step detailed tutorial... that leaves no step out...
:evil:

I look forward to the dummies guide as I am starting at the very beginning using the OC cards!

simunut
11-10-2011, 12:06 AM
I am working on a thread for us DIY'ers. I hope it will be of help to all of you guys. As for testing the USB Expansion without any other card hooked up.... it would be pretty basic... You hook it up, the computer makes the connected sound, loads drivers and you may get the LED to flicker. Thats just about it. If you ran controlador, you could see IOCardUSB running, a whole string of inputs and if you touched the analogue axis pins they would react. Thats about it.

simunut