Skip to content

Instantly share code, notes, and snippets.

@atifahsuad
atifahsuad / selfie.py
Last active Nov 1, 2018
This example code is for Raspberry Pi Selfie Tutorial.
View selfie.py
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 Nov 1, 2018
This example code is for Raspberry Pi Selfie Tutorial.
View selfie.py
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 Oct 25, 2018
This example code is for Raspberry Pi with PIR Sensor's Tutorial.
View RPi_PIR
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 Oct 18, 2018
This example code is for ARDUINO BLYNK LESSON 4: TIMER's Tutorial.
View IoT_Timer
/*************************************************************
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 Oct 11, 2018
This example code is for ARDUINO BLYNK LESSON 3: Servo's Tutorial.
View Blynk_Lesson_3.ino
/*************************************************************
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 Oct 4, 2018
This example code is for ARDUINO BLYNK LESSON 2: Notification's Tutorial.
View notification.ino
/*************************************************************
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 Sep 27, 2018
This example code is for ARDUINO BLYNK LESSON 1: LED's Tutorial.
View Blynk_Lesson_1.ino
/*************************************************************
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
View raindetector
/*
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 Sep 13, 2018
This example code is for Auto Gate's Tutorial.
View AutoGate.ino
/*
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 Sep 6, 2018
This example code is for Flame Detector's Tutorial.
View flame.ino
/*
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