Comments (3)
Thanks @MonsieurV & @carlosefr, I added a new blog post with the changes I made to the code. In the blog I go over the changes I made and why I made the changes. I at the end, I state that anyone needing to read from a single card reader should use the magstripelib and why but if they need read from more than one reader they may want to look at the code I posted. @carlosefr , your work on this library made it very easy to make changes and modify the code for my needs. If I did not come across this, I may have trashed the card readers. Now they will sit on my completed projects shelf until there is a want to read a card. ;-)
from magstripelib.
Hi,
Concerning the issue you encountered, maybe using the input mode INPUT_PULLUP
(for the two pins used with interrupt) will fix the issue (without requiring to add an external capacitor)?
See:
- https://www.arduino.cc/en/Tutorial/DigitalPins
- https://www.arduino.cc/en/Tutorial/DigitalInputPullup
PS. Great blog post @richteel ; and great library @carlosefr :)
from magstripelib.
Thanks. 🙂
@richteel WRT having an interrupt attached to the data line (as you mention in your blog post), the reason for this is to avoid spending too much time inside the clock interrupt hander. Reading the data pin from there in a compatible way (i.e. using digitalRead()
instead of the port registers) would be rather expensive.
from magstripelib.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magstripelib.