Smart Homes On a Budget Tinxy Smart Home devices aim at providing simple solutions to make your lives easier and better. We are headed to 2019 and slowly our way of living is evolving . Humans have become smarter and more efficient. Day to day tasks are now fulfilled with the help of latest […]
DetailsESP8266 Arduino Webserver Tutorial

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(2,3); // make RX Arduino line is pin 2, make TX Arduino line is pin 3. // This means that you need to connect the TX line from the esp to the Arduino’s […]
DetailsArduino PIR sensor

1234567891011121314151617int ledPin = 13; int pirPin = 9; int val = 0; void setup() { pinMode (ledPin,OUTPUT); pinMode (pirPin, INPUT); } void loop () { val = digitalRead(pirPin); digitalWrite(ledPin,val); if (val == 1) digitalWrite(ledPin,LOW); }
DetailsESP8266 with Arduino

ESP8266 Pin Diagram JSON file link http://arduino.esp8266.com/versions/2.4.1/package_esp8266com_index.json More ESP8266 Tutorials
DetailsSound Sensor (with LED)

12345678910111213141516171819202122232425int soundSensor = 2; int LED = 3; void setup() { pinMode (soundSensor, INPUT); pinMode (LED, OUTPUT); } void loop() { int statusSensor = digitalRead (soundSensor); if (statusSensor == 1) { digitalWrite(LED, HIGH); } else { digitalWrite(LED, LOW); } […]
DetailsLCD Tutorial

1234567891011121314151617181920212223242526272829/* * Arduino LCD Tutorial * * Crated by Dejan Nedelkovski, * www.HowToMechatronics.com * */ #include <LiquidCrystal.h> // includes the LiquidCrystal Library LiquidCrystal lcd(1, 2, 4, 5, 6, 7); // Creates an LC object. Parameters: (rs, enable, d4, d5, d6, d7) void setup() { lcd.begin(16,2); // Initializes the interface to the LCD screen, and specifies […]
DetailsRC522 RFID module with an Arduino

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134/* Simple RFID Arduino Sketch(RC522) Created by Yvan / https://Brainy-Bits.com This code is in the public domain… You can: copy it, use it, modify it, share it or just plain ignore it! Thx! The MFRC522 Library used, was created by LJOS here: https://github.com/ljos/MFRC522 The FastLED Library used, was created by focalintent here: https://github.com/FastLED/FastLED/releases */ #include […]
DetailsControl Stepper Motor With Arduino

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394#define IN1 8 #define IN2 9 #define IN3 10 #define IN4 11 int Steps = 4096; //4096 or 768 int cstep = 0; void setup() { Serial.begin(9600); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT); } void loop() { for(int x=0;x<Steps;x++) { step1(); //delay(1); delayMicroseconds(2500); […]
DetailsControl High Voltage Devices

1234567891011int in1 = 7; void setup() { pinMode(in1, OUTPUT); digitalWrite(in1, HIGH); } void loop() { digitalWrite(in1, LOW); delay(3000); digitalWrite(in1, HIGH); delay(3000); }
DetailsControl a 4 Digit 8-Segment LED Display

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262//code write by Moz for YouTube changel LogMaker360, 5-11-2016 //code belongs to this video, https://www.youtube.com/watch?v=256VQ6eVNng int digit1 = 6; //PWM Display most left display int digit2 = 9; //PWM Display second left int digit3 = 10; //PWM Display second right display int digit4 = 11; //PWM Display most right display #define DIGIT_ON LOW #define DIGIT_OFF […]
DetailsArduino 2-axis Joystick and 8×8 LED

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081#include <LedControl.h> int DIN = 12; int CS = 11; int CLK = 10; byte e[8]= {0x7C,0x7C,0x60,0x7C,0x7C,0x60,0x7C,0x7C}; byte d[8]= {0x78,0x7C,0x66,0x66,0x66,0x66,0x7C,0x78}; byte u[8]= {0x66,0x66,0x66,0x66,0x66,0x66,0x7E,0x7E}; byte c[8]= {0x7E,0x7E,0x60,0x60,0x60,0x60,0x7E,0x7E}; byte eight[8]= {0x7E,0x7E,0x66,0x7E,0x7E,0x66,0x7E,0x7E}; byte s[8]= {0x7E,0x7C,0x60,0x7C,0x3E,0x06,0x3E,0x7E}; byte dot[8]= {0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18}; byte o[8]= {0x7E,0x7E,0x66,0x66,0x66,0x66,0x7E,0x7E}; byte m[8]= […]
DetailsPhotoresistor (LDR) with LED

1234567891011121314151617181920212223242526272829303132//set pin numbers //const won’t change const int ledPin = 13; //the number of the LED pin const int ldrPin = A0; //the number of the LDR pin void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); //initialize the LED pin as an output pinMode(ldrPin, INPUT); //initialize the LDR pin as an input […]
DetailsBlinking 8 LEDs with Shift Register (74HC595)

12345678910111213141516171819202122232425262728293031323334353637383940414243444546int DS_pin = 8; int STCP_pin = 9; int SHCP_pin = 10; void setup() { pinMode(DS_pin,OUTPUT); pinMode(STCP_pin,OUTPUT); pinMode(SHCP_pin,OUTPUT); writereg(); } boolean registers[8]; void writereg() { digitalWrite(STCP_pin, LOW); for (int i = 7; i>=0; i–) { digitalWrite(SHCP_pin, LOW); digitalWrite(DS_pin, registers[i] ); digitalWrite(SHCP_pin, HIGH); } […]
DetailsDecoding the IR Receiver and Blinking LED w/ Remote Control

Code Link https://drive.google.com/drive/folders/1uCEi-qMMGYqteYoPC12x4kF-HMJz_7oL
DetailsServo Motor Control with Joystick

Using an Analog Joystick

12345678910111213141516171819202122const int SW_pin = 2; // digital pin connected to switch output const int X_pin = 0; // analog pin connected to X output const int Y_pin = 1; // analog pin connected to Y output void setup() { pinMode(SW_pin, INPUT); digitalWrite(SW_pin, HIGH); Serial.begin(115200); } void loop() { Serial.print("Switch: "); […]
DetailsDHT11 Temperature & Humidity sensor with Arduino

Using Ultrasonic sensor HC-SR04

123456789101112131415161718192021222324252627282930313233int echoPin = 10; int led = 7; void setup() { Serial.begin(9600); pinMode(led, OUTPUT); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); // put your setup code here, to run once: } void loop() { long duration, distance; digitalWrite(trigPin,HIGH); delayMicroseconds(1000); digitalWrite(trigPin, LOW); duration=pulseIn(echoPin, HIGH); […]
DetailsUsing Ultrasonic Sensor HC-SR04 with LCD

Using a Servo SG90 with Arduino

1234567891011121314151617181920212223#include <Servo.h> Servo servo; void setup() { servo.attach(8); servo.write(angle); } void loop() { // scan from 0 to 180 degrees for(angle = 10; angle < 180; angle++) { servo.write(angle); […]
DetailsAlarm activated by a TILT sensor

Sketch 1234567891011121314151617181920212223242526272829int inPin = 2; // the number of the input pin int reading; // the current reading from the input pin int GreenLedPin = 13; // the number of the Green LED output pin int RedLedPin = 12; // the number of the Red LED output pin const int SpeakerPin […]
DetailsActive and Passive Buzzer

In this tutorial we will learn what RGB LED is and how to use it with the Arduino Board.
DetailsFor Loop Iteration

There are few functions so useful that you find them everywhere. The ‘for loop’ is an example of this type. A For Loop repeats an action for a specified number of iterations, reducing the lines of code that need to be written thus making the programmers life easier. In this example we are setting out […]
DetailsIf Statement Conditionals

In the last lesson we learned about the “If statement”. The “If statement” was the perfect choice for setting up instructions to run only when certain conditions are met. “If 30 seconds has passed – stop the heating element” or “If the sensor perceives a wall – turn 180 Degrees”. This lesson will expand on […]
DetailsFade an LED

Lets expand the repertoire of output that we can use by looking at the function analogWrite(). I experienced much confusion with analogWrite(), because I suspected that it had to do with the analog pins on the Arduino. The function, however, has nothing to do with the analog pins. There are 5 pins on most Arduino […]
DetailsHow to read voltages with analogRead()

In the last lesson you learned about using the analogRead() function to collect data from a sensor connected to one of the Arduino’ analog pins. The range of data we received from the analogRead() function, was mapped from 0 to 1023. What if we wanted to know the actual voltage being applied at the pin? […]
DetailsanalogRead() and the Serial Port

Knowing if something is on or off can be extremely useful, but often you will want to know more. How bright is the light? How fast is the satellite moving? These types of answers are often analog – they cover a large range of values, not just on or off. The Arduino handles analogs inputs […]
DetailsdigitalRead() and the Serial Port

As simple as it may seem, knowing when something is either on or off can be a great tool to designing something useful. Answers to the following questions are what this lesson plans to tackle: Is a button being pressed? Has a switch been turned on? What is my on/off sensor status? When you can […]
DetailsHow to Blink an LED

The first program you usually write when learning a new programming language is called “Hello World”. The program outputs those words as its only function. When learning to program micro-controllers such as the Arduino, the equivalent of “Hello World” is a program that blinks an LED. Guess what it is called – Blink. You Will […]
DetailsArduino IDE and Sketch Overview

IDE stands for Integrated Development Environment. Pretty fancy sounding, and should make you feel smart anytime you use it. The IDE is a text editor like program that allows you to write computer code for your Arduino board. When you open up the Arduino program, you are opening the IDE. It is intentionally stream lined […]
DetailsArduino Hardware Overview

This tutorial covers the hardware on the Arduino board that you will likely use as you work on projects. It is by no means a comprehensive study of the physical layout, but enough to make you familiar with the parts you will be using.
DetailsInstall the Arduino IDE for PC

We are going to download, install, and set some preferences for the Arduino IDE on a PC. I’m running this on a computer that is a Windows 8 machine, maybe like 8.1 or something like that. Windows 10 is just coming out, and maybe by the time you are reading this, it is Windows 2000, […]
Details