Gooligum Electronics Baseline and Mid-Range PIC Construction And Operation Manual Download Page 6

© Gooligum Electronics 2015 

 

www.gooligum.com.au 

Baseline and mid-range PIC training and dev board operation guide 

Page 6 

side) via JP21.  That is, to use the 32.768 kHz crystal with the PIC’s internal oscillator, you must connect 
it through both JP20 and JP21. 

The same is true for the 4.00 MHz ceramic resonator.  To use it with the PIC’s internal oscillator, connect 
one side of the resonator to 

OSC1

 via JP20 and the other side to 

OSC2

 via JP21. 

A 10 kΩ resistor and 82 nF capacitor are also provided, and can be connected via JP20 to 

OSC1

, to form 

an external RC oscillator with a frequency of around 1 kHz. 

 

The 

7-segment LED displays

 consist of three common-cathode digits, with the anodes of segments A-D, 

F and G connected via 330 Ω resistors and jumper block JP4 to pins 

RA/RB0-1

 and 

RC1-4

.  Segment E 

can be connected via JP5 to either 

RA/RB2

 or 

RA/RB4

The common cathode of digit 1 (the digit on the left) can be connected either to ground or a transistor 
controlled by 

RC5

, using jumper JP6. 

The cathodes of digits 2 and 3 are connected to transistors controlled by 

RA/RB5

 and 

RC0

 respectively. 

The base of each of these NPN transistors is connected to its associated PIC pin through a 1 kΩ resistor 
and a jumper: JP8 for digit 1, JP9 for digit 2, and JP10 for digit 3.  When the PIC pin pulls the base high, 
the transistor conducts, shorting the common cathode of the attached digit to ground. 

So, to use just a single digit: 

 

Connect segments A-D, F and G to their associated PIC pins, by placing a shunt across every 
position in jumper block JP4.  That is, you use six shunts at once, in JP4. 

 

Connect segment E to either 

RA/RB2

 or 

RA/RB4

, by placing a shunt in one of the two positions 

in jumper block JP5, selecting the PIC pin to be used for segment E. 

 

Connect the common cathode of digit 1 to ground, by placing a shunt across pins 1 and 2 of 
jumper JP6. 

 

Leave jumpers JP8, JP9 and JP10 open, so that the transistors will not conduct. 

To use multiple digits: 

 

Connect segments A-G to PIC pins using jumper blocks JP4 and JP5, as above. 

 

If you want to use digit 1, connect its common cathode to the transistor controlled by 

RC5

, by 

placing a shunt across pins 2 and 3 of JP6. 

 

 Connect the transistors controlling whichever digits you wish to use to their associated PIC pins, 
using jumpers JP8, JP9 and JP10 

For a two-digit display, you would normally use digits 1 and 2, by connecting pins 2 and 3 of JP6, closing 
JP8 and JP9, and leaving JP10 open.  The two digits would be activated by 

RC5

 and 

RA/RB5

But you could instead choose to use digits 2 and 3, by closing JP9 and JP10, and leaving JP6 and JP8 
open.  The two digits would then be activated by 

RA/RB5

 and 

RC0

For a three-digit display, connect pins 2 and 3 of JP6, and close JP8, JP9 and JP10.  The three digits are 
activated by 

RC5

RA/RB5 

and 

RC0

Note that, if you are using multiple digits, you should ensure that only one transistor (and hence digit) is 
activated at once. 

 

The 

variable frequency oscillator

, based on a 555 timer, provides a signal with a frequency that can be 

varied from approximately 150 Hz to 10 kHz, using trimpot RP1. 

The digital form of this signal can be connected to either the Timer 1 gate input, 

T1G  

, or the capture 

input pin, 

CCP1

, using jumper block JP26. 

Summary of Contents for Baseline and Mid-Range PIC

Page 1: ...sy to follow the Gooligum baseline mid range and introductory enhanced mid range lessons It works with a PICkit 2 or PICkit 3 programmer and supports all 8 and 14 pin baseline mid range and enhanced m...

Page 2: ...an continue to use the board for PIC development Construction If your training board came fully assembled you can ignore this section The training board kit consists of a printed circuit board a set o...

Page 3: ...verlay shows BC337 BC547 or BC548 transistors may have been supplied with your kit That s ok they ll all work fine in this application driving the 7 segment displays and have the same pin out Whicheve...

Page 4: ...et U2 marked 16F is for 14 pin PIC16F devices Note you must plug a PIC into ONLY ONE socket at once If you ve been using a PIC10F and want to use a PIC12F or PIC16F remove the PIC10F from the 10F sock...

