ECE 492 - Computer Engineering Design Project Duck Hunt Game Jesse Larson, Qingqing Liu, and Jing Lu Game Overview 2014 Component Overview The simple purpose of this game is to “shoot” the duck toy as quick as possible to win the game. However “shooting” a stationary duck would be too easy, so to add some difficulty, the duck moves. Motor controller components Top left – DE2 board Top right – Stepper motor amplifier circuit Bottom – Stepper motors The duck swings left and right by using stepper motors to vary the length of the two strings the duck is connected to. Additionally, the game can detect two different styles of infrared hits so it can be played in 2 teams. The target itself must be hit by an infrared shotgun pulse three times to finish the game. Therefore once a player or team hits the target twice they will win the game. Fig. 2 Motor Controller Components Game Overview The infrared components. Top right – the sensor bar Top left – the 56 KHz receiver for DE2 Bottom – the gun infrared transmitter KEY 3 – Starts the game immediately KEY 2 – Starts the game after a delay of 10 seconds KEY 1 – The duck becomes invincible for a minute shoot as many times as you can to record your high score! KEY 0 – Shuts off the game and returns the duck to its start position Infrared Communication Overview The infrared communication consists of 3 main components. The gun, sensor bar, and a receiver on the DE2 board. The Gun The gun interface consists of two buttons and one switch, the gun can emit 2 different length 38 KHz infrared pulses. One button loads the transmitter , while the second button serves as a trigger to fire the transmitter. The switch serves to select which gun id to shoot at the transmitter. The Sensor Bar The sensor bar serves to change the 38KHz infrared pulse transmitted by the gun into a 56 KHz pulse the infrared receiver on the DE2 can detect. DS 1077 Fig. 3 Infrared Components 38 KHz infrared pulse from gun Stepper Motor Overview TSOP 853 56 KHz infrared pulse to DE2 N O R The stepper motor is controlled by half step wave forms for smoother motion then offered by full step control. Fig. 4 How the sensor bar works The DE2 performs calculations while moving the sensor bar to insure the velocity and acceleration of the bar do not exceed the stepper motors torque limit. This calculation minimizes the number of lost steps thus allowing the DE2 board to know the location of the sensor bar to a reasonable accuracy. Fig. 1 Duck The DE2 Receiver Simply consists of a 56 KHz infrared receiver coupled with some supporting hardware to eliminate spurious outputs from the receiver. Department of Electrical & Computer Engineering
© Copyright 2026 Paperzz