Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:31 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite and RFID reader

     Page 1 of 2    
Author Message
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5119
Posted: 05:38am 09 Nov 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2170
Posted: 07:50am 09 Nov 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7937
Posted: 08:16am 09 Nov 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 277
Posted: 12:32pm 09 Nov 2021
Copy link to clipboard 
Print this post

  Gizmo said  Has anyone tried ( and succeeded ) using those Duinotech XC-4506 RFID readers with a Micromite?

Might be asking a bit much of the Micromite.

Glenn


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 Kingdom
Posts: 2170
Posted: 04:50pm 09 Nov 2021
Copy link to clipboard 
Print this post

  circuit said  
I have one attached to a Micromite MX170...


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: Australia
Posts: 1993
Posted: 08:48pm 09 Nov 2021
Copy link to clipboard 
Print this post

@ 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: Australia
Posts: 5119
Posted: 01:08am 10 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 1114
Posted: 03:14am 10 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 5119
Posted: 05:16am 10 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 05:59am 10 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 5119
Posted: 06:28am 10 Nov 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9610
Posted: 04:46am 11 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 5119
Posted: 05:34am 11 Nov 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9610
Posted: 06:08am 11 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 5119
Posted: 06:38am 11 Nov 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7937
Posted: 07:37am 11 Nov 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9610
Posted: 08:09am 11 Nov 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2442
Posted: 10:14am 11 Nov 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10310
Posted: 10:17am 11 Nov 2021
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2442
Posted: 10:25am 11 Nov 2021
Copy link to clipboard 
Print this post

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    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025