Submit Search
Upload
Arduino code
•
Download as TXT, PDF
•
0 likes
•
191 views
Kuriakose Mathew
Follow
This is the code of our arduino microprocessor.
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 4
Download now
Recommended
radix_4 fft dif with mdc and mdf
radix_4 fft dif with mdc and mdf
sakthi1986
Code2
Code2
helalyrabiy
Writing more complex models (continued)
Writing more complex models (continued)
Mohamed Samy
Arduino cic3
Arduino cic3
Jeni Shah
Arduino Workshop 2011.05.31
Arduino Workshop 2011.05.31
Shigeru Kobayashi
Writing more complex models
Writing more complex models
Mohamed Samy
Program of speed and direction control of dc motor
Program of speed and direction control of dc motor
birsa institute of technical education
Home automation system
Home automation system
Hira Shaukat
Recommended
radix_4 fft dif with mdc and mdf
radix_4 fft dif with mdc and mdf
sakthi1986
Code2
Code2
helalyrabiy
Writing more complex models (continued)
Writing more complex models (continued)
Mohamed Samy
Arduino cic3
Arduino cic3
Jeni Shah
Arduino Workshop 2011.05.31
Arduino Workshop 2011.05.31
Shigeru Kobayashi
Writing more complex models
Writing more complex models
Mohamed Samy
Program of speed and direction control of dc motor
Program of speed and direction control of dc motor
birsa institute of technical education
Home automation system
Home automation system
Hira Shaukat
Create your first model for a simple logic circuit
Create your first model for a simple logic circuit
Mohamed Samy
Arduino: Analog I/O
Arduino: Analog I/O
June-Hao Hou
VERILOG CODE
VERILOG CODE
Dhaval Kaneria
Compteur ARDUINO
Compteur ARDUINO
Hajer Dahech
Dsd lab Practical File
Dsd lab Practical File
Soumya Behera
All VLSI programs
All VLSI programs
Gouthaman V
Digital system design practical file
Digital system design practical file
Archita Misra
Vhdl lab manual
Vhdl lab manual
Mukul Mohal
Modeling FSMs
Modeling FSMs
Mohamed Samy
Device Modeling of Oscillator using PSpice
Device Modeling of Oscillator using PSpice
Tsuyoshi Horigome
Vhdlbputspdas
Vhdlbputspdas
GIET,Bhubaneswar
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programming
The IOT Academy
Building Hierarchy
Building Hierarchy
Mohamed Samy
Digital system design lab manual
Digital system design lab manual
Santhosh Poralu
Programs of VHDL
Programs of VHDL
Rkrishna Mishra
Dsd prac1
Dsd prac1
hardik211991
Programming arduino makeymakey
Programming arduino makeymakey
Industrial Design Center
Vend with ff
Vend with ff
Nitish Das
67WS Seminar Event
67WS Seminar Event
Shigeru Kobayashi
Appsec obfuscator reloaded
Appsec obfuscator reloaded
Cyber Security Alliance
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
Wataru Kani
Lathe Spindle Sensor
Lathe Spindle Sensor
JoeCritt
More Related Content
What's hot
Create your first model for a simple logic circuit
Create your first model for a simple logic circuit
Mohamed Samy
Arduino: Analog I/O
Arduino: Analog I/O
June-Hao Hou
VERILOG CODE
VERILOG CODE
Dhaval Kaneria
Compteur ARDUINO
Compteur ARDUINO
Hajer Dahech
Dsd lab Practical File
Dsd lab Practical File
Soumya Behera
All VLSI programs
All VLSI programs
Gouthaman V
Digital system design practical file
Digital system design practical file
Archita Misra
Vhdl lab manual
Vhdl lab manual
Mukul Mohal
Modeling FSMs
Modeling FSMs
Mohamed Samy
Device Modeling of Oscillator using PSpice
Device Modeling of Oscillator using PSpice
Tsuyoshi Horigome
Vhdlbputspdas
Vhdlbputspdas
GIET,Bhubaneswar
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programming
The IOT Academy
Building Hierarchy
Building Hierarchy
Mohamed Samy
Digital system design lab manual
Digital system design lab manual
Santhosh Poralu
Programs of VHDL
Programs of VHDL
Rkrishna Mishra
Dsd prac1
Dsd prac1
hardik211991
Programming arduino makeymakey
Programming arduino makeymakey
Industrial Design Center
Vend with ff
Vend with ff
Nitish Das
67WS Seminar Event
67WS Seminar Event
Shigeru Kobayashi
Appsec obfuscator reloaded
Appsec obfuscator reloaded
Cyber Security Alliance
What's hot
(20)
Create your first model for a simple logic circuit
Create your first model for a simple logic circuit
Arduino: Analog I/O
Arduino: Analog I/O
VERILOG CODE
VERILOG CODE
Compteur ARDUINO
Compteur ARDUINO
Dsd lab Practical File
Dsd lab Practical File
All VLSI programs
All VLSI programs
Digital system design practical file
Digital system design practical file
Vhdl lab manual
Vhdl lab manual
Modeling FSMs
Modeling FSMs
Device Modeling of Oscillator using PSpice
Device Modeling of Oscillator using PSpice
Vhdlbputspdas
Vhdlbputspdas
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programming
Building Hierarchy
Building Hierarchy
Digital system design lab manual
Digital system design lab manual
Programs of VHDL
Programs of VHDL
Dsd prac1
Dsd prac1
Programming arduino makeymakey
Programming arduino makeymakey
Vend with ff
Vend with ff
67WS Seminar Event
67WS Seminar Event
Appsec obfuscator reloaded
Appsec obfuscator reloaded
Similar to Arduino code
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
Wataru Kani
Lathe Spindle Sensor
Lathe Spindle Sensor
JoeCritt
Termòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter Kit
Laia P
FINISHED_CODE
FINISHED_CODE
Jeremy Forczyk
Arduino Programming
Arduino Programming
Dr Karthikeyan Periasamy
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.pdf
SIGMATAX1
CODING IN ARDUINO
CODING IN ARDUINO
S Ayub
Arduino.pptx
Arduino.pptx
ArunKumar313658
第一回 冬のスイッチ大勉強会 - XBee編 -
第一回 冬のスイッチ大勉強会 - XBee編 -
Wataru Kani
4x4
4x4
Hanip MasyaAllah Aright
Vechicle accident prevention using eye bilnk sensor ppt
Vechicle accident prevention using eye bilnk sensor ppt
satish 486
Arduino Code
Arduino Code
shohanulislam5
GENESIS BOARD MINI SUMO ROBOT PROGRAMFOR 3 OPPONENT SENSOR, .pdf
GENESIS BOARD MINI SUMO ROBOT PROGRAMFOR 3 OPPONENT SENSOR, .pdf
alltiusind
R tist
R tist
Atul Uttam
Lec2.ppt
Lec2.ppt
fgjf1
Program flowchart
Program flowchart
Sowri Rajan
selected input/output - sensors and actuators
selected input/output - sensors and actuators
Eueung Mulyana
C programs
C programs
Minu S
Connectivity for Local Sensors and Actuators Using nRF24L01+
Connectivity for Local Sensors and Actuators Using nRF24L01+
Eueung Mulyana
5 c control statements looping
5 c control statements looping
MomenMostafa
Similar to Arduino code
(20)
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
Lathe Spindle Sensor
Lathe Spindle Sensor
Termòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter Kit
FINISHED_CODE
FINISHED_CODE
Arduino Programming
Arduino Programming
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.pdf
CODING IN ARDUINO
CODING IN ARDUINO
Arduino.pptx
Arduino.pptx
第一回 冬のスイッチ大勉強会 - XBee編 -
第一回 冬のスイッチ大勉強会 - XBee編 -
4x4
4x4
Vechicle accident prevention using eye bilnk sensor ppt
Vechicle accident prevention using eye bilnk sensor ppt
Arduino Code
Arduino Code
GENESIS BOARD MINI SUMO ROBOT PROGRAMFOR 3 OPPONENT SENSOR, .pdf
GENESIS BOARD MINI SUMO ROBOT PROGRAMFOR 3 OPPONENT SENSOR, .pdf
R tist
R tist
Lec2.ppt
Lec2.ppt
Program flowchart
Program flowchart
selected input/output - sensors and actuators
selected input/output - sensors and actuators
C programs
C programs
Connectivity for Local Sensors and Actuators Using nRF24L01+
Connectivity for Local Sensors and Actuators Using nRF24L01+
5 c control statements looping
5 c control statements looping
Recently uploaded
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
Sneha Padhiar
priority interrupt computer organization
priority interrupt computer organization
chnrketan
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
jhunlian
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
AkritiPradhan2
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
isabel213075
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
Erbil Polytechnic University
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
sandhya757531
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Manish Kumar
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
BalamuruganV28
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
amber724300
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
Sneha Padhiar
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision Pro
Ray Yuan Liu
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
Romil Mishra
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
Researcher Researcher
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
mohitesoham12
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
Drew Moseley
STATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subject
GayathriM270621
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
rnrncn29
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
Stephen Sitton
multiple access in wireless communication
multiple access in wireless communication
panditadesh123
Recently uploaded
(20)
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
priority interrupt computer organization
priority interrupt computer organization
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision Pro
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
STATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subject
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
multiple access in wireless communication
multiple access in wireless communication
Arduino code
1.
#include <SoftwareSerial.h> SoftwareSerial mySerial(9,
10);//10 tx 9 rx void setup() { pinMode(A0,INPUT); pinMode(6,OUTPUT); pinMode(A1,INPUT); pinMode(A2,INPUT); pinMode(A3,INPUT); pinMode(5,OUTPUT); mySerial.begin(9600); Serial.begin(9600); } void loop() { int ldr1value=analogRead(A0); // reading inputs from sensors ldr1 int ldr2value=analogRead(A1); //ldr2 int irvalue=analogRead(A2); // IR int ldr3value=analogRead(A3); int f=0; int ldrth=30; //ldr1 threshold int ld2th=30; Serial.print("n"); Serial.print("sensor="); Serial.print(ldr1value); Serial.print("n"); Serial.print("ir="); Serial.print(irvalue); Serial.print("n"); Serial.print("ld2="); Serial.print(ldr2value); Serial.print("n"); Serial.print("ld3="); Serial.print(ldr3value); delay(100); if(ldr1value<ldrth) //room daylight 154//room night tubelight 83 { digitalWrite(5,HIGH); digitalWrite(6,HIGH); while(ldr2value<ld2th || ldr3value<ld2th)//daylight 130/room 30 { f++; if(f==1) { if(ldr2value<ld2th) { Serial.println("dialling 1..."); SendMessagep1(); digitalWrite(6,HIGH); } else if(ldr3value<ld2th) { Serial.println("dialling 2..."); SendMessagep2(); digitalWrite(5,HIGH); } Serial.println("message sent!!!"); delay(10); }
2.
if(ldr2value<ld2th) { if(irvalue<500 && ldr1value<ldrth) { digitalWrite(6,HIGH); digitalWrite(6,LOW); delay(.1); } else digitalWrite(6,HIGH); irvalue=analogRead(A2); ldr1value=analogRead(A0); } else if(ldr3value<ld2th) { if(irvalue<500
&& ldr1value<ldrth) { digitalWrite(5,HIGH); digitalWrite(5,LOW); delay(.1); } else digitalWrite(5,HIGH); } irvalue=analogRead(A2); ldr1value=analogRead(A0); ldr2value=analogRead(A1); ldr3value=analogRead(A3); Serial.println(f); } f=0; while(irvalue<500 && ldr1value<ldrth) { f=0; Serial.print("ir="); Serial.print(irvalue); Serial.print("n"); digitalWrite(5,HIGH);//pin 5 connected to brightness control component digitalWrite(5,LOW); delay(.1); digitalWrite(6,HIGH); digitalWrite(6,LOW); delay(.1); irvalue=analogRead(A2); ldr1value=analogRead(A0); ldr2value=analogRead(A1); ldr3value=analogRead(A3); while(ldr2value<ld2th || ldr3value<ld2th)//daylight 130/room 30 { f++; Serial.println("dialling..."); if(f==1) { if(ldr2value<ld2th) SendMessagep1(); else if(ldr3value<ld2th)
3.
SendMessagep2(); Serial.println("message sent!!!"); delay(10); } ldr2value=analogRead(A1); ldr3value=analogRead(A3); if(ldr2value<ld2th) { if(irvalue<500 &&
ldr1value<ldrth) { digitalWrite(6,HIGH); digitalWrite(6,LOW); delay(.1); } else digitalWrite(6,HIGH); irvalue=analogRead(A2); ldr1value=analogRead(A0); } else if(ldr3value<ld2th) { if(irvalue<500 && ldr1value<ldrth) { digitalWrite(5,HIGH); digitalWrite(5,LOW); delay(.1); } else digitalWrite(5,HIGH); irvalue=analogRead(A2); ldr1value=analogRead(A0); } Serial.println(f); ldr2value=analogRead(A1); ldr3value=analogRead(A3); } } } else { digitalWrite(5,LOW); digitalWrite(6,LOW); } } void SendMessagep1() { mySerial.println("AT+CMGF=1"); delay(1000); mySerial.println("AT+CMGS="+919495810714"r"); delay(1000); mySerial.println("https://www.google.com/maps/preview/@9.5503466,76.612264,17.44 z post no 1 complaint"); delay(1000); mySerial.println((char)26); delay(1000); }
4.
void SendMessagep2() { mySerial.println("AT+CMGF=1"); delay(1000); mySerial.println("AT+CMGS="+919495810714"r"); delay(1000); mySerial.println("https://www.google.com/maps/preview/@9.5503466,76.612264,17.44 z post
no 2 complaint"); delay(1000); mySerial.println((char)26); delay(1000); }
Download now