Skip to content

Instantly share code, notes, and snippets.

Suad Anwar suadanwar

Block or report user

Report or block suadanwar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@suadanwar
suadanwar / bedLamp.ino
Created Oct 25, 2019
This sample code is for Colourful Bed Lamp Using Tilt Sensor on Maker UNO tutorial.
View bedLamp.ino
const int tiltPin = 2;
const int redLed = 11;
const int greenLed = 10;
const int blueLed = 9;
int tiltState;
int count = 0;
void setup() {
pinMode(redLed, OUTPUT);
@suadanwar
suadanwar / SafeBox.ino
Created Oct 17, 2019
This sample code is for Safe Box's Tutorial.
View SafeBox.ino
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 2);
#include <Keypad.h>
#include <Servo.h>
Servo myservo;
#define Password_Lenght 7 // Give enough room for six chars + NULL char
@suadanwar
suadanwar / Height.ino
Last active Oct 11, 2019
This sample code is for height measurement using ultrasonic sensor and dot matrix on Maker UNO's tutorial.
View Height.ino
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define MAX_DEVICES 4
#define CLK_PIN 13
#define DATA_PIN 11
#define CS_PIN 10
#define scrollSpeed 70 // scroll speed
@suadanwar
suadanwar / plantNotification.ino
Created Oct 3, 2019
This sample code is using ESP 32 and moisture sensor. This sample code is for Watering Plant Notification using ESP32 and Blynk Tutorial.
View plantNotification.ino
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your WiFi credentials.
@suadanwar
suadanwar / raindetector.ino
Created Oct 2, 2019
This sample code is for rain detector tutorial.
View raindetector.ino
#include <Servo.h> // Include the library for the servo
#define RAIN_SENSOR A0
#define SERVO1_PIN 10
#define SERVO2_PIN 11
Servo myservo1; // Create servo object to control a servo
Servo myservo2;
int rainAdc = 0;
@suadanwar
suadanwar / calculator.ino
Created Sep 19, 2019
This sample code is for Calculator Using 4x4 Keypad and I2C LCD on Arduino.
View calculator.ino
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display
#include <Keypad.h>
const byte ROWS = 4;
const byte COLS = 4;
char keys [ROWS] [COLS] = {
{'1', '2', '3', '+'},
@suadanwar
suadanwar / DHT22Oled.ino
Created Sep 12, 2019
This sample code is to Display Temperature and Humidity on OLED using DHT22 and Arduino tutorial.
View DHT22Oled.ino
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "DHT.h"
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
@suadanwar
suadanwar / lovebox.ino
Created Aug 29, 2019
This sample code is for Chocolate Box with Touch Sensor and Arduino's tutorial.
View lovebox.ino
#include <Servo.h>
Servo myservo1;
Servo myservo2;
int touchSensorPin = 2;
int touchSensorState = 0;
void setup() {
myservo1.attach(9);
myservo2.attach(10);
@suadanwar
suadanwar / IRremote.ino
Created Aug 22, 2019
This sample code is for Controlling LED on Maker UNO (Arduino) using IR Remote's Tutorial.
View IRremote.ino
// Include IR Remote Library by Ken Shirriff
#include <IRremote.h>
// Define sensor pin
const int RECV_PIN = 4;
// Define LED pin
#define RED 8
#define GREEN 9
#define YELLOW 10
@suadanwar
suadanwar / PipiMerah_Melody.ino
Created Aug 9, 2019
This is s sample code for Si Comel Pipi Merah Melody for Maker UNO.
View PipiMerah_Melody.ino
/*
Melody
Plays a melody
circuit:
- 8 ohm speaker on digital pin 8
created 21 Jan 2010
modified 30 Aug 2011
You can’t perform that action at this time.