SlideShare a Scribd company logo
1 of 20
#include <IRremote.h>
int RECV_PIN = 19;
const int timer = 600; // timing 800 milis
String custNo; //customer number to be decoded
const int digitalStart=11;
const int thisPin2=2;
const int thisPin3=3;
const int thisPin4=4;
const int thisPin5=5;
const int thisPin6=6;
const int thisPin7=7;
const int thisPin8=8;
const int thisPin9=9;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9400);
// Serial.println(custNo);
irrecv.enableIRIn(); // Start the receiver
pinMode(digitalStart, INPUT);
pinMode(thisPin2, OUTPUT);
pinMode(thisPin3, OUTPUT);
pinMode(thisPin4, OUTPUT);
pinMode(thisPin5, OUTPUT);
pinMode(thisPin6, OUTPUT);
pinMode(thisPin7, OUTPUT);
pinMode(thisPin8, OUTPUT);
pinMode(thisPin9, OUTPUT);
}
void loop() {
digitalWrite(thisPin2, HIGH);
digitalWrite(thisPin3, HIGH);
digitalWrite(thisPin4, HIGH);
digitalWrite(thisPin5, HIGH);
digitalWrite(thisPin6, HIGH);
digitalWrite(thisPin7, HIGH);
digitalWrite(thisPin8, HIGH);
digitalWrite(thisPin9, HIGH);
int onValue=digitalRead(digitalStart);
if (onValue==HIGH){
delay(timer);
digitalWrite(thisPin2, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
custNo=("");
Serial.println(custNo);
switch (results.value) {
case 50344:
custNo=custNo + "070";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "071";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "072";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "073";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "074";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "075";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "076";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "077";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "078";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "079";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin2, HIGH);
delay(timer);
digitalWrite(thisPin3, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin3, HIGH);
delay(timer);
digitalWrite(thisPin4, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "0";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin4, HIGH);
delay(timer);
digitalWrite(thisPin5, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "0";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin5, HIGH);
delay(timer);
digitalWrite(thisPin6, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "0";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin6, HIGH);
delay(timer);
digitalWrite(thisPin7, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "0";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin7, HIGH);
delay(timer);
digitalWrite(thisPin8, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "0";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin8, HIGH);
delay(timer);
digitalWrite(thisPin9, LOW);
delay(timer);
if (irrecv.decode(&results)) {
long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 50344:
custNo=custNo + "0";
Serial.print(custNo);
Serial.println("ttZERO");
delay(400);
break;
case 50236:
custNo=custNo + "1";
Serial.print(custNo);
Serial.println("ttONE");
delay(400);
break;
case 61492:
custNo=custNo + "2";
Serial.print(custNo);
Serial.println("ttTWO");
delay(400);
break;
case 50252:
custNo=custNo + "3";
Serial.print(custNo);
Serial.println("ttTHREE");
delay(400);
break;
case 49232:
custNo=custNo + "4";
Serial.print(custNo);
Serial.println("ttFOUR");
delay(400);
break;
case 50376:
custNo=custNo + "5";
Serial.print(custNo);
Serial.println("ttFIVE");
delay(400);
break;
case 50428:
custNo=custNo + "6";
Serial.print(custNo);
Serial.println("ttSIX");
delay(400);
break;
case 50364:
custNo=custNo + "7";
Serial.print(custNo);
Serial.println("ttSEVEN");
delay(400);
break;
case 50300:
custNo=custNo + "8";
Serial.print(custNo);
Serial.println("ttEIGHT");
delay(400);
break;
case 50372:
custNo=custNo + "9";
Serial.print(custNo);
Serial.println("ttNINE");
delay(400);
break;
default:
Serial.println("Waiting ...");
}
irrecv.resume(); // Receive the next value
}
digitalWrite(thisPin9, HIGH);
delay(timer);
//custNo=("07");
//Serial.println();
}
else {
digitalWrite(thisPin2, HIGH);
digitalWrite(thisPin3, HIGH);
digitalWrite(thisPin4, HIGH);
digitalWrite(thisPin5, HIGH);
digitalWrite(thisPin6, HIGH);
digitalWrite(thisPin7, HIGH);
digitalWrite(thisPin8, HIGH);
digitalWrite(thisPin9, HIGH);
}
}
Standard deviation of $594, 90% confidence level, and a margin
of error $137 what is the sample size
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx

