MagSpoof Log

From ESE205 Wiki
Jump to: navigation, search

Project Summary

Our project aims to enable magnetic card communication of WUSTL ID cards and Dorm Key Cards with locks wirelessly. Our project is based off the the Magspoof project done by Sammy Kamkar. You can find a link to his project here. Our project aims to expand upon this design by having multiple cards stored on the device. As a basic design, we are using the Attiny85 to control the output of a SN75441 motor driver . The motor driver will output the RF signals to an inductor. The inductor should acts as an amplifier to the RF signals that will be readable by a magnetic card swipers. We will have an indicator for the current card in use as well as a means to switch between cards. The challenge comes in that our micro controller, the Attiny85, has only six configurable pins. Three of these pins are taken by controlling the motor driver. This leaves only three pins and outputs. As well as this added functionality we plant to 3d-print a case for the device to provided a better aesthetic to the device.
MagSpoof Project Page

Week 9/8/2017 - 9/15/2017

-acquired Arudino

Nathan: N/A

-found magnetic swiper

Nathan: 30 min

-created parts list w/ costs

Jon: 30 min

-Wrote Project Proposal

Both: 3 Hours

Week 9/15/2017 - 9/22/2017

-configure mac bootcamp for windows on Jon's computer

Jon: 30 min

-Download and use software to read swipe card info off of WashU id

Both: 1 Hour

-obtained permission from campus services for the project

Both: N/A

-preliminary design for multi-card circuit
-We are using SN754410 as the motor driver higher current output than L293D -higher current may affect power to chip, 3.7 V, already below operating voltage for chip -may need to create a cell from battery packs

Nathan: 2 Hours

Design 1

-Design 1 has the use of a single input to change card and activate the device.
-Card indicator has an enable LED, and 2 LED's to mark which card is being used

Design2

-Design 2 has the use of two input system, on to activate device and one to change cards
-Card indicator has an enable LED, and 1 LED to mark which card is being used

-Wrote Ethics Section of Proposal

Jon:1 Hour


-Arudino Demo

Nathan: 10 min

Week 9/22/2017 - 9/29/2017

-received shipment of parts

-switches were too big
-returned and order new smaller switches
Nathan:10 min

-programming Attiny85 using Arudino for BLINK

-Couldn't get serial port to sync
-believe due to a boot loader issue on the Arduino UNO
-bought AVR programmer for $20 from sparkfun to replace Arduino UNO
Nathan: 2 Hours

-Made Presentation for Class File:MagSpoof Presentation.pdf

Jon: 1 Hour

-started prototyping board for Design 2

Jon: 40 Min

-started redesign of firmware for multicard design 2

Nathan: 40 Min

Week 9/29/2017 - 10/6/2017

-changes to input commit #: e9e29a5

Nathan: 1 Hour

-switched to just Arduino to debug input for double tap commit #: 9c45446

Intial sktech created 2005 by DojoDave modified 30 Aug 2011 by Tom Igoe
Link to original sketch
Nathan: 1 Hour

-Proposal updates

Nathan: 30 min

-Initial Programming of Attiny85

-Blink Program uploaded to Attiny85 commit #:9791bc5

-Blink with input Attiny85 commit#: 9f6de0e
Nathan: 1 Hour

-Long vs Short Press Input Recognition commit#: db48cde

Jonathan: 2 Hours

-Returned Old Parts

Jonathan: 30 mins

-refined the input commit #: 5d95f35

Both: 40 Min

Week 10/7/2017 - 10/14/2017

Assembeld Prototype Circuit:

Jonathan: 4 hours

Test Sodering:

Jonathan: 2 hours

Code Development

inputs control behavior
firmware reconfigure 4 tracks
input algorithm in magspoof.c
Commit #: up to e3aa399
Nathan: 3 hours

Update Wiki

Nathan: 1 Hour

Week 10/14/2017 - 10/20/2017

Worked with card reader

