SlideShare a Scribd company logo
1 of 15
DIN 3
   int timer = 100;                      void loop() {
   int ledPins[] = {                       for (int thisPin = 0; thisPin <
     11, 12, 13, 6, 5, 3 };               pinCount; thisPin++) {
   int pinCount = 6;                         digitalWrite(ledPins[thisPin],
   void setup() {                         HIGH);
     int thisPin;                            delay(timer);
    for (int thisPin = 0; thisPin <         digitalWrite(ledPins[thisPin],
    pinCount; thisPin++) {                 LOW);
       pinMode(ledPins[thisPin],         }
    OUTPUT);                              for (int thisPin = pinCount - 1;
     }                                    thisPin >= 0; thisPin--) {
   }                                  
                                              digitalWrite(ledPins[thisPin],
                                           HIGH);
                                              delay(timer);
                                              digitalWrite(ledPins[thisPin],
                                           LOW);
                                            }
                                          }
 LM
   35 IS USE TO MEASURE TO
 TEMPERATURE OF SYSTEM.
 void  setup() {
    Serial.begin(9600);
}


 voidloop() {
 int sensorValue =
 analogRead(A0);

 Serial.println(sensorV
 alue, DEC);
}
   void setup() {
                                                            pinMode(2, OUTPUT);
                                                             pinMode(3, OUTPUT);
   // Arduino pin: 2,3,4,5,6,7,8                            pinMode(4, OUTPUT);
   byte seven_seg_digits[10][7] = { {                       pinMode(5, OUTPUT);
    1,1,1,1,1,1,0 }, // = 0                                  pinMode(6, OUTPUT);
                         { 0,1,1,0,0,0,0 },   // = 1        pinMode(7, OUTPUT);
                         { 1,1,0,1,1,0,1 },   // = 2        pinMode(8, OUTPUT);
                         { 1,1,1,1,0,0,1 },   // = 3        pinMode(9, OUTPUT);
                         { 0,1,1,0,0,1,1 },   // = 4        writeDot(0); // start with the "dot" off
                         { 1,0,1,1,0,1,1 },   // = 5      }
                         { 1,0,1,1,1,1,1 },   // = 6
                         { 1,1,1,0,0,0,0 },   // = 7      void writeDot(byte dot) {
                         { 1,1,1,1,1,1,1 },   // = 8        digitalWrite(9, dot);
                         { 1,1,1,0,0,1,1 }    // = 9      }
                         };

 Void
  sevenSegWrite(byte          void loop() {
  digit) {                      for (byte count = 10;
 byte pin = 2;                count > 0; --count) {
 for (byte segCount = 0;        delay(1000);
  segCount < 7;                  sevenSegWrite(count
  ++segCount) {                - 1);
    digitalWrite(pin,        }
  seven_seg_digits[digit][    delay(4000);
  segCount]);                }
    ++pin;
 }
}
 int sec1=3;           void loop()
 int sec2=5;           {
 int sec3=6;            sa =
 int temp=A0;           analogRead(temp);
 int sem;               {
 int sa;                analogWrite(3,sa);
 void setup()           analogWrite(5,sa);
{                       analogWrite(6,sa);
 pinMode(3, OUTPUT);   }
 pinMode(5, OUTPUT);   }
 pinMode(6, OUTPUT);
}
R tist

More Related Content

What's hot

The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IOT Academy
 
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...Iosif Itkin
 
Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...
Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...
Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...aferrandini
 
Day4 Lab
Day4 LabDay4 Lab
Day4 LabRon Liu
 
RAM Source code and Test Bench
RAM Source code and Test BenchRAM Source code and Test Bench
RAM Source code and Test BenchRaj Mohan
 
Алексей Кутумов, Coroutines everywhere
Алексей Кутумов, Coroutines everywhereАлексей Кутумов, Coroutines everywhere
Алексей Кутумов, Coroutines everywhereSergey Platonov
 
Коварный code type ITGM #9
Коварный code type ITGM #9Коварный code type ITGM #9
Коварный code type ITGM #9Andrey Zakharevich
 
Improved deterministic algorithms for decremental transitive closure and stro...
Improved deterministic algorithms for decremental transitive closure and stro...Improved deterministic algorithms for decremental transitive closure and stro...
Improved deterministic algorithms for decremental transitive closure and stro...katzelad1
 
Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)TechLeap
 
[FT-11][suhorng] “Poor Man's” Undergraduate Compilers
[FT-11][suhorng] “Poor Man's” Undergraduate Compilers[FT-11][suhorng] “Poor Man's” Undergraduate Compilers
[FT-11][suhorng] “Poor Man's” Undergraduate CompilersFunctional Thursday
 

What's hot (20)

Predication
PredicationPredication
Predication
 
Open bot
Open bot Open bot
Open bot
 
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programming
 
verilog code
verilog codeverilog code
verilog code
 
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
 
Appsec obfuscator reloaded
Appsec obfuscator reloadedAppsec obfuscator reloaded
Appsec obfuscator reloaded
 
Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...
Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...
Artificial Neural Network in a Tic Tac Toe Symfony Console Application - Symf...
 