More Related Content

Similar to #include IRremote.hint RECV_PIN = 19;const int timer = 600.docx

SENDER It is a helmet that contains a sensor for gases, vital s.pdf
SENDER  It is a helmet that contains a sensor for gases, vital s.pdfSENDER  It is a helmet that contains a sensor for gases, vital s.pdf
SENDER It is a helmet that contains a sensor for gases, vital s.pdfalertshoeshingkimand
 
Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Svet Ivantchev
 
Microcontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxMicrocontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxSANTIAGO PABLO ALBERTO
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfSIGMATAX1
 
Header files used to run the program include ltstdioh.pdf
Header files used to run the program  include ltstdioh.pdfHeader files used to run the program  include ltstdioh.pdf
Header files used to run the program include ltstdioh.pdficonsystemsslm
 
robotics presentation for a club you run
robotics presentation for a club you runrobotics presentation for a club you run
robotics presentation for a club you runSunilAcharya37
 
FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6
FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6
FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6FrontDays
 
How to transfer bad PLSQL into good (AAAPEKS23)
How to transfer bad PLSQL into good (AAAPEKS23)How to transfer bad PLSQL into good (AAAPEKS23)
How to transfer bad PLSQL into good (AAAPEKS23)Maik Becker
 
[4] 아두이노와 인터넷
[4] 아두이노와 인터넷[4] 아두이노와 인터넷
[4] 아두이노와 인터넷Chiwon Song
 
tp socket en C.pdf
tp socket en C.pdftp socket en C.pdf
tp socket en C.pdfYoussefJamma
 
Mitsubachi Arduino code
Mitsubachi Arduino codeMitsubachi Arduino code
Mitsubachi Arduino codeYilin Zeng
 

Similar to #include IRremote.hint RECV_PIN = 19;const int timer = 600.docx (20)

Arp
ArpArp
Arp
 
SENDER It is a helmet that contains a sensor for gases, vital s.pdf
SENDER  It is a helmet that contains a sensor for gases, vital s.pdfSENDER  It is a helmet that contains a sensor for gases, vital s.pdf
SENDER It is a helmet that contains a sensor for gases, vital s.pdf
 
Arduino Programming
Arduino ProgrammingArduino Programming
Arduino Programming
 
Michael kontopoulo1s
Michael kontopoulo1sMichael kontopoulo1s
Michael kontopoulo1s
 
UDP.yash
UDP.yashUDP.yash
UDP.yash
 
Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016
 
Microcontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docxMicrocontroladores: programas de CCS Compiler.docx
Microcontroladores: programas de CCS Compiler.docx
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdf
 
runtimestack
runtimestackruntimestack
runtimestack
 
Header files used to run the program include ltstdioh.pdf
Header files used to run the program  include ltstdioh.pdfHeader files used to run the program  include ltstdioh.pdf
Header files used to run the program include ltstdioh.pdf
 
robotics presentation for a club you run
robotics presentation for a club you runrobotics presentation for a club you run
robotics presentation for a club you run
 
FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6
FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6
FrontDays #3. Иван Федяев, Эволюция JavaScript. Обзор нововведений ECMAScript 6
 
How to transfer bad PLSQL into good (AAAPEKS23)
How to transfer bad PLSQL into good (AAAPEKS23)How to transfer bad PLSQL into good (AAAPEKS23)
How to transfer bad PLSQL into good (AAAPEKS23)
 
Server
ServerServer
Server
 
[4] 아두이노와 인터넷
[4] 아두이노와 인터넷[4] 아두이노와 인터넷
[4] 아두이노와 인터넷
 
Code em Poker
Code em PokerCode em Poker
Code em Poker
 
AI For Texam Hold'em poker
AI For Texam Hold'em pokerAI For Texam Hold'em poker
AI For Texam Hold'em poker
 
clockDIGITAL.docx
clockDIGITAL.docxclockDIGITAL.docx
clockDIGITAL.docx
 
tp socket en C.pdf
tp socket en C.pdftp socket en C.pdf
tp socket en C.pdf
 
