SlideShare a Scribd company logo
Arduino+Delphi Mobile
Beyond Basics
Victory Fernandes
Embarcadero MVP-Brazil
@victoryjorge
Victory Fernandes
• I love Delphi since 1998! 
• Embarcadero MVP-Brazil
• CTO at TKSSoftware.com
• Electrical Engineer; Msc. Medicine Neuro-Science
• INDEVA Manipulators and AGVs representative
How big is Brazil?
How big is Brazil?
ExtremeDelphi 2016 events
so far we travelled +10.0000km
Embarcadero Conference Brazil 2016
• Oct,26 – São Paulo – Brazil
• 7 simultaneous rooms
• 600+ attendees are expected
#ECON2015
www.embarcaderoconferece.com.br
Factory floor weighing scales
Factory floor weighing scales
Truck weighing scales
Production tracking
Production tracking
Production tracking as we found!
Ethernet IO device
Delphi Intraweb app on TV
Delphi Intraweb app on Mobile + SMS
Worked with microcontrollers before?
Arduino plus Delphi Mobile Apps - Beyond Basics
First prototype used Arduino…
Why we ended up using ARM?
NYQUIST theorem
• Learn about the signal to be sampled
• Choose the right sensor
• Dimentions, Weight, Voltage, other general limitations
• Sample rate vs. File size vs. Recording speed
• Prototype circuit dimentions, weight, power
consumption, other general limitations etc…
• Battery usage
• Prototype Housing
"Microcontrollers for Dummies"
Arduino plus Delphi Mobile Apps - Beyond Basics
• Prototyping platforms
• Open source Software and Hardware
• Application? Size, power consumption…
• 8bits, 32bits…
• 16MHz, 95Mhz…
• 32KB-512KB Flash; 2KB-32KB RAM, SRAM, EEPROM…
• 8051, PIC, AtMega, ARM…
• Intel, Microchip, Atmel, Freescale, NXP…
"Microcontrollers for Dummies"
Digital I/Os
•Numbered pins 0 to 13
•6 of them with suport for PWM
•0 (zero) = LOW = 0 Volts
•1 (one) = HIGH = 5 Volts
•Max. current output 20mA
Digital I/Os
PWM
• Equivalent to analog output; Allows to control signal power
output (Watts) and can be used to dimmers leds, control
motor speed etc...
PWM – Pulse Width Modulation
Analog Input
• Numbered pins A0 to A5
• Voltage input from 0 to 5V is mapped to a Byte
•Binary values from 0000-0000 to 1111-1111
•Decimal values from 0 to 255
• Allows to read analog sensors for temperature, light,
distance, etc...
Analog Input
There is more…
SPI-Serial Peripherical Interface
I2C-inter-Integrated Circuit
• RISC
•Reduced Instruction Set Computer
•131 Assembler instructions; 1 instruction per cycle
• At 16MHz its almost 16x106 lines of code per second!
ATMega328P
•EEPROM memory, once you record there is no
need for a power supply in order to keep its
contents.
•This is where your program code is stored after
you download it to to the microcontroller...
Flash memory - 32KB
•Static Random Access Memory, will keep its
contents as long as the power is available; Not
need for refresh like DRAM.
•This is where the microcontroller executes our
program... No power? All status and variable
values are lost!
SRAM Memory - 2KB
•Electrically-Erasable Programmable Read-
Only Memory
•This is where we record data that we do not
want to lose after shutdown!
EEPROM Memory - 1KB
Not that much?
Arduino plus Delphi Mobile Apps - Beyond Basics
"Hello world”? Why the resistor?
Remember the 20mA max current?
•Ohm’s law
•V[Volt]=R[ohm].i[Ampere]
•R = 5/0,020 = 250 ohm
• LED internal resistance is very low! In this case we considered it tends to zero
Voila!
The fun goes on…
Can we trigger a relay like this?
Voltage/Current output coupling
Transistors
triggering
higher
currents/v
oltage
ULN2001-2002-2003-2004
6-25V; up to 500mA
Voila!
Transistors are here!
Now lets say I want to read a sensor…
Now lets say I want to read a sensor…
Now lets say I want to read a sensor…
Can I do this?
PULL DOWN resistor
PULL DOWN resistor
 when OPEN
 Vout = GND = 0V
 LOW is read
 when CLOSED
 Vout = Vin = 5V
 HIGH is read
Usually high values around 10kOhm
PULL UP resistor
PULL UP resistor
 when OPEN
 Vout = Vin = 5V
 HIGH is read
 when CLOSED
 Vout = GND = 0V
 LOW is read
