Welcome to the PHCC Wiki.

Please create an user account and then help us to make this the one-stop for information on PHCC.

 Actions

Difference between revisions of "PHCC Motherboard"

From PHCC

 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{UnderConstruction1| }}
 
 
 
= The PIC HomeCockpit Controller (PHCC) Motherboard  =
 
= The PIC HomeCockpit Controller (PHCC) Motherboard  =
  
Line 12: Line 10:
  
 
*35 analog inputs (3 priority, 32 normal) in form of a pinheader with 3 terminals for each analog input  
 
*35 analog inputs (3 priority, 32 normal) in form of a pinheader with 3 terminals for each analog input  
 +
{{Tip1|Potentiometers with a rating of higher than 10K Ohms is discouraged.  This is because the input impedance of the analog-to-digital converter on the PICs is 2.5kOhms.<br>
 +
The higher the potentiometer resistance, the more time is needed for proper conversion. With longer conversion times, the scanning rate goes down and has the potential to cause timing delays on reads.}}
 
*16 connectors for 16 keymatrix daughterboards (64 inputs per board). For IDC flat ribbon cables.  
 
*16 connectors for 16 keymatrix daughterboards (64 inputs per board). For IDC flat ribbon cables.  
 
*a RS-232 serial port (for Null Modem cables) with level converter (MAX232)  
 
*a RS-232 serial port (for Null Modem cables) with level converter (MAX232)  
Line 33: Line 33:
 
== Assembly Instructions  ==
 
== Assembly Instructions  ==
  
work in progress, pictures to accompany descriptions soon.
+
see [[Board Assembly Tutorials]]
 