Day4 Lab
Day4 LabDay4 Lab
Day4 Lab
 
Code
CodeCode
Code
 
RAM Source code and Test Bench
RAM Source code and Test BenchRAM Source code and Test Bench
RAM Source code and Test Bench
 
Алексей Кутумов, Coroutines everywhere
Алексей Кутумов, Coroutines everywhereАлексей Кутумов, Coroutines everywhere
Алексей Кутумов, Coroutines everywhere
 
Clase de matlab
Clase de matlabClase de matlab
Clase de matlab
 
Server
ServerServer
Server
 
Percobaan 1
Percobaan 1Percobaan 1
Percobaan 1
 
Коварный code type ITGM #9
Коварный code type ITGM #9Коварный code type ITGM #9
Коварный code type ITGM #9
 
Improved deterministic algorithms for decremental transitive closure and stro...
Improved deterministic algorithms for decremental transitive closure and stro...Improved deterministic algorithms for decremental transitive closure and stro...
Improved deterministic algorithms for decremental transitive closure and stro...
 
Q 1
Q 1Q 1
Q 1
 
Npc14
Npc14Npc14
Npc14
 
Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)
 
[FT-11][suhorng] “Poor Man's” Undergraduate Compilers
[FT-11][suhorng] “Poor Man's” Undergraduate Compilers[FT-11][suhorng] “Poor Man's” Undergraduate Compilers
[FT-11][suhorng] “Poor Man's” Undergraduate Compilers
 

Similar to R tist

硕士答辩Keynote
硕士答辩Keynote硕士答辩Keynote
硕士答辩Keynotepemi hua
 
7segment scetch
7segment scetch7segment scetch
7segment scetchBang Igo
 
Magnetic door lock using arduino
Magnetic door lock using arduinoMagnetic door lock using arduino
Magnetic door lock using arduinoSravanthi Sinha
 
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -Wataru Kani
 
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9Irfan Qadoos
 
Arduino coding class part ii
Arduino coding class part iiArduino coding class part ii
Arduino coding class part iiJonah Marrs
 
Scoala de vara_idg_introducere_in_robotica
Scoala de vara_idg_introducere_in_roboticaScoala de vara_idg_introducere_in_robotica
Scoala de vara_idg_introducere_in_roboticaScoalaVara
 
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docxkatherncarlyle
 
Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Svet Ivantchev
 
Stabilizer: Statistically Sound Performance Evaluation
Stabilizer: Statistically Sound Performance EvaluationStabilizer: Statistically Sound Performance Evaluation
Stabilizer: Statistically Sound Performance EvaluationEmery Berger
 
I have written the code but cannot complete the assignment please help.pdf
I have written the code but cannot complete the assignment please help.pdfI have written the code but cannot complete the assignment please help.pdf
I have written the code but cannot complete the assignment please help.pdfshreeaadithyaacellso
 
Arduino: Intro and Digital I/O
Arduino: Intro and Digital I/OArduino: Intro and Digital I/O
Arduino: Intro and Digital I/OJune-Hao Hou
 
push button with led matrix
push button with led matrixpush button with led matrix
push button with led matrixMakers of India
 
Html5 game, websocket e arduino
Html5 game, websocket e arduinoHtml5 game, websocket e arduino
Html5 game, websocket e arduinomonksoftwareit
 
Programming with GUTs
Programming with GUTsProgramming with GUTs
Programming with GUTsKevlin Henney
 

Similar to R tist (20)

硕士答辩Keynote
硕士答辩Keynote硕士答辩Keynote
硕士答辩Keynote
 
7segment scetch
7segment scetch7segment scetch
7segment scetch
 
Magnetic door lock using arduino
Magnetic door lock using arduinoMagnetic door lock using arduino
Magnetic door lock using arduino
 
Arduino Programming
Arduino ProgrammingArduino Programming
Arduino Programming
 
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
第二回 冬のスイッチ大勉強会 - FullColorLED & MPU-6050編 -
 
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
 
Arduino Workshop 2011.05.31
Arduino Workshop 2011.05.31Arduino Workshop 2011.05.31
Arduino Workshop 2011.05.31
 
Arduino coding class part ii
Arduino coding class part iiArduino coding class part ii
Arduino coding class part ii
 
Scoala de vara_idg_introducere_in_robotica
Scoala de vara_idg_introducere_in_roboticaScoala de vara_idg_introducere_in_robotica
Scoala de vara_idg_introducere_in_robotica
 
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx
#include IRremote.hint RECV_PIN = 19;const int timer = 600.docx
 
Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016
 
Stabilizer: Statistically Sound Performance Evaluation
Stabilizer: Statistically Sound Performance EvaluationStabilizer: Statistically Sound Performance Evaluation
Stabilizer: Statistically Sound Performance Evaluation
 
I have written the code but cannot complete the assignment please help.pdf
I have written the code but cannot complete the assignment please help.pdfI have written the code but cannot complete the assignment please help.pdf
I have written the code but cannot complete the assignment please help.pdf
 