Usually low values around 300ohm
Do we really need the resistors?
What if I want to use industrial sensors?
Optocoupler, Opto-Isolator or Photo-Coupler
Arduino plus Delphi Mobile Apps - Beyond Basics
Delphi Android/iOS app
ON
OFF
UDP Server
192.168.1.177:8888
’H’ ’H’ ’H’=On
’L’ ’L’ ’L’=Off
Robocore Padawan
www.robocore.net/loja/produtos/arduino-shield-padawan.html
Temperature
sensor
Joystick
Potentiometer
RGB LED
General connector supports
Digital input
Digital outout/PWM
7 segment
diplay
Light
sensor
DFRobot accessory board
www.dfrobot.com/index.php?route=product/product&path=35&product_id=1045
RGB LED
Joystick
Potentiometer
RelayBuzzer
LCD Display
Pressure/
Humidity
Arduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond Basics
Supported string messages…
Arduino plus Delphi Mobile Apps - Beyond Basics
Coding the complete Arduino C code…
VCL demo
VCL demo
Arduino plus Delphi Mobile Apps - Beyond Basics
victoryfernandes@yahoo.com.br
www.youtube.com/user/victoryfernandes
@victoryjorge
Thank you! Grazie! Obrigado!

More Related Content

What's hot (20)

PPTX
2015 02 28 DotNetSpain IoT Fight
Bruno Capuano
 
PPT
VCCDP
Nasir Gandapur
 
PPT
arduino
jhcid
 
PDF
Workshop @ Make: Tokyo Meeting 02
Shigeru Kobayashi
 
PDF
Implementing AI: Hardware Challenges: Ultra-Low Power AI at the Edge with Lat...
KTN
 
PPTX
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
Bruno Capuano
 
PDF
Zolertia presentation @ CTTC
Zolertia
 
PDF
Apc's customised digital signage solutions
APC plc
 
PDF
67WS Funnel
Shigeru Kobayashi
 
PDF
Boards for the IoT-Prototyping
Lars Gregori
 
PDF
American Fibertek RR-2800E Data Sheet
JMAC Supply
 
PDF
Apple Store, Ginza
Shigeru Kobayashi
 
PDF
American Fibertek RR945C Data Sheet
JMAC Supply
 
PDF
American Fibertek RT-944C-SL Data Sheet
JMAC Supply
 
PPTX
Costruiamo un Rover in 60 minuti
Codemotion
 
PPTX
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
DOC
Bl r7601 mu2-specification-www.ttbvs.com
TTBVS
 
PPSX
Embedded systems الانظمة المدمجة
salih mahmod
 
PPT
Introduction to PICAXE Microcontrollers
L. Paul Verhage
 
PDF
American Fibertek RT944C Data Sheet
JMAC Supply
 
2015 02 28 DotNetSpain IoT Fight
Bruno Capuano
 
arduino
jhcid
 
Workshop @ Make: Tokyo Meeting 02
Shigeru Kobayashi
 
Implementing AI: Hardware Challenges: Ultra-Low Power AI at the Edge with Lat...
KTN
 
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
Bruno Capuano
 
Zolertia presentation @ CTTC
Zolertia
 
Apc's customised digital signage solutions
APC plc
 
67WS Funnel
Shigeru Kobayashi
 
Boards for the IoT-Prototyping
Lars Gregori
 
American Fibertek RR-2800E Data Sheet
JMAC Supply
 
Apple Store, Ginza
Shigeru Kobayashi
 
American Fibertek RR945C Data Sheet
JMAC Supply
 
American Fibertek RT-944C-SL Data Sheet
JMAC Supply
 
Costruiamo un Rover in 60 minuti
Codemotion
 
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Bl r7601 mu2-specification-www.ttbvs.com
TTBVS
 
Embedded systems الانظمة المدمجة
salih mahmod
 
Introduction to PICAXE Microcontrollers
L. Paul Verhage
 
American Fibertek RT944C Data Sheet
JMAC Supply
 

Viewers also liked (18)

PPT
TCC Graduação no Curso de Engenheria Elétrica
Vic Fernandes
 
PPTX
La entrevista de trabajo. aciertos y errores
DAVID GUERRERO VITA
 
DOC
Kavita Sharma (Apr 15)
Kavita Sharma
 
PDF
Chambers legal
Kola Kolade
 
PDF
Electra - Electrode Type Boiler
Thermodyne Engineering systems
 
PDF
Sydney Sleeper Cell
Nathan Thompson
 
PPT
Gesturing & Touch - Palestra no Delphi Day 2009
Wecsley Fey
 
PDF
ogacious race
AlexH107
 
DOC
mycv
sandhuanita
 
PDF
3週間の Scala 開発で得たモノ
Ryo Ohki
 
