Skip to content

Instantly share code, notes, and snippets.

View vinayyn's full-sized avatar

VINAY YN GOWDA vinayyn

  • Mysore, Karnataka ,India
View GitHub Profile
@vinayyn
vinayyn / smart.ino
Last active October 5, 2023 18:27
Smart dustbin using Arduino,ultrasonic sensor,GSM 900
#include<SoftwareSerial.h>
SoftwareSerial GPRS(5, 6);
int buzzerPin = 8;                          //Pin number the buzzer is connected
int echoPin = 11;                           // Echo Pin of the ultrasonic sensor
int trigPin = 12;                           // Trigger Pin of the ultrasonic sensor
unsigned long previousMillis = 0;           //This will be used to store the millisecnd value after each time the buzzer is triggered. This is used because delay function is not used for the buzzer timing.
int maxBeepInterval = 1000;                 //Max beep interval
int minBeebInterval = 300;                   //Min beep interval
int frequency = 1000;                       //Buzzer frequency in Hz
long distance;                              //Distance of the object from sensorlong echoTime;                              //Time taken for the echo
@vinayyn
vinayyn / gist:3b87891a1c1a13f115d9690e80492392
Last active August 5, 2017 17:12
Bike security alert system using Arduino,GSM 900,Accelometer gyroscope(Adxl 335)
#include <EEPROM.h>
#include "EEPROMAnything.h"
#include <LiquidCrystal.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(7,8); // RX, TX
const int alarmPin = 4;
const int relayPin = 0;
int Xacc, Yacc, Zacc, threshold = 0, thresholdSET = 25;
long debouncing_time = 15; //Debouncing Time in Millisecondsvolatile unsigned long last_micros;
LiquidCrystal lcd(5, 6, 9, 10, 11, 12);