CHAPTER V IMPLEMENTATION AND TESTING

Size: px
Start display at page:

Download "CHAPTER V IMPLEMENTATION AND TESTING"

Transcription

1 CHAPTER V IMPLEMENTATION AND TESTING 5.1 Implementation Arduino IDE This project uses the arduino IDE application. This application used to compile and to upload the program. The program can be seen as below: 1. Libraries. #include <ESP8266WiFi.h> #include "ThingSpeak.h" #include <Time.h> #include <TimeAlarms.h> #include <Servo.h> #include <SPI.h> #include <SD.h> 2. Setting the name and the password of WiFi. const char* ssid = "redmiku"; const char* password = " "; 3. Setting the name of server (thingspeak and IP laptop/pc), setting channel of IoT, and setting API of IoT. unsigned long mychannelnumber = ; const char * mywriteapikey = "R9VHNWY87JFE23QW"; const char* server = "api.thingspeak.com"; const char* server1 = " "; //ip laptop 4. Declaring variable and pinout will be used. const int chipselect = D4; //pin of micro SD module int trigair =D0; // pin trigger of the HC-SR04 int echoair =D1; // pin echo of HC-SR04 int tinggiair; //used to save the water level 12

2 13 int tinggiember=21; // set the height of aquarium int trigpin =D2; // pin trigger of the HC-SR04 int echopin =D3; // pin echo of HC-SR04 float volume; // used to save the volume of fish feed can int tinggipenampung=15; // set the height of fish feed can int tinggipakan; // used to save the height of fish feed int buzzer =D2; // pin of buzzer 5. Setting transfer rate to serial and setting sensor as input/output. Serial.begin(115200); pinmode(trigpin, OUTPUT); pinmode(echopin, INPUT); pinmode(trigair, OUTPUT); pinmode(echoair, INPUT); pinmode(buzzer, OUTPUT); 6. Declaring micro servo variable and pin will be used. Setting the angle of micro servo. myservo1.attach(d8); //servo penampung myservo1.write(0); 7. Connecting to WiFi. Serial.println(); Serial.print("Connecting"); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status()!= WL_CONNECTED) { delay(500); Serial.print("."); Serial.println(""); Serial.println("WiFi connected"); Serial.println("IP address: "); Serial.println(WiFi.localIP());

