Hi Everyone.
I have been experimenting with USB Keyboards and Magnetic Stripe readers. I would like to share this with you, the USB Host Controller Board V2.4 to RS232. It has the advantage of doing all of the USB stuff outside of the project and allows data to be read using RS232 8bit at 9600 BAUD rate. I was not sure if it would work for a door security system so began this experiment to help realise its potential. It works at treat using those cheap magnetic stripe readers and a PIC18F4550. Here is the result:
The project which I used to obtain the data from the card was tricky to get the timing to work. The board has a control line which goes high when data is present and stays high until all data has been transferred. This presents a problem of getting the data from the module - store - go back and get next byte. Any time spent jumping in and out of loops causes problems. I found using a data array as a working solution as shown here:
Any suggestions as to improvements would be greatly appreciated.
Dave
USB Host Controller to RS232
For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.
Moderator: Benj
-
johnsondav
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
Jump to
- Announcements
- ↳ Announcements
- The Knowledge Exchange
- ↳ Programming Tips & Tricks
- ↳ Freelance Embedded Engineers
- ↳ Article Discussion
- Microcontroller Programming
- ↳ General Programming
- ↳ Flowcode V9
- ↳ Flowcode V8
- ↳ Feature Requests
- ↳ Bug Reports
- ↳ User Components
- ↳ Flowcode V7
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Fixed bugs
- ↳ 8-Bit PIC
- ↳ 16-Bit PIC
- ↳ 32-Bit PIC
- ↳ AVR & Arduino
- ↳ 32-Bit ARM
- ↳ Poll Discussion
- ↳ Flowcode V6
- ↳ Flowcode v6 Beta
- ↳ Bug reports
- ↳ Getting Started
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Flowcode V5
- ↳ Flowcode V5 Issues
- ↳ Flowcode V5 Suggestions
- ↳ Flowcode V5 Free Edition
- ↳ Flowcode V4
- ↳ Flowcode 4 Bugs
- ↳ Flowcode 4 Suggestions
- ↳ Flowcode V2 & V3
- ↳ General / Misc
- ↳ Components (Comms)
- ↳ Components (Other)
- ↳ Bugs / Application Errors
- ↳ Suggestions
- ↳ BTEC Unit 6
- ↳ C and ASM Programming
- ↳ E-blocks
- ↳ Formula AllCode
- ↳ Formula Flowcode
- ↳ MIAC
- Language Support Forums
- ↳ Deutsch Support-Forum
- ↳ Forums d'aide en français
- ↳ Foro de soporte español
- Other Matrix products
- ↳ Electronics products
- ↳ Matrix Online Courses
- ↳ Other products
- ↳ CoCo
- Hidden