ee 446 project assignment n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
EE 446 Project Assignment PowerPoint Presentation
Download Presentation
EE 446 Project Assignment

Loading in 2 Seconds...

play fullscreen
1 / 79

EE 446 Project Assignment - PowerPoint PPT Presentation


  • 141 Views
  • Uploaded on

EE 446 Project Assignment. Top Design Sensor Components Pin Assignment and Configuration Completed Physical Setup Project Tasks. Project Top Design. Motion Detector (HC-SR501). Select Digital Input Pin component Drag and drop to design. Motion Detector (HC-SR501).

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'EE 446 Project Assignment' - javen


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
ee 446 project assignment
EE 446 Project Assignment
  • Top Design
  • Sensor Components
  • Pin Assignment and Configuration
  • Completed Physical Setup
  • Project Tasks
motion detector hc sr501
Motion Detector (HC-SR501)
  • Select Digital Input Pin component
  • Drag and drop to design
motion detector hc sr5011
Motion Detector (HC-SR501)

Configure Digital Input Pin

motion detector hc sr5012
Motion Detector (HC-SR501)

Configure Digital Input Pin

pwm servo motor
PWM – Servo Motor
  • Add PWM component to design.
pwm servo motor1
PWM – Servo Motor

Configure PWM

pwm servo motor2
PWM – Servo Motor

Configure PWM

pwm clock
PWM – Clock
  • Add clock to design.
pwm clock1
PWM - Clock

Configure Clock

pwm clock2
PWM - Clock

Configure Clock

pwm clock3
PWM - Clock
  • Connect the clock to the PWM.
servo motor digital output pin
Servo Motor – Digital Output Pin
  • Add Digital Output Pin.
servo motor digital output pin1
Servo Motor – Digital Output Pin

Configure digital output pin, then connect it to the

pwm output port of the PWM.

servo motor digital logic zero
Servo Motor – Digital Logic Zero
  • Add Digital Logic Zero.
servo motor digital logic zero1
Servo Motor – Digital Logic Zero
  • Connect Digital Logic Zero to the kill and reset inputs of the PWM.
timer
Timer
  • Add Timer.
timer1
Timer

Configure Timer

timer2
Timer

Configure Timer

timer clock
Timer Clock

Configure the clock component

attached to the timer.

interrupt service routine isr
Interrupt Service Routine (ISR)
  • Add isr and connect it to the interrupt output of the timer.
led output
LED Output

Add a Digital Output pin and attach it to the tc ouput of the timer.

Configure the Digital Output Pin.

cap sense
Cap Sense
  • Add a CapSense component.
cap sense general
Cap Sense - General

Configure the CapSense component.

cap sense general1
Cap Sense - General

Configure the CapSense component.

cap sense widgets configuration
Cap Sense - Widgets Configuration

Configure the CapSense component.

cap sense widgets configuration add button0 button1 and linearslider0
Cap Sense - Widgets ConfigurationAdd Button0, Button1, and LinearSlider0

Configure the CapSense component.

cap sense scan order
Cap Sense – Scan Order

Configure the CapSense component.

cap sense scan order1
Cap Sense – Scan Order

Configure the CapSense component.

cap sense advanced
Cap Sense – Advanced

Configure the CapSense component.

cap sense advanced1
Cap Sense – Advanced

Configure the CapSense component.

lcd char display
LCD Char Display
  • Add a Character LCD component.
lcd char display1
LCD Char Display

Configure the Character LCD.

inter integrated circuit i2c
Inter-Integrated Circuit (I2C)
  • Add an I2C Master component.
digital output pin temp alarm
Digital Output Pin – Temp Alarm

Add a Digital Output Pin to the design. Do not connect it to anything.

Configure the pin.

complete physical set up
Complete Physical Set-up

JTAG Programming Cable

Servo Motor

USB to JTAG Cable

LCD Display

Power Cable

HC-SR501 Motion Sensor

TMP 102 Sensor

P0_6 Cap Sense

Cap Sense Area

JTAG PROG

datasheet cyi2c v 2 0 001 62887 i2c master multi master slave
Datasheet: CyI2C_V_2.0_001-62887_I2C_Master_Multi_Master_Slave
datasheet cyi2c v 2 0 001 62887 i2c master multi master slave1
Datasheet: CyI2C_V_2.0_001-62887_I2C_Master_Multi_Master_Slave
tmp102 h header file
TMP102.H Header File
  • temp_interrupt is a software flag that is set when the interrupt occurs
  • when this flag is set, read the temperature in the main.c
interrupt service routine clearing register setting a flag
Interrupt Service Routine Clearing Register, Setting a flag
  • Interrupt Service Request (ISR) has been set to TEMPISR vector
  • Read Timer Status Register to clear Interrupt and set the software flag
interrupt service routine initializing interrupt
Interrupt Service Routine Initializing Interrupt

Set the Interrupt Vector : ISR_SetVector(…)

slide76
I2C
  • I2C connects to multiple slave devices (e.g. temperature sensor).
  • Each of the slave devices has a unique address
  • To access I2C devices a device address, register address, a number of bytes, buffer pointer have to be specified
  • In the project, use existing PSoC_i2c_read() function to read information from the temperature sensor