priyo53
Published © GPL3+

Weather Machine

A weather machine using Android application and Arduino Nano controller that is already applicable in the chemical industry.

IntermediateShowcase (no instructions)444
Weather Machine

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

arduino nano schematic

Code

Arduino_Bluetooth_Basic_modif_240118.ino

Arduino
char data = 0;               

void setup() 
{
  Serial.begin(9600);         
  pinMode(13, OUTPUT);        
  pinMode(12, OUTPUT); 
  pinMode(2, OUTPUT);
  digitalWrite(12, HIGH);
  digitalWrite(13, HIGH);
  
  digitalWrite(2, HIGH);   
  delay(1000);                      
  digitalWrite(2, LOW);   
  delay(1000);         
 digitalWrite(2, HIGH);   
  delay(1000);                       
  digitalWrite(2, LOW);    
  delay(1000);         
}
void loop()


{

  
  if(Serial.available() > 0)  
  {
    //digitalWrite(2, HIGH); 
   
    data = Serial.read();     
    Serial.print(data);       
    Serial.print("\n");        
    if(data == '3')             
      digitalWrite(13, LOW);  
    else if(data == '2')       
      digitalWrite(13, HIGH);   
    if(data == '1') 
      digitalWrite(12, LOW);
    else if(data == '0')
     digitalWrite(12, HIGH);
  }                            
  digitalWrite(2, HIGH);   
  delay(50);                       
  digitalWrite(2, LOW);    
  delay(50);           
}                 

Credits

priyo53

priyo53

1 project • 0 followers

Comments