Mitsubachi Arduino code
Mitsubachi Arduino codeMitsubachi Arduino code
Mitsubachi Arduino code
 

More from katherncarlyle

After reading chapter 4, evaluate the history of the Data Encryp.docx
After reading chapter 4, evaluate the history of the Data Encryp.docxAfter reading chapter 4, evaluate the history of the Data Encryp.docx
After reading chapter 4, evaluate the history of the Data Encryp.docxkatherncarlyle
 
After reading Chapter 2 and the Required Resources please discuss th.docx
After reading Chapter 2 and the Required Resources please discuss th.docxAfter reading Chapter 2 and the Required Resources please discuss th.docx
After reading Chapter 2 and the Required Resources please discuss th.docxkatherncarlyle
 
After reading chapters 16 and 17 post a short reflection, approximat.docx
After reading chapters 16 and 17 post a short reflection, approximat.docxAfter reading chapters 16 and 17 post a short reflection, approximat.docx
After reading chapters 16 and 17 post a short reflection, approximat.docxkatherncarlyle
 
After reading chapter 3, analyze the history of Caesar Cypher an.docx
After reading chapter 3, analyze the history of Caesar Cypher an.docxAfter reading chapter 3, analyze the history of Caesar Cypher an.docx
After reading chapter 3, analyze the history of Caesar Cypher an.docxkatherncarlyle
 
After having learned about Cognitive Psychology and Humaistic Psycho.docx
After having learned about Cognitive Psychology and Humaistic Psycho.docxAfter having learned about Cognitive Psychology and Humaistic Psycho.docx
After having learned about Cognitive Psychology and Humaistic Psycho.docxkatherncarlyle
 
Advisory from Professionals Preparing Information .docx
Advisory from Professionals Preparing Information .docxAdvisory from Professionals Preparing Information .docx
Advisory from Professionals Preparing Information .docxkatherncarlyle
 
After completing the assigned readings and watching the provided.docx
After completing the assigned readings and watching the provided.docxAfter completing the assigned readings and watching the provided.docx
After completing the assigned readings and watching the provided.docxkatherncarlyle
 
Advocacy is a vital component of the early childhood professiona.docx
Advocacy is a vital component of the early childhood professiona.docxAdvocacy is a vital component of the early childhood professiona.docx
Advocacy is a vital component of the early childhood professiona.docxkatherncarlyle
 
After completing this weeks assignment...   Share with your classma.docx
After completing this weeks assignment...   Share with your classma.docxAfter completing this weeks assignment...   Share with your classma.docx
After completing this weeks assignment...   Share with your classma.docxkatherncarlyle
 
African Americans men are at a greater risk for developing prostate .docx
African Americans men are at a greater risk for developing prostate .docxAfrican Americans men are at a greater risk for developing prostate .docx
African Americans men are at a greater risk for developing prostate .docxkatherncarlyle
 
Advances over the last few decades have brought innovative and c.docx
Advances over the last few decades have brought innovative and c.docxAdvances over the last few decades have brought innovative and c.docx
Advances over the last few decades have brought innovative and c.docxkatherncarlyle
 
Advocacy is a vital component of the early childhood professional’s .docx
Advocacy is a vital component of the early childhood professional’s .docxAdvocacy is a vital component of the early childhood professional’s .docx
Advocacy is a vital component of the early childhood professional’s .docxkatherncarlyle
 
Advocacy Through LegislationIdentify a problem or .docx
Advocacy Through LegislationIdentify a problem or .docxAdvocacy Through LegislationIdentify a problem or .docx
Advocacy Through LegislationIdentify a problem or .docxkatherncarlyle
 
Advanced pathoRespond to Stacy and Sonia 1 day agoStacy A.docx
Advanced pathoRespond to  Stacy and Sonia 1 day agoStacy A.docxAdvanced pathoRespond to  Stacy and Sonia 1 day agoStacy A.docx
Advanced pathoRespond to Stacy and Sonia 1 day agoStacy A.docxkatherncarlyle
 
After completing the reading this week, we reflect on a few ke.docx
After completing the reading this week, we reflect on a few ke.docxAfter completing the reading this week, we reflect on a few ke.docx
After completing the reading this week, we reflect on a few ke.docxkatherncarlyle
 
