Giter Club home page Giter Club logo

careheart's Introduction

careheart

Generator for Zilliqa NFT containing heartbeat obtained by an ECG machine.

nft

This project consists of a hardware and software part. The hardware part is a simple electrocardiography (https://en.wikipedia.org/wiki/Electrocardiography) machine which reads ECG signal from a person.

The software application reads the signal using an USB port and mints a perfectly unique NFT containing a few heartbeats of the person. The user of the machine can create an exclusive token of their life to share with friends or loved ones. Or a celebrity can mint NFTs to sell for a charity.

The following image contains the schematics for the hardware part.

schematics

The device is based on the Analog Devices AD8232 chip on a small board https://www.sparkfun.com/products/12650?_ga=2.53472808.1426367473.1623172162-865111033.1622002857 . The AD8232 chip serves as an amplifier of the ECG signal which is converted to digital value by the Arduino UNO microcomputer.

hw

The firmware for the arduino computer can be found in the arduino directory of the github project.

The application is a javascript project using current version of node.js. It must be hosted locally because a connection to the USB port is needed.

Before running the apllication the NFT you must:

  1. deploy the NFT contract on Zilliqa (see the zrc directory)

  2. create an account on https://nft.storage/ service

  3. edit the secrets.js file (use secrets.js.example as a template). It is necessary to fill-in the account name, the private key and an apiKey for the https://nft.storage/ storage service.

The application can be launched in an usuall way

npm start

Then the UI can be accessed from a browser on http:localhost:3000 . The application displays an input form.

form

The user must fill-in its name, upload a portrait photo and define the USB port. It is also possible to test the app without hardware in simulator mode

When submitted, the application starts to read data from the ECG device.

reading

After enough (640) samples get collected, the NFT image is composed and shown to the user. If the user decides to mint the NFT from it, the image is uploaded to nft storage and the minting transaction is executed.

minting

Notes:

The lady on the sample NFT does not exist. The picture comes from https://thispersondoesnotexist.com/ . ECG samples for the simulator were downloaded from https://data.mendeley.com/ .

careheart's People

Contributors

dutraa avatar harshal0902 avatar

Stargazers

sagar jethi avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.