Difference between revisions of "F19: Tower Defense in Space"

From Embedded Systems Learning Academy
Jump to: navigation, search
m (BRIDGE CONTROLLER)
m (GEOGRAPHIC CONTROLLER)
Line 317: Line 317:
  
 
We used
 
We used
 
== <font color="0000FF"> GEOGRAPHIC CONTROLLER </font> ==
 
 
 
==== <font color="0000FF"> Hardware Design </font> ====
 
The geographical
 
 
==== <font color="0000FF"> Geographic Controller Schematic </font>====
 
 
[[File:RUN DBC geo sch.jpeg | thumb | center | 800px | Geographic Controller Schematic]]
 
 
==== <font color="0000FF"> GPS Module SJone connection </font>====
 
 
[[File:geo_pin_connection.jpg | thumb | center | 500px | Geographic module pin connection]]
 
 
==== <font color="0000FF"> GPS Module </font>====
 
 
 
[[File:S19_RUNDBC.jpg| thumb | left | 300px | Adafruit Ultimate GPS module]] 
 
[[File:S19_RUNDBC_antenna.jpg| thumb|center|300px | Cirocomm GPS antenna]]
 
 
<br>
 
<br>
 
<br>
 
<br>
 
<br>
 
As
 
 
 
[[File:RUN DBC geo table pic.png |thumb | center | 600px | GPRMC Sentence Structure]]
 
 
 
The first 6
 
 
==== <font color="0000FF"> '''Compass Module''' </font>====
 
 
[[File:compass_rundbc.jpg| thumb | center | 500px | CMPS14 Compass Module]]
 
 
The compass modul
 
 
===== <font color="0000FF"> '''Read Compass Heading''' </font>=====
 
Compass
 
 
===== <font color="0000FF"> '''Check Compass Calibration''' </font>=====
 
The cw:
 
[[File:compass_calibration_rundbc.jpg| thumb | center | 800px | CMPS14 calibration register]]
 
 
 
==== <font color="0000FF"> '''Essential GPS Data''' </font>====
 
 
 
===== <font color="0000FF"> '''''Bearing, Distance, and Deflection Angle Calculation'''''</font>=====
 
 
=== <font color="0000FF"> Software Design </font> ===
 
 
The
 
[[File:geo_diagram_rundbc.jpg | thumb | center | 500px | Geographic Module Flow Diagram]]
 
 
=== <font color="0000FF"> Technical Challenges </font> ===
 
 
'''Getting correct BAUD rate for GPS'''
 
* When
 
 
'''Compass reading was not accurate and would deviate from initial calibration'''
 
* The
 
'''Parsing NMEA sentences'''
 
* When we
 
 
=== <font color="0000FF"> Bill Of Materials </font> ===
 