Adopting Enterprise Risk Management inToday’s Wo.docx
Adopting Enterprise Risk Management inToday’s Wo.docxAdopting Enterprise Risk Management inToday’s Wo.docx
Adopting Enterprise Risk Management inToday’s Wo.docxkatherncarlyle
 
Addisons diseaseYou may use the textbook as one reference a.docx
Addisons diseaseYou may use the textbook as one reference a.docxAddisons diseaseYou may use the textbook as one reference a.docx
Addisons diseaseYou may use the textbook as one reference a.docxkatherncarlyle
 
AdultGeriatric DepressionIntroduction According to Mace.docx
AdultGeriatric DepressionIntroduction According to Mace.docxAdultGeriatric DepressionIntroduction According to Mace.docx
AdultGeriatric DepressionIntroduction According to Mace.docxkatherncarlyle
 
Adopt-a-Plant Project guidelinesOverviewThe purpose of this.docx
Adopt-a-Plant Project guidelinesOverviewThe purpose of this.docxAdopt-a-Plant Project guidelinesOverviewThe purpose of this.docx
Adopt-a-Plant Project guidelinesOverviewThe purpose of this.docxkatherncarlyle
 
Adolescent development is broad and wide-ranging, including phys.docx
Adolescent development is broad and wide-ranging, including phys.docxAdolescent development is broad and wide-ranging, including phys.docx
Adolescent development is broad and wide-ranging, including phys.docxkatherncarlyle
 

More from katherncarlyle (20)

After reading chapter 4, evaluate the history of the Data Encryp.docx
After reading chapter 4, evaluate the history of the Data Encryp.docxAfter reading chapter 4, evaluate the history of the Data Encryp.docx
After reading chapter 4, evaluate the history of the Data Encryp.docx
 
After reading Chapter 2 and the Required Resources please discuss th.docx
After reading Chapter 2 and the Required Resources please discuss th.docxAfter reading Chapter 2 and the Required Resources please discuss th.docx
After reading Chapter 2 and the Required Resources please discuss th.docx
 
After reading chapters 16 and 17 post a short reflection, approximat.docx
After reading chapters 16 and 17 post a short reflection, approximat.docxAfter reading chapters 16 and 17 post a short reflection, approximat.docx
After reading chapters 16 and 17 post a short reflection, approximat.docx
 
After reading chapter 3, analyze the history of Caesar Cypher an.docx
After reading chapter 3, analyze the history of Caesar Cypher an.docxAfter reading chapter 3, analyze the history of Caesar Cypher an.docx
After reading chapter 3, analyze the history of Caesar Cypher an.docx
 
After having learned about Cognitive Psychology and Humaistic Psycho.docx
After having learned about Cognitive Psychology and Humaistic Psycho.docxAfter having learned about Cognitive Psychology and Humaistic Psycho.docx
After having learned about Cognitive Psychology and Humaistic Psycho.docx
 
Advisory from Professionals Preparing Information .docx
Advisory from Professionals Preparing Information .docxAdvisory from Professionals Preparing Information .docx
Advisory from Professionals Preparing Information .docx
 
After completing the assigned readings and watching the provided.docx
After completing the assigned readings and watching the provided.docxAfter completing the assigned readings and watching the provided.docx
After completing the assigned readings and watching the provided.docx
 
Advocacy is a vital component of the early childhood professiona.docx
Advocacy is a vital component of the early childhood professiona.docxAdvocacy is a vital component of the early childhood professiona.docx
Advocacy is a vital component of the early childhood professiona.docx
 
After completing this weeks assignment...   Share with your classma.docx
After completing this weeks assignment...   Share with your classma.docxAfter completing this weeks assignment...   Share with your classma.docx
After completing this weeks assignment...   Share with your classma.docx
 
African Americans men are at a greater risk for developing prostate .docx
African Americans men are at a greater risk for developing prostate .docxAfrican Americans men are at a greater risk for developing prostate .docx
African Americans men are at a greater risk for developing prostate .docx
 
Advances over the last few decades have brought innovative and c.docx
Advances over the last few decades have brought innovative and c.docxAdvances over the last few decades have brought innovative and c.docx
Advances over the last few decades have brought innovative and c.docx
 
