OpenGatewayTamil is a blog site designed for users to download remote applications and access a variety of general content. It is easy to navigate.
Monday, December 30, 2024
Saturday, November 23, 2024
Arduino IDE
Arduino Speed Detection System
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); //Enter your address of your I2C Module it will be different for you
int timer1;
int timer2;
float Time;
int flag1 = 0;
int flag2 = 0;
float distance = 5.0;
float speed;
int ir_s1 = 34;
int ir_s2 = 35;
int buzzer = 13;
void setup(){
Serial.begin(115200);
pinMode(ir_s1, INPUT);
pinMode(ir_s2, INPUT);
pinMode(buzzer, OUTPUT);
lcd.begin();
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" Welcome To ");
lcd.setCursor(0,1);
lcd.print("Harshan Project");
delay(2000);
lcd.clear();
}
void loop() {
if(digitalRead (ir_s1) == LOW && flag1==0){timer1 = millis(); flag1=1;}
if(digitalRead (ir_s2) == LOW && flag2==0){timer2 = millis(); flag2=1;}
if (flag1==1 && flag2==1){
if(timer1 > timer2){Time = timer1 - timer2;}
else if(timer2 > timer1){Time = timer2 - timer1;}
Time=Time/1000;//convert millisecond to second
speed=(distance/Time);//v=d/t
speed=speed*3600;//multiply by seconds per hr
speed=speed/1000;//division by meters per Km
}
if(speed==0){
lcd.setCursor(0, 1);
if(flag1==0 && flag2==0){lcd.print("No car detected");}
else{lcd.print("Searching... ");}
}
else{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Speed:");
lcd.print(speed,1);
lcd.print("Km/Hr ");
lcd.setCursor(0, 1);
if(speed > 50){lcd.print(" Over Speeding "); digitalWrite(buzzer, HIGH);}
else{lcd.print(" Normal Speed "); }
delay(3000);
digitalWrite(buzzer, LOW);
speed = 0;
flag1 = 0;
flag2 = 0;
}
}
Project Details
- BreadBoard and Wires :Click Here to Purchase
- NODEMCU ESP32 :Click Here to Purchase
- IR sensor :Click Here to Purchase
- 16X2 and I2C module :Click Here to Purchase
- I2C MODULE :Click Here to Purchase
- Buzzer :Click Here to Purchase
Watch the Project Video
Wednesday, December 27, 2023
Saturday, December 9, 2023
RUBIK'S QUBE SOLVE APP LINK
What is a Rubik's Cube?
Structure of a Rubik's Cube
- Cubelets:
- Center Cubelets: 6 cubelets, one on each face, that never move relative to each other. They determine the color of each side.
- Edge Cubelets: 12 cubelets located on the edges of the cube with two visible colors.
- Corner Cubelets: 8 cubelets located at the corners of the cube with three visible colors.
- Core: Inside the Rubik's Cube is a hidden central mechanism that allows the cubelets to rotate while keeping the center cubelets fixed.
Types of Rubik's Cubes
- Standard 3x3 Cube: The classic version with six faces and 54 stickers (9 per face).
- Other Variants:
- 2x2 Cube: Simplified version with only corner pieces.
- 4x4 Cube: Larger and more complex, featuring additional challenges like parity errors.
- 5x5 Cube: Even more complex than the 4x4 cube.
- Speed Cubes: Specially designed cubes with smoother mechanisms for faster solving.
- Non-Cubic Variants:
- Pyraminx: A pyramid-shaped puzzle.
- Megaminx: A dodecahedron-shaped puzzle with 12 faces.
- Mirror Cube: A shape-mod puzzle where the size of the pieces, not color, determines the solved state.
History of the Rubik's Cube
- Invention: Ernő Rubik originally created the cube in 1974 as a teaching tool to help explain three-dimensional geometry.
- Early Name: It was initially called the "Magic Cube" before being renamed the "Rubik's Cube" in 1980.
- Popularity Explosion: By the early 1980s, the Rubik's Cube became a global phenomenon. It was named “Toy of the Year” in 1980 and 1981.
- World Records:
- Fastest Solve: 3.47 seconds (Yusheng Du, 2018).
- Blindfolded Solve: Solving the cube without looking after studying it briefly.
- Largest Solve: A 33x33 cube was created and solved virtually.
Mathematics Behind the Cube
- Combinations: The Rubik's Cube has 43 quintillion possible configurations. Every configuration can be solved in 20 moves or fewer (known as "God's Number").
- Algorithms: Solving the Rubik's Cube requires understanding algorithms, which are sequences of moves designed to manipulate specific pieces without disrupting others.
- Group Theory: Mathematically, the Rubik's Cube is an example of group theory, a branch of abstract algebra.
Speedcubing
- Techniques:
- CFOP Method: Cross, F2L, OLL, PLL.
- Roux Method: Focuses on solving blocks instead of layers.
- ZZ Method: Reduces rotations during solving.
- World Cube Association (WCA): Organizes official competitions for solving Rubik's Cube puzzles.
Fun Facts
- Cultural Impact: The Rubik's Cube has appeared in movies, TV shows, and artwork, symbolizing intelligence and problem-solving.
- Educational Tool: Widely used to teach problem-solving, algorithms, and spatial reasoning.
- Art and Creativity: Some artists create mosaic art by arranging hundreds of Rubik's Cubes in specific patterns.
Benefits of Solving the Rubik's Cube
- Cognitive Skills: Improves memory, concentration, and problem-solving skills.
- Patience and Perseverance: Teaches the value of persistence and logical thinking.
- Spatial Awareness: Enhances spatial and visual understanding.
How to Solve a Rubik's Cube (Beginner's Guide)
- Solve the White Cross.
- Complete the White Face (First Layer).
- Solve the Middle Layer Edges.
- Create the Yellow Cross.
- Align the Yellow Face.
- Position the Yellow Corners.
- Permute the Yellow Edges.
Thursday, October 12, 2023
Bits & Bytes, KB,MB,GB and TB
Bits & Bytes
Description
1.Bit (Binary Digit):
A "bit" is the smallest unit of digital information, representing the fundamental building block of all digital data. The term "bit" is a contraction of "binary digit," and it can have one of two values: 0 or 1. Bits are used to represent and process data in computers and other digital devices.- A "bit" is the smallest unit of digital information.
- It can represent one of two values: 0 or 1.
- It is the basic building block for all digital data.
- The term "bit" is short for "binary digit."
- Representation: Bits are typically used to represent information in a binary form, which is a base-2 numbering system. In binary, 0 represents the absence of a signal or "off," while 1 represents the presence of a signal or "on."
- Data Storage: Bits are used to store and encode various types of data, including text, numbers, images, audio, and more. By combining multiple bits, you can represent more complex data.
- Digital Processing: Computers and digital devices perform operations on bits, such as arithmetic calculations, logical comparisons, and data manipulation. The manipulation of bits allows for complex computations and data transformations.
- Data Compression: Bits play a crucial role in data compression techniques, where redundant or less important bits are removed to reduce the size of files or data streams without significant loss of information.
- Data Transmission: In data transmission and communication systems, bits are used to convey information over networks, cables, or wireless channels. Data is transmitted as a sequence of bits, and communication protocols ensure that the bits are transmitted and received accurately.
- Information Encoding: Bits are used to encode characters in character encoding schemes like ASCII and Unicode. Each character is assigned a unique bit pattern, allowing computers to represent text.
- Encryption: Bits are essential in encryption algorithms, where they are manipulated to secure data by making it unreadable without the proper decryption key.
Bit and Byte Converter
2.Byte:
A "byte" is a group of 8 bits, and it represents a larger and more meaningful unit of digital information in computing. Bytes are fundamental for organizing, storing, and transmitting data. Here's a brief explanation of bytes and their significance:- A "byte" is a group of 8 bits.
- It represents a larger unit of data and can store 256 different values (2^8).
- Bytes are often used to represent characters in text (e.g., in ASCII or Unicode encoding), as well as other data types like integers and colors.
- Bytes are a standard unit of measurement for file sizes, data transfer rates, and memory capacity in computing.
- Data Unit: Bytes are used to group and manage information in a more practical and convenient way compared to individual bits. A byte consists of 8 bits, allowing it to represent 256 different values (2^8).
- Encoding: Bytes are commonly used to encode characters in text, including letters, numbers, punctuation marks, and control characters. Character encoding standards like ASCII and Unicode assign specific byte sequences to represent characters. This makes it possible to display and process text on computers and digital devices.
- Storage: In computer memory and storage devices, data is organized and addressed in units of bytes. Files, programs, and data are measured in bytes, kilobytes (KB), megabytes (MB), gigabytes (GB), and so on. For example, a typical text document may be several kilobytes or megabytes in size.
- Addressing: Bytes are often used to specify memory addresses in computer systems. Each byte in memory is assigned a unique address, which allows the computer to access and manipulate data stored in memory.
- Transfer: Bytes are used in data transmission and communication protocols. When data is sent over networks or between devices, it is typically broken down into bytes, which are transmitted and reassembled at the destination.
- Representation: In multimedia, bytes are used to represent images, audio, and video data. Various file formats, such as JPEG for images or MP3 for audio, store data in bytes. Each byte holds a piece of the data, and the combination of bytes recreates the multimedia content.
- Processing: Bytes serve as a common unit for data manipulation and processing in computer programs. Data can be read from files or received from input devices in byte-sized chunks, making it easier to work with and process.
In summary, bytes are a fundamental unit for organizing and representing data in computing. They are integral to data storage, memory addressing, character encoding, and data transfer, making them a critical part of how computers and digital systems handle and manage information.
Bits and Bytes table
| Bits (b) | Bytes (B) | Data Size |
|---|---|---|
| 1 | 1/8 | - |
| 8 | 1 | A single character |
| 16 | 2 | A short integer |
| 32 | 4 | A standard integer |
| 64 | 8 | A double-precision float |
| 1024 | 128 | A small image |
| 8192 | 1024 | A short document |
| 1048576 | 131072 | A megabyte (MB) |
| 8388608 | 1048576 | A gigabyte (GB) |
| 1073741824 | 134217728 | A terabyte (TB) |
| Bytes(KB) | Megabytes(MB) | Gigabytes(BG) | Terabytes(TB) |
|---|---|---|---|
| 1,024 KB | 1 MB | 0.001 GB | 0.000001 TB |
| 10,240 KB | 10 MB | 0.01 GB | 0.00001 TB |
| 102,400 KB | 100 MB | 0.1 GB | 0.0001 TB |
| 1,024,000 KB | 1,000 MB | 1 GB | 0.001 TB |
| 10,240,000 KB | 10,000 MB | 10 GB | 0.01 TB |
| 102,400,000 KB | 100,000 MB | 100 GB | 0.1 TB |
| 1,024,000,000 KB | 1,000,000 MB | 1,000 GB | 1 TB |
| 10,240,000,000 KB | 10,000,000 MB | 10,000 GB | 10 TB |
| 102,400,000,000 KB | 100,000,000 MB | 100,000 GB | 100 TB |
| 1,024,000,000,000 KB | 1,000,000,000 MB | 1,000,000 GB | 1,000 TB |
Use of KB to MB,GB and TB Convertor
KB to MB, GB, TB Converter
- Size Comparison: When you're dealing with digital files, such as documents, images, or videos, you might want to know how large a file is in terms of megabytes. For example, if you have a file that's 5,000 KB, converting it to megabytes (5 MB) provides a more intuitive understanding of its size.
- and Storage: In computing, memory and storage capacities are often measured in both kilobytes and megabytes. A converter can help you understand and work with these sizes more effectively. For example, if you have 32,768 KB of RAM, you might want to know that this is equivalent to 32 MB.
- Transfer: When transferring files over the internet or other networks, knowing the size of the data in megabytes can be essential. Many network providers measure data usage in megabytes, and knowing the equivalent megabyte size of your data can help you manage your network usage.
- Software and Applications: Some software or applications may specify system requirements or file sizes in both kilobytes and megabytes. If you're installing or managing software, it's useful to understand the size requirements in terms of megabytes.
- Data Management: When you need to optimize storage or track disk usage on your computer or server, it's crucial to have a clear understanding of the sizes of files and data in terms of megabytes, as this is a more common unit for storage allocation.
- Communication: When discussing data sizes with others, it's often more convenient to express sizes in megabytes rather than kilobytes, as it provides a clearer and more human-readable representation of the data.
ASCII
ASCII
Description
Here's a brief overview of how ASCII works:
- Character Encoding: ASCII represents text and control characters using a 7-bit binary code. Each character is assigned a unique 7-bit binary number (ranging from 0000000 to 1111111). These binary values can be converted into decimal, hexadecimal, or octal representations for human-readable notation.
- Character Assignments: ASCII includes 128 character assignments. These characters cover a range of printable characters (letters, numbers, punctuation, and symbols) as well as control characters. The first 32 characters are control characters used for various formatting and communication functions, such as line feed, carriage return, and escape.
- Uniformity: One of the key design principles of ASCII was to ensure uniformity across different computer systems and communication devices. This means that an ASCII character, such as the letter 'A' (represented by 65 in decimal or 1000001 in binary), would have the same meaning and representation on any system that adhered to the ASCII standard.
- Compatibility: ASCII was designed to be backward compatible with earlier character codes, making it relatively easy to transition from older codes to ASCII. For example, many of the characters from the widely used telegraph code (Morse code) were included in the ASCII standard.
- Practical Use: ASCII was initially developed for telegraph communication but soon found widespread use in early computer systems. It allowed computers and devices from different manufacturers to communicate and exchange text data reliably.
Alphabet ASCII Table
| Letter | ASCII Code | Binary value | Letter | ASCII Code | Binary value |
|---|---|---|---|---|---|
| A | 65 | 01000001 | a | 97 | 01100001 |
| B | 66 | 01000010 | b | 98 | 01100010 |
| C | 67 | 01000011 | c | 99 | 01100011 |
| D | 68 | 01000100 | d | 100 | 01100100 |
| E | 69 | 01000101 | e | 101 | 01100101 |
| F | 70 | 01000110 | f | 102 | 01100110 |
| G | 71 | 01000111 | g | 103 | 01100111 |
| H | 72 | 01001000 | h | 104 | 01101000 |
| I | 73 | 01001001 | i | 105 | 01101001 |
| J | 74 | 01001010 | j | 106 | 01101010 |
| K | 75 | 01001011 | k | 107 | 01101011 |
| L | 76 | 01001100 | l | 108 | 01101100 |
| M | 77 | 01001101 | m | 109 | 01101101 |
| N | 78 | 01001110 | n | 110 | 01101110 |
| O | 79 | 01001111 | o | 111 | 01101111 |
| P | 80 | 01010000 | p | 112 | 01110000 |
| Q | 81 | 01010001 | q | 113 | 01110001 |
| R | 82 | 01010010 | r | 114 | 01110010 |
| S | 83 | 01010011 | s | 115 | 01110011 |
| T | 84 | 01010100 | t | 116 | 01110100 |
| U | 85 | 01010101 | u | 117 | 01110101 |
| V | 86 | 01010110 | v | 118 | 01110110 |
| W | 87 | 01010111 | w | 119 | 01110111 |
| X | 88 | 01011000 | x | 120 | 01111000 |
| Y | 89 | 01011001 | y | 121 | 01111001 |
| Z | 90 | 01011010 | z | 122 | 01111010 |
Why use ASCII Codes
ASCII codes are used for several important reasons:
- Universal Compatibility: ASCII provides a standardized way to represent characters and control codes, ensuring that data can be exchanged between different computer systems and communication devices with ease. This universal compatibility is particularly important for data transmission and communication protocols.
- Simplicity: ASCII is a simple character encoding system, with each character represented by a 7-bit binary code. This simplicity makes it easy to work with, especially in early computing systems. It allows for efficient data storage and processing.
- Interoperability: ASCII is widely supported and understood by software, hardware, and programming languages. This makes it a common choice for representing text in a format that various applications and systems can process.
- Support: Many legacy systems and devices still use ASCII for data communication. As a result, knowledge of ASCII is essential for maintaining and interfacing with older technology. Basic Text Representation: ASCII covers the basic Latin alphabet, numerals, punctuation marks, and a range of control characters. For applications that only require simple text representation, ASCII is a lightweight and efficient choice.
- with Other Standards: Many other character encoding standards and protocols, such as UTF-8 (which is backward compatible with ASCII), use ASCII as their foundation. This means that ASCII is an integral part of more comprehensive character encoding systems.
- Network and Communication Protocols: Many network protocols and data formats, such as HTTP, SMTP, and plain text email, rely on ASCII for encoding and transmitting text data. This ensures that data can be reliably exchanged over the internet and other communication networks.
While ASCII has been fundamental in the history of computing and data communication, it's important to note that it primarily represents characters from the English language. As the need for character representation in other languages and scripts grew, more comprehensive character encoding standards like Unicode were developed to accommodate a wider range of characters. Nonetheless, ASCII remains relevant and widely used in various computing contexts, particularly where basic text representation and compatibility with legacy systems are essential.
FULL ASCII TABLE
| decimal | Char | decimal | Char | decimal | Char | decimal | Char |
|---|---|---|---|---|---|---|---|
| 0 | NUL-(null) | 32 | SPACE | 64 | @ | 96 | ` |
| 1 | SOH-(start of heading) | 33 | ! | 65 | A | 97 | a |
| 2 | STX-(start of text) | 34 | " | 66 | B | 98 | b |
| 3 | ETX-(end of text) | 35 | # | 67 | C | 99 | c |
| 4 | EOT-(end of transmissi | 36 | $ | 68 | D | 100 | d |
| 5 | ENQ-(enquiry) | 37 | % | 69 | E | 101 | e |
| 6 | ACK-(acknowledge) | 38 | & | 70 | F | 102 | f |
| 7 | BEL-(bell) | 39 | ' | 71 | G | 103 | g |
| 8 | BS-(backspace) | 40 | ( | 72 | H | 104 | h |
| 9 | TAB-(horizontal tab) | 41 | ) | 73 | I | 105 | i |
| 10 | LF-(NL line feed, new | 42 | * | 74 | J | 106 | j |
| 11 | VT-(vertical tab) | 43 | + | 75 | K | 107 | k |
| 12 | FF-(NP form feed, new | 44 | , | 76 | L | 108 | l |
| 13 | CR-(carriage return) | 45 | - | 77 | M | 109 | m |
| 14 | SO-(shift out) | 46 | . | 78 | N | 110 | n |
| 15 | SI-(shift in) | 47 | / | 79 | O | 111 | o |
| 16 | DLE-(data link escape) | 48 | 0 | 80 | P | 112 | p |
| 17 | DC1-(device control 1) | 49 | 1 | 81 | Q | 113 | q |
| 18 | DC2-(device control 2) | 50 | 2 | 82 | R | 114 | r |
| 19 | DC3-(device control 3) | 51 | 3 | 83 | S | 115 | s |
| 20 | DC4-(device control 4) | 52 | 4 | 84 | T | 116 | t |
| 21 | NAK-(negative acknowle | 53 | 5 | 85 | U | 117 | u |
| 22 | SYN-(synchronous idle) | 54 | 6 | 86 | V | 118 | v |
| 23 | ETB-(end of trans. blo | 55 | 7 | 87 | W | 119 | w |
| 24 | CAN-(cancel) | 56 | 8 | 88 | X | 120 | x |
| 25 | EM-(end of medium) | 57 | 9 | 89 | Y | 121 | y |
| 26 | SUB-(substitute) | 58 | : | 90 | Z | 122 | z |
| 27 | ESC-(escape) | 59 | ; | 91 | [ | 123 | { |
| 28 | FS-(file separator) | 60 | << | 92 | \ | 124 | | |
| 29 | GS-(group separator) | 61 | = | 93 | ] | 125 | } |
| 30 | RS-(record separator) | 62 | > | 94 | ^ | 126 | ~ |
| 31 | US-(unit separator) | 63 | ? | 95 | _ | 127 | DEL |
Tuesday, May 18, 2021
Subscribe to:
Posts (Atom)
Popular Posts
-
MI REMOTE MI REMOTE MI REMOTE Subscribe to my channel! NOTE : UNISTALL PREVIO...
-
Mobile Remote Everywhere Adding Remote Control Functionality to Your Mobile App ...
-
New Features of AI: Transforming the Future New Features of AI: ...