PPT
Intraweb + GoogleMaps
Vic Fernandes
 
PDF
Rad studio 技術講座 條碼應用開發 Barcode
Nolan Liao
 
PPT
Rendición de cuentas 2015 (1) IED Las Flores
Milton Romo Martinez
 
PDF
Rad studio 技術講座 物聯網應用 IoT
Nolan Liao
 
PPTX
Clean Desk Policy
Oluwabunmi Rosemary Afuwape
 
PDF
RSN Rescue Demo With Jaws of Life ( Hollmatro Equipment)
Charles Ogutu BS, AAS, AU, AIS, API, Dip CII
 
DOCX
seminar report
naresh12134
 
TCC Graduação no Curso de Engenheria Elétrica
Vic Fernandes
 
La entrevista de trabajo. aciertos y errores
DAVID GUERRERO VITA
 
Kavita Sharma (Apr 15)
Kavita Sharma
 
Chambers legal
Kola Kolade
 
Electra - Electrode Type Boiler
Thermodyne Engineering systems
 
Sydney Sleeper Cell
Nathan Thompson
 
Gesturing & Touch - Palestra no Delphi Day 2009
Wecsley Fey
 
ogacious race
AlexH107
 
3週間の Scala 開発で得たモノ
Ryo Ohki
 
Intraweb + GoogleMaps
Vic Fernandes
 
Rad studio 技術講座 條碼應用開發 Barcode
Nolan Liao
 
Rendición de cuentas 2015 (1) IED Las Flores
Milton Romo Martinez
 
Rad studio 技術講座 物聯網應用 IoT
Nolan Liao
 
Clean Desk Policy
Oluwabunmi Rosemary Afuwape
 
RSN Rescue Demo With Jaws of Life ( Hollmatro Equipment)
Charles Ogutu BS, AAS, AU, AIS, API, Dip CII
 
seminar report
naresh12134
 

Similar to Arduino plus Delphi Mobile Apps - Beyond Basics (20)

PPTX
arduino-1.pptxbxavvgAzccgzs fla sh ga aana
Shristi60834
 
PDF
Mechatronics material . Mechanical engineering
sachin chaurasia
 
PPTX
Arduino board program for Mobile robotss
VSARAVANAKUMARHICETS
 
PDF
Introduction to Arduino
Karim El-Rayes
 
PPTX
Arduino intro.pptx
SanthanaMari11
 
PPTX
Embedded Application : An Autonomous Robot or Line Follower Bot
Er. Raju Bhardwaj
 
PDF
ACCELEROMETER BASED GESTURE ROBO CAR
Harshit Jain
 
DOCX
Arduino PAPER ABOUT INTRODUCTION
NAGASAI547
 
PPTX
ARDUINO Presentation1.pptx
SourabhSalunkhe10
 
PDF
Animatronic hand controller
Sabrina Chowdhury
 
PPTX
How to use an Arduino
AntonAndreev13
 
PPT
01 Intro to the Arduino and it's basics.ppt
pindi2197
 
PDF
Arduino-workshop.computer engineering.pdf
AbhishekGiri933736
 
PPTX
Arduino cic3
Jeni Shah
 
PPTX
Arduino Microcontroller
Shyam Mohan
 
PPTX
Microcontroller_basics_lesson1_2019 (1).pptx
HebaEng
 
PDF
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
PPTX
Arduino slides
sdcharle
 
PPTX
Arduino Workshop Slides
mkarlin14
 
PDF
Starting with Arduino
MajdyShamasneh
 
arduino-1.pptxbxavvgAzccgzs fla sh ga aana
Shristi60834
 
Mechatronics material . Mechanical engineering
sachin chaurasia
 
Arduino board program for Mobile robotss
VSARAVANAKUMARHICETS
 
Introduction to Arduino
Karim El-Rayes
 
Arduino intro.pptx
SanthanaMari11
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Er. Raju Bhardwaj
 
ACCELEROMETER BASED GESTURE ROBO CAR
Harshit Jain
 
Arduino PAPER ABOUT INTRODUCTION
NAGASAI547
 
ARDUINO Presentation1.pptx
SourabhSalunkhe10
 
Animatronic hand controller
Sabrina Chowdhury
 
How to use an Arduino
AntonAndreev13
 
01 Intro to the Arduino and it's basics.ppt
pindi2197
 
Arduino-workshop.computer engineering.pdf
AbhishekGiri933736
 
Arduino cic3
Jeni Shah
 
Arduino Microcontroller
Shyam Mohan
 
Microcontroller_basics_lesson1_2019 (1).pptx
HebaEng
 
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
Arduino slides
sdcharle
 
