knight brawlers

Click here to load reader

Upload: axl

Post on 23-Feb-2016

63 views

Category:

Documents


0 download

DESCRIPTION

Knight Brawlers. Group 1. Allen Davilla Carlos Davilla Will Allen Josh Thames. Motivation. Create a fun gaming system that all group members would enjoy building Include streaming video into the project Build something that would provide a first person experience from the vehicles - PowerPoint PPT Presentation

TRANSCRIPT

PowerPoint Presentation

Knight BrawlersGroup 1

Allen Davilla Carlos DavillaWill Allen Josh Thames

MotivationCreate a fun gaming system that all group members would enjoy buildingInclude streaming video into the projectBuild something that would provide a first person experience from the vehiclesCreate something where all members of the group can keep a functional piece of the project

Goals4 RC cars controlled by 4 users by their mobile devices accelerometerOn board cameras mounted to the cars that would provide a live first person view from the RC carsA competition mode that would provide a competitive game where the cars would fight each otherAn app that would create a friendly user interface

SpecificationsSystemParameterDesign SpecCameraResolutionVGA 640x480CameraFrame Rate25 fpsRadioCommunicationWi-Fi 2.4 GHzWi-FiRange30 mWi-FiData Rate 54 MbpsAppUser InterfaceAndroid 2.2+AppVehicle ControlTiltBatteryLife1 hourFrame Scale1/10th AppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering MotorRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiAppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering ServoRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiHit Locations

Sensors on the rear, right, and left sidesTriggered by collisions

USERSensorsPiezo Disks Vs. Microswitches

Piezo DisksSmall easy to fitCreates electric pulse on impactPrice range: 30 cents- 10 dollarsHigh toleranceMicroswitchSmall easy to fit2 state single pole double throwPrice range: 90 cents- 5 dollarsHigh toleranceMicroswitchesLever Microswitch for added surface area for impactNo debounce circuit neededReverse connection for component reduction

AppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering ServoRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiScoring System

Full Health One Hit Two HitsLEDs for Scoring VisualizationRGBs for added color rangeMounted to roof for easy viewLED Drivers for controlling power to LEDTLC5940 Current sink to eliminate need for resistors and reduce components

TLC5940CharacteristicOutput Channels16PWM brightness4096 stepsData Vmin-Vmax3 V to 5.5 VCapability Current120 mA (for > 3.6 V)LED Vmax17Operating temp-40 C to 85 CAppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering ServoRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiCameraOmniVision 9655Pros

Delivers 30 fps at 640x480 VGA VideoSupports Compressed YCbCr 4:2:2 FormatMicrocontroller Compatible Fully configurable Some Factory Support (STM)

3.6cm2.7cmCompression?Real-Time JPEG is optional (RTJPEG)Light-weight but low compression ratioMust write in native codeLikely will not be worth the effortMJPEG, MPEG-4 etc. not optional with our current microcontrollerInstead, we are opting for subsampled images

Purpose of Wi-FiCommunicate user input from Android app to carCommunicate car health and streaming video to the Android AppAppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering ServoRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiWi-Fi ModuleRequirements TI CC3000Tis SimpleLink Technology$35 for Dev BoardTIs World Class Customer SupportGreater Data Rate than Bluetooth @54Mbps 802.11 b/g Protocol Greater Range Than Bluetooth

Simple ConfigurationLow CostGood Documentation Modest Data RateModest RangeLow PowerAppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering ServoRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiMotor ControlDC motors already available on RC car will be used to reduce project cost. 2 DC motors: 1 for steering and 1 for forward/reverse control.Forward/Reverse and Steering motor will be combined with H-Bridge for function.

DVR8833 H-Bridge DriverTwo motors per driver.Max current output 1.5 A, Max temperature 185 degrees Fahrenheit.Pulse Width Modulation (PWM) input interface controls forward/reverse control and right/left steering. Low Power Sleep mode and internal shutdown functions for over temperature protection. PWM Control Using H-Bridge

H-Bridge driver will use two PWM signals from the STM32 to generate Fwd/Rev and Steering function of the DC motors.IN1IN2Out1Out2Fwd/rev MotorSteering Motor00ZZCoastStraight01LHReverseLeft10HLForwardRight11LLBrake -Landscape modeDirect the RC CarCompatible the newest version of Android Phones and older

