Smart door with cryptocurrencies, blockchain and IoT - Part 1

in #crypto6 years ago (edited)

wheel-lighting-lock-2016366-192988-pxhere.com.jpg

My name is Giancarlo, I work with software development since 2014. I have Information System Bacharelor degree from Faculdade Mater Dei (February/2018) and actually I am studying a MBA in Agribusiness from UFPR - Universidade Federal do Parana (beginning in April/2018).

In the last 2 years, I started acting in the creation and maintenance of products linked to the rural credit concession area and Proagro in the Softfocus company, where I actually work (I recommend you guys to get to know the culture, how we work and our management model).

And during these last 2 years, I started to know and like the financial market as a whole, mainly credit area, investiments, and since November/2017, the cryptoeconomy and blockchain solutions focused on the financial market.

I see a lot of potencial in blockchain technology for the next years, in public blockchains as well as private blockchains, specially on the use of smart contracts which I find very interesting.

These contracts are programmable and can be executed automatically from some event.

That's why I say...

The Bitcoin and cryptocurrencies can be seen as a BUBBLE and PONZI SCHEME or FREEDOM, DECENTRALIZATION, SMART MONEY AND PROGRAMMABLE CURRENCY.

In this article, I will present the development of a project of a smart door that uses cryptocurrencies, blockchain and IoT (Internet of Things) concept.

At the moment I write this article and do the programming of this project, the chosen cryptocurrency is Decred (DCR), as well as its blockchain.

waiting.png

For the COMPLETE ACCOMPLISHMENT of this project, it is necessary to use some material resources:

  • Raspberry Pi 3;
  • Raspberry Pi Camera Module;
  • Eletronic lock;
  • Relay;
  • 3 cables (to connect the Raspberry Pi with the Relay);
  • 1 cable (to connect the Rele with the Eletronic lock);
  • Power cable for Raspberry Pi;
  • Internet connection;
  • An example door.

IF YOU DO NOT HAVE THE RESOURCES MENTIONED ABOVE, YOU HAVE NO PROBLEM, because in that Part 1 of the artiche and first version of the application were created functionalities that don't interact with these physical devices, we will interact with these physical resources in the Part 2 and Final of this article, so, in the moment, in this first version 0.0.1, we have this available in the project:

  1. The query of the portfolio balance in the Decred blockchain by the mainnet API;
  2. The query of the quotation of the value of the cryptocurrency Decred in braziilian reais (R$) by the API of Coingecko;
  3. The calculation of payment of the total value of the property in the month, to open the door or not;
  4. The query of the public key QR Code by web cam;
  5. Automated tests with some of mainly expected scenarios.

You will need to have only in this Part 1:

  1. A Java version installed on your machine;
  2. Web cam;
  3. Decred wallet.

Some of utilities for the eletronic door:

  • Decentralized AirBnb, without intermediaries and private;
  • Decentralized rent, without intermediaries and private rent;
  • Decentralized hotel/motel room rent, without intermediaries and private; ( ͡° ͜ʖ ͡°)
  • Among others... just depends of your imagination.

The project was created with the idea of decentralizing the renting of a house or apartament, so the functionalities are simple.

  • If the renter HAS NOT paid the total rent for the month, by showing the public key QR Code of Decred wallet, the door WILL NOT BE OPEN.

wont.png

  • If the renter HAS paid the total rent for the month, by showing the public key QR CODE of the Decred wallet, the door WILL BE OPEN.

open.png

without considering the 15 days after the payment due date and more rules provided by law, and without using any smart contract, which could automatically notify the court, block the entry of the tenant, facilitate the conversion of the cryptocurrencies for Fiat money if desired and other operations. More information about the Brazilian laws and rules regarding locations are in a link left in the references ;)

Note:
I will need approximately R$ 338.00, with freight, to buy the necessary electronic devices for the door, this without including the door and necessary labor. If you want to help, I leave 3 (three) wallets of the cryptocurrencies that I link in the Donations section just below.

You can find the source code written in the Java programming language in GitHub:

GitHub - Smart Door

I am available for any doubts regarding project execution and questions. To do so, you can add a comment on this post or open an Issue in the project repository in GitHub ;)

References:

Ação de despejo: tudo que você precisa saber

Donations:

  • BTC: 1MupUQJDSu2YkLNASPKJ4Y6X6YiFQmtHnx
  • ETH: 0x2279FfAbBD4420faB4647Cf6E3C318e1109995a1
  • DCR: DsogbmRT4LtGgyGyPPS2mL1XvP772nMcYNd
Sort:  

@giancarlo21, I gave you an upvote on your post! Please give me a follow and I will give you a follow in return and possible future votes!

Thank you in advance!

Congratulations @giancarlo21! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.24
TRX 0.11
JST 0.031
BTC 60936.15
ETH 2921.43
USDT 1.00
SBD 3.70