Computer Engineering Activities The Joystick Project BEIT 2003 - PowerPoint PPT Presentation

1 / 43
About This Presentation
Title:

Computer Engineering Activities The Joystick Project BEIT 2003

Description:

Drag strips. Music Boxes. Joysticks. Marquees. GUIs/Mouse Control. Interfacing Activities ... I appreciate that this may be disappointing to you, but I hope ... – PowerPoint PPT presentation

Number of Views:70
Avg rating:3.0/5.0
Slides: 44
Provided by: graham9
Category:

less

Transcript and Presenter's Notes

Title: Computer Engineering Activities The Joystick Project BEIT 2003


1
Computer Engineering ActivitiesThe Joystick
ProjectBEIT 2003
  • Graham Smyth
  • Yungsiow Yang
  • Jerry Dolata
  • Kevin Shea
  • Ilana Smyth

2
Computer Engineering Units
  • Grades 10/11/12
  • 1. Hardware
  • 2. Networking
  • 3. Integrated Circuits
  • 4. Programming
  • 5. Interfaces

3
Interfacing Activities
  • Grade 12
  • One byte
  • LED intersection
  • Stop Lights AC?
  • Vehicles
  • Security systems
  • Drag strips
  • Music Boxes
  • Joysticks
  • Marquees
  • GUIs/Mouse Control

4
Interfacing Activities
5
Interfacing Activities
6
Interfacing Activities
7
Interfacing Activities
8
Worlds Largest Portable Joystick
9
Worlds Largest Portable Joystick
  • Claim ID 38433 Membership Number 37096
  • 05 June 2003
  • Dear Mr Smyth
  • Thank you for sending us the details of your
    recent record attempt for 'Largest Joystick'.I am
    afraid to say that we are unable to accept this
    as a Guinness World Record.
  • Unfortunately our research team have concluded
    that your attempt does not conform to our
    manufactured articles guidelines as there is no
    commercially available joystick which looks like
    a small version of this.
  • I appreciate that this may be disappointing to
    you, but I hope that this does not deter you from
    trying again.  We are always keen to hear from
    people who wish to set a Guinness World Record. 
    If you should need any advice regarding breaking
    an existing record or setting a new Guinness
    World Record please contact us again through our
    website or directly quoting the above membership
    number.
  • Once again thank you for contacting Guinness
    World Records.  We wish you every success with
    any future record-breaking endeavours.
  • Yours sincerely,
  • Sophie Whiting Records Research Services

10
Breadboard Architecture
Connected
High Fives
Divider
Low Fives
Connected
11
Interfacing System Unit 5
Computer Interface Peripheral
  • Wires
  • ICs
  • Resistors
  • Capacitors
  • Transistors
  • LED's
  • Motors
  • Lights
  • Robots
  • Joysticks
  • Parallelport

Software
Hardware
Hardware
12
Joystick Software
Turing
  • parallelput(number) - reads 8 pins
  • put parallelget - reads 5 pins
  • mousewhere(x,y,click)
  • play(CDEFG)
  • drawline(x1,y1,x2,y2,red)
  • FREE!!!

13
Joystick Hardware
  • Five male pins
  • One D sub connector
  • Cable 1 D sub to Breadboard
  • Cable 2 Breadboard to Joystick
  • One N.O. pushbutton
  • One Doorstop
  • Five Resistors (Brown/Black/Orange)
  • Four Small pipes
  • One Block of wood
  • One Breadboard