Was able to get the card reader to recognize the device
Under some circumstances, the card info was transmitted
The card format seems to be Track 2 ISO with bit length 5
Disassembled the card reader to better access the read head
May need much stronger inductor for read head to recognize with casing
Nathan 3.5 Hours

Worked debugging reader

had track read with inputs on Track 1 and Track 2 but very inconsistent
plan to use bolt wrapped in wire for strong inductor
Nathan 2.0 Hours/Jonathan 1.5 Hours

3-D Printing Initial Engagement

Watched tutorials
Started designing case prototypes
Jonathan 3.0 hours

Cleaned up Wiki/Log in response to midterm comments

Jonathan 1.0 Hours

Started designing box in Fusion 360

Jonathan 3.0 Hours

Further testing of Magnetic Inductor

Nathan 1.0 Hours

Week 10/20/2017 - 10/26/2017

Continued to troubleshoot prototype

Nathan 2 hours

Refined 3-d case design, added lid and beveled edges, updated dimensions

Jonathan 2 hours

Sodering Practice/Perfboard initial deployment

Jonathan And Nathan 3 hours

Week 10/26/2017 - 11/2/2017

Working Prototype:

-had to increase the clock to 8 MHz internal Security Exploit Demo:

Nathan 2 Hours

Finished perfboard mockup and nearly completed full perfboard prototype

Jonathan 2.5 Hours

Input Debugging

Nathan 1.5 Hours
Finishing Perfboard prototype
Jonathan 2 hours

Week 11/2/17 - 11/9/17

Finished More Compact Version of Perfboard (to be used in actual device)

Jonathan 4 hours
File:Users/Severns/Desktop/IMG 1205.m4v

Meeting with Card Services

Jonathan and Nathan 30 minutes

Researched and created .BRD

used eagle CAD software to change schematic to PCB
may use to replace the board Jon Built
would take about 3 weeks to get here which may be too long for demo
Nathan 2.5 Hours

Week 11/9/17 - 11/16/17

Added fine details to Box, runners and guides for wires - holes for button, main switch and inductor cables,

sent box to TA Nathan for STL file approval
Jonathan 3 hours

Worked on PCB

finalized design for part placement
research manufacturing for PCB
Genrated Gerber files
sent quotes to Feher and Jon
Nathan 5 Hours

Ordered PCB:

Ordered 3 Boards from OSH Park
Nathan 0.5 Hours

Tested Box Inductor- did not work

Formula for inductance in given by L= (n^2*U*A)/I, where n=number of turns, U is a constant, A is the cross-section area of the inductor, l is the length of the wire used. Therefore we believe the inductor didn't work because although the area of the box inductor is much larger, as a result, we lost many turns. N is exponential so L weakens faster when n decreases even if A increases.
Jonathan 1 hour

Week 11/16/17 - 11/23/17

Updated Box deisgn for PCB, added ring on the outside for incductor, new wire outlets, power switch input and LED display platform

Jonathan 1.5 Hours

Tested device with stand-alone power from battery pack, test was successful!

Jonathan and Nathan 1 hour

Worked on Poster

Jonathan 3.5 Hours

Week 11/23/17 - 12/1/17

Created Multicard software for 2 Cards

easily expandable to as many cards as needed simply by changing a few parameters
Nathan 6 Hours

Overhauling posters

Nathan and Jonathan 3 hours

Organized and Trial Run of Demo

reserved an SU card reader for Friday Demo
tried to swipe with reader for 1 cent BearBucks purchase
was successful only when excluding Track 1 from device
Nathan 3 Hours

Final Poster Desgin

File:MagSpoof Poster .pdf
add state machine and cleaned up
add PCB routing
Nathan & Jon 3 Hour

Wait on Phone for USPS to Redeliver PCB

had to redeliver because office closed on Friday during break
waited on hold for an hour
Nathan 1 Hour

Put together PCBS and demonstrated fully working device w/o box, printed final box

Nathan and Jonathan 3 hours

Nathan and Jonathan box assembly and redo after melted H drive

Nathan 5 hours, Jonathan 3 hours

Full working device with box! (final log entry)