• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

(Micro)Python class to access the MFRC522 RFID reader

micropython-mfrc522

(Micro)Python class to access the MFRC522 RFID reader

Basic class to access RFID readers of the type MFRC522. This is basically a re-write of this Python port for the MFRC522. I tried to strip things down and make them more "pythonic" so the result is small enough to run on Micropython boards. I tried the class so far on the ESP8266 and the WiPy.

Usage

Put the modules mfrc522.py, examples/read.py, examples/write.py to the root of the flash FS on your board. For the ESP8266 there are multiple solutions to do that. E.g. use the WebREPL file transfer, or mpfshell.

I used the following pins for my setup:

Signal GPIO ESP8266 GPIO WiPy Note
sck 0 "GP14"
mosi 2 "GP16"
miso 4 "GP15"
rst 5 "GP22"
cs 14 "GP14" Labeled SDA on most RFID-RC522 boards

Now enter the REPL you could run one of the two exmaples:

For detecting, authenticating and reading from a card:

import read
read.do_read()

This will wait for a MifareClassic 1k card. As soon the card is detected, it is authenticated, and 16 bytes are read from address 0x08.

For detecting, authenticating and writing to a card:

import write
write.do_write()

This will wait for a MifareClassic 1k card. As soon the card is detected, it is authenticated, and 16 bytes written to address 0x08.

More Repositories

1

mpfshell

A simple shell based file explorer for ESP8266 Micropython based devices β›Ί
Python
395
star
2

libemb

"libemb" is a collection of libraries which try to make things needed in many STM32 (ARM-Cortex-M3) or MSP430 (MSP430G2553) based projects more convenient. It includes an API for the Nordic nRF24l01+ modules.
C
56
star
3

rpi-kmod-samples

Set of example kernel-modules for the Raspberry Pi (includes basic module sample as well as samples for GPIOs, GPIO-interrupts)
C
50
star
4

ediplug-py

Simple Python class to access a "EDIMAX Smart Plug Switch SP-1101W"
Python
32
star
5

msp430-harduart

Hardware UART example for MSP430G2553 on TI Launchpad using mps430-gcc on Linux
C
31
star
6

stm32-pwm-servo-sample

Sample showing the usage of timers for PWM generation on the STM32 with libopencm3
C
29
star
7

pyscmpd

Python based sound-cloud music server talking MPD protocol.
Python
18
star
8

msp430-softuart

Software UART example for MSP430 using mps430-gcc on Linux
C
16
star
9

msp430-spi-nrfreg

Example on how to read registers of the Nordic nRF24l01+ radio through SPI on USCI_B of MSP430G2553
C
14
star
10

msp430-i2cslave

MSP430 I2C slave example (for MSP430G2553 on Launchpad) including master example (e.g. for TP-Link MR3020)
C
12
star
11

stm32-rob01

Firmware for STM32 based autonomous robot β€œrob01β€³
C
7
star
12

lattice-logic-sniffer

Simple 8 port logic sniffer written in Verilog for the Lattice MachXO2 Breakout Board.
Verilog
7
star
13

atom-microbit-micropython

Microbit Micropython support package for Atom editor
JavaScript
7
star
14

ywasp

YWasp is a firmware for STM32 ARM-Cortex-M3 microcontrollers for "arifaying" a serial line over an Nordic nRF24l01+ module.
C
6
star
15

msp430-pwm-servo-sample

This example shows how to use TIMER_A0+A1 PWM with a MSP430G2xx3 MCU. It controls two servos on P1.6
C
6
star
16

rcswitch-kmod

Linux Kernel Module to control 434Mhz based RC switches through sysfs.
Python
6
star
17

install-propeller-toolchain

Simple shell script to install Parallax-Propeller toolchain, including the BST tools and the Propeller GCC.
Shell
4
star
18

pyesp8266

Python API to the ESP8266 WiFo to serial module.
Python
3
star
19

msp430-standalone-sample

Running MSP430G2xxx stand alone (without Lauchpad), use Launchpad for in circuit programming
C
3
star
20

usherpa-firmware

uSherpa is a micro-controller firmware (currently for the MSP430G2553) which helps in quickly adding a micro-controller to a more powerful embedded system (e.g. the MIPS based Carambola or the ARM based beaglebone).
C
3
star
21

scratch-pynetsense

Python library provides a simple to use client implementation for implementing scratch networking sensors.
Python
2
star
22

atom-stlink

Flash your STM32 / stlink V2 device from Atom with stlink
JavaScript
2
star
23

nano-pixel-client-electron

An electron applicatoin to access a 8x8 neopixel matrix via BLE as exposed by nano-pixel-firmware
JavaScript
2
star
24

carambot

Simple Python script for Carambola SoC to drive a 4-wheel robot remotely
Python
1
star
25

rcswitch-fpga

RC Switch Send - Verilog Module to Operate 434MHz RC Switches
Verilog
1
star
26

tinr2d2

Simple tin can based, R2D2 like robot with 3D printed parts, using a Parallax Propeller
Propeller Spin
1
star
27

usherpa-pysherpa

This library provides a Python binding to a microcontroller (e.g. the MSP430G2553) running the uSherpa firmware.
Python
1
star
28

srf05modweb

This project provides a kernel module and a web service to access the SRF05 ultra sonic range finder from a Linux based device (e.g. TP-Link MR3020).
C
1
star
29

msp430-ebunny

This is just a quick little Easter hack. This firmware for the MSP430G2231 makes two glass Easter bunnies glow through a PWM.
C
1
star
30

xzrem

Example of How to Control Digital Outputs of Remote XBee using Java and XBee API
Java
1
star