Nfc Controlled Rgb Led

About the project

This project demonstrates the controlling of an RGB LED over NFC by smartphone.

Project info

Difficulty: Easy

Platforms: AndroidNXP

Estimated time: 4 weeks

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

NXP LPC812 MAX board NXP LPC812 MAX board x 1
NXP NTAG I2C Board NXP NTAG I2C Board x 1

Software apps and online services

Android Studio Android Studio

Story

This project demonstrates the controlling of an RGB LED over NFC by smartphone. LPC812 MAX board is interfaced with NTAG I2C board (NT3H1101).

The LPC812 MAX board comes with RGB LED, the pin connection details are here:

  • P0_7 -> RED LED
  • P0_17 -> GREEN LED
  • P0_16 -> BLUE LED

NTAG I2C board needs to interfaced with LPC812, the pin details are here:

  • P0_11 -> SCL_NTAG
  • P0_10 -> SDA_NTAG

The NTAG is having total 476 pages with 4bytes per each page. In this project only one page is required (4bytes):

  • byte1 - Led status (On/Off)
  • byte2 - Red value
  • byte3 - Green Value
  • byte4 - Blue

Android application is developed using android studio, its available on google play store here.

Android application allow us to choose the color then corresponding RGB values will be write into NTAG memory by tapping it with mobile. LPC812 generates the PWM signals w.r.t the values in NTAG memory.

The working demo is here:

Schematics, diagrams and documents

NTAG I2C board connection

RGB LED connections

Code

Main

Credits

Photo of ashokr

ashokr

Hello! I’m Ashok. I’m currently working as software engineer. passionate about doing Hobbies Projects and Animations works.

   

Leave your feedback...