Blog Archive

Sunday, June 25, 2023

How to make 'binary counter' using 74HC595 & Arduino Nano?

 

Arduino Code:

int stcp_Pin = 4;
int shcp_Pin = 3;
int ds_Pin = 2;

void setup() {
  pinMode(stcp_Pin, OUTPUT);
  pinMode(shcp_Pin, OUTPUT);
  pinMode(ds_Pin, OUTPUT);  
}

void loop() {
  for(int number=0; number<256; number++){
      digitalWrite(stcp_Pin,LOW);
      shiftOut(ds_Pin,shcp_Pin,LSBFIRST,number);
      digitalWrite(stcp_Pin,HIGH);
      delay(100);
    }
}

Tuesday, June 20, 2023

How to make 'LCD Count Down (60mins) & Recovery (10mins) timer' using Arduino (nano or Uno)?







Arduino Code:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
 
void setup() 
{
   lcd.begin(16, 2);
}
 
void loop() 
{
  int i;
  lcd.clear(); // Display is getting cleared
  delay(1000);
  lcd.setCursor(0, 0); // First row of the LCD Display
  lcd.print("Count-Down Timer");
  delay(500);
  
  for(i=0;i<=60;i++)
  {
    lcd.setCursor(0, 1); // Second row of the LCD Display
    lcd.print("Seconds = ");
    lcd.setCursor(10, 1);
    lcd.print(i);
    delay(1000);
  }
    lcd.clear(); // Display is getting cleared
    delay(500);
    
//Recovery Timer
     lcd.setCursor(0, 0);
     lcd.print("Recovery Timer");
     lcd.setCursor(0, 1);
     lcd.print("Seconds = ");
   for(i=0;i<=10;i++)
   {
     lcd.setCursor(10, 1);
     lcd.print(i);
     delay(1000);
   }
   lcd.clear(); // Display is getting cleared
   delay(500);
}



 

Common Mistakes in Sales

Not qualifying the customer Thinking about the positive outcome of sales Not asking tough questions to the customers Bashing the competition...