lab 1

docx

School

The City College of New York, CUNY *

*We aren’t endorsed by this school

Course

3112

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

11

Uploaded by luzon455

Report
Electrical & Telecommunications Engineering Technology Course: EET3112 – OL54 Instructor: Xinzhou Wei  Shibin Joseph,Shawn Khan,Wellington Luzon Group #2 Lab Report 1  Week 5 Due: 10/13/2020 0
Table of Contents Objective…………………………………………………………………………….Pg 2 Theory……………………………………………………………………………….Pg 2 - Pg 3 Equipment…………………………………………………………………………..Pg 4 Procedure…………………………………………………………………………...Pg 4 Results &Analysis………………………………………………………………….Pg 5 - Pg 10 Conclusion……………………………………………………………………… ..... Pg 10 Reference…………………………………………………………………………...Pg 11 1
Objective The main objective of this experiment is for us to use the Proteus Software to simulate a PICDEM™ Mechatronics Demonstration Board. Using the simulate board we will design and build a circuit that will turn on different amounts of LEDs at different times. By doing this experiment we acquire knowledge about PICDEM Mechatronics Demonstration Board and the Proteus software. Theory In this experiment we will be using a software to simulate an actual hardware device, that means we have to understand the working theory of both the software and the hardware. A microcontroller is a single chip computer used in control applications.  The  PICDEM™ Mechatronics demonstration board is an easy to use microcontroller system designed to aid in learning and practicing microcontroller functions.  It uses jumper wires to connect and the PIC microcontroller to the various components on the board allowing them to interact.  These components include sensors, LEDs, human input devices and motor drivers.  The  PICDEM™ Mechatronics demonstration board features: an 8 MHz internal oscillator and an LCD  display, 8 LEDs, stepper and brushed DC motors, analog temperature sensor, light sensor, and 32.768 kHz crystal for time generation.  Using these components the functions of the PIC microcontroller can be tested. The PICDEM™ Mechatronics demonstration board The next step is to look at the working theory of the Proteus software and understand how this software functions. The Proteus is an electronic circuit design software which includes a schematic capture, simulation and PCB (Printed Circuit Board) Layout modules. The Proteus Design Suite is a proprietary software tool suite used primarily for electronic design automation . The software is used mainly by electronic design engineers and technicians to create schematics and electronic prints for manufacturing printed circuit boards . It was developed in Yorkshire , England by Labcenter Electronics Ltd and is available in English, French, Spanish and Chinese languages. Schematic capture in the Proteus Design Suite is used for both the simulation of 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
designs and as the design phase of a PCB layout project. It is therefore a core component and is included with all product configurations of the microcontroller simulation in Proteus works by applying either a hex file or a debug file to the microcontroller part on the schematic. It is then co-simulated along with any analog and digital electronics connected to it. This enables its use in a broad spectrum of project prototyping in areas such as motor control, temperature control, and user interface design. The PCB Layout module is automatically given connectivity information in the form of a netlist from the schematic capture module. It applies this information, together with the user specified design rules and various design automation tools, to assist with error free board design. PCB's of up to 16 copper layers can be produced with design size limited by product configuration. Equipment Proteus Software PC(Windows 10 or Mac) Procedure Turn on One LED on Port C Turn computer on Start the Proteus Software Build the circuit in the schematic capture section, this time we are going to use four led   Write the code to turn one led on in the source code section Run the experiment and record results               Turn on Four LED on Port C                 Turn computer on Start the Proteus Software Build the circuit in the schematic capture section, this time we are going to use four led   Write the code to turn one led on in the source code section Run the experiment and record results                                       3
Results & Analysis Turning One LED on This is before the run button was turned on, as you can see the led is not on, so as of now the chip is not running because there is no power being delivered to the chip, but the code is already programmed into the chip from the source code section. 4
This is the code used to turn one led one, this code just turns one led on, then the watchdog timer reset the program almost every 2.5 seconds. 5
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
This picture shows the led after the run button has been turned on, as you can see the blue led lights up blue. As mentioned before this program just turns the led on and the watchdog timer reset the program about every 2.5 seconds. 6
Turning 4 LED on In the second part of this lab we created a schematic that turns on LED 1,3,5 and 7 at the same time. In the picture above we see that there are a total of 8 LEDs and 8 resistors, one for each LED. The resistor will limit the amount of current going to each LED preventing it from damage since it requires a specific amount of current for it to work.  7
To make the circuit do what we want to do we made a program and downloaded it to the PIC17690 chip. We can see that pins 5,6,7,8,9,14,15 and 16 are your outputs, in this case the LEDs. Using these outputs, we created a program that will tell the chip which output pins are low or off and which are high or on as shown above. 8
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
In the above picture we can see the final step of our lab which is testing the circuit along with the program. With the program installed, we can see the 4 LEDs on simultaneously as expected. Conclusion Therefore, our group was able to successfully obtain the results of this experiment by using the Proteus Software to simulate specific LEDs switching on and off.The first run was to get one LED to switch on. We start by typing the necessary codes and transfer it to the chip.Once the run icon is clicked, one LED switches on by using the instructions we programmed into the chip.A current limiter resistor is wired in series with the LEDs to prevent them from burning out.The second run was to get four LEDs to switch on at the same time.Again we begin by modifying the program and transfering in to the chip.Once we click the run button, four LEDs stay switched off except 1,3,5 and 7. 9
Reference https://www.theengineeringprojects.com/2018/08/introduction-to-pic16f690.html https://www.techulator.com/resources/15432-Proteus-8-Professional-a-useful-tool- for-electronic-engineers.aspx https://www.circuitstoday.com/proteus-software-introduction 10