+
*text only, Rev.4: [http://cockpit.varxec.net/electronics/phcc/tutorials/Motherboard_Rev4_assembly_tutorial.txt Motherboard_Rev4_assembly_tutorial.txt]
+
*text only, Rev.4B: [http://cockpit.varxec.net/electronics/phcc/tutorials/Motherboard_Rev4b_assembly_tutorial.txt Motherboard_Rev4b_assembly_tutorial.txt]
+
  
 
== Download  ==
 
== Download  ==
Line 43: Line 40:
  
 
'''Note about Resistors:''' all resitors are standard kind, ie. 1/4W, carbon film, +/-10% (Its generally a good idea to get lots of 10k and 330R resistors. the 10k are for pullups, the 330R for LEDs)  
 
'''Note about Resistors:''' all resitors are standard kind, ie. 1/4W, carbon film, +/-10% (Its generally a good idea to get lots of 10k and 330R resistors. the 10k are for pullups, the 330R for LEDs)  
 +
 +
North American Bill of Materials [[Media:Motherboard rev4b BOM.pdf]]
  
 
== Board Errata  ==
 
== Board Errata  ==
Line 50: Line 49:
 
== Changes between Revisions:  ==
 
== Changes between Revisions:  ==
  
{| class="wikitable" cellpadding="5" border="1"
+
{| cellpadding="5" border="1"
 
! Revision !! Changes  
 
! Revision !! Changes  
 
|-
 
|-
 
| valign="top" | Rev.4B  
 
| valign="top" | Rev.4B  
| No functional changes. Added two Capacitors, one electrolytic for the incoming power supply, the other as a blocking cap, serving the second set of supply pins of the PIC.
+
|
|-
+
* No functional changes. Added two Capacitors, one electrolytic for the incoming power supply, the other as a blocking cap, serving the second set of supply pins of the PIC.
| valign="top" | &nbsp;
+
* Improved spacing between the KEY1-KEY16 connectors.
| Improved spacing between the KEY1-KEY16 connectors.
+
* Moved blocking caps of the 4067's to be nearer the supply pins.
|-
+
* Narrowed the capacitor lead pitch of the MAX232's caps.
| valign="top" | &nbsp;
+
* Gave the resistors a bit more space.
| Moved blocking caps of the 4067's to be nearer the supply pins.
+
* Put in markings for LED polarity.
|-
+
* Standardized Mounting hole positions.
| valign="top" | &nbsp;
+
| Narrowed the capacitor lead pitch of the MAX232's caps.
+
|-
+
| valign="top" | &nbsp;
+
| Gave the resistors a bit more space.
+
|-
+
| valign="top" | &nbsp;
+
| Put in markings for LED polarity.
+
|-
+
| valign="top" | &nbsp;
+
| Standardized Mounting hole positions.
+
 
|-
 
|-
 
| valign="top" | Rev.4  
 
| valign="top" | Rev.4  
| Had to change pins used for analog inputs since microcontroller allows only consecutive ADC pins to be used. You have to start with AN0. (Lesson learned: always read the datasheet first&nbsp;:-)
+
|
|-
+
* Had to change pins used for analog inputs since microcontroller allows only consecutive ADC pins to be used. You have to start with AN0. (Lesson learned: always read the datasheet first&nbsp;:-)
| valign="top" | &nbsp;
+
* Added and beautified text and markings on component print (makes it look 'prettier'"&nbsp;:-)
| Added and beautified text and markings on component print (makes it look 'prettier'"&nbsp;:-)
+
* More space between pinheaders for DOA and DOB
|-
+
* Fixed Debug LEDs. With Rev.3, only one of the two LEDs worked because of a thinking error.
| valign="top" | &nbsp;
+
* The 74HC/HCT154 is available in two formats, DIL24 and DIL24 narrow, now the board will accept both formats
| More space between pinheaders for DOA and DOB
+
* Reversed lines for lower nibble of PortB that control the 74HCT154. This makes the firmware easier. Old Rev.3 wiring is still supported in firmware via #ifdefs
|-
+
| valign="top" | &nbsp;
+
| Fixed Debug LEDs. With Rev.3, only one of the two LEDs worked because of a thinking error.
+
|-
+
| valign="top" | &nbsp;
+
| The 74HC/HCT154 is available in two formats, DIL24 and DIL24 narrow, now the board will accept both formats
+
|-
+
| valign="top" | &nbsp;
+
| Reversed lines for lower nibble of PortB that control the 74HCT154. This makes the firmware easier. Old Rev.3 wiring is still supported in firmware via #ifdefs
+
 
|-
 
|-
 
| valign="top" | Rev.3  
 
| valign="top" | Rev.3  
| aka. "The Prototype"
+
|  
|-
+
* aka. "The Prototype"
| valign="top" | &nbsp;
+
* First finished and prototyped board. Had to manually correct the ANx inputs(see Rev.4)
| First finished and prototyped board. Had to manually correct the ANx inputs(see Rev.4)
+
 
|-
 
|-
 
| valign="top" | Rev.2  
 
| valign="top" | Rev.2  

Latest revision as of 16:31, 26 February 2009

The PIC HomeCockpit Controller (PHCC) Motherboard

Description

The PHCC motherboard is the core component of the PHCC system. It connects to the computer via serial port (RS-232) or via USB.

A PIC18F452 microcontroller is used as the "heart" of PHCC. It is responsible for communicating with the PC via a simple protocol and it scans the Analog inputs as well as the keymatrix every few milliseconds.

The motherboard houses the following subsystems:

  • 35 analog inputs (3 priority, 32 normal) in form of a pinheader with 3 terminals for each analog input

Tip.png

Potentiometers with a rating of higher than 10K Ohms is discouraged. This is because the input impedance of the analog-to-digital converter on the PICs is 2.5kOhms.

The higher the potentiometer resistance, the more time is needed for proper conversion. With longer conversion times, the scanning rate goes down and has the potential to cause timing delays on reads.

  • 16 connectors for 16 keymatrix daughterboards (64 inputs per board). For IDC flat ribbon cables.
  • a RS-232 serial port (for Null Modem cables) with level converter (MAX232)
  • a socket for USB interface board
  • an I2C port
  • a connector for Output daughterboards of "Type A" (DOA) using a 2x5 pinheader for IDC flat ribbon cables.
  • and a connector for output daughterboards of "Type B" (DOB) using a 2x5 pinheader for IDC flat ribbon cables.

Schematic and Layout

Current revision (Rev.4B) of the motherboard (Sept 28th 2004):

Rev.4B Schematic

Rev.4B Layout

Revision 4 schematic and layout (Aug 16th 2004):

Rev.4 Schematic

Rev.4 Layout

Assembly Instructions

see Board Assembly Tutorials

Download

See download page

Note about Resistors: all resitors are standard kind, ie. 1/4W, carbon film, +/-10% (Its generally a good idea to get lots of 10k and 330R resistors. the 10k are for pullups, the 330R for LEDs)

North American Bill of Materials Media:Motherboard rev4b BOM.pdf

Board Errata

The Rev.4 boards as sent to the boardhouse have a tiny mistake:
The numbering of the capacitors skips C8/9.

Changes between Revisions:

Revision Changes
Rev.4B
  • No functional changes. Added two Capacitors, one electrolytic for the incoming power supply, the other as a blocking cap, serving the second set of supply pins of the PIC.
  • Improved spacing between the KEY1-KEY16 connectors.
  • Moved blocking caps of the 4067's to be nearer the supply pins.
  • Narrowed the capacitor lead pitch of the MAX232's caps.
  • Gave the resistors a bit more space.
  • Put in markings for LED polarity.
  • Standardized Mounting hole positions.
Rev.4
  • Had to change pins used for analog inputs since microcontroller allows only consecutive ADC pins to be used. You have to start with AN0. (Lesson learned: always read the datasheet first :-)
  • Added and beautified text and markings on component print (makes it look 'prettier'" :-)
  • More space between pinheaders for DOA and DOB
  • Fixed Debug LEDs. With Rev.3, only one of the two LEDs worked because of a thinking error.
  • The 74HC/HCT154 is available in two formats, DIL24 and DIL24 narrow, now the board will accept both formats
  • Reversed lines for lower nibble of PortB that control the 74HCT154. This makes the firmware easier. Old Rev.3 wiring is still supported in firmware via #ifdefs
Rev.3
  • aka. "The Prototype"
  • First finished and prototyped board. Had to manually correct the ANx inputs(see Rev.4)
Rev.2 These were never finished/fully routed boards. They were results of tests of either trials of how to run the traces or with different chips.
Rev.1
Rev.0