This preview shows page 1. Sign up to view the full content.
Unformatted text preview: • MPLAB® ICD 2 In-Circuit Debugger/Programmer (Part# DV164007 includes a
9 VDC power supply and serial cable)
Figures 1-3 and 1-4 illustrate how to connect each of these tools to the PICDEM
Mechatronics Demo Board. 1.7 PICDEM™ MECHATRONICS SETUP
Please take a moment to review the following steps, prior to using the board. These
steps ensure the board is configured correctly before beginning the projects. 1.7.1 Jumper Settings Remove all 2-pin shunts (jumpers), except for JP8. On JP8, the shunt should be
connected in the right most position (indicated by the “+5V” label), which ensures that
the drive stage is powered by +5 VDC. 1.7.2 Board Power-Up Supply power to the board in one of the following ways:
• Connect a 9-12 VDC (0.75 amp minimum) supply via J9. The connector’s polarity
is grounded externally and positive internally.
• Connect a 9-12 VDC (0.75 amp minimum) supply to the P21 and P20 screw
• Connect a 9 VDC battery to the battery connector.
• Connect a 5 VDC (1.2 amp minimum) supply to TP2 or TP3.
When power is initially connected, the “PWR ON” LED should light up. The “FAULT”
LED in the over-current sense circuit will also be on when the board is powered up.
Clear the Fault by pressing SW5 (CLR FAULT) switch. The board is now properly
configured for the projects. DS51557B-page 12 © 2005 Microchip Technology Inc. PICDEM™ Mechatronics
CONNECTING THE ICD-2 TO THE PICDEM MECHATRONICS
DEMO BOARD PI
c ha tro nic s FIGURE 1-3: D ge
eb r InCir
2 CONNECTING THE PICkit™ 2 TO THE PICDEM
MECHATRONICS DEMO BOARD PI
M ™ M ec ha tro nic s FIGURE 1-4: © 2005 Microchip Technology Inc. DS51557B-page 13 PICDEMTM Mechatronics Demo Board User’s Guide
1.8 GENERAL PICDEM™ MECHATRONICS DEMONSTRATION BOARD
Power Supply Maximum Ratings
Supply voltage: 12 VDC
Output current (drive stage): 1.2A (total) 1.8.1 Experimentation The PICDEM Mechatronics Demo Board was designed for your experimentation. After
completing the projects in Chapter 2. “Example Projects”, please experiment freely
on your own. Voltage power supplies and motors, other than those provided in the kit,
may be used.
The driver portion of the board (the part that supplies power to the motors) has an
over-current sense circuit and will trip should the motor draw more than 1.2 amps. The
LM7805 regulator also protects the circuit by limiting the current consumed by the
board. Logic has also been put in place to ensure that the P and N-Channel MOSFETs
connected to each of the output drives can not be turned on simultaneously.
Note: 1.8.2 Although reasonable measures have been taken to protect the board from
the occasional mistake, THE BOARD MAY BE DAMAGED if proper design
techniques are not used and special attention to the schematic is not made. On-Board Status LEDs There are eight status LEDs on the board specifically provided to assist the user in the
developing and debugging of your code. The user can output register values on one of
the Ports of the microcontroller and have a binary reading of the value of that register.
Connect the LEDs as shown in Figure 1-5. For instance, if it is suspected that the
STATUS register is not being set appropriately, move the STATUS value into PORTC.
If PORTC is attached as shown in Figure 1-5, the LEDs will show the value of STATUS. DS51557B-page 14 © 2005 Microchip Technology Inc. PICDEM™ Mechatronics
FIGURE 1-5: 1.8.3 CONNECTING PORTC PINS TO LEDS FOR DEBUGGING OVER-CURRENT PROTECTION CIRCUIT The over-current protection circuit included on the board shuts down the drive portion
of the circuit if the board drives 1.2 amps continually for 100 ms or longer. Upon
powering up the board, the “FAULT” LED with be on. The drive circuit must be reset
manually by pressing the CLEAR FAULT button in the lower right hand portion of the
board every time the board is initially supplied with power. Otherwise, a Fault is present
when the “FAULT” LED is illuminated and must be manually reset by pressing the same
button. If you use your own motor, keep current draw less than 1.2A, as the
over-current protection circuit will not allow driving a motor at or above this rating. 1.8.4 MOTOR CONNECTION The motors provided on the PICDEM Demo Board must be manually connected to the
Drive screw terminals. The kit includes a Microchip screwdriver to facilitate in making
Note: 1.8.5 The supplied Brushed DC motor and Bipolar Stepper motor are subject to
change as the motor manufacturers cannot guarantee the same model
numbers will be available indefinitely. Please refer to Microchip’s web page
(www.microchip.com) for the current data sheets for the motors supplied
with this kit, if the motor supplied on your board differs from the motor data
sheets found on the CD-ROM. SERIAL COMMUNICATION The JP2 jumper is normally not populated with a shunt. With no shunt present, the
board is configured for serial communications via the PICmicro® USART...
View Full Document
This note was uploaded on 01/29/2014 for the course AA AA taught by Professor Aa during the Winter '10 term at ENS Cachan.
- Winter '10