{| class="wikitable"
 
! colspan="5" style="background:#36C;" |
 
<span style="color:#FFFFFF"> GEOGRAPHIC CONTROLLER </span>
 
|-
 
! scope="col" style="text-align: center;" style="background:#C0C0C0;" |
 
<span style="color:#000000"> PART NAME </span>
 
! scope="col" style="text-align: center;" style="background:#C0C0C0;" |
 
<span style="color:#000000"> PART MODEL </span>
 
! scope="col" style="text-align: center;" style="background:#C0C0C0;" |
 
<span style="color:#000000"> QUANTITY </span>
 
! scope="col" style="text-align: center;" style="background:#C0C0C0;" |
 
<span style="color:#000000"> COST PER UNIT (USD) </span>
 
|-
 
|
 
* '''GPS'''
 
|
 
* [https://www.amazon.com/Adafruit-Ultimate-GPS-Breakout-External/dp/B00I6LZW4O/ref=sr_1_fkmrnull_5?keywords=Adafruit+Ultimate+GPS+Breakout+Kit&qid=1554334740&s=gateway&sr=8-5-fkmrnull Adafruit Ultimate GPS Breakout Kit]
 
|
 
* 1
 
|
 
* $69.13
 
 
|-
 
|
 
* '''GPS antenna'''
 
|
 
* [https://www.amazon.com/CIROCOMM-Antenna-Ceramic-25x25x2mm-Geekstory/dp/B078Y2WNY6 Cirocomm 5cm Active GPS Antenna]
 
|
 
* 1
 
|
 
* $8.79
 
 
|-
 
|
 
* '''Compass'''
 
|
 
* [https://www.robotshop.com/en/tilt-compensated-magnetic-compass-cmps14.html CMPS14 Tilt Compensated Magnetic Compass]
 
|
 
* 1
 
|
 
* $33.99
 
|}
 
 
<HR>
 
<BR/>
 
  
 
== <font color="FF8C00"> MASTER CONTROLLER </font> ==
 
== <font color="FF8C00"> MASTER CONTROLLER </font> ==

Revision as of 01:32, 16 October 2019

Logo

ABSTRACT

My abstract goes here.

INTRODUCTION AND OBJECTIVES

RC CAR OBJECTIVES






TEAM OBJECTIVES







CORE MODULES OF TOWER DEFENSE

  • LED Matrix
  • User Input
  • Game Logic
  • Hardware


PROJECT MANAGEMENT ADMINISTRATION ROLES

  • Team Lead
  • Finance Manager
  • Git Repository Manager
  • Wiki Report Manager
  • Bill of Materials Manager


TEAM MEMBERS & RESPONSIBILITIES

Team Members

Administrative Roles

Technical Roles

  • [Ryan Zelek]
  • Team Lead
  • a role




  • [Zach Smith]



  • [Chong Hang Cheong]




  • [Polin Chen]




SCHEDULE

TEAM MEETING DATES & DELIVERABLES

Week#

Date Assigned

Deliverables

Status

1 10/15/19
  • Share team contact information<br\>
  • Create Git Repository<br\>
  • Set up group Slack channel<br\>
  • Invite Preet to Slack<br\>
  • Establish Code Guidelines and Standards<br\>
  • Complete
  • Incomplete
  • Complete
  • Incomplete
  • Complete
2 10/22/19
  • Identify hardware components (BOM)
  • Begin purchasing major items
  • Finalize game architecture
  • Incomplete
  • Incomplete
  • Incomplete
3 10/29/19
  • Solidify individual roles and responsibilities
  • Begin implementing basic code structure
  • Incomplete
  • Incomplete
4 11/5/19
  • Interface the software with the hardware
  • Incomplete
5 11/12/19
  • First hardware design implementation complete
  • Incomplete
6 11/19/19
  • Complete first draft of individual subsystems
  • PCB sent out for fabrication
  • Incomplete
  • Incomplete
7 11/26/19
  • Integration of major subsystems
  • Incomplete
8 12/3/19
  • Testing and Validation
  • Incomplete
9 12/10/19
  • Reserve time for debugging issues
  • Identify and fix critical bugs (hardware and software)
  • Finish any optimizations and visualization features
  • Incomplete
  • Incomplete
  • Incomplete


BILL OF MATERIALS (GENERAL PARTS)

MICRO-CONTROLLERS

PART NAME

PART MODEL & SOURCE

QUANTITY

COST PER UNIT (USD)

  • 32x64 RGB LED Matrix
  • 2
  • $49.95



HARDWARE INTEGRATION PCB

Hardware Design

The hardware integration PCB was designed with two goals:

1. Minimize the footprint of the onboard electronics
2. Minimize the chances of wires disconnecting, during drives

To accomplish these goals,

The board consisted of n layers:

layer name

Technical Challenges

Design

  • Balancing priorities between HW design and getting a working prototype


Assembly

  • Wireless antenna connector on master board not accounted for in footprint, it may have to be removed to avoid interference with one connector.

Bill Of Materials

HARDWARE INTEGRATION PCB

PART NAME

PART MODEL

QUANTITY

COST PER UNIT (USD)



TEST

In order


Hardware Design

During




We used

MASTER CONTROLLER

Hardware Design

The master

Master Module Schematic
LCD Showing speed, steer and state information

Software Design

Master State Machine
  • LCD di

Technical Challenges

  • Qui


Bill Of Materials

MASTER CONTROLLER

PART NAME

PART MODEL

QUANTITY

COST PER UNIT (USD)

  • LCD
  • N/A
  • 1
  • Supplied by Preet Kang


MOTOR CONTROLLER

Hardware Design

The motor board
1 pin
1 pin f
1 pin

The ESC was included with the RC we purchased and it was interfaced with 3 pins:
1 pin fo

Manag

Managing wheel spin was a more complicated process. The ESC also requires a PWM signal in order to operate, but is not as simple as the servo's operation.
In or
S



Speed Control Timing Diagrams
Speed Timing Diagrams


Steering Control Timing Diagrams
Steering Timing Diagram


Motor Controller Schematic
Motor Module Schematic

Software Design


Periodic Callback: Init (beginning of program)

Periodic Callback: 1Hz (every 1sec)
- Che
Periodic Callback: 10Hz (every 100ms)
- Sen

Technical Challenges

SJOne PWM

W


Encoder

The

Bill Of Materials

MOTOR CONTROLLER

PART NAME

PART MODEL

QUANTITY

COST PER UNIT (USD)

  • Motor Encoder
  • 1
  • $63.16


SENSOR CONTROLLER

Hardware Design

Pin connection of Different sensors to SJOne Board
Placement of Sensors on RC Car

Sen


Sensor Controller Schematic
Sensor Module Schematic
CAD Design

We g

Sensor Guard to Minimize Interference
Sensor Guard Mount showing Vertical Adjustment



Placement for the Ultrasonic Sensors

We r

Sensor Value Conversion

In or

Sensor Graphical Representation

Software Design

Flowchart

The f

Flowchart of Sensor Module
Timing Diagram
Timing Diagram

Technical Challenges

Sensor Interference

We saw :

  • Higher
  • Instead of l
Power Deficiency

At first

Unstable HR-04 Readings

At fi

ADC Supply Voltage

The mid

Slow car response to obstacle due to large queue size (running average)

During

Bill Of Materials

SENSOR CONTROLLER

PART NAME

PART MODEL

QUANTITY

COST PER UNIT (USD)

  • Infrared Sensor
  • 1
  • $13.95
  • Front-left-right Distance Sensor
  • 2
  • $29.95
  • Front-middle Distance Sensor
  • 1
  • $29.95


CONCLUSION

This pr


Project Video

RUN-D.B.C project video

Project Source Code

RUN-D.B.C project source code

Advice for Future Students

  • FORM YOUR TEAM AS EARLY AS POSSIBLE AND START WORKING ON THE PROJECT AS EARLY AS POSSIBLE (WEEK 1 IF POSSIBLE)
  • If you are