Coder Social home page Coder Social logo

st25dv's Introduction

ST25DV

Arduino library to support the NFC ST25DV components:

  • ST25DV04K
  • ST25DV64K

API

This NFC sensor uses I2C to communicate. It creates the instance st25dv.

It is then required to call begin API with the 2 pins to be used before accessing to the sensors, and optionally wire instance:

    st25dv->begin(gpo_pin, lpd_pin);

or

    TwoWire MyWire(SDA_PIN, SCL_PIN);
    st25dv->begin(gpo_pin, lpd_pin, MyWire);

It is then possible to read/write NFC URI:

    int writeURI(String protocol, String uri, String info);
    String readURI();

Examples

There are 2 examples with the ST25DV library:

  • ST25DV_HelloWorld: This application writes a URI tag on the device. It records an URI.

When the NFC module is started and ready, the message "System init done!" is displayed on the monitor window. Next, the tag is written, we wait few seconds, we read the same tag and print it on the monitor window.

You can test this application by connecting it with your smartphone. On Android, download a NFC Tools. Then start the app, check if NFC is activated on your smartphone. Put your smartphone near the tag, you can read it. You can write a tag with this app.

  • ST25DV_SimpleWrite: This application writes a NDEF message, containing a URI record, to the tag.

When the NFC module is started and ready, the message "System init done!" is displayed on the monitor window. Next, the tag is written with a URI.

You can test this application by tapping the tag with your smartphone. On Android, check if NFC is activated on your smartphone. Put your smartphone near the tag to read it. The preferred Internet Browser is automatically opened with the provided URI.

Documentation

You can find the source files at https://github.com/stm32duino/ST25DV

The ST25DV datasheets are available at:

st25dv's People

Contributors

abostm avatar advin-io avatar bigjosh avatar cparata avatar ehippy avatar fpistm avatar shlomozippel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.