Advocacy is a vital component of the early childhood professional’s .docx
Advocacy is a vital component of the early childhood professional’s .docxAdvocacy is a vital component of the early childhood professional’s .docx
Advocacy is a vital component of the early childhood professional’s .docx
 
Advocacy Through LegislationIdentify a problem or .docx
Advocacy Through LegislationIdentify a problem or .docxAdvocacy Through LegislationIdentify a problem or .docx
Advocacy Through LegislationIdentify a problem or .docx
 
Advanced pathoRespond to Stacy and Sonia 1 day agoStacy A.docx
Advanced pathoRespond to  Stacy and Sonia 1 day agoStacy A.docxAdvanced pathoRespond to  Stacy and Sonia 1 day agoStacy A.docx
Advanced pathoRespond to Stacy and Sonia 1 day agoStacy A.docx
 
After completing the reading this week, we reflect on a few ke.docx
After completing the reading this week, we reflect on a few ke.docxAfter completing the reading this week, we reflect on a few ke.docx
After completing the reading this week, we reflect on a few ke.docx
 
Adopting Enterprise Risk Management inToday’s Wo.docx
Adopting Enterprise Risk Management inToday’s Wo.docxAdopting Enterprise Risk Management inToday’s Wo.docx
Adopting Enterprise Risk Management inToday’s Wo.docx
 
Addisons diseaseYou may use the textbook as one reference a.docx
Addisons diseaseYou may use the textbook as one reference a.docxAddisons diseaseYou may use the textbook as one reference a.docx
Addisons diseaseYou may use the textbook as one reference a.docx
 
AdultGeriatric DepressionIntroduction According to Mace.docx
AdultGeriatric DepressionIntroduction According to Mace.docxAdultGeriatric DepressionIntroduction According to Mace.docx
AdultGeriatric DepressionIntroduction According to Mace.docx
 
Adopt-a-Plant Project guidelinesOverviewThe purpose of this.docx
Adopt-a-Plant Project guidelinesOverviewThe purpose of this.docxAdopt-a-Plant Project guidelinesOverviewThe purpose of this.docx
Adopt-a-Plant Project guidelinesOverviewThe purpose of this.docx
 
Adolescent development is broad and wide-ranging, including phys.docx
Adolescent development is broad and wide-ranging, including phys.docxAdolescent development is broad and wide-ranging, including phys.docx
Adolescent development is broad and wide-ranging, including phys.docx
 

