Skip to content

Instantly share code, notes, and snippets.

View salmanfarisvp's full-sized avatar
🛠️
Start where you are. Use what you have. Do what you can.

Salman Faris salmanfarisvp

🛠️
Start where you are. Use what you have. Do what you can.
View GitHub Profile
/*
Neo Clock
*/
#include <Adafruit_NeoPixel.h>
#include <TimeLib.h>
#include <Wire.h>
#include <DS1307RTC.h>
@salmanfarisvp
salmanfarisvp / video.sh
Created December 1, 2018 13:52
Raspberry Pi video Looping Script
#!/bin/sh
setterm -cursor off
VIDEOPATH="/home/pi/videoloop/"
SERVICE="omxplayer"
while true; do
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
sleep 1;
/*
* Main.c
*
* Created: 3/19/2018 9.11.32 PM
* Author : Salman Faris
*/
#define F_CPU 20000000UL //Clock 20-Mhz
#include <avr/io.h>
Commands Description Type Reply Set/Execute Parameters Examples
AT generic cmd basic OK - - -
AT+RST Resets the mod basic Module info - - AT+RST
AT+GMR returns the current Fw version basic Fw Version - - -
AT+CWMODE Wifi Mode Set Wifi Mode SET AT+CWMODE=<Mode> Mode 1=Sta, 2=AP, 3=both AT+CWMODE=2
AT+CWLAP Lists all available AP Wifi list of AP AT+CWLAP - AT+CWLAP
AT+CWJAP Joins an Access Point Wifi OK AT+CWJAP=<ssid>,<pwd> Your Wifi SSID and Password AT+CWJAP=<test>,<123456789>
AT+CWQAP Quits
@salmanfarisvp
salmanfarisvp / SEBi
Created March 10, 2017 04:50
Smart Electric Waste Bin
#include <Servo.h>
int ir;
Servo myservo;
void setup()
{
ir = A1; //IR Connected to A1
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software< /span>
@salmanfarisvp
salmanfarisvp / DHT.ino
Created January 6, 2017 17:19
Arduino Compatable Temprature and Humidit Sensor Based on DHT11/22
#include <DHT.h>;
//Constants
#define DHTPIN A1 // what pin we're connected to
#define DHTTYPE DHT11 // DHT 22 (AM2302)
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino
//Variables
int chk;