Page 5: ...all 14 pin PICs so the LED on that pin is labelled simply RC3 LEDs are available on all output pins except RC4 and RC5 To enable connect an LED simply close its associated jumper Pushbutton switches...

Page 6: ...very position in jumper block JP4 That is you use six shunts at once in JP4 Connect segment E to either RA RB2 or RA RB4 by placing a shunt in one of the two positions in jumper block JP5 selecting th...

Page 7: ...he piezo can be driven at higher volume by a double ended or half bridge PWM output by placing a shunt across positions 2 and 3 of JP23 connecting its other side to PWM output P1B Finally every PIC pi...

Page 8: ...E JP6 1 2 Connects common cathode of LED digit 1 to ground 2 3 Connects common cathode of LED digit 1 to transistor controlled by RC5 JP7 Enables external pull up resistor on GP2 RA2 RB2 JP8 Connects...

Page 9: ...side connects to P1A 2 3 Connects one side of piezo sounder to P1B other side connects to P1A JP24 1 2 Connects 10 k potentiometer to RA0 CIN C1IN 2 3 Connects LDR1 to AN0 CIN C1IN JP25 1 Connects LD...

Page 10: ...uld place shunts across all six jumpers numbered 1 6 in the block Where a table cell is blank the jumper should be left open In many cases it won t matter if additional jumpers are connected but to en...

Page 11: ...LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4 5 6 7 8 9 10 11 12 13...

Page 12: ...0 digit 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example...

Page 13: ...thode GP RA2 pull up RC5 digit 1 RA5 digit 2 RC0 digit 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2...

Page 14: ...D RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 9 1a 1 2 1...

Page 15: ...E digit 1 cathode GP RA2 pull up RC5 digit 1 RA5 digit 2 RC0 digit 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0...

Page 16: ...digit 1 RA5 digit 2 RC0 digit 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq...

Page 17: ...LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 7 1 all...

Page 18: ...ED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4 5 6 7 8 9 10...

Page 19: ...git 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4...

Page 20: ...C5 digit 1 RA5 digit 2 RC0 digit 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var F...

Page 21: ...LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 11 1 3 2 3 3 4...

Page 22: ...A5 digit 2 RC0 digit 3 GP RA0 LED GP RA1 LED GP RA2 LED GP RA4 LED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog L...

Page 23: ...ED GP RA5 LED RC0 LED RC1 LED RC2 LED RC3 LED Clock source Crystal 32 kHz T0CKI Piezo AN0 source LDR2 Var Freq digital Var Freq analog Lesson Example 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21...

Page 24: ...10 k 5 1 4W resistors 2 22 k 5 1 4W resistors 1 100 k 5 1 4W resistor 1 10 M 5 1 4W resistor 1 10 k trimpot with thumbwheel e g Bourns 3352T 1 100 k trimpot with thumbwheel e g Bourns 3352T 3 BC337 NP...

Page 25: ...r snap into 16 1 2 headers 1 1 9 pin 0 1 snappable header snap into 3 1 3 headers 1 2 19 pin 0 1 snappable header snap into 1 2 3 1 2 4 1 2 6 and 3 2 2 headers 1 13 mm PCB ext drive piezo sounder e g...

Page 26: ...509 I P MCU 1 PIC12F629 I P MCU 1 PIC12F1501 I P MCU 1 PIC16F506 I P MCU 1 PIC16F684 I P MCU 1 PIC16F1824 I P MCU 1 1 nF ceramic capacitor 1 100 nF ceramic capacitor 2 1 F ceramic capacitor 1 100 5 1...

Page 27: ...motor control examples optional Qty Description 2 PSMN022 30PL or similar N channel logic level MOSFETs 2 NDP6020P or similar P channel logic level MOSFETs 1 SN754410 or L293D quad half H driver with...

Page 28: ...Gooligum Electronics 2015 www gooligum com au Baseline and mid range PIC training and dev board operation guide Page 28 Appendix C Schematics Sheet 1 Main...

Page 29: ...Gooligum Electronics 2015 www gooligum com au Baseline and mid range PIC training and dev board operation guide Page 29 Sheet 2 Digital I O...

Page 30: ...Gooligum Electronics 2015 www gooligum com au Baseline and mid range PIC training and dev board operation guide Page 30 Sheet 3 Oscillator section...

Page 31: ...Gooligum Electronics 2015 www gooligum com au Baseline and mid range PIC training and dev board operation guide Page 31 Sheet 4 Analog...

Reviews: