IOTA: A first real-world use case demonstrated in Peru

The full article was originally published by Christopher Aldave on Medium. Read the full article here.

Learning our A, B, Cs… and Ts

The Tangle, which is the data structure behind IOTA, is a particular kind of directed graph, which holds transactions. Each transaction is represented as a vertex in the graph. When a new transaction joins the tangle, it chooses two previous transactions to approve, adding two new edges to the graph.

Directed Acyclic Graph (DAG) — Tangle

This structure of DLT, known as Distributed Acyclic Graph (DAG), used by the IOTA Foundation has solved a couple of critically important limitations found when using Blockchain, another DLT: scalability and zero-fees. This new reality is now opening up the way to a large field of unimaginable opportunities ready for exploration. There is no doubt about IOTA’s potential in our future as its use becomes ubiquitous in our day to day, taking its rightful place in the up and coming machine economy.

Moving on to our first PoC

Did we learn correctly our A, B and Cs? We believe so! In fact, we came up with not only a simple Proof of Concept (PoC), but one which not demanded a lot from our not-so-deep pockets J. We were able to carry our experiments in the simplest and cheapest way possible, with great results!

Here in Peru, as well as in many other parts of the developing world, there is a trade activity we wanted to simulate. The picture below paints a good understanding of what this trade activity entails. Basically, we wanted to simulate a transaction in which the customer’s truck would automatically interact with the dispensing machine, a transaction with no human interaction ‘per se’. Could this be possible? How about payment? How can details of a transaction be addressed automatically? We decided to try… and cook it. We are Peruvians, and we love our food! 😉

Picture of the trade activity.

Our First ingredient: Open-Hardware

-For the truck:

  • 1 Raspberry pi
  • 1 RFID reader
  • 4 motors
  • L298n Module
  • 1 battery
  • 1 power bank

-For the station:

  • 1 Raspberry pi
  • 1 arduino
  • 1 RFID card
  • 1 relay
  • 1 Mini submersible water pump
  • 1 display 16×2
  • 1 led rgb
  • 1 battery

Our Second Ingredient: Open-Software

Two Web apps:

· One to operate the truck remotely and instruct when to load it up, and

· One to monitor/control the station from anywhere in the world (Remote server access).

These Web apps are still under development as we plan to improve our PoC by adding other functionalities more in tune with real-world scenarios, toll roads for example.

This video is self-explanatory, but the actual flow process is outlined below for better understanding.

  1. Driver connects to a web app to initiate remote control (Truck)
  2. Upon arrival to destination, the RFID reader is manually triggered. The reading is set to last for 30 seconds.
  3. If the RFID Reader does not detect a RFID Tag to read, then the Reader sends a notification to the web app reporting an error. Driver is then prompted to check for pre-defined causes of failure: improper parking, missing RFID Tag, defective station/machine, etc.
  4. If the RFID Reader detects a Tag, then the database verification process begins. All Tags must be validated for authenticity. This process will take place via an API in the future (Tangle).
  5. Once the Tag is authenticated then a connection with the dispensing machine gets established via socket. The connection will determine the readiness and accessibility of the dispensing machine. (i.e. another truck in place)
  6. The web app will end the process immediately if the dispensing machine is unavailable
  7. If available, the payment transaction process begins. The dispensing machine will confirm previously quoted cost per cm3 and provide payment (address) information as well.
  8. In parallel, as step 7 takes place, the truck/driver places its cm3 order for loading.
  9. Once steps 7 and 8 have been completed, the payment transaction is then executed, saved in the Tangle, and finally communicated to the dispensing machine (transaction hash).
  10. The dispensing machine then connects to the Tangle and verifies the payment transaction (transaction hash match)
  11. If positive, then it processes the load and sends a notification of completion to the truck.
  12. The truck acknowledges receipt and begins to drive away.

Here are some captures of the project

Web app to control the truck.
The transaction in Tangle.
Also in the wallet.
Physical desing
From another angle.

Our judges have spoken: the main course was served

This Proof of Concept has given us a much greater vision of what we had initially imagined: there is so much more we can manifest using IOTA’s revolutionary technology. Now we know that we are somehow sharing the same vision of progress and a better world with several other people and global organizations. We now follow the lead of the Volkswagens, Fujitsus, Boshes of the world, but most importantly IOTA’s.

We are already in the process of master minding a number of other projects. We will share news of those in due time. This PoC is only one of the many Proofs of Concept that we will carry out to demonstrate IOTA’s potential that IOTA.


Christopher Aldave, a member of our team has published three tutorials for those who are just starting to dive into IOTA world. Beginners now have a simple and practical tool at their disposal. Please use them.

IOTA Transaction Example

IOTA MAM Example

IOTA Push data from sensors to tangle

By the way, these tutorials have already inspired other people to share their knowledge with us. We very much thank them for that! Let’s keep sharing our love for IOTA!

We entice you to donate IOTAs to our cause, remember, Peru still is a developing country. Your support is very much appreciated:


Read the full Article

The full article was originally published by Christopher Aldave on Medium, where people are continuing the conversation by highlighting and responding to this story.

You might also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More

Did you know?

Buy in without the stress of trying to time the market

when you setup a savings plan. If you haven’t started a plan yet, head to your Bitpanda account to get started!

Purchasing cryptocurrencies comes with a number of risks.
Never invest money that you can't afford to lose.

You can automatically invest

in IOTA with Bitpanda Savings!