(1.72 MB PowerPoint)

advertisement
Critical Design Review
27 February 2007
Black Box Car System (BBCS)
ctrl + z:
Benjamin Baker, Lisa Furnish,
Chris Klepac, Benjamin Mauser,
Zachary Miers
Project Overview




Recording visual data outside of car
Data constantly stored in RAM
When a crash is detected, data is written
from RAM to more permanent Flash
storage
User is able to video of events leading up
to crash on personal computer
Initial Setbacks


Cannot use PSRAM
ARM9



Code space
Learning curve (software)
Routing data from camera to RAM
System Block Diagram
Accelerometer
Camera
Black Box
User Interface
Reset
Storage
PC
Interface
Black Box Block Diagram
Power
LED/LCD
STR9
Microcontroller
Flash
Storage
FPGA
Accelerometer
Camera
RAM
Computer
Hardware:
Microcontroller




STR9
Working with STR910-EVAL
and STR912 development
boards
Take input from
accelerometer and reset
Communicate with FPGA via
GPIO
Microcontroller
Schematic
ARM
Programming Block
Run bootup code
Receive I2C input from
accelerometer
Transfer I2C data
to register
Monitor register for
4G reading
Toggle GPIO high—
tell FPGA accident
has occurred
Stop receiving input
Hardware:
Camera






ST VS6524
Using x24 development
board
320 x 240
8 frames per second
RGB 565
Focal length of 30mm to
infinity
Camera
HSYNC
Camera
Data Transmission
Camera
Image Size
Memory: 2^20[addresses] * 16[bits/address] * 2 [memory chips] = 33554432 bits
Image: 320(width) * 240[height] * 16 [bits/pixel] = 1228800 bits
Storage amount: Memory / Image [# of frames] = 27.3067 frames
Length of recording time: 27 frames * (1 / 8 [frames per second]) = 3.375 seconds
Camera
Schematic






8 data lines (output)
HSYNC (output)
VSYNC (output)
CLK (input)
PCLK (output)
SDA & SLC (I2C)
Hardware:
Accelerometer




ST LIS3LV02DQ
Working with
EK3LV02DQ (ST)
development board
Will communicate
with processor via I2C
4G will trigger data
storage
Accelerometer
I2C Interface






Using I2C to interface directly with the
microcontroller
Tie the CS pin high to select I2C instead of SPI
LIS3LV02DQ is an I2C slave
2 lines of interest with I2C bus; Serial Clock Line
(SCL) and Serial DAta Line (SDA)
SDA is bidirectional
Both lines have built in pull up resistors
Accelerometer
Schematic
Hardware:
Memory






Cypress CY7C1061AV33
1M x 16 SRAM
Asynchronous
2 chips
Implement circular buffer
Will store 27 frames

At 8 frames per second this
will be 3.37 seconds of
video
Memory
Chip Select
Memory
Block Diagram
Memory
Timing Diagram Write
Memory
Timing Diagram Read
Memory
Outputs and Inputs






5 Vcc inputs (high)
5 Vss inputs (low)
BHE-bar (low)
BLE-bar (low)
DNU (do not use)
NC (not connected)






20 address lines
(input)
16 parallel data lines
(input / output)
CE1 (input)
CE2 (input)
WE (input)
OE (input)
Memory
Schematic
Hardware:
Flash Memory



Secure Digital flash
memory card
Breakout Board for
DOSonCHIP FAT16
FAT32 Module
Write to DOSonCHIP
using UART from
FPGA
Flash Memory
Information



UART
SPI (Not Using)
Two will be used



Accelerometer data
Long term storage of
video
Baud rates:

1200, 2400, 9600,
28800, 38400, 57600,
115200, 230400 [bps]





UART_TX
UART_RX
UART_RTS
UART_CTS
At 115200 [bps]
transfer of video will
take 4:48 [min:sec]
Flash Memory
Schematic
Hardware Power
Requirements:




Camera: 2.8V @ <50mA
ARM9: 3.3V @ 200mA Max (I/O’s) and a
1.8V Core supply @ <20mA
SRAM: 2.8V @ <35mA total
Xilinx Spartan 3: 5V @ 2.5A max (should
be well under 1A for our application).
Power Supply Block Diagram
Car Battery(8V-16V)
External 12V Backup
Battery
5V-4A Converter
3.3V 300mA Max
LDO Linear Regulator
CPU I/O’s
2.8V 200mA Max
LDO Linear Regulator
Camera Digital and
Analog Supply’s
SRAM Supply
1.8V 100mA Max
LDO Linear Regulator
CPU Core
Xilinx Spartan 3 PCB
The result for a 5V-4A Supply:
LDO Linear Regulators:


3.3V Supply: STMicroelectronics LD1117
can supply up to 1A with a dropout
voltage of 1.15V.
2.8V and 1.8V Supply: STMicroelectronics
LK112 can supply up to 200mA with a
dropout voltage of 0.35V.
Supply Locations:


5V-4A Switching converter on eval board.
Run power wires to the other PCB’s.
LDO Linear regulators on the PCB’s where
required.
Power supply backup:


12V battery that cuts in when the main
supply fails.
The only time the backup supply is
needed is when an accident actually
occurs.
Supply Transients, Load dump, and
mutual coupling.

Could safeguard all of these but we only
really need transient protection and supply
reverse polarity protection.
Hardware:
FPGA




Digilent XC3S200
Spartan-3 development
board
Will route data from
camera to RAM via I/O
lines
Store entire frame on
development board, then
move entire frame from
FPGA SRAM to our large
SRAM
Move images from SRAM
to flash memory
FPGA
I/O pin Layout
FPGA
Programming Block Diagram
Video Capture
Multiple Frame Storage
Interrupt Sequence
Video input
Single frame
storage
Multiple Frame Dump
Long Term Storage
Pointer to Write Location
Pointer to Start Frame
(Addressing of multiple frame storage)
(Addressing of multiple frame read)
Transfer from single frame
to multiple frame storage
Interrupt to
stop video
Image header
information
Multiple frame storage
Video output to flash memory
Milestone Deliverables


Milestone 1:
 PCB design and BOM v0.1
 Formatting for Bitmap images
 Send data to RAM
 Write to Flash via PC
 Main Power PCB
Milestone 2:
 PCB v0.1 fabricated and populated
 Camera data to RAM
 Write to Flash via FPGA
 ARM9 communication (I2C and FPGA)
 On-board user interface
Timeline
Questions
?
Download