![]() |
Forum Index : Microcontroller and PC projects : Micromite and RFID reader
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5119 |
Has anyone tried ( and succeeded ) using those Duinotech XC-4506 RFID readers with a Micromite? I picked up one from Jaycar with the intention of using it with a Raspberry Pi, but thinking of trying the Micromite instead. Its part of a larger project, a module that reads a RFID tag, then communicates with a server over wifi ( using a ESP8226 module ), and displays some text on a 2 line LCD display. Might be asking a bit much of the Micromite. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
not too much. MMs are extremely capable and I have so far to be disappointed. never played with RFID tags but from what I have seen around they aren't that difficult. I have communicated with servers over WIFI with uMite Mk2 and it took it in it's stride. I have worked up code here I used the above in a GSM gateway which I would send coded text messages to. It would then take action on those messages accordingly, including stashing the content in a DB via an ASP API. I could also send text from a web page out over the gateway (web to SMS bridge) here this is a bit old now and I could do better with a re-write but it works. may give you some ideas Edited 2021-11-09 17:52 by CaptainBoing |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
It looks like a standard SPI interface. Try monitoring it while waving a card around. There's an article on interfacing to a Pi here. It uses a Python library though. Edited 2021-11-09 18:24 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
circuit Senior Member ![]() Joined: 10/01/2016 Location: United KingdomPosts: 277 |
I have one attached to a Micromite MX170 and protecting my property in an alarm system all day. Running now for over twenty months, code reading several times each day. The only problem that I had during the development stage was the quality of read; moving the RFID reader a couple of inches away from the Micromite then gave perfect reliability. I am using it with both cards and key-fobs. Edited 2021-11-09 22:33 by circuit |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
sweet! would you care to publish the relevant bit of code? I think there are a few on here that would use it. h |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
@ circuit Can you explain in a bit more detail "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5119 |
Yes circuit I also would like to know how you wired it up and a snippet of the code you used to get a response. See I've tried the RFID reader on a Raspberry Pi, and getting no response despite rechecking the connections and code. So experimenting on a micromite might be frustrating if the RFID reader is dead out of the packet. I would rather connect it up in a known working configuration and try some proven code. Thanks Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
Glenn, You may be interested in the following Annex Basic RFID using ESP . The Annex Basic is very similar to MMBasic in syntax and by using the ESP8266-01(or even the physically larger Wemos Di mini for more i/o), you can interface to the RFID as well as do the internet thing all in one module. If you wanted to go the whole hog, you could use an ESP32-CAM module which can also run Annex Basic and includes a camera which is also integrated into Annex Basic. Using Annex Basic, you can create/customise your own web interface. Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5119 |
Thanks Doug, might be a few clues in there. My RFID-RC522 module seams to be a new batch, its labeled differently to every single example I've seen on the internet. ![]() The modules and wiring examples I've seen online have the following pins - VCC, RST, GND, IRQ, MISO, MOSI, SCL, SDA Mine is labeled - VCC, RST, GND, MOS, MOSI, SCK, NSS, IRQ ![]() Which would explain why my tests have all failed. Glenn Edited 2021-11-10 15:20 by Gizmo The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Apart from the pin labeled MOS (Which should be MISO), your board matches the project sheet from Jaycar ![]() Jim VK7JH MMedit |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5119 |
Thanks Jim. The Raspberri Pi projects use the SDA pin, which from what I read is for I2C but could be wrong. Starting to think maybe the Pi projects use a older board and the Python code modules wont work with this board. eg - https://www.raspberrypi-spy.co.uk/2018/02/rc522-rfid-tag-read-raspberry-pi/ Another reason to use the Micromite instead ![]() Hoping circuit can share how he wired his up and the code, saves reinventing the wheel. Glenn Edited 2021-11-10 16:30 by Gizmo The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
I know you have settled on that SPI module, but I have had great success with the RDM6300 RFID reader module. Only two bucks, and outputs is a UART, so they can be interfaced to the MM COM ports easy-peasy, and the MM com port buffer will catch any data from the 6300 module, and you simply detect it being there using the LOC function in your main loop. I think I probably put up a thread about them a few years ago - I will see if I can find it and link it here. EDIT: It was my "Swipe-A-Mite" project. You can find the thread here. MM controller, 6300 RFID reader, LCD, relay, IR remote control setup etc. Can't remember how far along I got with the code for this, but I could send you the gerbers and code if you are at all interested. Edited 2021-11-11 14:55 by Grogster Smoke makes things work. When the smoke gets out, it stops! |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5119 |
Hi G Only looking at RFID-RC522 the because its the one I have in my hand, but happy to look at others. I might order a couple of those RDM6300 modules. I like the idea its using a com port and not the SPI, which I'll like to keep free and simple for the ESP8226 module. Shame all the suppliers seam to be are China based so no fast delivery. I might hit you up for a snippet of your code later. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
I probably have a few of those modules in my junk pile - I will look. I was drawn to those modules BECAUSE of the UART interface. Other I2C and SPI modules I tried at the time(including the Jaycar one), I did not have much luck with. Having said that, it was probably just me(read: my code bugs) more then the modules! ![]() I DID get the 6300 modules working very easily though, so there is that. If I can find the prototype PCB I built, I could send that to you if you like - complete and ready to rock-n-roll, just probably needs code to make it work the way you want, but I and others can help there if you need it. Free for you, cos of all the effort you put in to keep this forum running. Smoke makes things work. When the smoke gets out, it stops! |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5119 |
All good G, I found a Australian ebay seller, only 2 weeks max to get it here, for under $10. Ebay Thanks Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
I suspect the larger coil size will be a lot better, giving more sensitivity and not being so finicky about the card's position. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Speaking from my own experience - which is probably biased against the SPI or I2C modules(as I was a novice with those protocols at the time), the UART module was pure gold. You wave a tag or card near the coil, and the module outputs an ASCII-numeric code representing that tag or card @ 9600 baud. Connect this module to a MM COM port, and just let the native MM COM port buffer take care of SAVING any tag/card data codes received. In the main loop, use the LOC function to find out if there is any data waiting in the buffer, and go from there. There IS - suck the code(s) out and process them There IS NOT - ignore, and continue with the main loop. SO easy. No need to poll the I2C or SPI receiver, although, I note that the photo that Gizmo posted DID show an IRQ line which other modules did NOT have - so it was anyone's guess when someone waved a tag or card, but with the IRQ line, you could capture that. Smoke makes things work. When the smoke gets out, it stops! |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
a little off-topic, does anyone know what frequency cats (and presumably dogs) manufactured in new zealand operate on? cheers, rob :-) |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Hadn't realised New Zealand was so far ahead in genetics that you manufacture your own cats and dogs |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
things are pretty high-tech over here, long gone are the days when we had to imported all our cats and dogs from overseas! cheers, rob ;-) |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |