Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@atifahsuad
atifahsuad / selfie.py
Last active September 10, 2021 03:29
This example code is for Raspberry Pi Selfie Tutorial.
import RPi.GPIO as GPIO
from picamera import PiCamera
import time
from time import sleep
camera = PiCamera()
Button = 20
Buzzer = 26
GPIO.setwarnings(False)
@atifahsuad
atifahsuad / selfie.py
Created November 1, 2018 04:25
This example code is for Raspberry Pi Selfie Tutorial.
import RPi.GPIO as GPIO
from picamera import PiCamera
import time
from time import sleep
camera = PiCamera()
Button = 20
Buzzer = 26
GPIO.setwarnings(False)
@atifahsuad
atifahsuad / RPi_PIR
Created October 25, 2018 23:46
This example code is for Raspberry Pi with PIR Sensor's Tutorial.
import RPi.GPIO as GPIO
import time
Buzzer = 26
PIR = 23
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(PIR, GPIO.IN)
@atifahsuad
atifahsuad / IoT_Timer
Created October 18, 2018 06:07
This example code is for ARDUINO BLYNK LESSON 4: TIMER's Tutorial.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
@atifahsuad
atifahsuad / Blynk_Lesson_3.ino
Created October 11, 2018 03:44
This example code is for ARDUINO BLYNK LESSON 3: Servo's Tutorial.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
@atifahsuad
atifahsuad / notification.ino
Created October 4, 2018 03:50
This example code is for ARDUINO BLYNK LESSON 2: Notification's Tutorial.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
@atifahsuad
atifahsuad / Blynk_Lesson_1.ino
Created September 27, 2018 04:07
This example code is for ARDUINO BLYNK LESSON 1: LED's Tutorial.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
/*
This example code is for rain detector's tutorial.
Product page:
Maker UNO : https://www.cytron.io/p-maker-uno
Rain Sensor Module : https://www.cytron.io/p-sn-rain-mod
TowerPro SG90 Micro Servo : https://www.cytron.io/p-sg90
Created by:
20/09/18 Idris Zainal Abidin and Suad Anwar, Cytron Technologies
*/
@atifahsuad
atifahsuad / AutoGate.ino
Created September 13, 2018 06:48
This example code is for Auto Gate's Tutorial.
/*
This example code is for Auto Gate tutorial.
Product page:
Maker UNO : https://www.cytron.io/p-maker-uno
Flame Sensor : https://www.cytron.io/p-sn-flame-mod
Created by:
13/09/18 Suad Anwar, Cytron Technologies
*/
#include <Servo.h> // Include the library for the servo
@atifahsuad
atifahsuad / flame.ino
Created September 6, 2018 04:18
This example code is for Flame Detector's Tutorial.
/*
This example code is for flame detector's tutorial.
Product page:
Maker UNO : https://www.cytron.io/p-maker-uno
Flame Sensor : https://www.cytron.io/p-sn-flame-mod
Created by:
6/09/18 Suad Anwar, Cytron Technologies
*/
int sensorPin = A0; // Input pin for the Flame Sensor
int sensorValue = 0; // Variable to store the value coming from the flame sensor