3 14 8. Detecting micro sd memory. if (!SD.begin(chipSelect)) { Serial.println("Card does not exists"); // don't do anything more: return; Serial.println("card initialized."); 9. Detecting file jam.txt. The time.txt used to setting the clock. File datafile3 = SD.open("time.txt"); // if the file is available, write to it: if (datafile3) { while (datafile3.available()) { int data1 = datafile3.parseint(); // ambil data ke-1 int data2 = datafile3.parseint(); // ambil data ke-2: int data3 = datafile3.parseint(); // ambil data ke-3: int data4 = datafile3.parseint(); // ambil data ke-3: int data5 = datafile3.parseint(); // ambil data ke-3: int data6 = datafile3.parseint(); // ambil data ke-3: if (datafile3.read() == '\n') { int data1 = data1; int data2 = data2; int data3 = data3; int data4 = data4; int data5 = data5; int data6 = data6; Serial.println(data1); Serial.println(data2);

4 15 Serial.println(data3); Serial.println(data4); Serial.println(data5); Serial.println(data6); settime(data1,data2,data3,data4,data5,data6); //setting the clock // if the file isn't open, pop up an error: else { Serial.println("error opening time.txt"); datafile3.close(); 10. Detecting alarm.txt. The alarm.txt used to schedule. The schedule used to open and to close the door of fish feed can. File datafile = SD.open("alarm.txt"); // if the file is available, write to it: if (datafile) { while (datafile.available()) { int dataalarm1 = datafile.parseint(); // ambil data ke-1 dan parsing ke int int dataalarm2 = datafile.parseint(); // ambil data ke-2 dan parsing ke int int dataalarm3 = datafile.parseint(); dan parsing ke int int dataalarm4 = datafile.parseint(); int dataalarm5 = datafile.parseint(); int dataalarm6 = datafile.parseint(); if (datafile.read() == '\n') { // ambil data ke-3

5 16 int dataalarm1 = dataalarm1; int dataalarm2 = dataalarm2; int dataalarm3 = dataalarm3; int dataalarm4 = dataalarm4; int dataalarm5 = dataalarm5; int dataalarm6 = dataalarm6; Serial.println(dataalarm1); Serial.println(dataalarm2); Serial.println(dataalarm3); Serial.println(dataalarm4); Serial.println(dataalarm5); Serial.println(dataalarm6); Alarm.alarmRepeat(dataalarm1,dataalarm2,dataalarm3, Penampung); /*alarm tiap hari*/ Alarm.alarmRepeat(dataalarm4,dataalarm5,dataalarm6, Penampung); /*alarm tiap hari*/ else { Serial.println("error opening alarm.txt"); datafile.close(); 11. Setting count of micro servo when opened and closed. void Penampung() { Serial.println("SERVO BUKAA"); myservo1.write(70); delay(550); //DELAY 0.5 DETIK myservo1.write(0);

6 17 delay(550); myservo1.write(70); delay(550); //DELAY 0.5 DETIK myservo1.write(0); delay(550); myservo1.write(70); delay(550); //DELAY 0.5 DETIK myservo1.write(0); delay(550); myservo1.write(70); delay(550); //DELAY 0.5 DETIK myservo1.write(0); delay(550); myservo1.write(70); delay(550); //DELAY 0.5 DETIK myservo1.write(0); delay(550); 12. The measurement of the volume of fish feed can and the water level. void loop() { long duration, distance; long durationair, distanceair; digitalwrite(trigpin, LOW); delaymicroseconds(2); digitalwrite(trigpin, HIGH); delaymicroseconds(10); digitalwrite(trigpin, LOW); duration = pulsein(echopin, HIGH); distance = (duration/2) / 29.1; tinggipakan = tinggipenampung-distance;

7 18 volume = 3.14*8.6*8.6*tinggiPakan; digitalwrite(trigair, LOW); delaymicroseconds(2); digitalwrite(trigair, HIGH); delaymicroseconds(10); digitalwrite(trigair, LOW); durationair = pulsein(echoair, HIGH); distanceair = (durationair/2) / 29.1; tinggiair = tinggiember-distanceair; Serial.print("\n"); Serial.print(day()); Serial.print("-"); Serial.print(month()); Serial.print("-"); Serial.println(year()); Serial.print(hour()); Serial.print(":"); Serial.print(minute()); Serial.print(":"); Serial.print(second()); Serial.println(); Alarm.delay(1000); if (distance>=16){ distance=0; tone(buzzer,1000); if (distance >= 30 distance <= 0){ distance=0;

8 19 Serial.println("Jarak diluar jangkauan!"); else { Serial.print("jarak= "); Serial.print(distance); Serial.println(" cm"); Serial.print("Tinggi Pakan= "); Serial.print(tinggiPakan); Serial.print(" cm"); Serial.print("Volume= "); Serial.print(volume); Serial.println("cm3"); notone(buzzer); if (distanceair > 21 distanceair <= 0){ distanceair = 0; Serial.println("Jarak diluar jangkauan!"); else { Serial.print("jarak= "); Serial.print(distanceAir); Serial.println(" cm"); Serial.print("Tinggi Air= "); Serial.print(tinggiAir); Serial.println(" cm\n"); 13. Setting the field will be sent to IoT server. ThingSpeak.setField(1,volume); ThingSpeak.setField(2,tinggiAir);

9 Sending data (volume, date, month, year, hour, minute, second, the water level) to a computer using HTTP protocol. if (client.connect(server1, 80)) { client.print("get /tes/coba.php?"); // the address file to save in txt file client.print("volume="); client.print(volume); client.print("&&"); client.print("tanggal="); client.print(day()); client.print("&&"); client.print("bulan="); client.print(month()); client.print("&&"); client.print("tahun="); client.print(year()); client.print("&&"); client.print("jam="); client.print(hour()); client.print("&&"); client.print("menit="); client.print(minute()); client.print("&&"); client.print("detik="); client.print(second()); client.print("&&"); client.print("tinggiair="); client.print(tinggiair); client.println(" HTTP/1.1"); // Part of the GET request client.println("host: "); // IP address laptop client.println("connection: close"); // Part of the GET request

10 21 telling the server that we are over transmitting the message client.println(); // Empty line client.println(); // Empty line client.stop(); // Closing connection to server else { // If Arduino can't connect to the server (your computer or web page) Serial.println("--> connection failed\n"); 15. Sending data (volume and the water level) to IoT server. ThingSpeak.writeFields(myChannelNumber, mywriteapikey); delay(15000); // ThingSpeak will only accept updates every 15 seconds PHP File In this project PHP file use to get the data (volume, date, month, year, hour, minute, second, the water level) from sensor. After that, save the data to txt file. <html> <body> <?php if(isset($_get["volume"]) && isset($_get["tanggal"]) && isset($_get["bulan"])&& isset($_get["tahun"]) && isset($_get["jam"]) && isset($_get["menit"]) && isset($_get["detik"]) isset($_get["tinggiair"])) { $volume = $_GET["volume"]; $tanggal = $_GET["tanggal"]; $bulan = $_GET["bulan"]; $tahun = $_GET["tahun"]; &&

11 22 $jam = $_GET["jam"]; $menit = $_GET["menit"]; $detik = $_GET["detik"]; $tinggiair = $_GET["tinggiAir"]; $file = fopen("coba.txt","a"); //a untuk menambah data, w untuk menulis baru if($file) { fputs($file,$tanggal."-".$bulan."-".$tahun."\n"); fputs($file,$jam.":".$menit.":".$detik."\n"); fputs($file,"volume Pakan=".$volume."\n"); fputs($file,"tinggi Air=".$tinggiAir."\n\n"); fclose($file); else{ echo "data tidak ada <br>"; echo "<b></b>isi dari file coba.txt sekarang:</b><br>"; $file = fopen("coba.txt","r"); while(! feof($file)) { echo fgets($file). "<br />"; fclose($file);?> </body> </html>

12 Testing The figure below shows how the nodemcu connected to the WiFi, the nodemcu detected the micro SD memory, the nodemcu detected the time.txt and the alarm.txt, the nodemcu reading the HC-SR04 sensor in measuring the distance, the nodemcu reading the volume, the nodemcu reading the water level, the volume and the water level in txt file, the volume and the water level in IoT server. 1. Connecting to the WiFi. When the nodemcu connected to the WiFi, the nodemcu will get an IP address. The IP address will be print in serial monitor. Figure 8: NodeMCU Connected the WiFi

13 24 2. Detecting the micro SD Memory. When the micro SD memory detected, the serial monitor will be print card initialized. Figure 9: Detecting Micro SD Memory 3. Detecting the time.txt and the alarm.txt. The time.txt used to set the time in nodemcu. The alarm.txt used to set the schedule to open and to close the door of fish feed can. When the time.txt and the alarm.txt detected, the serial monitor will be print the contain of time.txt and the contain of the alarm.txt. Figure 10: Detecting the time.txt and the alarm.txt

14 25 4. Setting the time. After detected the time.txt in micro SD memory, the time will be set. The time will be loop in this program. Figure 11: Setting the time

15 26 5. Measuring the distance using HC-SR04 sensor. The HC-SR04 sensor will read the distance of fish feed can and read the distance of the water level. The distance will be print in serial monitor (jarak). The height of fish feed will be print too in serial monitor. To determine the height of fish feed, this program setting the height of canned fish feed beforehand. After that, the height of canned fish feed minus the distance. To calculating volume of fish feed can, this program using tube volume formula. After that the volume will be print in serial monitor. The distance and the water level will be print in serial monitor. But to know the water level this program set the height of aquarium. After that the height if aquarium minus the distance. Figure 12: Measuring the distance using HC-SR04 sensor

16 27 6. Saving the volume and the water level in txt file. The volume and the water level will be saving in txt file via XAMPP every 25 second. Figure 13: Saving the volume and the water level in txt file 7. Saving the volume and the water level in IoT server (thingspeak). The volume and the water level will be saving in IoT server every 25 second. Figure 14: Saving the volume and the water level in IoT server

DIY Korner home security system

DIY Korner home security system DIY Korner home security system What is Korner security system? This product is meant for home security. It comes with a korner tag (korner stick) and several korner tags. The one to the right is the korner

More information

Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs :

Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs : Lab#3 : arduino to proteus simulation for simulate Arduino program that you wrote you have to have these programs : 1-Arduino C 2-proteus 3- Virtual Serial Port Driver 4-Arduino library to proteus You

More information

Experiment 3: Sonar Navigation, CAD and 3D Printing

Experiment 3: Sonar Navigation, CAD and 3D Printing Experiment 3: Sonar Navigation, CAD and 3D Printing V3 Robot scans area for obstacles to avoid hitting them and navigates using sonar sensor mounted on a 3D printed sensor bracket that goes on a micro

More information

DAFTAR PUSTAKA. [3] Dinata, Yuwono Marta Arduino Itu Mudah. Jakarta: PT.Elex Media Komputindo

DAFTAR PUSTAKA. [3] Dinata, Yuwono Marta Arduino Itu Mudah. Jakarta: PT.Elex Media Komputindo DAFTAR PUSTAKA [1] Masruchi. 2015. Rancang dan Bangun System Pengukuran dan Monitoring Pemakaian Air Rumah PDAM Menggunakan SMS (Short Message Service). Skripsi. FT, Teknik Fisika, Universitas Nasional

More information

How to use an ESP-01S module

How to use an ESP-01S module How to use an ESP-01S module How Does It Work? The ESP8266 can be controlled from your local Wi-Fi network or from the internet (after port forwarding). The ESP-01 module has GPIO pins that can be programmed

More information

#include "quaternionfilters.h" #include "MPU9250.h" data read #define SerialDebug true // Set to true to get Serial output for debugging

#include quaternionfilters.h #include MPU9250.h data read #define SerialDebug true // Set to true to get Serial output for debugging /*Hardware setup: MPU9250 Breakout --------- Arduino VDD ---------------------- 3.3V VDDI --------------------- 3.3V SDA ----------------------- A4 SCL ----------------------- A5 GND ----------------------

More information

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements Item 12: Burglar Alarmed Monday, 15 October 2018 12:31 PM BURGLAR ALARMED EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements WILF - Defined

More information

Arduino Driver SD Card

Arduino Driver SD Card Arduino Driver SD Card The arduino driver SD car is for the file s reading and writing What requires special explanation is the SD library file. Currently, it can t support the card over 2G well, so I

More information

MuseLab WiFi IoT Robotic Shield for BBC Micro:Bit Quick Start Guide Contents

MuseLab WiFi IoT Robotic Shield for BBC Micro:Bit Quick Start Guide Contents MuseLab WiFi IoT Robotic Shield for BBC Micro:Bit Quick Start Guide Contents Introduction... 2 Structure diagram... 2 How to program MuseIoT on micro:bit... 4 1. Print Hello World on the screen... 5 2.

More information

ARDUINO. By Kiran Tiwari BCT 2072 CoTS.

ARDUINO. By Kiran Tiwari BCT 2072 CoTS. ARDUINO By Kiran Tiwari BCT 2072 CoTS www.kirantiwari.com.np SO What is an Arduino? WELL!! Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Why Arduino? Simplifies

More information

free ebooks ==>

free ebooks ==> Home Automation With the ESP8266 Build Home Automation Systems Using the Powerful and Cheap ESP8266 WiFi Chip Marco Schwartz, PhD Contents Legal About the author About the companion website Chapter 1 free

More information

- 1 - /*Code for data logging for Arduino with Atmega328 chip and 3 differential pressure

- 1 - /*Code for data logging for Arduino with Atmega328 chip and 3 differential pressure - 1 - Software code /*Code for data logging for Arduino with Atmega328 chip and 3 differential pressure sensors MPX5100DP mounted on tensiometers for monitoring water potential in soils. After powering,

More information

Sten-SLATE ESP Kit. Description and Programming

Sten-SLATE ESP Kit. Description and Programming Sten-SLATE ESP Kit Description and Programming Stensat Group LLC, Copyright 2016 Overview In this section, you will be introduced to the processor board electronics and the arduino software. At the end

More information

(128x64dot) Wi-Fi (CPU ESP-WROOM-02) Susumu Shikata V2: V3: SPIFF SSID / Password / IP " "

(128x64dot) Wi-Fi (CPU ESP-WROOM-02) Susumu Shikata V2: V3: SPIFF SSID / Password / IP  /* (128x64dot) Wi-Fi (CPU ESP-WROOM-02) Susumu Shikata V2:2017.10.22 GPIO0 ( ) V3:2017.11.21 SPIFF SSID / Password / IP ) 4 "1" "255.255.255.0" ------------------------------ https:qiita.com/exabugs/items/2f67ae363a1387c8967c

More information

FireBeetle ESP8266 IOT Microcontroller SKU: DFR0489

FireBeetle ESP8266 IOT Microcontroller SKU: DFR0489 FireBeetle ESP8266 IOT Microcontroller SKU: DFR0489 Introduction DFRobot FireBeetle is a series of low-power-consumption development hardware designed for Internet of Things (IoT). Firebeetle ESP8266 is

More information

ESP32 WIFI/BLE Board v0.9

ESP32 WIFI/BLE Board v0.9 ESP32 WIFI/BLE Board v0.9 From Elecrow Contents 1 Introduction 2 Feactures 3 Specification 4 Interface Function 5 Usage 5.1 Installing the ESP32 Arduino Core 5.1.1 Download the Core 5.1.2 Install the Xtensa

More information

I.O.T. 1. I.O.T Application. 86Duino

I.O.T. 1. I.O.T Application. 86Duino 1. I.O.T Application I.O.T 86Duino EduCake (EduCake) is an open-source microcomputer learning platform built on Vortex86EX, a System-On-Chip (SoC) built with a 32-bit x86 processor. The EduCake is designed

More information

Sten-SLATE ESP. WiFi

Sten-SLATE ESP. WiFi Sten-SLATE ESP WiFi Stensat Group LLC, Copyright 2016 1 References www.arduino.cc http://esp8266.github.io/arduino/versions/2.1.0/doc/reference.html 2 Introduction The wifi integrated in the processor

More information

/* to use: enter key aray and make sure that the userentered has the same number of zeros

/* to use: enter key aray and make sure that the userentered has the same number of zeros to use: enter key aray and make sure that the userentered has the same number of zeros ex: int Keyarray[] = {1,2,3,4; int userentered[] = {0,0,0,0; ex2: int Keyarray[] = {1,2,3,4,1,2,3; int userentered[]

More information

EP486 Microcontroller Applications

EP486 Microcontroller Applications EP486 Microcontroller Applications Topic 6 Step & Servo Motors Joystick & Water Sensors Department of Engineering Physics University of Gaziantep Nov 2013 Sayfa 1 Step Motor http://en.wikipedia.org/wiki/stepper_motor

More information

Remote Control with the Huzzah + Adafruit.io

Remote Control with the Huzzah + Adafruit.io Remote Control with the Huzzah + Adafruit.io Created by Richard Albritton Last updated on 2017-07-30 03:11:01 PM UTC Guide Contents Guide Contents Overview Adafruit IO Setup Creating the Buttons Feed Adding

More information

#define DBG_OUTPUT_PORT Serial. const char* ssid = "**********"; const char* password = "**********"; const char* host = "esp8266sd";

#define DBG_OUTPUT_PORT Serial. const char* ssid = **********; const char* password = **********; const char* host = esp8266sd; /* SDWebServer - Example WebServer with SD Card backend for esp8266 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the ESP8266WebServer library for Arduino environment. This

More information

Memo on development of the car-rangefinder device/data logger for crosswalk study

Memo on development of the car-rangefinder device/data logger for crosswalk study Memo on development of the car-rangefinder device/data logger for crosswalk study -Alex Bigazzi; abigazzi@pdx.edu; alexbigazzi.com; Sept. 16 th -19 th, 2013 The device is supposed to measure distances

More information

Cloud Hoppers Weather Station using Arduino Uno Board and Ethernet Shield

Cloud Hoppers Weather Station using Arduino Uno Board and Ethernet Shield Maplin weather station part numbers: Anemometer 2.49 part number :- N25FR Wind direction sensor 9.99:-N96FY You can build this onto a little strip board for easy connection :) Ardunio with Ethernet Shield

More information

Sten-SLATE ESP. Simple Web Server

Sten-SLATE ESP. Simple Web Server Sten-SLATE ESP Simple Web Server Stensat Group LLC, Copyright 2018 1 References www.arduino.cc https://github.com/esp8266/arduino 2 System Design A web server uses the client/server software model. The

More information

Arduino Package Tracker

Arduino Package Tracker Arduino Package Tracker Created by Vaughn Shinall Last updated on 2016-02-24 04:25:10 PM EST Guide Contents Guide Contents Overview Parts Credentials Generate Your Sketch Parse Your Output Add an Alert

More information

SD Card shield V4.0. Introduction. Application Ideas. Music Player with LinkIt One

SD Card shield V4.0. Introduction. Application Ideas. Music Player with LinkIt One SD Card shield V4.0 Introduction This is the newly released SD card V4.0 shield. It provides a storage space for your Arduino. Users can read/write SD card via Arduino s built-in SD library. It supports

More information

Arduino Platform Part I

Arduino Platform Part I Arduino Platform Part I Justin Mclean Class Software Email: justin@classsoftware.com Twitter: @justinmclean Blog: http://blog.classsoftware.com Who am I? Director of Class Software for almost 15 years

More information

Robot Eyes. DAY 3 Let's Make a Robot

Robot Eyes. DAY 3 Let's Make a Robot DAY 3 Let's Make a Robot Objective: Students will learn to use an SR04 Sonar component to measure distance. The Students will then build their robot, establish programming to control the motors and then

More information

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C Data Sheet 10 Channel Analog to Digital Converter with output via I 2 C Introduction Many microcontroller projects involve the use of sensors like Accelerometers, Gyroscopes, Temperature, Compass, Barometric,

More information

GYNEO6MV2 GPS Module with Arduino

GYNEO6MV2 GPS Module with Arduino GYNEO6MV2 GPS Module with Arduino This guide shows how to use the NEO-6M GPS module with the Arduino to get GPS data. GPS stands for Global Positioning System and can be used to determine position, time,

More information

Handson Technology. HC-SR04 Ultrasonic Sensor Module. 1

Handson Technology. HC-SR04 Ultrasonic Sensor Module. 1 Handson Technology User Guide HC-SR04 Ultrasonic Sensor Module HC-SR04 Ultrasonic Sensor is a very affordable proximity/distance sensor that has been used mainly for object avoidance in various robotics

More information

Development Routines of TF LiDAR on Arduino

Development Routines of TF LiDAR on Arduino Development Routines of TF LiDAR on Arduino This routine is aimed to help our customers quickly master the LiDAR products of our company and to shorten the development cycle. As for Arduino board, UNO

More information

ESP8266 Weather Station User Guide V 1.0 Mar 2017

ESP8266 Weather Station User Guide V 1.0 Mar 2017 ESP8266 Weather Station User Guide V 1.0 Mar 2017 Contents 1. Introduction...4 2. Assembly...5 A. ESP8266 Module...5 B. OLED Display...6 C. DHT11 Humidity & Temperature Sensor...7 D. Wires & Cables...8

More information

Monitor your home remotely using the Arduino

Monitor your home remotely using the Arduino Monitor your home remotely using the Arduino WiFi Shield How to monitor some data in your home using precisely this Arduino WiFi shield. Along with the Arduino Uno board, the final system will form an

More information

ESP8266 Weather Station

ESP8266 Weather Station ESP8266 Weather Station Getting Started Guide Daniel Eichhorn This book is for sale at http://leanpub.com/esp8266weatherstationgettingstartedguide This version was published on 2017-02-10 This is a Leanpub

More information

Steering Engine Sample Sketch

Steering Engine Sample Sketch Steering Engine Sample Sketch #include #include #define LEFT_CENTER 93 #define RIGHT_CENTER 95 #define SPEED 5 Servo servo_left; Servo servo_right; SoftwareServo servo_scanner;

More information

begin() Descriptions Syntax Parameters Returns Example Initializes the network parameters of PHPoC Shield for Arduino. Phpoc.

begin() Descriptions Syntax Parameters Returns Example Initializes the network parameters of PHPoC Shield for Arduino. Phpoc. PHPoC Shield for Arduino Library Reference > Phpoc Class > begin() begin() Initializes the network parameters of PHPoC Shield for Arduino. Phpoc.begin() Phpoc.begin(debug_flag) debug_flag - flags for debugging

More information

Introduction To Arduino

Introduction To Arduino Introduction To Arduino What is Arduino? Hardware Boards / microcontrollers Shields Software Arduino IDE Simplified C Community Tutorials Forums Sample projects Arduino Uno Power: 5v (7-12v input) Digital

More information

MAKE & COLLABORATE: SECRET KNOCK LOCK

MAKE & COLLABORATE: SECRET KNOCK LOCK MAKE & COLLABORATE: SECRET KNOCK LOCK A project from Arduino Project Handbook: 25 Practical Projects to Get You Started Project 9: Secret KnocK LocK For centuries clandestine groups have used Secret KnocKS

More information

Inclusions required for the DMD

Inclusions required for the DMD Sketch for Home Alert The sketch is not large in terms of the line count, but it almost exhausts the Uno s available flash memory thanks to all the included libraries. There is lots of room for memory

More information

LISTING PROGRAM. 1. Bahasa Pemrograman C #include <Servo.h> Servo myservo;

LISTING PROGRAM. 1. Bahasa Pemrograman C #include <Servo.h> Servo myservo; 1 LISTING PROGRAM 1. Bahasa Pemrograman C #include Servo myservo; int pos = 70; int baris1 = A0; int baris2 = A1; int baris3 = A3; int kolom1 = 12; int kolom2 = 7; int kolom3 = 6; int vbaris1

More information

X Board V2 (SKU:DFR0162)

X Board V2 (SKU:DFR0162) X Board V2 (SKU:DFR0162) X-Board V2, DFR0162 Contents 1 Introduction 2 Specifications 3 Pinouts 4 Tutorial 4.1 Requirements 4.2 Wiring Diagram 4.3 Sample code Introduction This is Version 2.0 of the X-board.

More information

Lab 4: Determining temperature from a temperature sensor

Lab 4: Determining temperature from a temperature sensor Start on a fresh page and write your name and your partners names on the top right corner of the page. Write the title of the lab clearly. You may copy the objectives, introduction, equipment, safety and

More information

Joy-IT Ultrasonic Distance Sensor

Joy-IT Ultrasonic Distance Sensor Joy-IT Ultrasonic Distance Sensor Export 03.11.2017 Copyright by Joy-IT 1 Index 1. Using with an Arduino 1.1 Connecting the Module 1.2 Code-Example 2. Using with a Raspberry Pi 2.1 Installing the System

More information

4Serial SIK BINDER //77

4Serial SIK BINDER //77 4Serial SIK BINDER //77 SIK BINDER //78 Serial Communication Serial is used to communicate between your computer and the RedBoard as well as between RedBoard boards and other devices. Serial uses a serial

More information

Make your own secret locking mechanism to keep unwanted guests out of your space!

Make your own secret locking mechanism to keep unwanted guests out of your space! KNOCK LOCK Make your own secret locking mechanism to keep unwanted guests out of your space! Discover : input with a piezo, writing your own functions Time : 1 hour Level : Builds on projects : 1,,3,4,5

More information

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail Reacting to Sensors In this tutorial we will be going over how to program the Arduino to react to sensors. By the end of this workshop you will have an understanding of how to use sensors with the Arduino

More information

KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions

KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions 125 KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions Time: 1 HOUR Level: Builds on projects: 1, 2, 3,

More information

Robotics/Electronics Review for the Final Exam

Robotics/Electronics Review for the Final Exam Robotics/Electronics Review for the Final Exam Unit 1 Review. 1. The battery is 12V, R1 is 400 ohms, and the current through R1 is 20 ma. How many ohms is R2? ohms What is the voltage drop across R1? V

More information

/*f1q_timer_v Gábor Kertész */

/*f1q_timer_v Gábor Kertész */ /*f1q_timer_v19.2 2018.07.16. Gábor Kertész */ //---------------------------------------------Lybraries------------------------------------------------------------ #include // For servo and ESC

More information

WiFiBee MT7681 (Arduino WiFi Wireless Programming) SKU: TEL0107

WiFiBee MT7681 (Arduino WiFi Wireless Programming) SKU: TEL0107 WiFiBee MT7681 (Arduino WiFi Wireless Programming) SKU: TEL0107 Introduction The WiFi Bee MT7681 is an Arduino WiFi XBee module based on the MT7681 serial Wi-Fi module. It is compatible with an XBee slot,

More information

Arducam ESP32 UNO board

Arducam ESP32 UNO board Arducam ESP32 UNO board User Guide Rev 1.0, Jun 2017 Table of Contents 1 Introduction... 2 2 Features... 2 3 Pin Definition... 3 4 Getting Started ESP32 with Arduino IDE... 5 4.1 Steps to install Arducam

More information

Alex Brinkman. Team D: Project HARP (Human Assistive Robotic Picker) ILR #1: Sensors and Motor Control Lab. Submitted 10/16/2015

Alex Brinkman. Team D: Project HARP (Human Assistive Robotic Picker) ILR #1: Sensors and Motor Control Lab. Submitted 10/16/2015 Alex Brinkman Team D: Project HARP (Human Assistive Robotic Picker) Teammates: Abhishek Bhatia, Lekha Mohan, Feroze Naina, Abhishek Bhatia ILR #1: Sensors and Motor Control Lab Submitted 10/16/2015 1.

More information

MQTT, Adafruit IO & You!

MQTT, Adafruit IO & You! MQTT, Adafruit IO & You! Created by lady ada Last updated on 2017-11-02 07:52:03 PM UTC Guide Contents Guide Contents Overview Why MQTT? What about HTTP (REST)? MQTT! So E-Z! But what if I really want

More information

#define API_ENDPOINT " #define HEARTBEAT_INTERVAL // 2 Minutes

#define API_ENDPOINT   #define HEARTBEAT_INTERVAL // 2 Minutes // article version 5/6/18 // Compile using Generic 8266 //RCv disabled alolcated as GPIO // 0 button,2 output, 3 HC12 Set, 1 is still TX /* Using this to disable RCV Serial.begin(115200,SERIAL_8N1,SERIAL_TX_ONLY);

More information

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018 StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the

More information

Adafruit HUZZAH ESP8266 breakout

Adafruit HUZZAH ESP8266 breakout Adafruit HUZZAH ESP8266 breakout Created by lady ada Last updated on 2017-11-20 08:42:12 PM UTC Guide Contents Guide Contents Overview Pinouts Power Pins Serial pins GPIO pins Analog Pins Other control

More information

Lab 8. Arduino and WiFi - IoT applications

Lab 8. Arduino and WiFi - IoT applications Lab 8. Arduino and WiFi - IoT applications IoT - Internet of Things is a recent trend that refers to connecting smart appliances and electronics such as microcontrollers and sensors to the internet. In

More information

Gamma sensor module GDK101

Gamma sensor module GDK101 Application Note: Interfacing with Arduino over I 2 C The Arduino makes an ideal platform for prototyping and data collection with the Gamma sensors. Electrical Connections Interfacing with the sensor

More information

Adafruit Feather HUZZAH ESP8266

Adafruit Feather HUZZAH ESP8266 Adafruit Feather HUZZAH ESP8266 Created by lady ada Last updated on 2018-01-11 03:27:01 PM UTC Guide Contents Guide Contents Overview Pinouts Power Pins Logic pins Serial pins I2C & SPI pins GPIO pins

More information

Grove - Thumb Joystick

Grove - Thumb Joystick Grove - Thumb Joystick Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/grove_-_thumb_joystick Bazaar: http://www.seeedstudio.com/depot/grove-thumb-joystick-p-935.html 1 Document

More information

ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL

ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL I NDEX Symbols & Numbers &, 139 &&, 73 *, 84 */, 27 ==, 71!, 73!=, 71 /, 84 /*, 27 //, 27 >, 84 >=, 84 #define, 70 #include,

More information

Building a GUI From Scratch

Building a GUI From Scratch Building a GUI From Scratch 1 Processing Graphical User Interface In this lesson, you will learn how to create some simple GUI objects to control the robot. The GUI objects will be sliders and a joystick.

More information

Appendix B: Master Code

Appendix B: Master Code Appendix B: Master Code Blind Me With SciEEnce 1 Contents: 1. Indoor Blinds.. 2 2. Outdoor Weather Station 6 3. Mobile Application. 11 1. Indoor Blinds Blind Me With SciEEnce 2 /****************************************************************

More information

CHAPTER 5 IMPLEMENTATION AND TESTING

CHAPTER 5 IMPLEMENTATION AND TESTING CHAPTER 5 IMPLEMENTATION AND TESTING 5.1 Implementation This program use hash table data structure that will devide the category of based on jamsostek category. There is 4 category so the index for the

More information

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Lab 1: Arduino Basics Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Step Zero Clean up your desks! :) Goals of this Lab Learn how the programming takes place Excercises about: installing the

More information

#include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <PubSubClient.

#include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <PubSubClient. #include #include #include #include #include const char* mqtt_server = "SERVER_ADDRESS"; WiFiClient espclient; PubSubClient

More information

SigmaFlux Workshops Brochure Contact: Karan Makharia / Karan Kapoor

SigmaFlux Workshops Brochure Contact: Karan Makharia / Karan Kapoor SigmaFlux Workshops Brochure-2018 Contact: Karan Makharia - 7021923539 / 9324479670 Karan Kapoor - 7977515030 Internet of Things with Arduino Workshop course Content: 1. Introduction to Internet of Things

More information

The Arduino Briefing. The Arduino Briefing

The Arduino Briefing. The Arduino Briefing Mr. Yee Choon Seng Email : csyee@simtech.a-star.edu.sg Design Project resources http://guppy.mpe.nus.edu.sg/me3design.html One-Stop robotics shop A-Main Objectives Pte Ltd, Block 1 Rochor Road, #02-608,

More information

Yun Shield Quick Start Guide VERSION: 1.0. Yun Shield Quick Start Guide 1 / 14.

Yun Shield Quick Start Guide VERSION: 1.0. Yun Shield Quick Start Guide 1 / 14. Yun Shield Quick Start Guide VERSION: 1.0 Version Description Date 1.0 Release 2014-Jul-08 1.1 Change Password to dragino 2014-Aug-02 Yun Shield Quick Start Guide 1 / 14 Index: 1 Introduction... 3 1.1

More information

Application Note: ADC on Teensy and Biasing LNA. Lhawang Thaye

Application Note: ADC on Teensy and Biasing LNA. Lhawang Thaye Application Note: ADC on Teensy and Biasing LNA Introduction Lhawang Thaye Page 1 This application note will address how to implement an ADC using the Teensy 3.1, the procedure for Biasing the LNA for

More information

Introduction to Arduino. Wilson Wingston Sharon

Introduction to Arduino. Wilson Wingston Sharon Introduction to Arduino Wilson Wingston Sharon cto@workshopindia.com Physical computing Developing solutions that implement a software to interact with elements in the physical universe. 1. Sensors convert

More information

Adafruit HUZZAH ESP8266 breakout

Adafruit HUZZAH ESP8266 breakout Adafruit HUZZAH ESP8266 breakout Created by lady ada Last updated on 2016-10-10 04:15:10 PM UTC Guide Contents Guide Contents Overview Pinouts Power Pins Serial pins GPIO pins Analog Pins Other control

More information

Bluno M0 Mainboard SKU: DFR0416

Bluno M0 Mainboard SKU: DFR0416 Bluno M0 Mainboard SKU: DFR0416 Bluno M0 is the only ARM Cortex-M0 Arduino Microcontroller that supports 5V standard logic level. With built-in Bluetooth chip, Bluno M0 supports multi-functions such as

More information

Adafruit Feather HUZZAH ESP8266

Adafruit Feather HUZZAH ESP8266 Adafruit Feather HUZZAH ESP8266 Created by lady ada Last updated on 2016-03-19 08:43:43 PM EDT Guide Contents Guide Contents Overview Pinouts Power Pins Logic pins Serial pins I2C & SPI pins GPIO pins

More information

C++ Arrays. To declare an array in C++, the programmer specifies the type of the elements and the number of elements required by an array as follows

C++ Arrays. To declare an array in C++, the programmer specifies the type of the elements and the number of elements required by an array as follows Source: Tutorials Point C++ Arrays C++ Arrays C++ provides a data structure, the array, which stores a fixed-size, sequential collection of elements of the same type An array is used to store a collection

More information

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */ ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO ///////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO

More information

Embedded System Software and IoT(Internet of Things)

Embedded System Software and IoT(Internet of Things) Embedded System Software and IoT(Internet of Things) 2018. 3. 5 ( 월 ) Division of Electrical Engineering Hanyang University, ERICA Campus Contents 2 Embedded Systems Basic Concepts and Overview Embedded

More information

F_Thingspeak INNEN DG Temperatur- und Druckmessung V1_00. F_Thingspeak INNEN DG Temperatur- und Druckmessung V1_00.ino

F_Thingspeak INNEN DG Temperatur- und Druckmessung V1_00. F_Thingspeak INNEN DG Temperatur- und Druckmessung V1_00.ino F_Thingspeak INNEN DG Temperatur- und Druckmessung V1_00 F_Thingspeak INNEN DG Temperatur- und Druckmessung V1_00.ino 1 /* 2 TEMPERATURMESSUNG INNEN über Thingspeak 3 V1.00 23.06.2015 Übernahme des Programms

More information

EEL 5666C - Intelligent Machine Design Lab Final report

EEL 5666C - Intelligent Machine Design Lab Final report EEL 5666C - Intelligent Machine Design Lab Final report Date: 04/21/14 Student Name: Shaoyi SHI Robot Name: Alin E-mail: ssytom@hotmail.com TA: Instructors: Josh Weaver A. Antonio Arroyo Eric M. Schwartz

More information

MANUFACTURING MONITORING SYSTEM FOR TOOL STATUS SHITONG XIONG THESIS

MANUFACTURING MONITORING SYSTEM FOR TOOL STATUS SHITONG XIONG THESIS MANUFACTURING MONITORING SYSTEM FOR TOOL STATUS BY SHITONG XIONG THESIS Submitted in partial fulfillment of the requirements for the degree of Master of Science in Mechanical Engineering in the Graduate

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the Sten-Bot kit against component

More information

Internet of Things. Connecting Thing to the Internet. Clients: WEB/Android Laptops/Smartphones. Thing: Sensors/Actuators + MCU

Internet of Things. Connecting Thing to the Internet. Clients: WEB/Android Laptops/Smartphones. Thing: Sensors/Actuators + MCU Connecting Thing to the Internet Thing: Sensors/Actuators + MCU Concentrator/Gateway SBC Servers: ThingSpeak.com/ BakoBox.fr Clients: WEB/Android Laptops/Smartphones P. Bakowski smartcomputerlab.org 1

More information

Application Note Operation of the Jameco and SD Card Data Storage on the Teensy Ferris Chu

Application Note Operation of the Jameco and SD Card Data Storage on the Teensy Ferris Chu Application Note Operation of the Jameco and SD Card Data Storage on the Teensy Ferris Chu Operation of the Jameco For our system, we used the Jameco XR 2206, a monolithic function generator, to produce

More information

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface. Introductory Medical Device Prototyping Arduino Part 1, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB Interface

More information

3 Wire LED Module (SKU:DFR0090)

3 Wire LED Module (SKU:DFR0090) 3 Wire LED Module (SKU:DFR0090) Contents 1 Introduction 2 Connection 3 Pinout Diagram 4 Sample Code 4.1 Test Procedure 4.2 Operating procedure Introduction This is 8 digital bits serial LED display. It

More information

TA0136 USER MANUAL ARDUINO 2 WHEEL DRIVE ULTRASONIC ROBOT KIT

TA0136 USER MANUAL ARDUINO 2 WHEEL DRIVE ULTRASONIC ROBOT KIT TA0136 USER MANUAL ARDUINO 2 WHEEL DRIVE ULTRASONIC ROBOT KIT I Contents Overview TA0136... 1 Getting started: the 2 Wheel Drive Ultrasonic Robot Kit using Arduino UNO... 1 2.1. What is Arduino?... 1 2.2.

More information

Adafruit Ethernet FeatherWing

Adafruit Ethernet FeatherWing Adafruit Ethernet FeatherWing Created by lady ada Last updated on 2017-07-14 05:32:28 AM UTC Guide Contents Guide Contents Overview Pinouts Power Pins SPI Data Pins Other Breakouts Assembly Prepare the

More information

Arduino Programming Part 7: Flow charts and Top-down design

Arduino Programming Part 7: Flow charts and Top-down design Arduino Programming Part 7: Flow charts and Top-down design EAS 199B, Winter 2013 Gerald Recktenwald Portland State University gerry@me.pdx.edu Goals Introduce flow charts A tool for developing algorithms

More information

Arduino Programming and Interfacing

Arduino Programming and Interfacing Arduino Programming and Interfacing Stensat Group LLC, Copyright 2017 1 Robotic Arm Experimenters Kit 2 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and

More information

Adafruit Feather HUZZAH ESP8266

Adafruit Feather HUZZAH ESP8266 Adafruit Feather HUZZAH ESP8266 Created by lady ada Last updated on 2016-04-22 09:58:42 PM EDT Guide Contents Guide Contents Overview Pinouts Power Pins Logic pins Serial pins I2C & SPI pins GPIO pins

More information

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Overview Motivation Circuit Design and Arduino Architecture Projects Blink the LED Switch Night Lamp

More information

Design Rationale for Cushion Timer and Logger

Design Rationale for Cushion Timer and Logger Design Rationale for Cushion Timer and Logger Laura came up with the original idea. She was inspired by concerns about health and the amount of time people spend at their desks each day. We decided to

More information

CTEC 1802 Embedded Programming Labs

CTEC 1802 Embedded Programming Labs CTEC 1802 Embedded Programming Labs This document is intended to get you started using the Arduino and our I/O board in the laboratory - and at home! Many of the lab sessions this year will involve 'embedded

More information

ME 121 Gerald Recktenwald Portland State University

ME 121 Gerald Recktenwald Portland State University Arduino Programming Part 7: Flow charts and Top-down design ME 121 Gerald Recktenwald Portland State University gerry@me.pdx.edu Goals Introduce flow charts A tool for developing algorithms A tool for

More information

WIFI CC3000 Module Breakout

WIFI CC3000 Module Breakout WIFI CC3000 Module Breakout This is a breakout board for the CC3000 WiFi Module from TI (Texas Instruments). It is a self-contained wireless network processor that makes internet connectivity into your

More information

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 1: INTRODUCTION TO ARDUINO IDE AND PROGRAMMING DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS 1. FYS KIT COMPONENTS

More information

Quantum Phase Isochromatic Pluckeasy

Quantum Phase Isochromatic Pluckeasy Quantum Phase Isochromatic Pluckeasy Laser Harp for short Paul Holcomb Timothy Tribby Hardware Overview IR Sensors Arduino With ATmega 1280 Motor With Rotating Mirror Laser Module Laser Harp Goals Display

More information