Presentation is loading. Please wait.

Presentation is loading. Please wait.

SD Card Data Logger Senior Design II Final Presentation April 21, 2011.

Similar presentations


Presentation on theme: "SD Card Data Logger Senior Design II Final Presentation April 21, 2011."— Presentation transcript:

1 SD Card Data Logger Senior Design II Final Presentation April 21, 2011

2 Team Advisor: Dr. Patrick Donohoe James Felkins (EE) Team Leader, Web Design, Test Board Harry Corey (EE) Test Cases, Hardware Design, Part Procurement Brendan Babiak (EE) Prototype Construction, Buffering Scheme, MDDFS Jaron Martin (CPE) Command Set, SPI/UART Input, MDDFS

3 Introduction to Project problem/solution tech./practical constraints System Overview high-level system design software solutions Hardware Design power PCB Testing subsystems features Questions

4 The S-Drive is an OEM module that accepts data through a serial connection and saves it to an SD card.

5 SD cards are a viable storage medium with unique advantages but involve complex overhead.

6 The S-Drive will handle the unwanted overhead and make SD cards a more desirable solution.

7 NameDescription CommunicationThe device uses UART and SPI data connections. Voltage The device supports an input voltage between 3.3 or 5 V. Current Draw The device draws a maximum current of 250 mA in active mode and less than 10 uA in sleep mode. Storage Medium The device interfaces with a standard size, 32 x 24 x 2.1 mm SD card. MemoryThe device supports all SD cards up to 32 GB.

8 The device must cost less than $60. CompetitorPrice VDRIVE2$24.50 [4] Logomatic v2$59.95 [3] Avisaro M2051199.00 € (~$133) [2] [2] [4] [3]

9 The device must easily fit and integrate into other systems. Provided on a PCB No larger than 5 in 2 Easily mountable

10

11 Software Implementation -Microchip’s MDDFS library -Command Interface

12 Size constraint met

13 Command Set Open File for Append 1 Opens the file LOG1.TXT for appending. Only use if no file is currently open. Returns 1 if successful, else returns error code. Creates the file if it does not exist. a Open File for Read 12 - ? File name followed by \n character to represent the end of the name. File pointer will start at the beginning of the file. Use only if no file is currently open. Returns 1 after each byte if OK, else returns error code. oFile Name Close File 1 Closes the file so that another file can be opened or the SD Card can be safely removed. Use only if a file is open in either write or read mode. Returns 1 if successful, else returns error code. c Write Data 123 - [4-257] The S-Drive will append the next NumBytes received to the end of the file. Use only if the file is opened in write mode. Returns 1 after each byte if OK, else returns error code. w# of BytesData Read Data 1 Each time the r command is is received, the next byte in the file is returned and the file pointer moves one by byte. Use only if the file is opened in read mode. Returns the next byte in the file. If at EOF, starts over at beginning of file. r Move Read Pointer 12 Moves the read pointer NumBytes without replying with each byte of data. Use only if file is open in read mode. Returns 1 if sucessful, else returns error code. m# of Bytes Flush Buffer 1 Flushes the write buffer. Use to flush the buffer if you do not want to wait for the buffer to automatically get written. Use only if file is open in write mode. Returns 1 if successful, else returns error code. f Sleep 1 Forces the S-Drive to enter sleep mode. s Big File 12 - ? ? Allows for long or unknown lengths of data to be written to SD card. Use only if the file is opened in write mode. Returns 1 after each byte if OK, else returns error code. End this command by sending a NULL byte. bData NULL

14 Data size not pre-specified Binary files may contain all possible byte values Toggle wake pin to signal EOF

15 SPI & UART multiple baud rates config.txt file jumper determines mode

16 Flow Control 2.3 kB each buffer READY pin

17 Enters ‘Sleep Mode’ Enters mode via SLEEP command Dedicated WAKE signal Uses READY pin while re-initializing SD card

18

19 8 wires UART/SPI TX & RX use same lines

20

21 Standard-sized SD cards Supports adapters for mini- and micro- SD cards

22 Accepts 3.3 and 5 V inputs Power mode determined by jumper 5 V mode uses a low-dropout LR

23 Current draw SD card has own power rail SD card is uses ~250uA while inactive Sleep mode cuts power to SD card Implemented with a low-dropout LR

24 Power (V)Inactive Current Draw (mA) Active Current Draw (mA) Sleep Current Draw (uA) Constraint Met? 3.319.2684.60Yes 519.47369.5N/A

25 Baud RatePower(V)Inactive Current Draw (mA) Sleep Current Draw (uA) 28800 3.318.68.8 518.774.0 57600 3.318.68.9 518.774.1 115200 3.318.68.9 518.774.1

26 Practical Constraints Small Affordable parts Mountable

27 Issues Disjoint ground planes SPI buses fused Issues corrected for web-site

28

29

30 SPI MasterSPI Slave Logic Analyzer

31 Realterm

32 Operational modes 8 possible combo’s

33

34 Python Tool Handles semantics Very slow Used to test robustness Better demo

35 Reading large file from SD card Took appx. 1 hour w/ Python tool for 20kB File perfectly copied Testing done in all modes ~3.5 kbps reading and writing

36

37 Sending/Receiving a large file: Intermediate MCU sends 5 million chars Data rate ~15kB/s

38 Command Functions All functions do their job Improper commands are ignored (no crash)

39

40 IssueConstraintActual SpecMet? Comm. InterfaceUART & SPI Voltage3.3 & 5 (V) Current Draw<10 uA (sleep)~4.5 uA Storage MediumStandard SD SD Card SizeUp to 32 GB

41 [7] Microchip, “PIC24F Family Reference Manual, Sect. 21 UART,” Microchip Technology Inc., January 26, 2010. [Online]. Available: http://ww1.microchip.com/downloads/en/DeviceDoc/en026583.pdf. [Accessed September 14, 2010]. http://ww1.microchip.com/downloads/en/DeviceDoc/en026583.pdf [8] Microchip, “PIC24F Family Reference Manual, Sect. 23 Serial Peripheral Interface (SPI),” Microchip Technology Inc., March 22, 2007. [Online]. Available:http://ww1.microchip.com/downloads/en/DeviceDoc/39699b.pdf. [Accessed September 14, 2010].http://ww1.microchip.com/downloads/en/DeviceDoc/39699b.pdf [9] STEC, “SLDSxxxBS(I)U Data Sheet,” STEC Inc., March 2008. [Online]. Available: http://www.stec- inc.com/downloads/flash_datasheets/SLSDxxxB_I_U61000-05203.pdf. [Accessed September 14, 2010].http://www.stec- inc.com/downloads/flash_datasheets/SLSDxxxB_I_U61000-05203.pdf [10] Sparkfun Electronics, “Logomatic v2 Serial SD Datalogger,” On-Line Store,2010.[Online].Available:http://www.sparkfun.com/commerce/product_info.ph p?products_id=8627. [Accessed:September 14, 2010]. [11] C-ONE Technology Corp., “Wide Temperature Industrial SD Card Product Specification,” May 2010. [Online]. Available: http://www.psism.com/c-1sd.pdf. [Accessed: September 14, 2010].http://www.psism.com/c-1sd.pdf

42


Download ppt "SD Card Data Logger Senior Design II Final Presentation April 21, 2011."

Similar presentations


Ads by Google