|
|
Construction of the Peripheral Extension Options Kit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * Construction of the peripheral extension options kit
→Click here if you have some questions and comments. ←Back to the table of contents
Updated May 30, 2005 18:37
|
* OutlineCharacteristics / Specifications / Circuit diagram / Connector pin layout / List of components 5.1.1 CharacteristicsThis kit is required for completing the SUGSI IT Exercises work and operation checks. The kit will be used by connecting it to the external connection connector of the PICNIC kit. Two I/O connections via a photoisolator IC as well as two analog inputs are available on the terminal board. In particular, the digital output is an output connection based on a mechanical relay and does not choose the connecting device. With induction loads, connection capacities of 5A (120VAC) can be controlled. An original two-sided glass epoxy through hole board has been prepared and in the open area on the right side, a universal area is available for circuit expansion and prototyping. The power supply for the relay drive will be brought in through PICNIC connector CN3 using a power cable to be constructed.
<Picture 1> Peripheral extension options kit 5.1.2 Specifications* Output connections: Two lines (RB6, RB7), insulated connections based on mechanical relays * Input connections: Two lines (RB0, RB1), insulated connections based on photoisolators * Analog inputs: Two lines (RA0, RA1), 0-+5V, 10-bit resolution (0-1023), shared ground on PICNIC side * External connector board: 8-pin x 2 (CN3,CN4), relay connection output + connection input * preparation of universal area for circuit expansion (DIP21x6) Power voltage: DC12V (supplied through PICNIC-CN3) 5.1.3 Circuit Diagram<Figure 1> Circuit diagram (click to display PDF file) 5.1.4 Connector pin layoutCN1: Power connector
CN2・ PICNIC connection terminal
CN3: Output terminal for relay connection
CN4・ Connection input, analog input terminal
(note that on the circuit board, pin 8 is on the left side)
5.1.5 List of components
●PurchaseAvailable through the GrassPoint shop. Students should purchase the materials individually. 【Item number:PIC0002】 Summary of materials delivered(packaged) ●Materials needed for constructing the kitThis kit contains relatively few parts and the conditions for soldering on the double sided throughhole board are good so for experienced users, constructing the kit will take 15 minutes to 1 hour. The following materials will be needed. ・needle nose pliers If available, the following items will also be useful. ・Solder vacuum plungers (necessary when removing components that
have been soldered incorrectly)
<Picture 2> Materials needed for kit construction + other useful tools, if available. The tools pictured here are the items I particularly like and often use. For your reference, I will list the makers and item numbers below (from top left) ・Miniature needle nose pliers:HOZAN P-36 ●ConstructionComponent packaging/Construction image/External view of components/Construction procedure 5.4.1 Component packagingThe components, cables, etc. included in the kit are
as follows: These items are divided and packaged in a number of bags.
<Picture 3> Components, cables, etc. included in the kit. When you remove these items from the packages, particularly small components (for example: MOLEX pin contacts, etc.) can be blown away by the wind. Before that happens, it is a good idea to keep the components organized in a tray as shown below.
<Picture 4> Organize components in a tray.(Example
using HOZAN B-40 parts tray) 5.4.2 Construction image<Picture 5> Construction image (component side:click to display larger image).
<Picture 6> Construction image (soldering side) 5.4.3 External view of components【Circuit board components】
【 Peripheral components 】
5.4.4 Construction procedure(1)Verification of components First, compare the items delivered with the parts list and verify that all of the necessary components are there. (2)Connecting components to the circuit board ※When connecting the components, things will generally work out OK if you connect the shorter components first. (a) Resistors:R1→R2→…→R6 (c) IC socket:U1→U2 (d) Terminal plate:CN3→CN4 (e) 26pin power connector header:CN2→CN1 (f) Electrolytic capacitor:C1→C2 (h) Spacers, screws(4)
・Power cable: After soldering the cables:0.3mm
strands (red, black) cut into 20 cm lengths to the connector
contact (Molex 5103), insert firmly into the power connector (Molex 5102-02).
The connector #1 pin will be red (+).
・Terminal plate bypass cable:Strip back the covering of the
cables: 0.3mm strands (red, black) cut into 5-10 cm pieces and plate them with solder.
(4)Connecting the cable to the security switch ・Security switch On the switch terminal plate(Delcatec MS-102), fix the
remaining cables: 0.3mm strands (red, black). It will be handy to plate the loose ends of
the wires with solder.
●View of constructed circuit board
<Picture 7> External view of completely constructed kit.
<Picture 8> View from circuit board side.(1)
<Picture 9> View from circuit board side.(2)
<Picture 10> View from circuit board side.(3)
<Picture 11> View from circuit board side.(4) ●Operation testingPreparation of test environment/Test of remote I/O control (1)/Test of remote I/O control (2)/Test of analog input circuit 5.7.1 Preparation of test environment【Procedure for removing jumper JP1 on the PICNIC circuit board】(added May 30, 2005) (0)Currently, the jumper JP1 at the top left of the PICNIC board is on 1-3:2-4, but this should be removed(it is a good idea to hang the jumper on the bottom pins 1, 2).:※Reason: RB0, RB1 of the PIC microcomputer are shared with the serial port flow control lines, but these are not necessary in this exercise. 【Connection of PICNIC⇔peripheral extension options】 (1)Connection with PICNIC: The power connector and flat cable are connected together. Be particularly careful in connecting the PICNIC side power connector correctly! (#1 pin on the left side is red +)
<Picture 12> Connection of PICNIC⇔peripheral extension options(peripheral extension board side)
<Picture 13> Connection of PICNIC⇔peripheral extension options(PICNIC side) 【Connection between the terminal plate bypass lines and the electronic buzzer, security switch】 (2) Bypass lines to the terminal plate:Connect terminal plate 1⇔2 pins on CN3 (DC+12V⇔RB7-COM)with the bypass lines.
<Picture 14> Bypass line connection to terminal plate CN3. (3)Electronic buzzer wiring: Connect terminal plate CN3 pin 3 (RB7-T)and pin 8 (GND)to the plus and minus terminals of the electronic buzzer, respectively.
<Picture 15> Wiring of electronic buzzer and CN3. (4)Connection of security switch: Open the cover of the terminal plate on the security switch side and fasten one of the cables with the screw (nonpolar). Next, connect the other to terminal plate CN4 pin 1 (RB0-TA) and pin 2(RB0-TB)(these are also nonpolar).
<Picture 16> Connection between security switch and terminal plate.
<Picture 17> Connection to terminal plate CN4. 【Overall connections including PICNIC】
<Picture 14> Connections completed between peripheral components and terminal plate. 5.7.2 Test of remote I/O control (1)From among the remote I/O operations of the PICNIC, we will control the digital output of(RB7) and sound off the electronic buzzer connected to that port. (1)Complete 5.7.1(a) Wiring of the terminal plate bypass lines to the electronic buzzer described earlier. (electronic buzzer will be connected to the relay connection of RB7) (2)Set up a PC and network environment for operation checks and prepare to perform remote PICNIC I/O from a web browser. (3)From the remote I/O control screen, change the output value of digital output (RB7)from L→H. (4)Following the change, verify that you hear the sound of the mechanical relay operating (a clicking sound of the solenoid moving) and that the electronic buzzer turns on. Also, the buzzer included in this exercise is a 「Horohoro」(hit item from Matsushita Denko) often used in door alarms. (5)From the remote I/O control screen, change the output value of digital output (RB7) from H→L and turn off the buzzer. <Practice exercise 1> <Practice exercise 2> ※What to do if you are having problems with
the sound of the electronic
buzzer 「Horohoro」being too loud: 5.7.3 Test of remote I/O control (2)Next, from among the remote PICNIC I/O controls, let us monitor the digital input (RB0)value and check the status of the security switch connected to that port. (1)Complete the 5.7.1(b) Security switch connection described earlier. (security switch connected to RB0 input connection) (2)Set up a PC and network environment for operation testing and prepare to perform remote PICNIC I/O control from a web browser. (3)First, disconnect the magnet portion of the security switch from the switch(=door open state). (4)Display the remote I/O control screen and verify that the input value of the digital input (RB0) is "L". (5)Next, connect the magnet portion of the security switch to the switch(=door closed state). (6)Redisplay (reload) the remote I/O control screen and verify that the input value of the digital input (RB0) has changed to "H". <Practice exercise 3> <Practice exercise 4> 5.7.4 Test of analog input circuitFinally, let us read the values of the PICNIC remote I/O analog input (RA0) and check the voltage of the power (direct current) connected to that port. In the example below, we will connect the PICNIC side power DC+5V directly to RA0 and obtain the analog values (around 1023). (1)Using the terminal plate bypass cable, connect terminal plate CN4 pin 8 (DC+5V) with pin 6 (RA0). (2)Set up a PC and network environment for operation testing and prepare to perform remote PICNIC I/O control from a web browser. (3)Display the remote I/O control screen and verify that the input value of the analog input (RA0) is around "1023"(5V). (4)Next, connect terminal plate CN4 pin 5(GND) and pin 6 (RA0). (6)Redisplay (reload) the remote I/O control screen and verify that the input value of the analog input (RA0)is around "0" (0V). <Practice exercise 5>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
wasaki@cs.shinshu-u.ac.jp |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||