POST#7 How To Make Key Scanner In 15 Minutes? (Step By Step)

Finally our build for raspberry is ready. We are super excited to share it with you. Take your raspberry and get to work. When you are done take picture of your project and post on instagram with @theiotproject mark. 

stage 1: ON DESKTOP

  • Download balenaEtcher and the latest raspbian OS (without desktop)
  •  Flash OS on SD card using balena. 
  • After installation skip the validation process 
  • Flash completed

stage 2: raspberry configuration

  • Now plug everything up to the raspberry pi: SD card, module & sensor, ethernet, keyboard, QR scanner, hdmi, and power cable. 
  •  If you are not sure about pins for the motion sensor and module (cause you are using a different raspberry) search the internet for the “pinout” of your device model. 
  • When everything is plugged the raspberry will turn on automatically. 

stage 3: raspbian setup

  • Choose your language and keyboard layout
  • Create a user and type a password

stage 4: commands

  • sudo su
  • passwd root (the system will ask you for a password)
  • update repositories using: apt update  
  • Install dependencies using: apt install python3 python3-pip socat git mosquitto (the system may ask you for more updates. Type Y)
  • Install essential python modules: pip3 install rpi.gpio pyserial paho-mqtt
  • Copy our repository: git clone https://github.com/theiotproject/key-scanner
  • Enter cloned folder using: cd key-scanner
  • Install current release using:  dpkg -i KeyScanner  (press tab to autofill and enter)
  • Enable scanner service to start on boot: systemctl enable scanner
  • Start the service: systemctl start scanner
  • Wait 20 seconds before next step in order to properly start the app
  • Scan this configuration QR code using QR scanner(the code format is CONF:{your magic code},{your teamnumber},{your serial number};
    For now, you can use this example code, but make sure to change it, if you are gonna use the lock. You can also create the config code in our mobile app Virtual-key.

stage 5: scanner config

  • Scan this QR code using QR scanner

In console:

  • Restart the scanner to apply configured data: systemctl restart scanner
  • You can check if the data got applied succesfully using: cat /etc/KeyScannerconf/magic.guid (rewrite on PC, everything to root or user name)

stage 6: qr code generator

  • Every lock is able to be opened using the MAGIC code, so make sure to make it as private as possible. You can chceck if the gate is working propperly by generatig the magic qr code.
  • Open https://en.qr-code-generator.com on your PC and type: 
  • MAGIC:your_magic_guid; (rewrited data from previous step)
  • Generate QR 

stage 7: working test

  • Scan this code and wait till the module on raspberry will turn on (red diode). It’s proof that everything is working well. 

additional command

  • cat /var/log/syslog (it will show you the latest usage of lock: OPEN/LOCK)
open
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
John
John
1 year ago

Hi,
Magic.guid file is not generated. How is the text inside this file?

aziz
10 months ago

PLEASE HELP ME

My name is Aziz Badawi, I’m 27 year old man from Palestine. Our town has recently evacuated due
to bombardments by Israel, now I am staying at a shelter with my 6 year old daughter Nadia. My wife is
dead and I’m the only one left to take care of my daughter as we are not allowed to depart to my parents house
in Nablus, she is sick with a congenital heart defect and I have no way to afford the medicine she needs anymore.
People here at the shelter are much in the same conditions as ourselves…

I’m looking for a kind soul who can help us with a donation, any amount will help even 1$ we will
save money to get her medicine, the doctor at the shelter said if I can’t find a way to get her the
medication she needs her little heart may give out during the coming weeks.

If you wish to help me and my daughter please make any amount donation in bitcoin cryptocurrency
to this bitcoin wallet: bc1qcfh092j2alhswg8jr7fr7ky2sd7qr465zdsrh8

If you cannot donate please forward this message to your friends, thank you to everyone who’s helping me and my daughter.

Lynn3378
Lynn3378
9 months ago

Modern Talking был немецким дуэтом, сформированным в 1984 году. Он стал одним из самых ярких представителей евродиско и популярен благодаря своему неповторимому звучанию. Лучшие песни включают “You’re My Heart, You’re My Soul”, “Brother Louie”, “Cheri, Cheri Lady” и “Geronimo’s Cadillac”. Их музыка оставила неизгладимый след в истории поп-музыки, захватывая слушателей своими заразительными мелодиями и запоминающимися текстами. Modern Talking продолжает быть популярным и в наши дни, оставаясь одним из символов эпохи диско. Музыка 2024 года слушать онлайн и скачать бесплатно mp3.