arduino plus delphi mobile apps - basics
TRANSCRIPT
![Page 1: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/1.jpg)
Arduino+Delphi MobileBasics
Victory FernandesEmbarcadero MVP-Brazil
![Page 2: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/2.jpg)
@victoryjorge
![Page 3: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/3.jpg)
Victory Fernandes• I love Delphi since 1998! • Embarcadero MVP-Brazil• Electrical Engineer; Msc. Medicine Neuro-
Science• CTO at TKSSoftware.com• Represent INDEVA Manipulators and AGVs
![Page 4: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/4.jpg)
Hydroelectric Plant (~77% in Brazil)
![Page 5: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/5.jpg)
Main control room
![Page 6: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/6.jpg)
![Page 7: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/7.jpg)
Worked with microcontrollers before?
![Page 8: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/8.jpg)
![Page 9: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/9.jpg)
•PARKIGLOVE - mbed NXP LPC1768
![Page 10: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/10.jpg)
![Page 11: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/11.jpg)
![Page 12: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/12.jpg)
• Prototyping platforms• Open source Software and Hardware • Application? Size, power consumption…• 8bits, 32bits…• 16MHz, 95Mhz…• 32KB-512KB Flash; 2KB-32KB RAM…• 8051, PIC, AtMega, ARM…• Intel, Microchip, Atmel, Freescale, NXP…
• "Microcontrollers for Dummies"
![Page 13: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/13.jpg)
• Introdução IoT
• Arduino Uno
www.arduino.cc www.arduino.org
![Page 14: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/14.jpg)
• Arduino Shields?
![Page 15: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/15.jpg)
+ +
+ =
![Page 16: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/16.jpg)
• Delphi Intraweb realtime vehicle tracking
![Page 17: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/17.jpg)
![Page 18: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/18.jpg)
• www.shieldlist.org
![Page 19: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/19.jpg)
• shieldlist.org
![Page 20: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/20.jpg)
![Page 21: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/21.jpg)
![Page 22: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/22.jpg)
GameDuinoVGA OutputStereo Audio
NTSC and PAL output
• Video
![Page 23: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/23.jpg)
Joystick
• Joysticks
![Page 24: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/24.jpg)
MP3
• Sound
VoiceBoxSerial to Voice
![Page 25: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/25.jpg)
Color LCD
16x2 display
7 segments display
Touch
• Display
![Page 26: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/26.jpg)
DC motorH Bridge – 1A
DC motorH bridge – 2A
• Motors
![Page 27: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/27.jpg)
Ethernet CAT5e
Ethernet CAT5e + Wi-Fi
• Network
![Page 28: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/28.jpg)
microSD
SDCard
• Storage
![Page 29: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/29.jpg)
ZigBee
CanBus
• Automation
Relays up to 220VAC
![Page 30: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/30.jpg)
Protoboard
• Do it yourself!
Standard board
![Page 31: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/31.jpg)
![Page 32: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/32.jpg)
• Introdução IoT
• Arduino Mini, Micro, Nano…
![Page 33: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/33.jpg)
• Small sizes…
![Page 34: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/34.jpg)
• Arduino Lilypad
![Page 35: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/35.jpg)
• Wearable projects…
Funcional Estética Diversão
![Page 36: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/36.jpg)
• "Hello world”?
![Page 37: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/37.jpg)
• "Hello world”?
![Page 38: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/38.jpg)
• "Hello world”?
![Page 39: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/39.jpg)
• "Hello world”?
![Page 40: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/40.jpg)
• "Hello world”?
![Page 41: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/41.jpg)
•Robocore Padawanwww.robocore.net/loja/produtos/arduino-shield-padawan.html
RGB LED
![Page 42: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/42.jpg)
•DFRobot accessory boardwww.dfrobot.com/index.php?route=product/product&path=35&product_id=1045
RGB LED
![Page 43: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/43.jpg)
• “Hello World”?
LED pin 13
![Page 44: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/44.jpg)
Delphi Android/iOS app
ON
OFF
UDP Server192.168.1.177:8888
’H’ ’H’ ’H’=On’L’ ’L’ ’L’=Off
![Page 45: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/45.jpg)
•Lets build our control protocol
from scratch
![Page 46: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/46.jpg)
![Page 47: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/47.jpg)
Lets start from Arduino UDP demo
![Page 48: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/48.jpg)
Original code…Configure your network properly!
![Page 49: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/49.jpg)
Added to the original code!
![Page 50: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/50.jpg)
Added to original code!
![Page 51: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/51.jpg)
•Now our code responds to strings ‘H’ and ‘L’
and pin 9 can be controlled remotely
![Page 52: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/52.jpg)
![Page 53: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/53.jpg)
![Page 54: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/54.jpg)
![Page 55: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/55.jpg)
• LED demo app…
![Page 56: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/56.jpg)
• May the force be with you!
![Page 57: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/57.jpg)
• LED is 5 VDC…
![Page 58: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/58.jpg)
• We need 110/220 VAC…
![Page 59: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/59.jpg)
![Page 60: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/60.jpg)
• Light switch example…
![Page 61: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/61.jpg)
• Relays
![Page 62: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/62.jpg)
1
2
3
4 5
1
23
4
5
Coil + Current = Magnetic field
![Page 63: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/63.jpg)
•Relay module… EUR 3,00www.robocore.net/loja/produtos/modulo-rele.html
![Page 64: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/64.jpg)
•Relay module… EUR 3,00www.dfrobot.com/index.php?route=product/product&search=relay&description=true&product_id=64
![Page 65: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/65.jpg)
• Lamp circuit
![Page 66: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/66.jpg)
• Lamp demo app…
![Page 67: Arduino plus Delphi Mobile Apps - Basics](https://reader036.vdocuments.site/reader036/viewer/2022062412/5871af4a1a28abda6a8b642f/html5/thumbnails/67.jpg)
• Simple real life application…