SlideShare a Scribd company logo
Es werde Licht mit Arduino 
Yes, we scan… 
http://en.wikipedia.org/wiki/Web_of_Things 
Max Kleiner 
Script: 510_bonn_gpsdata_mX4.pas
World of Things 
are changing 
(Web of Things) 
2 
• You deal with physics and elements (xyz) 
• Lots of sensors & actuators to solder 
• Memory/energy on ucontroller is very small 
• Which Casing…, ex. 336_digiclock_3.txt 
• Push a Session or pull a Service ? 
• Call it Client to Device Ident (CD Host) 
• Which Use Case ex. App or DigiCam? 
http://en.wikipedia.org/wiki/Anti-pattern 
A Short History of Time 
1991 Application Program 
1995 Application 
1998 Applet 
2010 App 
2015 A (Android, Arduino, ARM)
Some Theory and Practise 
• Digital World is build on Analogue World 
• 
• 
• 
•• 
• 
3 
070_pas_functionplotter_digital2.txt
How to Start ? 
• With a Starter Kit you have everything you need to start learning the basics of electronics: an 
Arduino UNO, an essential set for wiring things up, a lot of sensors and actuators. 
4 
Ex. 488_AsyncTerminal2.txt Blink (out of the Box)
Need Things 
RS 232 TSerial, AsyncPro, CPort 
Oscilloscope 
Board & LED 
Editors 
5
Proof of Concept Lord of the Things 
6
Case Study LED Box Solution 
7 
Arduino UNO Memory 
Flash 32,768 bytes non-volatile Stores the program source code and Arduino 
bootloader 
SRAM 2048 bytes volatile Operating space for accessing variables and functions 
EEPROM 1024 bytes non-volatile Permanent storage for user data like readings or 
settings
Use Case Shine on you crazy… 
8 
Send a command over http to COM on board to light a RGB led
Solution Arduino C 
Standard Arduino Library 
9 
void setup() { 
// initialize digital pin as an output. 
pinMode(ledPin11, OUTPUT); 
Serial.begin(9600); 
void loop () { 
val = Serial.read(); //read serial port 
if (val !=-1){ 
if (val=='1'){ 
digitalWrite(ledPin1,HIGH); 
} 
else if (val=='A'){ 
digitalWrite(ledPin1,LOW); 
} 
Tutor: http://www.softwareschule.ch/download/maxbox_starter18_3.pdf
Solution HTTP Server 
76 with HTTPServer do begin 
77 if Active then Free; 
78 if not Active then begin 
79 bindings.Clear; 
80 bindings.Add; 
81 bindings.items[0].Port:= APORT; 
82 bindings.items[0].IP:= IPADDR; //'127.0.0.1'; {GetHostIP} 
83 Active:= true; 
84 onCommandGet:= @HTTPServerGet; 
85 PrintF('Listening HTTP on %s:%d.', [Bindings[0].IP,Bindings[0].Port]); 
86 end; 
http://www.softwareschule.ch/examples/443_webserver_arduino_rgb_light4.txt 
10
Solution COM Port 
TIdHTTPRequestInfo; respInfo: TIdHTTPResponseInfo); 
11 
procedure HTTPServerGet(aThr: TIdPeerThread; reqInfo: 
54 if uppercase(localcom) = uppercase('/LED') then begin 
55 cPort.WriteStr('1') 
56 writeln(localcom+ ': LED on'); 
57 RespInfo.ContentText:= getHTMLContentString('LED is: ON'); 
58 end else 
59 if uppercase(localcom) = uppercase('/DEL') then begin 
60 cPort.WriteStr('A'); 
61 writeln(localcom+ ': LED off'); 
62 RespInfo.ContentText:= getHTMLContentString('LED is: OFF') 
63 end; 
361_heartbeat_wave.txt 
http://en.wikipedia.org/wiki/Household_appliances
Test the Light 
http://192.168.1.40:8080/R 
12 
Ein Spermium enthält 37,5 MB DNA-Daten. Eine Ejakulation entspricht einem 
Datentransfer von 1500 TB in 3 Sek. Und ihr denkt DSL sei schnell... ;).
Thanks! Links to Rights 
the source is the code 
http://www.softwareschule.ch/maxbox.htm 
http://sourceforge.net/projects/maxbox 
http://sourceforge.net/apps/mediawiki/maxbox/ 
http://en.wikipedia.org/wiki/Arduino 
http://www.softwareschule.ch/download/webofthings2013.pdf 
Book Patterns konkret 
http://www.amazon.de/Patterns-konkret-Max-Kleiner/dp/3935042469 
maXbox 
https://github.com/maxkleiner/maXbox3/releases 
13
Questions? Code a World 
hack the earth 
14 
Yes, we hack… 
https://github.com/maxkleiner/maXbox3/releases

More Related Content

PDF
Iot 101
PPTX
Programming Addressable LED Strips
PDF
Blinky 101 with Arduino v1.0b3 (FastLED)
PDF
Intel Curie Presentation
DOCX
Dsd FILE mdu
PDF
Weapons grade React by Ken Wheeler
PDF
IPLOG-BSidesROC-2015
PDF
Arduino and Robotics
Iot 101
Programming Addressable LED Strips
Blinky 101 with Arduino v1.0b3 (FastLED)
Intel Curie Presentation
Dsd FILE mdu
Weapons grade React by Ken Wheeler
IPLOG-BSidesROC-2015
Arduino and Robotics

What's hot (10)

PPTX
Introduction to Arduino Microcontroller
PDF
IPLOG? A beginner's IDS for the WIN!
PDF
Integrare Arduino con Unity
PPTX
Snug
PPT
Server/Client Remote platform logger.
PDF
CNIT 50: 6. Command Line Packet Analysis Tools
PPT
Hardware Software Partitioning Of Advanced Encryption Standard To Counter Dif...
PDF
Eclipse NeoSCADA 0.3
PPTX
JVM Memory Model - Yoav Abrahami, Wix
PPTX
Recon with Nmap
Introduction to Arduino Microcontroller
IPLOG? A beginner's IDS for the WIN!
Integrare Arduino con Unity
Snug
Server/Client Remote platform logger.
CNIT 50: 6. Command Line Packet Analysis Tools
Hardware Software Partitioning Of Advanced Encryption Standard To Counter Dif...
Eclipse NeoSCADA 0.3
JVM Memory Model - Yoav Abrahami, Wix
Recon with Nmap
Ad

Viewers also liked (7)

PDF
Code Review with Sonar
PDF
Maxbox starter18
PDF
maXbox Starter 42 Multiprocessing Programming
PDF
A regex ekon16
PDF
maXbox Starter 43 Work with Code Metrics ISO Standard
PDF
XML Tutor maXbox starter27
PDF
Dice and the Law of Probability (maXbox)
Code Review with Sonar
Maxbox starter18
maXbox Starter 42 Multiprocessing Programming
A regex ekon16
maXbox Starter 43 Work with Code Metrics ISO Standard
XML Tutor maXbox starter27
Dice and the Law of Probability (maXbox)
Ad

Similar to Arduino delphi 2014_7_bonn (20)

PDF
Arduino Teaching Program
PDF
maXbox_Arduino_Pascal_Magazine
PDF
Arduino C maXbox web of things slide show
PPTX
Using arduino and raspberry pi for internet of things
PDF
maXbox starter30 Web of Things
PDF
maXbox Arduino Tutorial
PDF
Arduino LED maXbox starter18_3
PDF
What is arduino
PPTX
Internet of Things prescribed by University
PPT
13223971.ppt
PDF
Arduino spooky projects_class1
PPTX
Getting started with arduino workshop
PDF
Connecting RIAs and hardware together
PPTX
Arduino
PPTX
Arduino Slides With Neopixels
PDF
A Practical Guide to Connecting Hardware to the Web
PDF
manual Internet of ThingsArduino_IOTArdu
PDF
programmer avec Arduino
PDF
Edge Of The Web
PDF
Arduino Development For Beginners
Arduino Teaching Program
maXbox_Arduino_Pascal_Magazine
Arduino C maXbox web of things slide show
Using arduino and raspberry pi for internet of things
maXbox starter30 Web of Things
maXbox Arduino Tutorial
Arduino LED maXbox starter18_3
What is arduino
Internet of Things prescribed by University
13223971.ppt
Arduino spooky projects_class1
Getting started with arduino workshop
Connecting RIAs and hardware together
Arduino
Arduino Slides With Neopixels
A Practical Guide to Connecting Hardware to the Web
manual Internet of ThingsArduino_IOTArdu
programmer avec Arduino
Edge Of The Web
Arduino Development For Beginners

More from Max Kleiner (20)

PDF
EKON28_ModernRegex_12_Regular_Expressions.pdf
PDF
EKON28_Maps_API_12_google_openstreetmaps.pdf
PDF
EKON26_VCL4Python.pdf
PDF
EKON26_Open_API_Develop2Cloud.pdf
PDF
maXbox_Starter91_SyntheticData_Implement
PDF
Ekon 25 Python4Delphi_MX475
PDF
EKON 25 Python4Delphi_mX4
PDF
maXbox Starter87
PDF
maXbox Starter78 PortablePixmap
PDF
maXbox starter75 object detection
PDF
BASTA 2020 VS Code Data Visualisation
PDF
EKON 24 ML_community_edition
PDF
maxbox starter72 multilanguage coding
PDF
EKON 23 Code_review_checklist
PDF
EKON 12 Running OpenLDAP
PDF
EKON 12 Closures Coding
PDF
NoGUI maXbox Starter70
PDF
maXbox starter69 Machine Learning VII
PDF
maXbox starter68 machine learning VI
PDF
maXbox starter67 machine learning V
EKON28_ModernRegex_12_Regular_Expressions.pdf
EKON28_Maps_API_12_google_openstreetmaps.pdf
EKON26_VCL4Python.pdf
EKON26_Open_API_Develop2Cloud.pdf
maXbox_Starter91_SyntheticData_Implement
Ekon 25 Python4Delphi_MX475
EKON 25 Python4Delphi_mX4
maXbox Starter87
maXbox Starter78 PortablePixmap
maXbox starter75 object detection
BASTA 2020 VS Code Data Visualisation
EKON 24 ML_community_edition
maxbox starter72 multilanguage coding
EKON 23 Code_review_checklist
EKON 12 Running OpenLDAP
EKON 12 Closures Coding
NoGUI maXbox Starter70
maXbox starter69 Machine Learning VII
maXbox starter68 machine learning VI
maXbox starter67 machine learning V

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPT
Project quality management in manufacturing
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPT
introduction to datamining and warehousing
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
web development for engineering and engineering
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
bas. eng. economics group 4 presentation 1.pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Project quality management in manufacturing
Automation-in-Manufacturing-Chapter-Introduction.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Lecture Notes Electrical Wiring System Components
additive manufacturing of ss316l using mig welding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CYBER-CRIMES AND SECURITY A guide to understanding
introduction to datamining and warehousing
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Foundation to blockchain - A guide to Blockchain Tech
web development for engineering and engineering
UNIT 4 Total Quality Management .pptx
CH1 Production IntroductoryConcepts.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
R24 SURVEYING LAB MANUAL for civil enggi

Arduino delphi 2014_7_bonn

  • 1. Es werde Licht mit Arduino Yes, we scan… http://en.wikipedia.org/wiki/Web_of_Things Max Kleiner Script: 510_bonn_gpsdata_mX4.pas
  • 2. World of Things are changing (Web of Things) 2 • You deal with physics and elements (xyz) • Lots of sensors & actuators to solder • Memory/energy on ucontroller is very small • Which Casing…, ex. 336_digiclock_3.txt • Push a Session or pull a Service ? • Call it Client to Device Ident (CD Host) • Which Use Case ex. App or DigiCam? http://en.wikipedia.org/wiki/Anti-pattern A Short History of Time 1991 Application Program 1995 Application 1998 Applet 2010 App 2015 A (Android, Arduino, ARM)
  • 3. Some Theory and Practise • Digital World is build on Analogue World • • • •• • 3 070_pas_functionplotter_digital2.txt
  • 4. How to Start ? • With a Starter Kit you have everything you need to start learning the basics of electronics: an Arduino UNO, an essential set for wiring things up, a lot of sensors and actuators. 4 Ex. 488_AsyncTerminal2.txt Blink (out of the Box)
  • 5. Need Things RS 232 TSerial, AsyncPro, CPort Oscilloscope Board & LED Editors 5
  • 6. Proof of Concept Lord of the Things 6
  • 7. Case Study LED Box Solution 7 Arduino UNO Memory Flash 32,768 bytes non-volatile Stores the program source code and Arduino bootloader SRAM 2048 bytes volatile Operating space for accessing variables and functions EEPROM 1024 bytes non-volatile Permanent storage for user data like readings or settings
  • 8. Use Case Shine on you crazy… 8 Send a command over http to COM on board to light a RGB led
  • 9. Solution Arduino C Standard Arduino Library 9 void setup() { // initialize digital pin as an output. pinMode(ledPin11, OUTPUT); Serial.begin(9600); void loop () { val = Serial.read(); //read serial port if (val !=-1){ if (val=='1'){ digitalWrite(ledPin1,HIGH); } else if (val=='A'){ digitalWrite(ledPin1,LOW); } Tutor: http://www.softwareschule.ch/download/maxbox_starter18_3.pdf
  • 10. Solution HTTP Server 76 with HTTPServer do begin 77 if Active then Free; 78 if not Active then begin 79 bindings.Clear; 80 bindings.Add; 81 bindings.items[0].Port:= APORT; 82 bindings.items[0].IP:= IPADDR; //'127.0.0.1'; {GetHostIP} 83 Active:= true; 84 onCommandGet:= @HTTPServerGet; 85 PrintF('Listening HTTP on %s:%d.', [Bindings[0].IP,Bindings[0].Port]); 86 end; http://www.softwareschule.ch/examples/443_webserver_arduino_rgb_light4.txt 10
  • 11. Solution COM Port TIdHTTPRequestInfo; respInfo: TIdHTTPResponseInfo); 11 procedure HTTPServerGet(aThr: TIdPeerThread; reqInfo: 54 if uppercase(localcom) = uppercase('/LED') then begin 55 cPort.WriteStr('1') 56 writeln(localcom+ ': LED on'); 57 RespInfo.ContentText:= getHTMLContentString('LED is: ON'); 58 end else 59 if uppercase(localcom) = uppercase('/DEL') then begin 60 cPort.WriteStr('A'); 61 writeln(localcom+ ': LED off'); 62 RespInfo.ContentText:= getHTMLContentString('LED is: OFF') 63 end; 361_heartbeat_wave.txt http://en.wikipedia.org/wiki/Household_appliances
  • 12. Test the Light http://192.168.1.40:8080/R 12 Ein Spermium enthält 37,5 MB DNA-Daten. Eine Ejakulation entspricht einem Datentransfer von 1500 TB in 3 Sek. Und ihr denkt DSL sei schnell... ;).
  • 13. Thanks! Links to Rights the source is the code http://www.softwareschule.ch/maxbox.htm http://sourceforge.net/projects/maxbox http://sourceforge.net/apps/mediawiki/maxbox/ http://en.wikipedia.org/wiki/Arduino http://www.softwareschule.ch/download/webofthings2013.pdf Book Patterns konkret http://www.amazon.de/Patterns-konkret-Max-Kleiner/dp/3935042469 maXbox https://github.com/maxkleiner/maXbox3/releases 13
  • 14. Questions? Code a World hack the earth 14 Yes, we hack… https://github.com/maxkleiner/maXbox3/releases