Remote Control

Android Device Must:Have Wi-Fi CapabilityContain Accelerometer SensorsHave Touch ScreenRun Android Android 2.2(Froyo)or higherRemote Control Requirements

Motor Control Using Accelerometer RC car will be controlled by Y and Z coordinates.Z direction(into out of page) will control Fwd/Rev motor function.Y direction will control left and right steer.

Handling Accelerometers

Y Axis CalibrationZ Axis Calibration-Axis must be calibrated so that the user can view the device at an optimal angle. Accelerometers must consider effect due to gravity, linear acceleration = acceleration - acceleration due to gravity.Smartphone Operating SystemAndroidFree No new hardware costs, free SDK, familiar languagesOpen source platform, easy to learnProgramming Language Cost to Develop Devices Readily Available? Familiarity Android Java/XML Free Yes Medium iOS Objective-C $99/year Yes Medium Windows Phone .NET framework/ Visual C++/XNA Free No Low Target APIs 8 (Android 2.2 Froyo and higher), approximately 99.9% of Android marketVersionCode nameAPIlevelDistribution4.3Jelly Bean180%4.2.xJelly Bean178.50%4.1.xJelly Bean1636.60%4.0.34.0.4Ice Cream Sandwich1521.70%3.2Honeycomb130.10%3.1Honeycomb120%2.3.32.3.7Gingerbread1030.70%2.32.3.2Gingerbread90%2.2Froyo82.40%2.02.1clair70%Power SupplyVoltage AmpsH-Bridge (Motors)2.7 - 60.5 - 1.5AWi-Fi3.692mA 270mAMicrocontroller4150 mARechargeable Batteries Nickel Metal Hydride

Power Supply

18.8 inches Long5.76 inches Wide4.8 Inches TallTop speed of 12 mph

Remote Control CarAppCreate ProfileHost GameJoin GameChoose Game ModeSync Car Start Game!Control CarEnd Game and Report ScoresMicrocontrollerBumpersCameraSteering ServoRGB LEDs indicating HealthH-BridgeMotorSystem Block DiagramBumpersUser InputLoad ProfileWi-FiMicrocontrollerAtmega328MSP430STM32F4

AM3359Dev BoardArduino Uno

MSP430 LaunchpadSTM32F4 DiscoveryBeagleBone BlackSpeed (MHz)16161681 GHzLanguageC, AssemblyC, AssemblyC, C++, AssemblyC, C++, C#, JavaDev Board CostEst. PCB Cost$35.00$50.00$9.99$50.00$14.25$50.00$45$100+PWM supportYesYesYesYesMax Temp. (F)185185221221Flash Memory32kB16kB1MB512 MBOnboard Camera SupportNoNoYesYesARM??NoNoYES! =DYES! STM32F407VGT6 ARM 32 bit Cortex M4FPWM for motor control and Plenty of GPIO available (82)Low power modesSerial Wire and JTAG interfaces for debuggingDigital Camera Interface (DCMI)External Interrupt/Event Controller

ST-Link/V2 Debugger & ProgrammerIn circuit debugger and programmer for the STM32Supports JTAG/Serial Wire Interface USB 2.0

Schematic Design In Eagle CAD

Wi-FiJTAG/ST LinkPower SupplyCameraH-BridgeLED NetworkDivision of LaborJoshWillAllenCarlosPCB DesignMotorsPowerSmartphone InterfaceSensorsLED Network/Scoring SystemCameraWireless ConnectivityAll members will lend a hand in any area that may need additional assistanceBudget and FinancesCost Per Unit ($)UnitsCost ($)Already PurchasedLever Micro Switch Sensors 3.50310.50RC Cars 40.00140.00Experimental boards 20.00360.00Cameras Modules 10.00440.00Wifi Modules 35.004140.00Anticipated PurchasesSensors for Other Cars 3.50931.50Separate RC Cars 40.003120.00PCB 35.00135.00RGB LEDs 3.501242.00Power Systems 25.004100.00Jumper Wire Pack 7.001 7.00Miscellaneous NANA200.00Total826.00ProgressIssuesSenioritisDifficult Camera InterfaceTweaking Android AppHeat From H-bridge Drivers

Any Questions?