Last active
October 16, 2019 05:02
-
-
Save isaiah7p/b0586b3353e01105f2eaf911c09fadc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reference Links | |
https://www.arduino.cc/reference/en/ | |
1 ) Analog Signals | |
Read / Write | |
> Variable Resistors | |
> Led output < working with brightness | |
https://www.arduino.cc/reference/en/ | |
analogRead() | |
analogWrite() | |
Accelerometer > 3 analog signals . | |
2) Digital Signal Read and Write | |
> Led On and Off as output | |
> Switch read as input | |
digitalRead() | |
pinMode() | |
> DHT 11 sensor - library | |
Google for "dht arduino library" | |
https://github.com/adafruit/DHT-sensor-library | |
https://github.com/adafruit/Adafruit_Sensor | |
3) I2C based Signal | |
> Sensor library <mpu6050> | |
Accelerometer Value | |
Gyroscope angles | |
>> https://github.com/jarzebski/Arduino-MPU6050 | |
> LCD display i2c based . | |
https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | |
4) SPI Based Signals | |
> Nokia 5110 | |
https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library | |
5) Serial based | |
> sim based | |
https://www.elecrow.com/wiki/images/2/20/SIM800_Series_AT_Command_Manual_V1.09.pdf | |
https://github.com/cristiansteib/Sim800l | |
> GPS based Comunication . | |
https://github.com/mikalhart/TinyGPS | |
> Bluetooth Based - BLE Vs Bluetooth v4 | |
6) PWM based | |
> Read data from Analog pins and write the value to Digital Pins . | |
--------------------------------------------------------------------------- | |
7) Virtual Pins | |
> Some Virtual Values from Cloud and retrive them on Device . | |
----------------------------------------------------------------------------- | |
8) Servo Motors : | |
> 0 -180 degress | |
9) Relays <Control Electrical Appliances > | |
< digitalWrite() > | |
10) Solenoids : | |
Door lock | |
Control with relay and seperate power supply | |
Motor Driver | |
11) Water Flow meter : | |
no of litres of fluid which has passed through it | |
<Interrupt based > | |
https://github.com/sekdiy/FlowMeter | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/* Sweep
by BARRAGAN http://barraganstudio.com
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo myservo,myservo1,myservo2; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(7); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(50); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(10); // waits 15ms for the servo to reach the position
}
}