@andri_yadi | a at dycode dot com
http://andriyadi.me
Mobile + Cloud + IoT = Future
Andri Yadi
A story of product development, combining those
Part 2
CEO of
DyCode’s subsidiary, focuses on Jepret and IoT products
http://dycodex.com
This deck is part of this one:
http://www.slideshare.net/andri_yadi/mobile-cloud-iot-future
Another Case Study
Free idea, for you to build :)
You want to create mobile app to monitor electricity usage
How do you achieve that?
Alternative #1 - Solution

Manually enter the reading from electricity meter, regularly
Alternative #1 - Problem

Are we living in a stone age? There should be a better solution :P
Another meter (digital version)
Anything in this meter that represents
usage?
Readable not only by human, but also
by machine
LED blinking represents usage

1000 pulse = 1 kWh
1 pulse = 1Wh
where 1 pulse = period = seconds
between adjacent LED on
Wattage = 3600 second/period
Turn out, there is…
If only we have a way to read the
LED pulsing period
Create mobile app to capture
the blinking
Do simple image processing to
determine that LED is ON or
OFF
Then determine the frequency
of the ONs
Alternative #2 - Solution
Still need to physically come to the
meter, to capture the blinking
Impossible to do online usage
monitoring
Alternative #2 - Problems
Cannot be solved solely by 

Mobile App
Architecture
Mobile app
Cloud
Data Source ????
For further data analysis and remote monitoring, you may need Cloud

Still, how we collect the data?
You need IoT
Architecture
Mobile app
Cloud
IoT device is the data source
IoT
Sensor
MCU
Network
MQTT MQTT
IoT Architecture
WiFi ModuleLight sensor

(Photosensitive Diode)
MCU
Used to determine electricity
meter’s LED is being ON or OFF
Put it as close as possible to
meter’s LED
LED is ON —> lower ADC value
from light sensor
Light sensor
Demo
Demo Architecture
iOS app
MQTT Broker

on Azure
MQTT MQTT
Espruino + Light Sensor
For simplicity of this demo, I use
Espruino platform for MCU
and development framework
Espruino
For internet connectivity via WiFi, I use ESP8266. 

Connected to Espruino Pico via WiFi Shim
Espruino + WiFi
Instead of purchasing nice looking Shim, I made my own!

Ugly, I know :)
Espruino + WiFi
Espruino + WiFi +

Light sensor
Setup
AO of light sensor <—> A5 of Espruino

VCC of light sensor <—> 3.3v of Espruino

GND <—> GND
Show me da Code!
iOS App Espruino Web IDE
https://github.com/andriyadi/
Espruino-ElectricityMeterReader
Everything is here:
Custom IoT/hardware for your startup or any
custom requirements?
office@dycode.com
http://edu.dycode.co.id | edu@dycode.com
a bit of ads…
We contribute
100+ seminars, workshops, trainings delivered
Delivered to 20+ communities, organisations,
campuses
Next event could be yours…



Just drop us a message:
http://edu.dycode.co.id | edu@dycode.com
We teach
+ + [Obj-C]
+
Opening soon…
+
Thanks!
Andri Yadi
Email — a at dycode dot com

twitter — @andri_yadi
www — andriyadi.me 

github — github.com/andriyadi

Mobile + Cloud + IoT - Case Study