Recently uploaded

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Recently uploaded (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx

  • 1. #include <IRremote.h> int RECV_PIN = 19; const int timer = 600; // timing 800 milis String custNo; //customer number to be decoded const int digitalStart=11; const int thisPin2=2; const int thisPin3=3; const int thisPin4=4; const int thisPin5=5; const int thisPin6=6; const int thisPin7=7; const int thisPin8=8; const int thisPin9=9; IRrecv irrecv(RECV_PIN); decode_results results; void setup() { Serial.begin(9400); // Serial.println(custNo); irrecv.enableIRIn(); // Start the receiver pinMode(digitalStart, INPUT); pinMode(thisPin2, OUTPUT); pinMode(thisPin3, OUTPUT); pinMode(thisPin4, OUTPUT); pinMode(thisPin5, OUTPUT); pinMode(thisPin6, OUTPUT); pinMode(thisPin7, OUTPUT); pinMode(thisPin8, OUTPUT); pinMode(thisPin9, OUTPUT);
  • 2. } void loop() { digitalWrite(thisPin2, HIGH); digitalWrite(thisPin3, HIGH); digitalWrite(thisPin4, HIGH); digitalWrite(thisPin5, HIGH); digitalWrite(thisPin6, HIGH); digitalWrite(thisPin7, HIGH); digitalWrite(thisPin8, HIGH); digitalWrite(thisPin9, HIGH); int onValue=digitalRead(digitalStart); if (onValue==HIGH){ delay(timer); digitalWrite(thisPin2, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); custNo=(""); Serial.println(custNo); switch (results.value) { case 50344: custNo=custNo + "070"; Serial.print(custNo); Serial.println("ttZERO"); delay(400); break; case 50236: custNo=custNo + "071"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break;
  • 3. case 61492: custNo=custNo + "072"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "073"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "074"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "075"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "076"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "077"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break;
  • 4. case 50300: custNo=custNo + "078"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "079"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin2, HIGH); delay(timer); digitalWrite(thisPin3, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); switch (results.value) { case 50344: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 50236: custNo=custNo + "1"; Serial.print(custNo);
  • 5. Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "5"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "6"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "7"; Serial.print(custNo);
  • 6. Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin3, HIGH); delay(timer); digitalWrite(thisPin4, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); switch (results.value) { case 50344: custNo=custNo + "0"; Serial.print(custNo); Serial.println("ttZERO"); delay(400); break;
  • 7. case 50236: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "5"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "6"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break;
  • 8. case 50364: custNo=custNo + "7"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin4, HIGH); delay(timer); digitalWrite(thisPin5, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); switch (results.value) { case 50344: custNo=custNo + "0";
  • 9. Serial.print(custNo); Serial.println("ttZERO"); delay(400); break; case 50236: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "5"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "6";
  • 10. Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "7"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin5, HIGH); delay(timer); digitalWrite(thisPin6, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode);
  • 11. switch (results.value) { case 50344: custNo=custNo + "0"; Serial.print(custNo); Serial.println("ttZERO"); delay(400); break; case 50236: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "5"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400);
  • 12. break; case 50428: custNo=custNo + "6"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "7"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin6, HIGH); delay(timer); digitalWrite(thisPin7, LOW); delay(timer);
  • 13. if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); switch (results.value) { case 50344: custNo=custNo + "0"; Serial.print(custNo); Serial.println("ttZERO"); delay(400); break; case 50236: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "5";
  • 14. Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "6"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "7"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin7, HIGH);
  • 15. delay(timer); digitalWrite(thisPin8, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); switch (results.value) { case 50344: custNo=custNo + "0"; Serial.print(custNo); Serial.println("ttZERO"); delay(400); break; case 50236: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232: custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400);
  • 16. break; case 50376: custNo=custNo + "5"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "6"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "7"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default: Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value }
  • 17. digitalWrite(thisPin8, HIGH); delay(timer); digitalWrite(thisPin9, LOW); delay(timer); if (irrecv.decode(&results)) { long int decCode = results.value; Serial.println(decCode); switch (results.value) { case 50344: custNo=custNo + "0"; Serial.print(custNo); Serial.println("ttZERO"); delay(400); break; case 50236: custNo=custNo + "1"; Serial.print(custNo); Serial.println("ttONE"); delay(400); break; case 61492: custNo=custNo + "2"; Serial.print(custNo); Serial.println("ttTWO"); delay(400); break; case 50252: custNo=custNo + "3"; Serial.print(custNo); Serial.println("ttTHREE"); delay(400); break; case 49232:
  • 18. custNo=custNo + "4"; Serial.print(custNo); Serial.println("ttFOUR"); delay(400); break; case 50376: custNo=custNo + "5"; Serial.print(custNo); Serial.println("ttFIVE"); delay(400); break; case 50428: custNo=custNo + "6"; Serial.print(custNo); Serial.println("ttSIX"); delay(400); break; case 50364: custNo=custNo + "7"; Serial.print(custNo); Serial.println("ttSEVEN"); delay(400); break; case 50300: custNo=custNo + "8"; Serial.print(custNo); Serial.println("ttEIGHT"); delay(400); break; case 50372: custNo=custNo + "9"; Serial.print(custNo); Serial.println("ttNINE"); delay(400); break; default:
  • 19. Serial.println("Waiting ..."); } irrecv.resume(); // Receive the next value } digitalWrite(thisPin9, HIGH); delay(timer); //custNo=("07"); //Serial.println(); } else { digitalWrite(thisPin2, HIGH); digitalWrite(thisPin3, HIGH); digitalWrite(thisPin4, HIGH); digitalWrite(thisPin5, HIGH); digitalWrite(thisPin6, HIGH); digitalWrite(thisPin7, HIGH); digitalWrite(thisPin8, HIGH); digitalWrite(thisPin9, HIGH); } } Standard deviation of $594, 90% confidence level, and a margin of error $137 what is the sample size