14
Joystick Hardware - Resistor(Five Required)
1 0 X 103
Brown Black
Orange Gold
Tolerance -5
15
Resistor Chart
16
Cable 1 D sub to Breadboard
Male Pin
Insulated Wire
Small Crimp Tab
Stripped Wire
Large Crimp Tab
17
D sub to Breadboard Cable
White/Green Green Brown Blue White/Brown Orange
White/Blue White/Orange
18
Joystick Hardware Parallelport
Input I0 I3
Output D0 D7
13 12 11 10 9 8 7 6
5 4 3 2 1
25 24 23 22 21 20 19 18 17
16 15 14
Input I4
Grounds 18 - 25
View from back of Computer
19
Joystick HardwareNormally Open Switch
Schematic
Physical
1
1
2
2
20
Joystick Wiring Schematic
Fire Button
Joystick
To D Sub
21
D Sub Connector
Pin 13
Pin 10
D sub Connector
Pin 18
Pin 15
22
D Sub Connector(with extraction wire)
23
D Sub Connector Colour Code
24
D Sub to Breadboard Cable
Pin12 Blue
Pin11 Orange
Pin13 White/Green
Pin10 Green
Pin 2 Brown
Pin18 White/Blue
Pin15 White/Orange
Total of seven wires from D sub connector
25
From D Sub to Breadboard
Pin 2 to Upper Rail
26
Breadboard with Resistors
Resistors to Top Rail
Brown/Black/Orange
Resistors to Any Column
27
D Sub to Breadboard Cable
To Pin 2 Brown
To Pin18 White/Blue
To Pin 10 Green
To Pin15 White/Orange
To Pin11 (Orange)
To Pin12 (Blue)
To Pin13 White/Green
Total of seven wires from D sub connector
28
Joystick Top View
Left Rail
Fire Button
Right Rail
Top Rail
Joystick
Bottom Rail
29
Joystick Cable
  • 1. Run the White/Orange and the White/Blue wire
    into fire button hole
  • 2. Attach the White/Orange wire to one pin of
    fire button
  • 3. Attach the White/Blue wire to the second pin
    of fire button

30
Joystick Cable continued
  • 4. Attach a short White/Blue wire to the second
    pin of fire button
  • 5. Run the other end of this White/Blue wire into
    the joystick hole
  • 6. Insert the fire button into the block
  • 7. Wrap short White/Blue wire around the screw in
    the base of the door stopper
  • 8. Screw base of door stopper into the bottom of
    the joystick hole

31
Joystick Cable continued
9.Run the Green, Orange, Blue, and White/Green
wires into the joystick hole 10. Wrap Green wire
around Top rail 11. Attach Orange wire around
Bottom rail 12. Attach Blue wire around Left
rail 13. Attach White/Green wire around Right
rail 14. Screw door stopper into base 15.
Insert the 4 rails into their appropriate
locations
32
Connecting Joystickto Breadboard
Method Match the colour of the seven wires
already in the breadboard with the colour of the
six wires coming from the joystick.
Next diagram is messy, sorry
33
Joystick to Breadboard
Six wires from Joystick
1 2 3 4 5 6
Previous seven wires from D Sub
34
End of HardwareStart of Software
35
Inputting Software Assignment 1
Write a program that will continuously scan for
input values from the parallelport.
36
Inputting SoftwareCode 1
parallelput(1) loop Start of infinite loop.
put parallelget Returns input pin
values. end loop End of loop.
37
Inputting Data Matrix Part 1
38
Inputting Data Matrix Part 2
39
Inputting Software Assignment 2
  • Write a program that will
  • Display UP when the joystick is moved up
  • Display DOWN when the joystick is moved down
  • Display LEFT when the joystick is moved left
  • Display RIGHT when the joystick is moved right
  • etc

40
Inputting Software Solution Assignment 2
parallelput(1) var value int loop value
parallelget if value ______ then put
UP elsif value _____ then put DOWN etc
41
Inputting Software Assignment 3
  • Write a program that will
  • Draw 8 arrows (compass points) and a fire button
  • Randomly highlight one of the 8 arrows and/or
    the
  • fire button
  • Time how long it takes the user to match the
    prompt
  • with the corresponding joystick movement
  • Repeat 20 times
  • Output the total time taken for all 20 matches
  • ?????? Additions ??????

42
More Hands-On Activities
  • Keyboard
  • Intersection
  • Robot
  • Worlds Largest Joystick

43
Addresses
smythel_at_mnsi.net www.classictechnology.ca www.ho
ltsoft.com
Write a Comment
User Comments (0)
About PowerShow.com