element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
NFC/RFID
  • Challenges & Projects
  • Project14
  • NFC/RFID
  • More
  • Cancel
NFC/RFID
Blog NFC and The Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join NFC/RFID to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ipv1
  • Date Created: 14 Jun 2019 6:42 PM Date Created
  • Views 4092 views
  • Likes 11 likes
  • Comments 7 comments
  • nfcrfidch
  • ip_iot
Related
Recommended

NFC and The Raspberry Pi

ipv1
ipv1
14 Jun 2019

NFC is very useful and is easy to use considering the availability of the parts. I made a project with NFC and Raspberry Pi as follows.

 

Like many people, I work in a room with a workbench, lights, fans, Air-Conditioning and bench test equipment etc. During work hours I have a habit of taking trips away from the bench for a multitude of reasons which includes

  • visits to the little boy’s room,
  • taking personal phones calls,
  • 15 minutes fresh air breaks after an hour or an hour anda half and even
  • little snack breaks.
  • Control Various appliances in the office which includes Lights, Fans and Airconditioning/HVAC
  • Provide Intelligence management in user absence.
  • Provide Remote Control and Monitoring.
  • Add a Security System to the Office

The Solution- “While you were away”

The proposed solution is titled “While You Were Away” because we intend to “sense” when the user is away and optimize consumption in his/her absence. The solution is much more than the simple Motion detector combo because the plan is to implement programmability to the automatic control aspect. The block diagram below shows the various hardware components and their interconnects in the final design.

alt text

The system is composed of 4 major components. The heart of the system is the Cypress PSOC Analog Coprocessor kit which interfaces with five sensors. A Raspberry Pi 2 is used to run OpenHAB Software that provides the GUI as well as other features. An MFRC522 board is used to scan RFID tags and a relay board is used to interface with electrical appliances. The PSOC runs a custom hardware/software design that is provided on github for download. The Analog Coprocessor reads sensors and stores the values in its internal memory. The raspberry pi 2 communicates with the PSOC kits over I2C and retrieves this data. A python script is used to parse the sensor values and then passes them on to an MQTT broker at iot.ecliplse.org . This architecture is chosen to facilitate future customisation where the PSOC may talk to an MSP430(Code provided) and send the data either via USART or other means.

The python script also enables reading of the RFID tag and listens to specific MQTT topics for commands. These commands are used to toggle the relays which in turn controls appliances. The rules engine, GUI and data logging is provided by OpenHAB which is a free home automation software solution. It runs on the Raspberry Pi 2 as well but can be a remote installation as well for IoT like applications.

 

Here is a demo video

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

The code files are available at https://github.com/inderpreet/Project-WhileYouWereOut THis includes all the Python files as well as the Cypress PSOC project files.

 

Download the STL files from https://pinshape.com/items/32437-3d-printed-psoc-while-you-were-out and 3D Print them

 

Hope you like it.

 

image

PS: I am still using this project to detect how long I stay at my desk. I use Grafana to visualize the data.

image

This is all in parallel with the OpenHAB2 system as described above.

 

MOAR pictures

image

image

  • Sign in to reply

Top Comments

  • dixonselvan
    dixonselvan over 6 years ago +3
    Excellent project ipv1 I was thinking this kind of setup for a while ... apologies if you had this information already in your post, where have you placed the RFID reader? Like near the door so that it…
  • ipv1
    ipv1 over 6 years ago in reply to dixonselvan +3
    I;ve just added moar pictures! Hope that help. Can you spot the NFC board?
  • DAB
    DAB over 6 years ago +3
    Nice project. I like the simplistic packaging. DAB
Parents
  • genebren
    genebren over 6 years ago

    Very nice project.  The documentation and video demonstration were very complete and easy to follow.

    Well done!

     

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • genebren
    genebren over 6 years ago

    Very nice project.  The documentation and video demonstration were very complete and easy to follow.

    Well done!

     

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube