element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Safe and Sound
  • Challenges & Projects
  • Design Challenges
  • Safe and Sound
  • More
  • Cancel
Safe and Sound
Blog Safe & Sound Wearables - Trackable Safety Helmet for Miners #9: Access Control with NFC
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: msimon
  • Date Created: 22 May 2017 8:52 AM Date Created
  • Views 693 views
  • Likes 2 likes
  • Comments 4 comments
  • safe and sound
  • safe & sound
  • smart helmet
  • ti
Related
Recommended

Safe & Sound Wearables - Trackable Safety Helmet for Miners #9: Access Control with NFC

msimon
msimon
22 May 2017

Edit: The draft has been published by mistake, therefore, I updated it.

 

I don't know why but it takes so long to implement access control with NFC. I think I put forward it because it is a separate design from the helmet. Hence, I use a passive tag on the helmet, it is only attached to it and no more work on helmet side. The https://www.element14.com/community/view-product.jspa?fsku=2535894&nsku=74X8084&COM=noscriptDLP-7970ABP NFC transceiver BoosterPack  is the key element of this part. It will read the tag and send the data over the serial port (the msp430 board convert serial to USB) to the Ground Operations Centre. The Ground Operations Centre will decide to doors open. It registers the users who access the mining side so if multiple access occurred from a single tag it will deny the access. Following screenshot shows the how the program works.

 

image

 

The Ground Operations Centre saves the user IDs who has accessed the side. If the user ID from the insider wants to access again it will not allow that user to access. I use sample code for MSP430. This board will be connected to Ground Operations Centre via the serial port. Therefore, I added a serial terminal to C# example. The program gets the data and checks it whether it belongs to a worker who is inside the mine area. If it is, then access is denied. I haven't implemented but there should be also exit gate control which deletes the user ID when they left the mine area. It is the same program but instead of registering user, it will delete. 

 

 

        public void AddDataMethod(String myString)
        {
            //check wheather user is inside 
            if (users.Contains(myString))
            {
                rtbNFC.SelectionColor = System.Drawing.Color.Red;
                myString = "Access Denied: " + myString + " \n\r";
                serialNFC.Write("0");
            }
            else
            {
                rtbNFC.SelectionColor = System.Drawing.Color.Green;
                myString = "Access Successful: " + myString + " \n\r"; ;
                users[minerNo] = txt;
                minerNo++;
                serialNFC.Write("1");
            }


            rtbNFC.AppendText(myString);
        }

 

 

 

I had a huge mistake and I thought the deadline was extended to next month until I have read dougw's latest blog post. Now, I have few days and need to combine all things and show the working prototype. I hope I can shoot a video. I will also add all the codes as an attachment on the next blog.

  • Sign in to reply

Top Comments

  • msimon
    msimon over 8 years ago in reply to dougw +3
    Thanks dougw I know the deadline was June but I thought we were in June. Now, I see that we are in May so it is not too late. I think I need rest
  • jomoenginer
    jomoenginer over 8 years ago in reply to msimon +3
    Nice post. I intend to implement NFC as well so it is good to see how others are implementing it. I like the use of C# for the interface. Yeah, Doug really set the bar high, so we all are trying to catch…
  • msimon
    msimon over 8 years ago in reply to jomoenginer +1
    Thanks jomoenginer I have used the sample code for the MSP430 so there is not much change. I have written the primitive C# code for the serial interface. Visual Studio does most of the job but if you need…
  • msimon
    msimon over 8 years ago in reply to jomoenginer

    Thanks jomoenginer  image I have used the sample code for the MSP430 so there is not much change. I have written the primitive C# code for the serial interface. Visual Studio does most of the job but if you need help C# code, just send a message. Actually, I may write a blog about it too if I have a time.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 8 years ago in reply to msimon

    Nice post. I intend to implement NFC as well so it is good to see how others are implementing it.  I like the use of C# for the interface.

     

    Yeah, Doug really set the bar high, so we all are trying to catch up.

     

    When you are focused on a project, it is easy to forget the day or time.  Many a nights I looked up and seen it was about time to wake up, but was already up.  Me thinks there will be many more sleepless nights before June 26th. 

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • msimon
    msimon over 8 years ago in reply to dougw

    Thanks dougw image I know the deadline was June but I thought we were in June. Now, I see that we are in May so it is not too late. I think I need rest image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 8 years ago

    msimon The deadline is June 26.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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