G1 Duck Hunt Game Jesse Larson

Slides:



Advertisements
Similar presentations
MOTION CONTROL ECE 105 Industrial Electronics Engr. Jeffrey T. Dellosa College of Engineering and Information Technology Caraga State University Ampayon,
Advertisements

KEB COMBIVERT F5-M Exercises.
OutLine Overview about Project Wii Robot Escaper Robot Problems and Solutions Demo.
L.
Coordinate Based Tracking System
Spectrum Analyzer Ray Mathes, Nirav Patel,
Capstone PDR Fall 2005 Paintball Gun IR Sensing and Tracking Team Doki Doki: Matt Freeman (EE) James Kirby (ECE) Juan Rivera (EE)
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Applied Control Systems Robotics & Robotic Control
ARM Timers.
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
Reaction Timer Project
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Team 10 Julia Liston. Project Overview  Our team’s goal is to build a prototype of a robot that can: Use GPS to locate a lost person Autonomously navigate.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Group #42: Weipeng Dang William Tadekawa Rahul Talari.
Sound Source Location Stand Group 72: Hiroshi Fujii Chase Zhou Bill Wang TA: Katherine O’Kane.
W.J.E.C. Electronics ET4 – Communication Systems Solutions to Sample Questions Jan 2010.
Electric Air Ukulele Ivan Setiawan (setiawa2) Satyo Iswara (iswara2) ECE 445 Senior Design Spring 2012 Team #32 TA: Jane Tu.
DC motor principles Speed control Direction Stepper motor principles
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Application Case Study Christmas Lights Controller
Introduction to Motors, servos and steppers
Sequential Logic An Overview
Digital Control CSE 421.
Scrolling LCD using Arduino.
Basic Computer Organization and Design
G1 Duckhunt Alarm Clock Jesse Larson IR Communication
Home automation using Arduino & ‘PIR sensor’
REMOTE JAMMING DEVICE.
TV OPERATION JAMMING SYSTEM
ULTRASONIC DISTANCE METER USING 8051
Voice Manipulator Department of Electrical & Computer Engineering
The university of Lahore Department of computer Engineering Electric Network Analysis Project Tittle : Audio tone IR transmitter and receiver Group.
Automatic human detector garbage can.
555 Timer EEE DEPARTMENT KUMPAVAT HARPAL( )
ECE Computer Engineering Design Project
Elements of a Computer System
Technology Literacy Hardware.
Digital Communication
OBJECTIVE AND FEATURES:
WALL DETECTOR ROBOT VEHICLE
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Automated Ticket to Ride
How an Ultrasonic Range Finder works
‘SONAR’ using Arduino & ultrasonic distance sensor
RAILWAY TRACK SNAP NOTIFICATION
Directional Driver Hazard Advisory System
Remote Controlled Smart Socket
REMOTE CONTROL FOR HOME APPLIANCES
Fig. 3 Infrared Components
ECE 445: Robotic Microphone Stand
Introduction to Microprocessors and Microcontrollers
ECE 445 Senior Design, Spring 2018
Asynchronous Serial Communications
ECE 354 Computer Systems Lab II
FPro Bus Protocol and MMIO Slot Specification
Introduction to H-Bridge
Smart Actuator Screen Guide
Completed Design Review
Failsafe Module for Unmanned Aerial Vehicle
Mark Bristow CENBD 452 Fall 2002
Voice Manipulator Department of Electrical & Computer Engineering
Using Stepper Motors Matt McIntire
Presentation transcript:

G1 Duck Hunt Game Jesse Larson (jrlarson@ualberta.ca) Jing Lu (jlu9@ualberta.ca) Qingqing Liu (qliu6@ualberta.ca)

Design: General Structure of Game Hardware Stepper motor and Pulley 2 x 4 DE2 Board Infrared receiver Infrared Transmitter Strong fishing line Sensor bar. cleverly disguised as a duck Infrared Receiver Infrared Shotgun Transmitter

Design: General Behavior& Functionality The game can distinguish between two different IR pulses. This is so that there can be two different players or two teams participating in the game. Two modes for the game: mode 1 – The duck must be hit 3 times by shotguns for the game to end. The team with 2 or more hits wins the game. mode 2 – The duck is invincible for 1 minute! Shoot it as many times as you can to get a high score. Output displayed to the LCD screen.

Design: How the sensor bar works DS 1077 TSOP 853 NOR 38 KHz infrared pulse from gun 56 KHz infrared pulse to DE2

Design: Summary of the infrared communication challenge Primary requirement: The Vishay 56 KHz receiver at the DE2 board must receive a minimum of six 56KHz pulses for minimum reliable signal transfer. However: -The 38 KHz receiver holds its output signal low for a variable amount of time, this time dictates the number of 56 KHz pulses sent. -The 56KHz receiver also holds its signal low for a variable amount of time as well, so the timing delay is compounded.

Design: The solution to the IR challenge The solution to the delay requirements was to create a custom infrared communication protocol that achieves reliable data transfer by accommodating the delay Brief overview of the protocol: -Custom infrared hardware bit decoder at the DE2 board -0 bit translates to nine 38 KHz pulses from a transmitter -1 bit translates to twenty-seven 38 KHz pulses from a transmitter -These are the minimum number of pulses to achieve truly reliable and distinguishable bit at the DE2 board.

Design: The solution to the IR challenge Additional challenge: Due to poor circuit building and the sensor bar constantly being moved around on strings, the connections to ground on the sensor bar are inconsistent thus making the signal relay unreliable. Occasionally a 1 bit fails for part of its transmission, to eliminate a some of these errors, some custom sampling hardware was added for our demo today, however it can not filter all of the errors. Should be noted that when the circuit is properly grounded, this additional sampling hardware is never needed.

Design: DE2 Diagram Nios_II SDRA LCD Signal decoder Motor Controller ON-CHIP MEMORY LCD Screen Nios_II Seven Segment Avalon MM Slave RESET 2bit Signal decoder Motor Controller PWM Generator Peripheral IR Receiver Motors

Design: Motor Controller System Clock (50M Hz) New_frequency Frequency Divider Factor_a Phases Direction Controller Reset Off Direction

Design: Frequency Divider frequency_divider:process (reset,clk_in) begin if (reset='1') then temp<='0'; counter<=(others=>'0'); elsif rising_edge(clk_in) then if (counter>factor_a) then elsif (counter=factor_a)then temp<=NOT (temp); elsif (counter<factor_a)then counter<=counter+1; end if; end process; System Clock 50M Hz New_frequency Reset Factor_a Factor_a: Question: What is this? Answer: A factor used for calculating the new frequency to drive motor! Question: How do you get factor_a? Answer: System frequency/(target frequency*2)-1 Example: What is the factor_a if I want 2000 Hz to drive my motor? 50,000,000Hz/(2000Hz*2)-1=12499

Design: Stepper Motor Example: Motor in this project we used: 2 phase bipolar stepper motor 12VDC, 480mA Coll: 25 Ohm 3.6 degrees/step Shaft: 0.19"D x 0.43"L Mounting Hole Spacing: 1.73" Mounting Hole Diameter: 0.11" Motor: 1.66"D x 1.38"H Detent Torque: 80 g-cm Holding Torque: 600 g-cm Weight: 0.5 lbs. Example: Frequency = 100Hz Motor rotates 360 degrees in 1 second! In our project, motor mostly run under 1Hz to 1000Hz

Design: Direction_controller Reset_n Enable 1 clock cycle=1 step=3.6 degree Clockwise: (direction=1) State order in 1 clock cycle: A------------phase = “1000” AB----------phase = “1100” B------------phase = “0100” BC----------phase = “0110” C------------phase = “0010” CD----------phase = “0011” D------------phase = “0001” DA----------phase = “1001” Counterclockwise: (direction=0) State order in 1 clock cycle: A------------phase = “1000” DA----------phase = “1001” D------------phase = “0001” CD----------phase = “0011” C------------phase = “0010” BC----------phase = “0110” B------------phase = “0100” AB----------phase = “1100”

Design: Linear Increasing &Gaussian random number generator Purpose: To avoid motor acceleration over large which results in potentially lose step Solution: Implement linear increasing to control the acceleration Gaussian random number generator: Purpose: To ensure random number concentrates in the range between 1Hz and 1000Hz but still reserve the randomness that the frequency (duck moving velocity) could be very high. (More playable)

Design: Software Diagram SPEAKER STEP MOTOR DE2 BOARD RECEIVER VHDL -send a signal to turn on/off the speaker VHDL -realize the controlling of step motors DE2 BOARD C Project -record and calculate the position of “duck” on x axis and y axis -generate acceleration for x axis and y axis -test whether the acceleration is safe -when a reset signal is received, bring up “duck” to original position VHDL -process signal and send gun ID

Design: Calculation y a b x Changed Variables: direction, frequency Current Position: curr_x, curr_y y a b Moving Range (120cm * 100cm) Safe Distance x Safe Area (100cm * 80cm) (curr_x, curr_y)

Design: Challenges 1. Deciding on the “best way” to implement the IR game aspect 2. Finding useable parts: - IR receivers need to have a significant range and must be feasible to connect to, only the most common frequency modulation (38kHz) is available on break out boards. 3. Verifying that the “duck” is actually in the safe communication area

Questions?