Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Trey Aughenbaugh's Content

There have been 7 items by Trey Aughenbaugh (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#49703 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 21 May 2013 - 05:42 PM in Project Showcase

Nice catch and thanks for sharing.

So it sounds like you created an RFID reader that communicates over a network!

Sounds like the same project I was working on!

Although I ended up never finished my project, I did order a couple of these chips to play with.

 

SMT PoE solution with integrated DC-DC converter. 3.3V or 5V or 12V. 12 pin SMD

https://www.semicond...idproduct=13987

 

I was planning on powering my card reader this way. 

 

-Trey

 

SOLVED!

Sorry do not waste time in found any solution it was simply a GC problem. During my tests I simply wrote this:

        private static void StartRFID()        {            var idReader = new RFIDReader(SerialPorts.COM1, Pins.GPIO_PIN_D4);            idReader.RfidEvent += new RFIDReader.RfidEventDelegate(_idReader_RfidEvent);            idReader.Start();        }

So the GC during "collection" disposed my idReader variable. Right code is:

        private static void StartRFID()        {            idReader = new RFIDReader(SerialPorts.COM1, Pins.GPIO_PIN_D4);            idReader.RfidEvent += new RFIDReader.RfidEventDelegate(_idReader_RfidEvent);            idReader.Start();        }

Where the idReader is global scope declared.

 

Gerardo




#49442 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 14 May 2013 - 07:43 PM in Project Showcase

Glad you reactivated your project and had some good news to share!  Thanks for the update!

Whatever you can share will be great news for anyone else just starting!

 

-Trey

 

Hello Buzz and Trey.

Thanks a lot for sharing the solutions. I just "reactivated" my RFID project (a lot of work in last months) and found your solutions to my issue really helpful.

  • Changing from 5.0V to 3.3V the circuit Vin, It works like a charm! Really strange but I red from the new edition (11.04.2013) ID-Innovations datasheet, the following: "The choice of power supply is very important. The ideal power supply will be a linear type such as an LM7805 or a 3.3 volt equivalent. Batteries may also be used without a regulator, a suitable arrangement can consist of a 3volt lithium cell or 3x 1.5v cells to give 4.5 volts." It seems that the Trey got it at first! ("Gerardo This almost sounds like a power issue.").
  • Now it seems that the new release of ID-2/12/20 series (LA) is Low power working range from 2.8 to 5.0 volt. But may be the previous ones were too? Do not really understand. I will send them the video, the circuit powered at 5 (during locking) and the working one powered at 3.3. I'll let you know their answers.

 

Chris may the 3.3 Vout be more "linear" and stable than 5.0 Vout?

 

Gerardo




#45107 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 07 February 2013 - 07:51 PM in Project Showcase

Thanks for the update buzz!

Based on the thread, there is a fix by placing a 180ohm resistor in series with your buzzer.

 

Gerardo,

Hopfully this will fix your problem!

Please let us know!

 

 

I've ordered more ID-20s recently and it seems the new batch (with "LV" prefix) from sparkfun exhibits weird issues.  You can read some of them in the ID-20 thread.  I've found that if you connect the reader to the 3v3 instead of 5v, it's almost 'normal'.  I just dont know if this is a good idea moving forward or how consistent it'll be.  I also saw another method using a resistor.




#44261 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 26 January 2013 - 08:43 PM in Project Showcase

Gerardo,

I would suggest picking up a RFID USB Reader from Sparkfun or making your own.  I would be trying to determine which element is having a problem.  Netduino or RFID reader.  So try them on different circuits and see if they work ok on their own. 

Maybe the Netduino had a nice static shock and it having issues. Maybe the RFID is faulty. 

Its really hard to say and sorry I dont have any definite solution.

 

Good Luck,

Trey

 

 

 

 

Thank you Trey for your detailed reply.

Anyway I tried this thread code and got the same problem. The power is correct because i got it from ND2 Plus 5v volt header.The connections on the breadboard seem to be correct, I used the simplest scheme from Innovations. Do you suggest any other connections?

 

Gerardo




#44121 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 24 January 2013 - 04:33 PM in Project Showcase

Hello everybody,

I'm testing my ID-12 with Netduino plus 2 and a library very similar to the one used in this thread. Everything works perfect for hours. But some times the ID-12 seems to become "slow/locked". It's difficult to explain, but happens that passing the tag at 2/3 cm nothing happens, I have to touch the ID-12 with the tag to allow it reading. Then I have to touch the ID-12 with the tag for several times until it becomes "unlocked" and starts reading at 6 cm fast and regularly.

When it's in the "locked/slow" state the led light for more than one seconds when it reads and the beeper sounds not regularly.

 

Hope somebody can help

Gerardo

 

Gerardo,

This almost sounds like a power issue.  The id12 requires 5v at 30ma.  Are you running this from a battery? 

If you are using a breadboard, maybe a bad connection somewhere?  That was my biggest problem.

Sorry, like you, I'm at a loss what would cause this to freeze. 

Maybe try the library in this thread to rule out the code that you are currently using.  If you can, maybe even share your library so people have alternate libraries to choose from and to look for possible bugs.

Also try putting in a bunch of debug.print lines in your code to see if the code is responding correctly.

Some filter capacitors on the breadboards input power might help too.  Just thinking maybe there is interference. 

Do you have the RFID USB Reader from Sparkfun?

https://www.sparkfun.com/products/9963

You can plug this directly into a USB port and start up a terminal window and scan cards.  It will just spit out data.  This would be another way to test.

If you happen to have an FTDI cable or Serial to TTL converter, you can pretty much do the same thing. 

The Schematic for the above RFID USB reader is on sparkfuns site.

 

Sorry, no real answer for what is causing your problem.  Please reply back if you find a solution.

 

-Trey




#44120 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 24 January 2013 - 04:14 PM in Project Showcase

buzz,

Thanks for the contribution!

 

I would love to try it out, but will have to wait until time allows.

 

-Trey

 

Finally got my ID-20 working well.  A big THANK YOU to everyone here who contributed...this stuff is truly fascinating.

 

I plan to run this RFID scanner in production with ~50 employees on it.  So after much stress testing, I'd like to contribute a few changes to the datareceived method to ensure maximum reliability.  Particularly with ID-20 reading multiple cards in quick succession.  Basically the code can't crash since no one may be around reboot it.

 

Changes I made:

- hopefully almost crashproof

- moved rawdata to local scope

- removed args.ReadTime, args.RFID output is now int, renamed class

- better error state output using args.Success (ie: to display error led's to user)

- better handles multiple/quick reads...basically when BytesToRead is not a perfect 16

- found that hexConvert was not as efficient as direct parsing of the paired hex

- removed cardPort.Write - this seems to echo the input...not sure why this was necessary...it seems to run fine w/o it and it speeds up the code quite a bit




#39090 ID-12/ID-20 RFID Reader Driver

Posted by Trey Aughenbaugh on 12 November 2012 - 01:08 AM in Project Showcase

Hi there,

I'm new using netduino aswell as the RFid-12, I've seen all of the guys here using the device but how about conecting it whit the sparkfun RFID USB board (https://www.sparkfun.com/products/9875) is it possible? or do i hace to connect it directly??


Welcome VixMax!

In this post http://forums.netdui...dpost__p__10290, I state how I have it hooked up.
The data sheet for your RFID, is the same for the ID-12 as well.
http://www.sparkfun....2-Datasheet.pdf

I just noticed this line on the first post by Charles..."This is a simple encapsulation class for the ID-2/ID-12/ID-20 RFID Card Reader modules."

So it looks like you should be able to hook yours up the same way I have stated above, which I believe is stated even earlier.
Good Luck!
Trey




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.