Arduino: Intro and Digital I/O
Arduino: Intro and Digital I/OArduino: Intro and Digital I/O
Arduino: Intro and Digital I/O
 
push button with led matrix
push button with led matrixpush button with led matrix
push button with led matrix
 
Sysprog 12
Sysprog 12Sysprog 12
Sysprog 12
 
Sysprog 12
Sysprog 12Sysprog 12
Sysprog 12
 
Html5 game, websocket e arduino
Html5 game, websocket e arduinoHtml5 game, websocket e arduino
Html5 game, websocket e arduino
 
Edge_AI_Assignment_3.pdf
Edge_AI_Assignment_3.pdfEdge_AI_Assignment_3.pdf
Edge_AI_Assignment_3.pdf
 
Programming with GUTs
Programming with GUTsProgramming with GUTs
Programming with GUTs
 

More from Atul Uttam

More from Atul Uttam (18)

Sms based patient report from remote place1
Sms based patient report from remote place1Sms based patient report from remote place1
Sms based patient report from remote place1
 
Rfid
RfidRfid
Rfid
 
Dtmf
DtmfDtmf
Dtmf
 
Id 12-datasheet
Id 12-datasheetId 12-datasheet
Id 12-datasheet
 
Max 232
Max 232Max 232
Max 232
 
Arduino shift in
Arduino   shift inArduino   shift in
Arduino shift in
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
Din 4
Din 4Din 4
Din 4
 
Motor driver
Motor driverMotor driver
Motor driver
 
Din 4
Din 4Din 4
Din 4
 
Rgb led strip tutorial
Rgb led strip tutorialRgb led strip tutorial
Rgb led strip tutorial
 
Lm35
Lm35Lm35
Lm35
 
Sharp sensor
Sharp sensorSharp sensor
Sharp sensor
 
Lcd programing and pin configuration
Lcd programing and pin configurationLcd programing and pin configuration
Lcd programing and pin configuration
 
Day 2
Day 2Day 2
Day 2
 
Led program
Led programLed program
Led program
 
Day1
Day1Day1
Day1
 
Arduino
ArduinoArduino
Arduino
 

R tist

  • 2.
  • 3. int timer = 100;  void loop() {  int ledPins[] = {  for (int thisPin = 0; thisPin <  11, 12, 13, 6, 5, 3 }; pinCount; thisPin++) {  int pinCount = 6;  digitalWrite(ledPins[thisPin],  void setup() { HIGH);  int thisPin;  delay(timer);  for (int thisPin = 0; thisPin <  digitalWrite(ledPins[thisPin], pinCount; thisPin++) { LOW);  pinMode(ledPins[thisPin],  } OUTPUT);  for (int thisPin = pinCount - 1;  } thisPin >= 0; thisPin--) {  }   digitalWrite(ledPins[thisPin], HIGH);  delay(timer);  digitalWrite(ledPins[thisPin], LOW);  }  }
  • 4.  LM 35 IS USE TO MEASURE TO TEMPERATURE OF SYSTEM.
  • 5.
  • 6.
  • 7.  void setup() {  Serial.begin(9600); }  voidloop() {  int sensorValue = analogRead(A0);  Serial.println(sensorV alue, DEC); }
  • 8.
  • 9.
  • 10.
  • 11. void setup() {   pinMode(2, OUTPUT);  pinMode(3, OUTPUT);  // Arduino pin: 2,3,4,5,6,7,8  pinMode(4, OUTPUT);  byte seven_seg_digits[10][7] = { {  pinMode(5, OUTPUT); 1,1,1,1,1,1,0 }, // = 0  pinMode(6, OUTPUT);  { 0,1,1,0,0,0,0 }, // = 1  pinMode(7, OUTPUT);  { 1,1,0,1,1,0,1 }, // = 2  pinMode(8, OUTPUT);  { 1,1,1,1,0,0,1 }, // = 3  pinMode(9, OUTPUT);  { 0,1,1,0,0,1,1 }, // = 4  writeDot(0); // start with the "dot" off  { 1,0,1,1,0,1,1 }, // = 5  }  { 1,0,1,1,1,1,1 }, // = 6  { 1,1,1,0,0,0,0 }, // = 7  void writeDot(byte dot) {  { 1,1,1,1,1,1,1 }, // = 8  digitalWrite(9, dot);  { 1,1,1,0,0,1,1 } // = 9  }  }; 
  • 12.  Void sevenSegWrite(byte  void loop() { digit) {  for (byte count = 10;  byte pin = 2; count > 0; --count) {  for (byte segCount = 0;  delay(1000); segCount < 7;  sevenSegWrite(count ++segCount) { - 1);  digitalWrite(pin,  } seven_seg_digits[digit][  delay(4000); segCount]); }  ++pin;  } }
  • 13.
  • 14.  int sec1=3; void loop()  int sec2=5; {  int sec3=6;  sa =  int temp=A0; analogRead(temp);  int sem;  {  int sa;  analogWrite(3,sa);  void setup()  analogWrite(5,sa); {  analogWrite(6,sa);  pinMode(3, OUTPUT); }  pinMode(5, OUTPUT); }  pinMode(6, OUTPUT); }