Arduino Workshop Slides
mkarlin14
 
Starting with Arduino
MajdyShamasneh
 

More from Vic Fernandes (20)

PPTX
Arduino + Delphi Mobile Lâmpada
Vic Fernandes
 
PPTX
Arbitragem de bit coins com Delphi
Vic Fernandes
 
PPT
Visao computacional: Aplicacoes em ambiente industrial com Delphi
Vic Fernandes
 
PPTX
PDF sem Adobe? DOC sem Office? Manipulando arquivos de forma simples em VCL e...
Vic Fernandes
 
PPTX
Acessando recursos dos devices e sensores em iOS e Android
Vic Fernandes
 
PPTX
Existe um mundo lá fora esperando para ser controlado: Delphi Mobile + Arduino
Vic Fernandes
 
PPT
Pesagem Automatizada de BigBags de Café
Vic Fernandes
 
PPTX
EQUIPAMENTO MÉDICO PORTÁTIL PARA ACOMPANHAMENTO DO COMPROMETIMENTO MOTOR EM P...
Vic Fernandes
 
PPTX
ERGONOMIA NO AMBIENTE INDUSTRIAL: Uma abordagem do ponto de vista da engenh...
Vic Fernandes
 
PPTX
Gnostice Suporte completo a PDF e Office - Embarcadero Conference 2015
Vic Fernandes
 
PPTX
IoT aplicada a melhor utilização de recursos naturais - Embarcadero Confere...
Vic Fernandes
 
PPT
Driver Balanças TOLEDO
Vic Fernandes
 
PPTX
in-App Purchase no Delphi XE7 - Embarcadero Conference 2014
Vic Fernandes
 
PPTX
ListBox e Listview em Apps Mobile - Embarcadero Conference 2013
Vic Fernandes
 
PPT
Aula Teste Diagnostico - Mestrado PPGMS nov2013
Vic Fernandes
 
PDF
Caderno Comemorativo 1º do Parque Tecnológico da Bahia
Vic Fernandes
 
PPTX
Certificacao Oficial Embarcadero
Vic Fernandes
 
PPTX
Sistema de pesagem balança rodoviária com automação e integrado a erp de terc...
Vic Fernandes
 
PPTX
Sistema de pesagem balança rodoviária sem automação e integrado a erp de terc...
Vic Fernandes
 
PPTX
Sistema de pesagem em processo de laminação com automação e integrado a erp d...
Vic Fernandes
 
Arduino + Delphi Mobile Lâmpada
Vic Fernandes
 
Arbitragem de bit coins com Delphi
Vic Fernandes
 
Visao computacional: Aplicacoes em ambiente industrial com Delphi
Vic Fernandes
 
PDF sem Adobe? DOC sem Office? Manipulando arquivos de forma simples em VCL e...
Vic Fernandes
 
Acessando recursos dos devices e sensores em iOS e Android
Vic Fernandes
 
Existe um mundo lá fora esperando para ser controlado: Delphi Mobile + Arduino
Vic Fernandes
 
Pesagem Automatizada de BigBags de Café
Vic Fernandes
 
EQUIPAMENTO MÉDICO PORTÁTIL PARA ACOMPANHAMENTO DO COMPROMETIMENTO MOTOR EM P...
Vic Fernandes
 
ERGONOMIA NO AMBIENTE INDUSTRIAL: Uma abordagem do ponto de vista da engenh...
Vic Fernandes
 
Gnostice Suporte completo a PDF e Office - Embarcadero Conference 2015
Vic Fernandes
 
IoT aplicada a melhor utilização de recursos naturais - Embarcadero Confere...
Vic Fernandes
 
Driver Balanças TOLEDO
Vic Fernandes
 
in-App Purchase no Delphi XE7 - Embarcadero Conference 2014
Vic Fernandes
 
ListBox e Listview em Apps Mobile - Embarcadero Conference 2013
Vic Fernandes
 
Aula Teste Diagnostico - Mestrado PPGMS nov2013
Vic Fernandes
 
Caderno Comemorativo 1º do Parque Tecnológico da Bahia
Vic Fernandes
 
Certificacao Oficial Embarcadero
Vic Fernandes
 
Sistema de pesagem balança rodoviária com automação e integrado a erp de terc...
Vic Fernandes
 
Sistema de pesagem balança rodoviária sem automação e integrado a erp de terc...
Vic Fernandes
 
Sistema de pesagem em processo de laminação com automação e integrado a erp d...
Vic Fernandes
 

Recently uploaded (20)

PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Practical Applications of AI in Local Government
OnBoard
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 

Arduino plus Delphi Mobile Apps - Beyond Basics