Appliace Remote Control

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Lecture 8: Serial Interfaces
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Introduction to Arduino Programming January MER-421:Mechatronic System Design.
Introduction to Sensor Technology Week Four Adam Taylor
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Intro to the Arduino Topics: The Arduino Digital IO
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Bluetooth Controller Setting up the BT controller and Arduino with Processing.
Practical Electronics & Programming
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi. Objectives 1. Control the rotation of standard servo motor  A standard servo motor is limited in its rotation.
Code The Arduino Environment.
Serial Communication. mouseX from computer to arduino processing sends a single byte of data arduino reads each byte arduino uses value to set light brightness.
Programming, Serial and Virtual Prototyping. Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for.
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
OUT OF GAME TESTING INFORMATION WHATS NEEDED INSTRUCTIONS EXAMPLES 750/850 THERMAL TICKET PRINTERS.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
C# SERIAL COMMUNICATION TEMPERATURE CONTROL WITH ARDUINO KAAN EREN
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
Microcontroller basics Embedded systems for mortals.
Lecture 9: Introduction to Arduino Topics: Arduino Fundamentals, Bean Date: Mar 22, 2016.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
INTERNET OF EVERYTHING SDU 2016 Week 12. Remotely Controlling Devices  interact with almost any device that uses some form of remote control  TVs, audio.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
:Blink Blink: Er. Sahil Khanna
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Electronic instrumentation Digitization of Analog Signal in TD
Ultrasonic Sensor TYWu.
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
physical computing .2 – Day 3
Arduino Part 1 Topics: Microcontrollers
Lab 7 Basic 1: Game of Memory
Assist. Prof. Rassim Suliyev - SDU 2017
Microcontroller basics
Wireless Cue Light Project
Intro to the Arduino Created by
Arduino & its hardware interfacing
Microcontroller basics
UTA010 : Engineering Design – II
Cascade switching of an LED
Lab 1: Arduino Basics Topics: Arduino Fundamentals, First Circuit
Arduino Part 1 Topics: Microcontrollers Programming Basics
Lecture 2-2: Arduino Programming
Arduino.
3.1 Serial Communication Part 1
Roller Coaster Design Project
Continuing with LED’s and Arduino
Programming, Serial and Virtual Prototyping
Ultrasonic Distance Sensor
Intro to the Arduino Topics: The Arduino Digital IO
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
1 Code
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Debugging Debug environments Debug via serial
Topics: Programming Constructs: loops & conditionals Digital Input
Intro to the Arduino by Someet Singh
Programming 2: The Arduino IDE & First Sketches
Setting up a basic program with Arduino
Arduino程式範例.
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

Appliace Remote Control Dr. Veton Kepuska

Required Parts Arduino MEGA x1 RF appliance Remote Control x1 Prototyping Shield x1 5V Reed relays x4 1N4001 power diodes or similar x4 PCB-mount male connectors x4 Line-mount female connectors x4 Ribbon cable 10cm x1

void loop() { // The raw character read from the serial port byte val; // Integer conversion of channel ID int channel; //Check if a value has been send by the host if (Serial.available()) { val = Serial.read(); // convert ASCII value to binary channel = (int) val-48; if (channel > 0 && channel <= pinCount) { // Pulse the apropriate button pulseOutput(channel); } //Use pins 5 through 12 as the digital outputs int pinMap[] = {5, 6, 7, 8, 9, 10, 11, 12}; byte pinCount = sizeof(pinMap)/sizeof(pinMap[0]); // Number of milliseconds to hold the outputs on int buttonPressTime = 250; void setup() { // Open the serial connection to listen for commands from // the host Serial.being(38500); int count = 0; // variable to store currenct array position // Set up the pins as outputs and force them LOW for (count; count < pinCount; count++) { pintMode(outputArray[count], OUTPUT); digitalWrite(outputArray[count], LOW); }

void pulseOutput(int channel) { Serial. Print("Ouput "); Serial void pulseOutput(int channel) { Serial.Print("Ouput "); Serial.Print(channel); Serial.Println(" ON"); digitlaWrite(outputArray[channel - 1], HIGH); delay(buttonPressTime); digitalWrite(outputArray[channel - 1], LOW); Serial.Println(" OFF"); }