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

Size: px
Start display at page:

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

Transcription

1 #include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <PubSubClient.h> const char* mqtt_server = "SERVER_ADDRESS"; WiFiClient espclient; PubSubClient client(espclient); long lastmsg = 0; char msg[50]; int value = 0; //#define PIN D2 #include <SPI.h> #include <Wire.h> #include <SFE_MicroOLED.h> #define PIN_RESET 255 #define DC_JUMPER 0 // I2C Addres: 0-0x3C, 1-0x3D MicroOLED oled(pin_reset, DC_JUMPER); //////////////////////////////////////////////////////// //#include <Wire.h> #include <Keypad_I2C.h> #include <Keypad.h> #define I2CADDR 0x21 const byte ROWS = 4; //four rows const byte COLS = 3; //three columns char keys[rows][cols] = { {'1','2','3', {'4','5','6', {'7','8','9', {'*','0','#' ;

2 byte rowpins[rows] = {1,6,5,3; byte colpins[cols] = {2,0,4; Keypad_I2C kpd( makekeymap(keys), rowpins, colpins, ROWS, COLS, I2CADDR, PCF8574 ); //////////////////////////////////////////////////////////////////////////////////// int c1 = 0; //button 1 int c2 = 0; //button 2 int c3 = 0; int c4 = 0; int c5 = 0; int c6 = 0; int c7 = 0; int c8 = 0; int c9 = 0; int x = 0; int y = 0; int v=0; ////////////////////////////////////////////////// void setup() { Wire.begin( ); kpd.begin( makekeymap(keys) ); //pinmode(2, OUTPUT); Serial.begin(115200); WiFiManager wifimanager; wifimanager.autoconnect("autoconnectap"); client.setserver(mqtt_server, 1883); client.setcallback(callback); void callback(char* topic, byte* payload, unsigned int length) { Serial.print("Message arrived ["); Serial.print(topic); Serial.print("] ");

3 oled.begin(); oled.clear(all); oled.setfonttype(0); oled.clear(page); oled.setcursor(0, 0); for (int i = 0; i < length; i++) { Serial.print((char)payload[i]); delay(50); oled.print((char)payload[i]); delay(2500); oled.begin(); oled.clear(all); oled.setfonttype(0); oled.clear(page); x=0; y=0; oled.setcursor(0, 0);//display.setCursor(0,0); Serial.println(); void reconnect() { // Loop until we're reconnected while (!client.connected()) { Serial.print("Attempting MQTT connection..."); // Attempt to connect if (client.connect("esp8266client")) { oled.begin(); oled.clear(all); oled.setfonttype(0);

4 oled.clear(page); delay(50); oled.print("connected"); delay(2000); oled.clear(page); Serial.println("connected"); client.subscribe("led"); else { Serial.print("failed, rc="); Serial.print(client.state()); Serial.println(" try again in 5 seconds"); // Wait 5 seconds before retrying delay(5000); void loop() { /* char key = kpd.getkey(); if (key){ Serial.println(key); oled.print(key); */ ////////////////////////////////////////////////////////////////// char key=kpd.getkey();//[1000] = {kpd.getkey(); if (key=='0'){ x=x+7; client.publish("txt"," "); //////////////////////////////////////////////////////////////////

5 if (key=='*'){ oled.setcursor(x-1,y); oled.print(" "); ////////////////////////////////////////////////////////////////// if (key=='#'){ x=x+7; if (x>60){ x=0; y=y+8; if (v==0){ client.publish("txt","2"); else if (v==1){ client.publish("txt","a"); else if (v==2){ client.publish("txt","b"); else if (v==3){ client.publish("txt","c"); else if (v==4){ client.publish("txt","3"); else if (v==5){ client.publish("txt","d"); else if (v==6){ client.publish("txt","e"); else if (v==7){ client.publish("txt","f"); else if (v==8){

6 client.publish("txt","4"); else if (v==9){ client.publish("txt","g"); else if (v==10){ client.publish("txt","h"); else if (v==11){ client.publish("txt","i"); else if (v==12){ client.publish("txt","5"); else if (v==13){ client.publish("txt","j"); else if (v==14){ client.publish("txt","k"); else if (v==15){ client.publish("txt","l"); else if (v==16){ client.publish("txt","6"); else if (v==17){ client.publish("txt","m"); else if (v==18){ client.publish("txt","n"); else if (v==19){ client.publish("txt","o"); else if (v==20){ client.publish("txt","7"); else if (v==21){ client.publish("txt","p"); else if (v==22){ client.publish("txt","q"); else if (v==23){ client.publish("txt","r");

7 else if (v==24){ client.publish("txt","8"); else if (v==25){ client.publish("txt","s"); else if (v==26){ client.publish("txt","t"); else if (v==27){ client.publish("txt","u"); else if (v==28){ client.publish("txt","9"); else if (v==29){ client.publish("txt","v"); else if (v==30){ client.publish("txt","w"); else if (v==31){ client.publish("txt","x"); else if (v==32){ client.publish("txt","1"); else if (v==33){ client.publish("txt","y"); else if (v==34){ client.publish("txt","z"); else if (v==35){ client.publish("txt","0"); else if (key=='1'){ if (c1 == 0) { v=32;

8 oled.print("1"); c1 = c1 + 1; else if (c1 == 1) { v=33; oled.print("y"); c1 = c1 + 1; else if (c1 == 2) { v=34; oled.print("z"); c1 = c1 + 1; else if (c1 == 3) { v=35; oled.print("0"); c1 = 0; else if (key=='2'){ if (c2 == 0) { v=0; oled.print("2");

9 c2 = c2 + 1; else if (c2 == 1) { v=1; oled.print("a"); c2 = c2 + 1; else if (c2 == 2) { v=2; oled.print("b"); c2 = c2 + 1; else if (c2 == 3) { v=3; oled.print("c"); c2 = 0; else if (key=='3'){ if (c3 == 0) { v=4; oled.print("3"); c3 = c3 + 1; else if (c3 == 1) {

10 v=5; oled.print("d"); c3 = c3 + 1; else if (c3 == 2) { v=6; oled.print("e"); c3 = c3 + 1; else if (c3 == 3) { v=7; oled.print("f"); c3 = 0; else if (key=='4'){ if (c4 == 0) { v=8; oled.print("4"); c4 = c4 + 1; else if (c4 == 1) { v=9; oled.print("g");

11 c4 = c4 + 1; else if (c4 == 2) { v=10; oled.print("h"); c4 = c4 + 1; else if (c4 == 3) { v=11; oled.print("i"); c4 = 0; else if (key=='5'){ if (c5 == 0) { v=12; oled.print("5"); c5 = c5 + 1; else if (c5 == 1) { v=13; oled.print("j"); c5 = c5 + 1; else if (c5 == 2) { v=14;

12 oled.print("k"); c5 = c5 + 1; else if (c5 == 3) { v=15; oled.print("l"); c5 = 0; else if (key=='6'){ if (c6 == 0) { v=16; oled.print("6"); c6 = c6 + 1; else if (c6 == 1) { v=17; oled.print("m"); c6 = c6 + 1; else if (c6 == 2) { v=18; oled.print("n"); c6 = c6 + 1; else if (c6 == 3) {

13 v=19; oled.print("o"); c6 = 0; else if (key=='7'){ if (c7 == 0) { v=20; oled.print("7"); c7 = c7 + 1; else if (c7 == 1) { v=21; oled.print("p"); c7 = c7 + 1; else if (c7 == 2) { v=22; oled.print("q"); c7 = c7 + 1; else if (c7 == 3) { v=23; oled.print("r");

14 c7 = 0; else if (key=='8'){ if (c8 == 0) { v=24; oled.print("8"); c8 = c8 + 1; else if (c8 == 1) { v=25; oled.print("s"); c8 = c8 + 1; else if (c8 == 2) { v=26; oled.print("t"); c8 = c8 + 1; else if (c8 == 3) { v=27; oled.print("u"); c8 = 0; else if (key=='9'){

15 if (c9 == 0) { v=28; oled.print("9"); c9 = c9 + 1; else if (c9 == 1) { v=29; oled.print("v"); c9 = c9 + 1; else if (c9 == 2) { v=30; oled.print("w"); c9 = c9 + 1; else if (c9 == 3) { v=31; oled.print("x"); c9 = 0; //oled.print(key); // //client.publish("txt",key);

16 // if (!client.connected()) { reconnect(); client.loop(); // client.publish("led", msg);

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

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

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

#include <Keypad.h> int datasens; #define pinsens 11. const byte ROWS = 4; //four rows const byte COLS = 3; //three columns

#include <Keypad.h> int datasens; #define pinsens 11. const byte ROWS = 4; //four rows const byte COLS = 3; //three columns #include int datasens; #define pinsens 11 const byte ROWS = 4; //four rows const byte COLS = 3; //three columns char keys[rows][cols] = '1','2','3', '4','5','6', '7','8','9', '*','0','#' ; byte

More information

Comparing interface and application programming tools

Comparing interface and application programming tools Comparing interface and application programming tools FABLAB BRIGHTON 2018 This week we re comparing a few tools, including: WeMos D1 mini (Pro) and Node-RED Grasshopper and Firefly Python WeMos D1 Mini

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

Midterm- birthday card Arduino combination code

Midterm- birthday card Arduino combination code William Kasurak 2456259 Midterm- birthday card Arduino combination code Initially for this assignment I wanted to create a jukebox combination lock that allowed the user to set a one pin combination for

More information

Computer Architectures

Computer Architectures Implementing the door lock with Arduino Gábor Horváth 2017. február 24. Budapest associate professor BUTE Dept. Of Networked Systems and Services ghorvath@hit.bme.hu Outline Aim of the lecture: To show

More information

Physics 120B: Lecture LCD. LCD Text Display Keypads and Time Slicing Interrupts

Physics 120B: Lecture LCD. LCD Text Display Keypads and Time Slicing Interrupts Physics 120B: Lecture 4 LCD Text Display Keypads and Time Slicing Interrupts 2 16 LCD Typically 5 8 dots per character Note 16 pins: indicator of common interface Lecture 4 2 1 Typical LCD Unit pinout

More information

Physics 124: Lecture 4. LCD Text Display Keypads and Time Slicing Interrupts

Physics 124: Lecture 4. LCD Text Display Keypads and Time Slicing Interrupts Physics 124: Lecture 4 LCD Text Display Keypads and Time Slicing Interrupts 2 16 LCD Typically 5 8 dots per character Note 16 pins: indicator of common interface Phys 124: Lecture 4 2 Typical LCD Unit

More information

Arduino EEPROM module 512K for Sensor Shield

Arduino EEPROM module 512K for Sensor Shield Arduino EEPROM module 512K for Sensor Shield Experiment Steps This is a new designed for small data size storage. It can help to extend the EEPROM storage of Arduino. This module uses I2C to connect to

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

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

4x4 Matrix Membrane Keypad

4x4 Matrix Membrane Keypad Handson Technology Data Specs 4x4 Matrix Membrane Keypad This 16-button kepyad provides a useful human interface component for micro-controller projects. Convenient adhesive backing provides a simple way

More information

Oled 128x64 blue SSD1306 on PORTB (pins 8-12) French version

Oled 128x64 blue SSD1306 on PORTB (pins 8-12) French version www.didel.com/xbot/oled.pdf Didel and Boxtec support two Oled displays, not only nice, but essential for debugging robotic applications. They use the same minishield adapter (SSD 1331 at the end of this

More information

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

MAC Address Finder. Created by Ron Dear. Last updated on :51:58 PM UTC

MAC Address Finder. Created by Ron Dear. Last updated on :51:58 PM UTC MAC Address Finder Created by Ron Dear Last updated on 2016-11-07 08:51:58 PM UTC Guide Contents Guide Contents Overview Parts and Tools Assembly of the Main Board Preparing the Case Connecting the Battery

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

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

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

#define CE_PIN 12 //wireless module CE pin #define CSN_PIN 13 //wireless module CSN pin. #define angleaveragenum 1

#define CE_PIN 12 //wireless module CE pin #define CSN_PIN 13 //wireless module CSN pin. #define angleaveragenum 1 /***************************************************************************************************** define statements *****************************************************************************************************/

More information

/* This program now switches between Train at holt to train on its way with button press. */ //MD_MAX72xx_Message_Serial7_train

/* This program now switches between Train at holt to train on its way with button press. */ //MD_MAX72xx_Message_Serial7_train /* This program now switches between Train at holt to train on its way with button press. */ //MD_MAX72xx_Message_Serial7_train // Use the MD_MAX72XX library to scroll text on the display // // Demonstrates

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

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

Sten-SLATE ESP. Accelerometer and I2C Bus

Sten-SLATE ESP. Accelerometer and I2C Bus Sten-SLATE ESP Accelerometer and I2C Bus Stensat Group LLC, Copyright 2016 I2C Bus I2C stands for Inter-Integrated Circuit. It is a serial type interface requiring only two signals, a clock signal and

More information

Rotary Encoder Basics

Rotary Encoder Basics Rotary Encoder Basics A rotary encoder has a fixed number of positions per revolution. These positions are easily felt as small clicks you turn the encoder. The Keyes module that I have has thirty of these

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

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

Contiki Reliable Unicast

Contiki Reliable Unicast Runicast = reliable unicast. O node που στέλνει ένα frame περιμένει για ένα acknowledgement. Σε περίπτωση που το acknowledgement δεν φτάσει μετά από ένα προκαθορισμένο διάστημα, ξαναστέλνει το frame Στο

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

PlcLib(Arduino) User Guide

PlcLib(Arduino) User Guide PlcLib(Arduino) User Guide Author: W. Ditch Last updated: 3 rd January, 2017 Software Version: 1.2 Published: electronics-micros.com 1 Contents 1 Contents... 2 2 Introduction... 5 2.1 Software Development

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

Microduino mcookie-rtc USER GUIDE.

Microduino mcookie-rtc USER GUIDE. Microduino mcookie-rtc USER GUIDE https://eckstein-shop.de/ Content Features... 2 Specification... 2 Development... 3 Detect Power-down Time Duration...3 Test EEPROM Read/Write...5 FAQ... 7 1 https://eckstein-shop.de/

More information

Appendix Sietse Taams - Master thesis

Appendix Sietse Taams - Master thesis Appendix Sietse Taams - Master thesis Designing a connected barbecue Appendix A Design process The design process is relatively important to info.nl. Together with Tomasz, an iterative design strategy

More information

char errormsg[100]; //This is a generic array used for sprintf of error messages

char errormsg[100]; //This is a generic array used for sprintf of error messages /* 4-28-2011 Spark Fun Electronics 2011 Nathan Seidle 10/29-2012 Linh Do Assignment 04 - Wisdom sweater Wearable Technology 01 */ #include //Add the SdFat Libraries #include #include

More information

ET-DSP I2C 7SEG BASE

ET-DSP I2C 7SEG BASE ET-DSP I2C 7SEG BASE ET-DSP I2C 7SEG BASE is a Control-Panel of 7-SEGMENT Display that supports the simultaneous connections with 4 sets of 3-DIGIT or 4-DIGIT Display. It can be connected to control 4

More information

SX1509 I/O Expander Breakout Hookup Guide

SX1509 I/O Expander Breakout Hookup Guide Page 1 of 16 SX1509 I/O Expander Breakout Hookup Guide Introduction Is your Arduino running low on GPIO? Looking to control the brightness of 16 LEDs individually? Maybe blink or breathe a few autonomously?

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

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder Overview The objective of this lab is to understand two basic combinational circuits the multiplexor and

More information

The DTMF generator comprises 3 main components.

The DTMF generator comprises 3 main components. Make a DTMF generator with an Arduino board This article is for absolute beginners, and describes the design and construction of a DTMF generator. DTMF generators are often used to signal with equipment

More information

#include "DHT.h" DHT dht(dhtpin, DHTTYPE); // Date and time functions using a DS1307 RTC connected via I2C and Wire lib

#include DHT.h DHT dht(dhtpin, DHTTYPE); // Date and time functions using a DS1307 RTC connected via I2C and Wire lib #include "DHT.h" #define DHTPIN 2 // what pin we're connected to // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22 (AM2302) //#define DHTTYPE DHT21

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

The speaker connection is circled in yellow, the button connection in red and the temperature sensor in blue

The speaker connection is circled in yellow, the button connection in red and the temperature sensor in blue Connections While the board can be connected to a number of different Arduino versions I chose to use the Pro Mini as I wanted the completed unit to be fairly small. The Mini and the MP3 board run on 5

More information

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Contents at a Glance PS PRIMER MSP430 kit... 3 Keypad... 4 Interfacing keypad... 4 Interfacing keypad with MSP430F5529...

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

ARDUINO MOTOR CONTROL

ARDUINO MOTOR CONTROL ARDUINO MOTOR CONTROL Hardware: Software: Hamster_Arduino_Code_2014.ino File: // Mind controlled hamster code // Created by: Nathan Ives, nathanives10@gmail.com // Revised and commented by: John Vogel,

More information

RS485 Sensor Node V1.0 (SKU:DFR0233)

RS485 Sensor Node V1.0 (SKU:DFR0233) RS485 Sensor Node V1.0 (SKU:DFR0233) Contents 1 Introduction 2 Application 3 Specification 4 Pin Out 4.1 More details 5 Product Directive 6 Connecting Diagram 7 Sample Code Introduction This RS-485 Sensor

More information

PROGMEM ESP8266EX RAM

PROGMEM ESP8266EX RAM PROGMEM ESP8266EX RAM 1.0 2017 Arduino IDE PROGMEM ESP8266EX RAM PROGMEM Flash 1 ESP8266EX PROGMEM 2 PROGMEM PROGMEM Flash 3 PROGMEM V1.0 1.... 1 1.1. ESP8266EX... 1 1.2. PROGMEM... 1 2. PROGMEM... 2 2.1.

More information

Grove - OLED Display 0.96''

Grove - OLED Display 0.96'' Grove - OLED Display 0.96'' Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/grove_-_oled_display_96*96 Bazaar: http://www.seeedstudio.com/depot/grove-oled-display-096-p-824.html

More information

// sets the position of cursor in row and column

// sets the position of cursor in row and column CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,

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

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

#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

GoldSTEM_Lesson_18_Time_Month_Date_and_Temperature_to_Terminal tm

GoldSTEM_Lesson_18_Time_Month_Date_and_Temperature_to_Terminal tm GoldSTEM_Lesson_18_Time_Month_Date_and_Temperature_to_Terminal tm 3-29-2016 For this experiment we will be using the same setup in Lesson 17 Wiring the Circuit See lesson 17 Change the code below you can

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

Serial:UART/I2C/SPI Text LCD Display Control Module. LCDSP_TG V1.60 user manual

Serial:UART/I2C/SPI Text LCD Display Control Module. LCDSP_TG V1.60 user manual Serial:UART/I2C/SPI Text LCD Display Control Module Product picture: In order to use a Text LCD display, you need connect at least 4 data pins and 2 control pins from your circuit to display, and you also

More information

Arduino notes IDE. Serial commands. Arduino C language. Program structure. Arduino web site:

Arduino notes IDE. Serial commands. Arduino C language. Program structure. Arduino web site: 1 Arduino notes This is not a tutorial, but a collection of personal notes to remember the essentials of Arduino programming. The program fragments are snippets that represent the essential pieces of code,

More information

I2C interface Tutorial

I2C interface Tutorial UG108: Praxis II January 2013 Asian Institute of Technology Undergraduate Program Handout: I2C interface Instructor: Chaiyaporn Silawatchananai, Matthew N. Dailey I2C interface Tutorial Introduction: In

More information

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

Note. The above image and many others are courtesy of   - this is a wonderful resource for designing circuits. Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how

More information

1. CONNECTING NODE MCU TO IBM BLUEMIX AND SENDING SENSORS DATA TO IBM CLOUD

1. CONNECTING NODE MCU TO IBM BLUEMIX AND SENDING SENSORS DATA TO IBM CLOUD 1. CONNECTING NODE MCU TO IBM BLUEMIX AND SENDING SENSORS DATA TO IBM CLOUD CLOUD Clud resurces make it pssible t bring tgether multiple data surces, scale systems, and incrprate cgnitive services t drive

More information

ZX Distance and Gesture Sensor SMD Hookup Guide

ZX Distance and Gesture Sensor SMD Hookup Guide Page 1 of 16 ZX Distance and Gesture Sensor SMD Hookup Guide Introduction The ZX Distance and Gesture Sensor is a collaboration product with XYZ Interactive. The innovative people at XYZ Interactive have

More information

GoldSTEM.org. Growing the Future

GoldSTEM.org. Growing the Future GoldSTEM.org Growing the Future GoldSTEM_Lesson_ tm 3-24-2016 17_Time_Date_and_Temperature_to_Terminal Lessons should be done in sequence, start off with lesson 4. Each lessons builds on what was learned

More information

// Arduino BLE module identification and setup sketch // Copyright, Arik Yavilevich. #include <SoftwareSerial.h> /// Consts

// Arduino BLE module identification and setup sketch // Copyright, Arik Yavilevich. #include <SoftwareSerial.h> /// Consts // Arduino BLE module identification and setup sketch // Copyright, Arik Yavilevich #include /// Consts // BLE module default pins #define RX_PIN 8 #define TX_PIN 9 #define STATE_PIN

More information

Workshop Arduino English starters workshop 2

Workshop Arduino English starters workshop 2 Workshop Arduino English starters workshop 2 We advice to finish part 1 of this workshop before following this one. There are a set of assignments in this workshop that can be taken individually. First

More information

MMA axis digital accelerometer module

MMA axis digital accelerometer module MMA7455 3-axis digital accelerometer module Instruction The MMA7455L is a Digital Output (I2C/SPI), low power, low profile capacitive micromachined accelerometer featuring signal conditioning, a low pass

More information

E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011

E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011 E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011 Outline Logistics Serial Input Physical Inputs/Outputs Randomness Operators Control Statements Logistics Logistics Tutoring hours:

More information

Grove - CO2 Sensor. Introduction

Grove - CO2 Sensor. Introduction Grove - CO2 Sensor Introduction 3.3V 5.0V UART The Grove - CO2 Sensor module is infrared CO2 sensor high sensitivity and high resolution. Infrared CO2 sensor MH-Z16 Is a general-purpose, small sensors,

More information

VS1053B PCM Mixer. VSMPG VLSI Solution Audio Decoder. Project Code: Project Name:

VS1053B PCM Mixer. VSMPG VLSI Solution Audio Decoder. Project Code: Project Name: Controlled Document VS1053B PCM Mixer VLSI Solution Audio Decoder Project Code: Project Name: Revision History Rev. Date Author Description 1.1 2011-04-27 Rate configured from AICTRL0 1.0 2011-03-14 Initial

More information

MPR121 Hookup Guide. MPR121 Overview. Materials

MPR121 Hookup Guide. MPR121 Overview. Materials Page 1 of 24 MPR121 Hookup Guide CONTRIBUTORS: TONI_K MPR121 Overview If you are interested in adding the magic of touch to control your electronics project, a capacitive touch sensor might be the way

More information

EECS 473 Midterm Exam

EECS 473 Midterm Exam EECS 473 Midterm Exam Fall 2017 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. NOTES: 1. Closed book and Closed notes 2. There

More information

primitive arrays v. vectors (1)

primitive arrays v. vectors (1) Arrays 1 primitive arrays v. vectors (1) 2 int a[10]; allocate new, 10 elements vector v(10); // or: vector v; v.resize(10); primitive arrays v. vectors (1) 2 int a[10]; allocate new, 10 elements

More information

Barry the Plant Watering Robot

Barry the Plant Watering Robot Barry the Plant Watering Robot We are going to create the controller board for Barry, a robot who will do some of our plant watering chores for us. We aren t going to build all of Barry, but this will

More information

Automatic Railway Gate Control System Using RFID.

Automatic Railway Gate Control System Using RFID. Project Report On Automatic Railway Gate Control System Using RFID. Submitted To: Mr. Hasib Md. Abid Bin Farid Assistant Professor, Dept. of EEE, AUST. Submitted By: 1. Name : Saila Kabir ID No. : 13.01.05.014

More information

Gravity: BMI160 6-Axis Inertial Motion Sensor SKU: SEN0250

Gravity: BMI160 6-Axis Inertial Motion Sensor SKU: SEN0250 Gravity: BMI160 6-Axis Inertial Motion Sensor SKU: SEN0250 Introduction The BMI160 6-axis inertial motion sensor is a new product from DFRobot. It is based on Bosch BMI160 6-axis MEMS sensor which integrates

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

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

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

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno.

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. Note that there are two different module types: the temperature sensor module and

More information

More Fun with Timer Interrupts

More Fun with Timer Interrupts More Fun with Timer Interrupts Chords Objective: Play a musical chord each time you press a button: Button RC0 RC1 RC2 Timer Timer0 Timer1 Timer3 RB0 A3 C4 E4 RB1 B3 D4 F4 RB2 C4 E4 G4 Calculations: Assume

More information

Input Shield For Arduino SKU: DFR0008

Input Shield For Arduino SKU: DFR0008 Input Shield For Arduino SKU: DFR0008 Contents 1 Introduction 2 Specification 3 Pin Allocation 4 Sample Code1 5 Sample Code2 6 Version history Introduction The upgraded Arduino Input Shield includes a

More information

FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515

FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515 FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515 Introduction OSD is the abbreviation of On-screen Display, this is a screen menu adjustment display technology to add different menu-style characters

More information

LIS3DH Hookup Guide. Introduction. SparkFun Triple Axis Accelerometer Breakout - LIS3DH SEN Required Materials

LIS3DH Hookup Guide. Introduction. SparkFun Triple Axis Accelerometer Breakout - LIS3DH SEN Required Materials Page 1 of 15 LIS3DH Hookup Guide Introduction The LIS3DH is a triple axis accelerometer you can use to add translation detection to your project. It would be classified as a 3DoF, or 3 Degrees of Freedom.

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

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 CAP1188 Breakout

Adafruit CAP1188 Breakout Adafruit CAP1188 Breakout Created by lady ada Last updated on 2014-05-14 12:00:10 PM EDT Guide Contents Guide Contents Overview Pinouts Power pins I2C interface pins SPI inteface pins Other interfacing

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

// Should be right for DVD steppers, but is not too important here const int stepsperrevolution = 48;

// Should be right for DVD steppers, but is not too important here const int stepsperrevolution = 48; /* https://www.youtube.com/watch?v=opz9rgmoipc */ #include #include #define LINE_BUFFER_LENGTH 512 char STEP = MICROSTEP ; // Servo position for Up and Down const int penzup = 50;

More information

ISL RGB Sensor Tutorial By: Sabrina Jones

ISL RGB Sensor Tutorial By: Sabrina Jones ISL 25129 RGB Sensor Tutorial By: Sabrina Jones Overview The ISL29125 RGB sensor is a breakout board made to record the light intensity of the general red, green, and blue spectrums of visible light, that

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

Grove - I2C Motor Driver

Grove - I2C Motor Driver Grove - I2C Motor Driver Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/grove_-_i2c_motor_driver_v1.3 Bazaar: http://www.seeedstudio.com/depot/grove-i2c-motor-driver-p-907.html

More information

Dual rocket altimeter using the ATmega 328 microcontroller. The AltiDuo

Dual rocket altimeter using the ATmega 328 microcontroller. The AltiDuo Dual rocket altimeter using the ATmega 328 microcontroller The AltiDuo Version date Author Comments 1.0 29/12/2012 Boris du Reau Initial Version Boris.dureau@neuf.fr 1.1 17/02/2013 Boris du Reau Updated

More information

LCD03 - I2C/Serial LCD Technical Documentation

LCD03 - I2C/Serial LCD Technical Documentation LCD03 - I2C/Serial LCD Technical Documentation Pagina 1 di 5 Overview The I2C and serial display driver provides easy operation of a standard 20*4 LCD Text display. It requires only a 5v power supply and

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

a data type is Types

a data type is Types Pointers Class 2 a data type is Types Types a data type is a set of values a set of operations defined on those values in C++ (and most languages) there are two flavors of types primitive or fundamental

More information

Internet of Things for What? Objective

Internet of Things for What? Objective Internet of Things for What? In my opinion the IoT is not so much about you controlling your toy helicopter with your smartphone. There s no fundamental difference with using a wireless controller. In

More information

// fontdata6x8.h //WARNING: This Font is usable only with MikroE GLCD Lib. // X-GLCD Lib does not handle this font.

// fontdata6x8.h //WARNING: This Font is usable only with MikroE GLCD Lib. // X-GLCD Lib does not handle this font. Text Displayed on GLCD with an ATtiny 26 This is a program I have compiled using mikroc to display text on an old Electronic Gold Mine GLCD 79294 SDI. These display s have been sold out but I had a number

More information

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 Keypad... 3 Interfacing keypad... 4 Interfacing keypad with LPC2148... 6 Pin Assignment with LPC2148...

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

ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS

ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS IR OBSTACLE SENSOR... 3 OVERVIEW... 3 OBJECTIVE OF THE EXPERIMENT... 3 EXPERIMENTAL SETUP... 3 IR SENSOR ARDUINO CODE... 4 ARDUINO IDE SERIAL MONITOR... 5 GAS SENSOR... 6 OVERVIEW...

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

NeoPixel 60 Ring Wall Clock

NeoPixel 60 Ring Wall Clock NeoPixel 60 Ring Wall Clock Created by Andy Doro Last updated on 2015-07-23 10:10:07 PM EDT Guide Contents Guide Contents Overview Building the Circuit Code Finishing it up 2 3 5 7 11 https://learn.adafruit.com/neopixel-60-ring-clock

More information