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 ID: 768868
Download Presentation The PPT/PDF document "Knight Brawlers Group 1" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Knight Brawlers Group 1 Allen Davilla Carlos Davilla Will Allen Josh Thames
MotivationCreate a fun gaming system that all group members would enjoy buildingInclude streaming video into the project Build 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 device’s 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 other An app that would create a friendly user interface
Specifications SystemParameterDesign Spec Camera Resolution VGA 640x480 Camera Frame Rate 25 fps Radio Communication Wi-Fi 2.4 GHz Wi-Fi Range 30 m Wi-Fi Data Rate 54 Mbps App User Interface Android 2.2+ App Vehicle Control Tilt Battery Life 1 hour Frame Scale 1/10 th
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Motor RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Servo RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
Hit Locations Sensors on the rear, right, and left sides Triggered by collisions USER
SensorsPiezo Disks Vs. Microswitches Piezo Disks Small easy to fit Creates electric pulse on impact Price range: 30 cents- 10 dollars High tolerance Microswitch Small easy to fit 2 state single pole double throw Price range: 90 cents- 5 dollars High tolerance
MicroswitchesLever Microswitch for added surface area for impactNo debounce circuit neededReverse connection for component reduction
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Servo RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
Scoring System Full Health One Hit Two Hits
LEDs for Scoring VisualizationRGB’s 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 TLC5940 Characteristic Output Channels 16 PWM brightness 4096 steps Data Vmin-Vmax 3 V to 5.5 V Capability Current 120 mA (for > 3.6 V) LED Vmax17Operating temp-40 C to 85 C
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Servo RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
Camera OmniVision 9655 Pros Delivers 30 fps at 640x480 VGA Video Supports Compressed YCbCr 4:2:2 Format Microcontroller Compatible Fully configurable Some Factory Support (STM) 3.6cm 2.7cm
Compression?Real-Time JPEG is optional (RTJPEG)Light-weight but low compression ratioMust write in native code Likely 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 App
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Servo RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
Wi-Fi ModuleRequirements TI CC3000 Ti’s “SimpleLink” Technology$35 for Dev Board TI’s “World Class Customer Support” Greater Data Rate than Bluetooth @54Mbps 802.11 b/g Protocol Greater Range Than Bluetooth Simple Configuration Low Cost Good Documentation Modest Data Rate Modest RangeLow Power
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Servo RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
Motor 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 M odulation (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. IN1 IN2 Out1 Out2 Fwd /rev Motor Steering Motor 0 0 Z Z CoastStraight01LHReverse Left10HLForward Right11LLBrake -
Landscape modeDirect the RC CarCompatible the newest version of Android Phones and olderRemote Control
Android Device Must: Have Wi-Fi CapabilityContain Accelerometer Sensors Have Touch Screen Run Android Android 2.2( Froyo ) or higher Remote 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 Calibration Z A xis C alibration -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 System Android Free – No new hardware costs, free SDK, familiar languages Open source platform, easy to learn Programming 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 market Version Code name API level Distribution 4.3 Jelly Bean 18 0% 4.2.x Jelly Bean 17 8.50% 4.1.x Jelly Bean16 36.60%4.0.3–4.0.4Ice Cream Sandwich 1521.70%3.2 Honeycomb13 0.10%3.1Honeycomb 120%2.3.3–2.3.7 Gingerbread1030.70% 2.3–2.3.2Gingerbread9 0%2.2Froyo 82.40%2.0–2.1 Éclair7 0%
Power Supply Voltage Amps H-Bridge (Motors) 2.7 - 6 0.5 - 1.5A Wi-Fi 3.6 92mA – 270mA Microcontroller 4 150 mA
Rechargeable Batteries Nickel Metal Hydride Power Supply
18.8 inches Long5.76 inches Wide4.8 Inches TallTop speed of 12 mph Remote Control Car
App Create Profile Host Game Join Game Choose Game Mode Sync Car Start Game! Control Car End Game and Report Scores Microcontroller Bumpers Camera Steering Servo RGB LEDs indicating “Health” H-Bridge Motor System Block Diagram Bumpers User Input Load Profile Wi-Fi
Microcontroller Atmega328 MSP430 STM32F4 AM3359 Dev Board Arduino Uno MSP430 Launchpad STM32F4 Discovery BeagleBone Black Speed (MHz) 16 16168 1 GHz LanguageC, AssemblyC, Assembly C, C++, Assembly C, C++, C#, JavaDev Board CostEst. PCB Cost $35.00$50.00$9.99$50.00 $14.25$50.00$45$100+ PWM supportYes YesYes YesMax Temp. (F) 185 185221 221 Flash Memory 32kB 16kB 1MB 512 MB Onboard Camera Support No No Yes Yes ARM??No No YES! =D YES!
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-Fi JTAG/ST Link Power Supply Camera H-Bridge LED Network
Division of Labor Josh Will Allen Carlos PCB Design Motors Power Smartphone Interface Sensors LED Network/ Scoring System Camera Wireless Connectivity All members will lend a hand in any area that may need additional assistance
Budget and Finances Cost Per Unit ($) Units Cost ($) Already Purchased Lever Micro Switch Sensors 3.50 3 10.50 RC Cars 40.00 1 40.00 Experimental boards 20.00 3 60.00 Cameras Modules 10.00 4 40.00 Wifi Modules 35.00 4 140.00 Anticipated Purchases Sensors for Other Cars 3.50 9 31.50 Separate RC Cars 40.00 3 120.00 PCB 35.00 1 35.00 RGB LEDs 3.50 12 42.00 Power Systems 25.00 4 100.00 Jumper Wire Pack 7.00 1 7.00 Miscellaneous NA NA 200.00 Total 826.00
Progress
IssuesSenioritisDifficult Camera InterfaceTweaking Android AppHeat From H-bridge Drivers
Any Questions?