Jonathan Yitzchaki David Michaeli Instructor: Ina Rivkin Spring 2009 1.
-
Upload
merryl-bishop -
Category
Documents
-
view
218 -
download
0
Transcript of Jonathan Yitzchaki David Michaeli Instructor: Ina Rivkin Spring 2009 1.
1
ANIBIKE (PART I) PROJECT OVERVIEW
Jonathan YitzchakiDavid MichaeliInstructor: Ina RivkinSpring 2009
2
PROJECT DESCRIPTION
Implementation of a wheel animation unit .
Monochromatic 4-level light intensity. Two side by side 16- LED radius arrays. Angular resolution: 128 degrees 3X1.5V batteries.
3
PROJECT GOALS
Implement a digital circuit for showingimages/animations using LEDs over bicyclewheels.
Usage of uController as system heart. Design of hybrid Digital/Analog system. Design of a designated computer program for
interfacing with the circuit. MINIMAL production cost.
.
4
FIELDS
• uC Embedded
• Host SW C# application
• Image processing
SW
• Analog/ digital Circuit
HW
• Circuit assembly
• Prototypes construction
Mechanics
5
HARDWARE
6
HW- MAIN COMPONENTS
Atmega48 - micro controller
EEPROM Hall effect sensorUSB controller
LED’s
6
C
7
HW -PERIPHERAL COMPONENTS
NPN transistorsEnhances the current
for maximal illumination
JTAG CONECTOR
Enables uploading
embedded SW
USB connector
ResistorsRegulates current
for LED’s
CapacitorsCurves voltage
for digital components
7
C
8
HW-SYSTEM LAYOUT
Non-Volatile Memory
Atmega48
Hall Sensor
USB controller and connector
JTAG
Clock
9
LED array
mC
mem
Hall sensor
HW –ILLUMINATION FLOW
10
HW- LED CURRENT
, ,
CCV const
E B BEC
eq eq
C B BE B BELEDi
LEDi Ri LEDi Ri
V V VI
R R
I V V V VI const
N RN RN
LED pulls – (min) 5mA in max Illumination, uC max current (25mA) per channel is exceeded.
Per-LED current remains constant,
1, 1 2, 2 8, 8 1, 1 2, 2R || || ... || ... LEDi Rieq LED R LED R LED R LED R LED R
RR R R R R
N
11
HW-LED CONTROL
4 global “ROWS” 4 Columns for each radius(data is on columns)
12
HW – LED ILLUMINATION CYCLE
L2 L1
L2 L1
L2 L1
L2 L1
Each “four” gets a 25% duty cycle
13
HW- PWM
Light intensity Memory Pixel Format PWM Sequence0% 00 00033% 01 00166% 10 011100% 11 111
14
COMMUNICATION PROTOCOLS
uC <->EEPROM – SPI uC <->USB controller – UART uC <->Hall sensor – Interrupt channel uC <->programmer - SPI USB controller <-> Host - USB
15
SOFTWARE
16
SOFTWARE - EMBEDDED STATES
Illumination mode
Idle
Uploading mode
Memory fetch
Memory wrap-
around
Start Hal
l Sen
sorHall Sensor
Memory wrapped-around
RS232 in
terr
upt
“Exi
t” c
om
mand
Fetch finished
time exceededd
RS232 interrupt
17
180 degree phase delayOne “chunk” is 32bitsX2
MEMORY PICTUREEEPROM Mem layout
18
SOFTWARE- EMBEDDED
Illumination mode• Chunk is fetched every angular tic.• Chunk Is illuminated
After Hall interrupt• Cycle is timed, time allocated for angular
resolution is calculated.• Memory is wrapped
Uploading mode• Host interrupt• Picture is uploaded to memory
18
1919
SOFTWARE- EMBEDDED
Uploading mode• RS-232 connection is established.• Picture is uploaded to memory
19
Link to program
20
SOFTWARE – IMAGE PROCESSING
In c# application: Cartesian-To-Polar Converter. Bilinear interpolation. Conversion to downgraded 4-level color
depth. “Encrypted” data is loaded to EEPROM.
During runtime: The data is transferred from EEPROM to uC
chunk by chunk and cached (saves 50% of picture size).
21
MECHANICS
22
MECHANICS
Circuit assembly• Wire wrap on
development board
Mechanical prototype• Made of general use
CAPA• Hand made improvising
22
23
SUMMARY
24
DEVELOPMENT STAGES
•Defining acquisitions needs and ordering of hardware.
•Acquiring enough knowledge concerning uController programming. Understanding our unique needs.
•Designing debug prototype.
•Building debug prototype system.
•Successfully simulating memory management unit.
•Receiving ordered hardware.
•Building debug prototype system (cont.)
•uC software design.
•Debugging.
•Mid-Semester presentation.
•Debugging.
25
DEVELOPMENT STAGES
26
“GOOD”S AND “BAD”S
HW component supply, lab support (Bruria).Project expanses.
Lab computer environment.
27
ADDITIONAL INFORMATIONAni-Book
Questions?
28
FINAL RESULTS:
AND now Live…
29
ANIBIKE 2
30
FUTURE FEATURES (PART II)
Full Color display (RGBX8bits). “On wall” unit. PCB design:
LED connectivity lines. Circuit board.
32 RGB LEDs (SMT) radial resolution. Extended external memory (SD card)
with FAT12 file system support.
31
PURCHASING
RGB LEDs (SMT). PCB printing. SD cards. Designated motor & mechanics(3D
print)?