Copyright Arduino and Genuino MKR1000 Development Workshop Agus Kurniawan 1st Edition, 2016 Copyright © 2016 Agus Kurniawan Table of Contents Copyright Preface 1. Setting up Development Environment 1.1 Arduino and Genuino MKR1000 1.2 Electronic Components 1.2.1 Arduino Starter Kit 1.2.2 Fritzing 1.2.3 Cooking-Hacks: Arduino Starter Kit 1.2.4 Arduino Sidekick Basic kit 1.3 Unboxing 1.4 Testing 2. Sketch Programming 2.1 Getting Started 2.2 Arduino Hardware Driver 2.3 Setting up Arduino and Genuino MKR1000 on Arduino Sketch 2.4 Hello World for Arduino and Genuino MKR1000 2.5 Basic Sketch Programming 2.6 Digital I/O 2.7 Serial Communication 2.8 Analog I/O 2.9 PWM 2.9.1 Arduino/Genuino MKR1000 PWM 2.9.2 Controlling RGB LED Color 2.9.3 Arduino Implementation 2.10 What's Next? 3. Working with SPI 3.1 Getting Started 3.2 Wiring 3.3 Writing a Program 3.4 Testing 4. Working with I2C 4.1 Getting Started 4.2 Writing Program 4.3 Writing Program 4.4 Testing 5. Arduino WiFi Networking 5.1 Getting Started 5.2 Adding WiFi101 Library 5.3 Scanning WiFi Hotspot 5.4 Connecting to a WiFi Network 5.5 Building a Simple IoT Application 5.5.1 Wiring 5.5.2 Writing Program 5.5.3 Testing 5.6 Updating WiFi101 Firmware 6. Working with Internal RTC and Sleep Mode 6.1 Getting Started 6.2 Adding RTC Library 6.3 Demo: Simple RTC 6.4 Demo: Connecting to Network Time Protocol (NTP) Server 6.5 Demo: Sleep and Wake up 7. Controlling Arduino through Firmata Protocol 7.1 Getting Started 7.2 Installing Firmata Firmware 7.3 Demo 7.3.1 Wiring 7.3.2 Firmata Program on Arduino Board 7.3.3 Writing Python Program 7.3.4 Testing 8. Working with Firmata Protocol over WiFi 8.1 Getting Started 8.2 Demo: Wiring 8.3 Configuring Arduino Board for StandardFirmataWiFi 8.4 Writing Program 8.5 Testing 9. Arduino Cloud 9.1 Getting Started 9.2 Adding MQTT Library 9.3 Setting up Arduino Cloud 9.4 Writing Program 9.5 Testing 9.6 Publishing and Subscribing 9.7 What's Next? Source Code Contact Preface This book was written to help anyone want to get started with Arduino/Genuino MKR1000 development. It describes the basic elements of the development of Arduino/Genuino MKR1000. Agus Kurniawan Berlin, April 2016 1. Setting up Development Environment 1.1 Arduino and Genuino MKR1000 Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. This board uses Atmel microcontroller series. There are many Arduino hardware models that you can use. Further information about Arduino products, you can visit on website http://arduino.cc/en/ . Arduino MKR1000 has been designed to offer a practical and cost effective solution for makers seeking to add Wi-Fi connectivity to their projects with minimal previous experience in networking. You can buy this product on your local electronic store. You also can order it by online. Find it on http://arduino.cc/en/Main/Buy. You also can find this board on its distributor. 1.2 Electronic Components We need electronic components to build our testing, for instance, Resistor, LED, sensor devices and etc. I recommend you can buy electronic component kit. 1.2.1 Arduino Starter Kit Store website: http://arduino.cc/en/Main/ArduinoStarterKit 1.2.2 Fritzing Store website: http://shop.fritzing.org/ . You can buy Fritzing Starter Kit with Arduino UNO or Fritzing Starter Kit with Arduino Mega.
Description: