Wednesday, December 26, 2018

রেজিস্টার কি জিনিষ?

রেজিস্টার হচ্ছে মাইক্রকন্ট্রলারের ভিতরের একটি জায়গা যেখানে কোন কিছু লিখা যায় এবং যেখান থেকে কোন কিছু পড়া যায়।
এটাকে একটুকরো কাগজ হিসেবে চিন্তা করতে পারি যেটাতে কোন কিছু লিখতে পারি আবার কিছু লিখা থাকলে সেটা আমরা পড়তেও পারি ।
উদাহরনঃ
Option register,
Status register,
TMR0 register,
TRISA register,
PORTA register,
INTCON register.
In details

Non Return valve characteristics


Non Return valve:
1. Allow flow in one direction only
2. Self closing
3. Low pressure drop when open
4. Not suitable for reciprocating pump discharge.

Plug valve characteristics



Plug valve:
1. Suitable for regulating flow
2. Tight shut-off
3. Quick opening
4. High pressure drop when open.

Needle valve Characteristics



Needle valve:
1. Suitable for regulating flow
2. Fine control in small diameter piping
3. Tight shut-off
4. Used for clean fluids that have low flows
5. High pressure drop when open

Diaphragm valve characterics



Diaphragm valve:
1. Suitable for On/Off or narrow range throttling control
2. Tight shut-off
3. Low pressure drop when open
4. used for corrosive fluids.

Gate valve characteristics

Gate valve:
1. Tight Shut-off
2. Low pressure drop when open
3. Not suitable for flow regulation, only suitable for On or Off.

Ball valve characteristics



Ball valve:
                1. Tight shut-off
                2. Low pressure drop when open
                3. Not suitable for regulating flow except in some specialized ball valves
                4. Used for gas, liquids etc

Butterfly valve characteristics

Butterfly valve:
1. Suitable for regulating flow
2. Not suitable for tight shut-off
3. Low pressure drop when open
4. Used for low line pressure and large pipe diameter.
5.  Wide range of service: gas, liquids etc.



Glove valve characteristics





Globe valve:
                 1. Suitable for regulating flow
                  2. Tight shut-off
                  3. Pressure drop when open
                  4. Used for high pressure clean fluids

Sunday, December 23, 2018

পড়ন্ত বস্তুর সুত্রঃ

           প্রথম সুত্রঃ স্থির অবস্থান ও একই উচ্চতা থেকে বিনা বাধায় পড়ন্ত সকল বস্তু সমান সময়ে সমান পথ অতিক্রম করবে।
           দ্বিতীয় সুত্রঃ স্থির অবস্থান থেকে বিনা বাধায় পড়ন্ত বস্তুর নির্দিষ্ট সময়ে(t) প্রাপ্ত বেগ(v) ঐ সময়ের সমানুপাতিক।
           তৃতীয় সুত্রঃ স্থির অবস্থান থেকে বিনা বাধায় পড়ন্ত কোন বস্তু নির্দিষ্ট সময়ে(t) যে দূরত্ব(h) অতিক্রম করে তা ঐ সময়ের বর্গের সমানুপাতিক। 

Saturday, November 10, 2018

LM35 interfacing with PIC16F877A

পারদ থার্মোমিটার এর দিন প্রায় শেষ, আর সেই জায়গা টি দখল করে নিচ্ছে ডিজিটাল থার্মোমিটার । বাজারে বিভিন্ন রকমের ডিজিটাল থার্মোমিটার পাওয়া যায়। কিন্তু নিজের বানানো থার্মোমিটার ড্রয়িঙের দেয়ালে ঝুলবে এর অনুভূতিটায় একটু আলাদা এমন চিন্তা থেকেই আজকের এই পোস্ট।
যা লাগবেঃ
১. মাইক্রকন্ট্রলার(PIC16F877A)
২. ডিসপ্লে(2x16)
৩. টেমপারেচার সেন্সর(LM35)
৪. ক্রিস্টাল(8MHz)
৫. ভেরিয়েবল রেসিস্টর

The MikroC code:
............................................................... ...........................................................................................
//pic46f877a
// temperature sensor LM35
// LCD module connections
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;

sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
// End LCD module connections
void main()
{
  float reading;
  int temp;
  char dis[15];
  trisa.f0 = 1;
  ADC_Init();
  Lcd_Init();                                          // Initialize LCD
  Lcd_Cmd(_LCD_CLEAR);               // Clear display
  Lcd_Cmd(_LCD_CURSOR_OFF);          // Cursor off
  Lcd_Out(1,1," ..TEMPERATURE...");     // Write text in first row first column
  ADCON0 = 0b10000000;
while(1)
{
      reading = ADC_Read(0);               // at (0 to 5V).....>> (0 to 1025)
      temp = (reading/205)*100;           // reading converting to temperature
      IntToStr(temp,dis);                        //We can get text representation of numerical value
      Lcd_Out(2,3,dis);
      Lcd_Out_Cp(" C");
}
}
.................................................................................................................................................................

MikroC এবং Proteus file ডাউনলোড করে তাত্ক্ষণিক এই প্রজেক্টটি বানিয়ে ফেলার জন্যে নিচে লিঙ্ক দেওয়া হলো।
Source code for MikroC, Proteus file

Sunday, November 4, 2018

পদার্থ বিজ্ঞানের ছোট খাটো অতি পরিচিত কিছু সুত্র

অনেক দিন আগে পড়েছিলাম আবছা আবছা মনে পড়ে, চোখ বন্ধ করলে পদার্থ বিজ্ঞান বই এর যে পাতাগুলো চক্ষু পর্দায় ভেসে উঠে তার লেখা গুলোও ভীষণ অস্পষ্ট।নিউটনের মহাকর্ষ সুত্রটি ঠিক ঠাক বলতে পারলেও গতির সূত্রগুলো গুছিয়ে বলতে পারি না।
এই সব বিষয় চিন্তা করেই আজকের পোস্ট...
নিউটনের মহাকর্ষ সুত্রঃ
    "এই মহাবিশ্বের প্রতিটি বস্তুকণা একে অপরকে নিজের দিকে আকর্ষণ করে, এই আকর্ষণ বলের মান বস্তুদুটির ভরের গুনফলের সমানুপাতিক এবং দূরত্বের বর্গের ব্যাস্তানুপাতিক "

নিউটনের গতির সুত্রঃ
           প্রথম সুত্রঃ "বল প্রয়োগ না করলে স্থির বস্থু স্থির থাকবে এবং সমবেগে চলতে থাকা বস্তু সমবেগে চলতে থাকবে"
           দ্বিতীয় সুত্রঃ "বস্তুর ভরবেগের পরিবর্তনের হার তার উপর প্রযুক্ত বলের সমানুপাতিক এবং বল যে দিকে প্রয়োগ করা হয় বস্তুর ভরবেগের পরিবর্তন সে দিকেই ঘটে"
           তৃতীয় সুত্রঃ "প্রত্যেক ক্রিয়ার সমান ও বিপরীত প্রতিক্রিয়া আছে" অর্থাত যখন একটি বস্তু অন্য একটি বস্তুর উপর বল প্রয়োগ করে তখন সেই বস্তুটিও প্রথম বস্তুটির উপর বিপরীত দিকে সমান বল প্রয়োগ করে। 

আর্কিমিডিসের সুত্রঃ 

পড়ন্ত বস্তুর সুত্রঃ
           প্রথম সুত্রঃ স্থির অবস্থান ও একই উচ্চতা থেকে বিনা বাধায় পড়ন্ত সকল বস্তু সমান সময়ে সমান পথ অতিক্রম করবে।
           দ্বিতীয় সুত্রঃ স্থির অবস্থান থেকে বিনা বাধায় পড়ন্ত বস্তুর নির্দিষ্ট সময়ে(t) প্রাপ্ত বেগ(v) ঐ সময়ের সমানুপাতিক।
           তৃতীয় সুত্রঃ স্থির অবস্থান থেকে বিনা বাধায় পড়ন্ত কোন বস্তু নির্দিষ্ট সময়ে(t) যে দূরত্ব(h) অতিক্রম করে তা ঐ সময়ের বর্গের সমানুপাতিক। 

Wednesday, October 31, 2018

ডায়োড

যে ডিভাইসটি না থাকলে আজকে আমরা মঙ্গল গ্রহে আবাস গড়ার স্বপ্ন দেখতে পারতাম না, অ্যাপোলো চাদের বুকে পা রাখার কথা চিন্তাও করতে পারতো না।
সূর্য থেকে নবায়নযোগ্য শক্তি সংগ্রহ করার জন্যে যে ডিভাইসটিকে সারা দিন রোদে পুড়তে হয় তাকে নিয়েই আমাদের আজকের আলচনা।
অতিপরিচিত সেই ডিভাইসটির নাম হচ্ছে ডায়োড।

Monday, September 24, 2018

Stepladder

দোকানে গিয়ে আমরা অনেক সময় দকানদারকে বুঝাতে সক্ষম হতেপারি না আসলে আমি কি চাচ্ছি।ঠিক এমনই একটি জিনিস হচ্ছে স্টেপ-ল্যাডার।

Glue gun

ইউটিউব কিংবা বিভিন্ন ভিডিও ওয়েব সাইটে আমরা এই যন্ত্রটি ব্যাবহার করতে দেখতে পাই।আঠা দিয়ে কোন কিছু যুক্ত করার ক্ষেত্রে এটি ব্যাবহার হয়ে থাকে।কিন্তু কখনো কি আমরা ভেবে দেখাছি Glue-gun নামক এই যন্ত্রটি কিভাবে কাজ করে।এর সাথে যে স্টিক টি সংযুক্ত করতে হয় সেটিই বা কি দিয়ে তৈরি। আসুন জেনে নেয়া যাক এই যন্ত্রটির খুঁটিনাটি।

Grease gun


Caulking gun


Coping saw


Wire stripper tool



Sandpaper


Chainsaw


Backsaw


Vise


File



Who invented the first lock


  • Linus Yale, Sr. invented a pin tumbler lock in 1848. 
  • Linus Yale, Jr. improved upon his father's lock in 1861, using a smaller, flat key with serrated edges that is the basis of modern pin-tumbler locks. 
  • Yale developed the modern combination lock in 1862.

Sunday, August 12, 2018

The objectives of Maintenance Program

  • Maximizing the production or increasing facilities availability at the lowest cost and at the highest quality and safety standards.
  • Reducing breakdowns and emergency shutdowns.
  • Optimizing resources utilization.
  • Reducing downtime.
  • Improving spares stock control.
  • Improving equipment efficiency and reducing scrap rate.
  • Minimizing energy usage.
  • Optimizing the useful life of equipment.
  • Providing reliable cost and budgetary control.
  • Identifying and implementing cost reductions.

What is zero sequence current?

  • The unbalanced current flows in the circuit during the earth fault is known as the zero sequence current or the DC component of the fault current.
  • The zero phase sequence means the magnitude of three phases has zero phase displacement.
  • The zero sequence currents are produced due to the existence of zero sequence voltage.


Voltage variation effect on transformer?

Under-voltage operation does not have significant impact on transformer, but due to under-voltage condition current drawn by the loads increases. If this increase in load current can create an over current condition. Transformer can be operated upto 110% at no load and 105% at full load without any harm. Further increase in voltage can results in the saturation of magnetic core thereby increasing the magnetizing current and losses. Continued operation in over excited region can result in failure of unit.

Voltage variation impact on induction motor?

  • Induction Motor voltage below name plate rating will result in decrease in the starting torque of the motor and increase in the full load temperature rise.
  • On the other hand, increase in the supply voltage above the specified voltage will results in increase in the starting torque of the motor, increase in the inrush currents during starting and decrease in the power factor.
  • Increase in the starting torque to above supply voltage results in acceleration of the coupling or driven equipment. Increase in the starting currents results in voltage drop in the bus connected to the motor. This effects the performance of the other loads connected to the bus.
  • Supply voltage above the rating will have less impact on the induction motor compared to under voltage condition but if voltage above 110% of the rated voltage will saturate the stator iron (flux is proportional to voltage / frequency) thereby damaging the magnetic properties and increase in losses.

Why reactive power cannot be transmitted to long distances?

  • If reactive power is to be transmitted through long distances in the power system It requires larger size of the power system equipment (transformers and cables).
  • It is inefficient during the high real power transfer and also requires higher voltage magnitude gradients.
  • It causes high real and reactive power losses if reactive power is transmitted through long distances. 
  • It can lead to damaging temporary over voltages following load rejections. When the receiving end circuit breaker opens with transmission line still energized from sending end, then over voltages occurs as the voltage magnitude depends upon the reactive power in the system. Over voltage will damage the insulation of the conductor and wingdings.

What are the harmonics effects on transformer?

  • RMS current increase
  • Eddy Current loss increases
  • DC offset current saturation
  • Winding temperature increase 
                      

Saturday, August 11, 2018

What is the practical difference between wire-wound and film RTDs?

  • Wire-wound type provides greater accuracy and stability but is vulnerable to shock.
  • film type is resistant to shock and has quicker thermal response.

Wednesday, July 25, 2018

What is Battery Power Capacity?

Power capacity:

It is the energy stored in a battery which is measured in Watt-hour

Watt-hour = V * I * hours {since voltage is kept constant, so it is measured in Ah/mAh}

 

We generally see the battery ratings as 2500 mAh or 4000 mAh while reading the specifications of a smart phone.

What does that mean?? Let’s see

 

Example: 2500 mAh it means that the battery has a capability to deliver 2.5A/2500mA of current to the load for 1 hour. The time that the battery works continuously depends upon the load current that it consumes. So if the load consumes only 25 mA of current then the battery can stay alive for 100 hours. How is it?

25 mA * 100 hours {so 25 mA of current for 100 hours}

Similarly 250 mA for 10 hours So on…

 

Though the theoretical calculations seem ideal but the battery’s duration changes based on the temperature and the current consumption etc.

Saturday, June 23, 2018

When is three phase power more appropriate?

 Big electric motors usually more than 2 kilowatts need three-phase power. This may also be the large workshop equipment. Large domesti...

Monday, May 28, 2018

Who is the world's top producer of nuclear power?

  The United States produces more electricity with nuclear power than any of the 30 countries with that capability.It has 104 operating reactors.
  In fact, it generates about the same amount of nuclear energy as the next largest producers, France and Japan, combined

World's first nuclear power pant......?

On June 26, 1954, 
at Obninsk, Russia, the nuclear power plant APS-1 with a net electrical output of 5 MW was connected to the power grid, the world's first nuclear power plant that generated electricity for commercial use.

 

Sunday, May 27, 2018

Where is the world's largest hydropower project?

  • Three Gorges, China.  
  • The 22,500MW Three Gorges hydroelectric power plant in Yichang, Hubei province, China, is the largest hydropower station in the world.  
  • It is a conventional impoundment hydropower facility exploiting the water resource of the Yangtze River

What is the fastest growing source of energy in the world?

  • Renewables are now the world's fastest-growing energy source and are expected to increase by 2.6% per year through 2040.  
  • Hydropower and wind are the two largest contributors to the increase in world electricity generation from renewable energy sources, the report stated

What country generates the most hydroelectric power and why?

China produces the most electricity from hydroelectric power, some 856.4 billion kilowatt hours a year – more than double the amount produced by Brazil, in second place.
The top three is completed by Canada, which produces 376.7 billion kilowatt hours a year.

Who invented the hydroelectric power plant?

In 1849, 
British–American engineer James Francis developed the first modern water turbine – the Francis turbine – which remains the most widely-used water turbine in the world today. 
In the 1870s,
American inventor Lester Allan Pelton developed the Pelton wheel, an impulse water turbine, which he patented in 1880.

World's first hydroelectric power plant....?

On September 30, 1882,
 the world's first hydroelectric power plant began operation on the Fox River in Appleton, Wisconsin.

The first artificial satellite....


  • Sputnik 1 was the first artificial Earth satellite.
  • The Soviet Union successfully launched that on October 4, 1957,
  • 22.8 inches in diameter,only 83.6 kg weighted.
  • It took about 98 minutes to orbit the Earth on its elliptical path.

Thursday, May 17, 2018

What is schotty diode?


  • It also known as Schottky barrier diode or hot-carrier diode.
  • A solid state diode with metal semiconductor junction.
  • It can be used for fast switching application.
Fig: Schemetic

Wednesday, May 16, 2018

LM339 as Comparator

  • LM339 is a comparator IC containing 4 comparators.  
  • When the voltage at non inverting (+) terminal is higher than the voltage at inverting terminal, the output voltage goes high. 
  • When the voltage at inverting terminal is higher, the output voltage goes low.
Fig: Pinout

Fig: real world IC

Cell phone detector

Basic knowledge behind this project:
We all know about the Schotty diode which can detect the cell phone signsl, the frequency range of this signal is of 0.9 to 3 GHz. Schottky diodes have an unique property to rectify low frequency signals, with low noise rate.When an inductor is placed near any RF signal source, it receives the signal through mutual induction. This signal is rectified by the Schottky diode. we can amplify this signal then use to power any indicating LED.
Circuit Components:
  • Battery = 12V
  • L = 10uH
  • R1 = 100Ohms
  • C = 100nF
  • R2 = 100K
  • R3 = 3K
  • Q1 = BC547
  • R4 = 200 Ohms
  • R5 = 100 Ohms
  • IC1= LM339
  • R6 = 10 Ohms
  • LED = Blue LED

Applications:

  1. We can use it at examination halls, meetings to detect presence of mobile phones and prevent the use of cell phones.
  2. It can be used for detecting mobile phones used for spying and unauthorized transmission of audio and video.

Sunday, April 22, 2018

What is single phasing?

  • A three phase induction motor must be connected to a 3 phase alternating current (ac) power supply of rated voltage. 
  • Once these three-phase motors are started, they will continue to run even if one of the three-phase supply lines gets disconnected. 
  • The loss of current through one of these phase supplies is described as single phasing.

How to Prevent Turbocharger Surging?

  • Cleaning the turbocharger intake filter clean.
  • Regular water-wash the turbine and the compressor side of the turbocharger.
  • In case of exhaust boiler soot blow should be done from time to time.
  • Proper maintenance and checking should be done on turbocharger periodically.
  • Indicator cards to be taken to assess cylinder and power distribution of individual units

What is turbocharger surging?

Turbocharger Surging: কারণ, লক্ষণ ও প্রতিরোধ (বাংলা ব্লগ)

Turbocharger Surging: কারণ, লক্ষণ ও প্রতিরোধ

লিখেছেন: আপনার নাম | প্রকাশিত: ৪ জুন ২০২৫

টার্বোচার্জার সার্জিং (Turbocharger Surging) কী?

টার্বোচার্জার একটি গুরুত্বপূর্ণ যন্ত্রাংশ যা ইঞ্জিনে অতিরিক্ত এয়ার প্রবাহ সরবরাহ করে...

সার্জিং কিভাবে ঘটে?

যখন কমপ্রেসার হঠাৎ করে বায়ুর চাপ ধরে রাখতে ব্যর্থ হয়...

সার্জিং এর লক্ষণসমূহ

  • চিৎকারের মতো শব্দ
  • পারফরম্যান্স কমে যাওয়া
  • বুস্ট গেজ ওঠানামা

সার্জিং প্রতিরোধের উপায়

  1. বুস্ট কন্ট্রোল সঠিকভাবে সেট করা
  2. ইনটেক সিস্টেম ঠিক রাখা
  3. সঠিক টার্বো ব্যবহার করা

উপসংহার

টার্বোচার্জার সার্জিং একটি জটিল সমস্যা হলেও প্রতিরোধ করা যায় সঠিক রক্ষণাবেক্ষণের মাধ্যমে।

এই ব্লগটি আপনার উপকারে এলে শেয়ার করুন এবং কমেন্ট করুন!

When the pressure of the air delivered by the compressor is higher than the pressure inside the compressor, a reverse flow of air is created towards the impeller and inlet of the compressor,
which reduces the speed of the turbine shaft and creates noise and vibration.  This phenomenon is known turbocharger surging.

What are the Causes of Turbocharger Surging?

  • It can be happened due to sudden change in the engine load or speed.
  • Imbalance in cylinder power or faulty injectors
  • Un-cleaned turbine nozzle ring. if the turbine side is dirty i. e nozzle, blades etc enough air can not be produced for combustion.
  • Dirty filter: if the inlet filters are dirty then enough air can not be supplied for combustion, which leads to surging
  • The capacity of turbocharger is larger than required.
  • Increased back-pressure at the turbine side.
  • Improper power distribution between the engine cylinders may cause turbocharger surging as one unit is producing more power and other is producing less. Due to this the air consumption differs, which leads to surging.
  • Highly fouled exhaust i.e. economizer, if fitted may cause back pressure in the turbocharger and thus finally lead to surging.
  • Bad weather – This is one more reason for surging. Due to bad weather sudden load change takes place thus surging.
  • Damaged blades.

Sunday, April 8, 2018

12 volt battery level indicator

It will indicate the charge level of a battery by a LED bar-graph which contains ten LEDs. We use voltage divider theorem to divide the battery voltage because the arduino can take maximum 5V as analog input.

  • Greater than 10.5V (25%)
  • Greater than 11.5V (50%)
  • Greater than 12.5V (75%)
  • Greater than 13.5V (100%)


Friday, March 23, 2018

Distance measurment using arduino and ultrasonic sensor.

Arduino UNO ও Ultrasonic Sensor ব্যবহার করে কিভাবে দূরত্ব পরিমাপ করা যায়


প্রজেক্ট সম্পর্কে সংক্ষিপ্ত ধারণা:

এই প্রজেক্টে আমরা HC-SR04 Ultrasonic Sensor ব্যবহার করে একটি বস্তুর দূরত্ব পরিমাপ করব এবং তা 16x2 LCD ডিসপ্লে-তে দেখাবো। এই সেন্সরটি শব্দ তরঙ্গ প্রেরণ করে ও প্রতিধ্বনির সময় পরিমাপ করে নির্ধারণ করে বস্তুটি কত দূরে আছে।

যে উপকরণগুলো লাগবে:

উপকরণ পরিমাণ
Arduino UNO 1 টি
HC-SR04 Ultrasonic Sensor
 1 টি
16x2 LCD Display 1 টি
পোটেনশিওমিটার (1kΩ) 2 টি
Jumper Wires ও ব্রেডবোর্ডপ্রয়োজনমতো
Power Supply (5V) 1 টি

🔌 সার্কিট সংযোগ:

🔹 HC-SR04 সংযোগ:

সেন্সরের পিন
Arduino UNO
VCC  5V
GNDGND
TriggerPin 9
Echo Pin 8

🔸 Echo লাইনে একটি 1kΩ রেজিস্টর দিয়ে পুল-ডাউন সংযোগ রয়েছে (RV2), যাতে সিগন্যাল সঠিকভাবে পড়া যায়।

🔹 LCD সংযোগ (16x2):

LCD পিন Arduino UNO Pin
RS  Pin 12
E Pin 11
D4  Pin 5
D5Pin4
D6Pin3
D7Pin2
VSS,RW,KGND
VDD, A 5V
VEEপোটেনশিওমিটার (RV1)
এর মাধ্যমে কনট্রাস্ট কন্ট্রোল

⚙️ প্রজেক্টের কাজের পদ্ধতি:
  1. Arduino প্রতিবার Trigger পিনে একটি ছোট পালস পাঠায়।

  2. সেন্সর একটি অদৃশ্য ultrasonic সাউন্ড ওয়েভ পাঠায়।

  3. যদি কোনো বস্তু তার সামনে থাকে, সাউন্ডটি প্রতিফলিত হয়ে Echo পিনে ফিরে আসে।

  4. Arduino এই Echo পিনে সিগন্যাল আসতে কত সময় লাগলো তা হিসাব করে।

  5. এই সময়ের ভিত্তিতে দূরত্ব গণনা করা হয় (গতির সূত্র ব্যবহার করে)

  6. দূরত্ব (সেমি) = (Echo pulse time × speed of sound) / 2
    অর্থাৎ → distance = duration × 0.034 / 2;
  7. LCD ডিসপ্লেতে লাইভ দূরত্ব দেখায়, যেমন:

                     Distance: 203 cm 
Fig: Connection diagram


Fig: Practical photo

Fig: Practical photo

The code for arduino:

#include <LiquidCrystal.h>
LiquidCrystal lcd(2,3,4,5,6,7);
const int trigger = 0;
const int echo = 1;
int distance,duration;
void setup()
{   lcd.begin(16,2);
  lcd.clear();
  pinMode(trigger,OUTPUT);
  pinMode(echo,INPUT);
}
void loop()
 {
  lcd.setCursor(0,0);
  lcd.print("Mahabub's note");
  lcd.setCursor(0,1);
  lcd.print("Distance:");
  digitalWrite(trigger,LOW);
  delayMicroseconds(2);
  digitalWrite(trigger,HIGH);
  delayMicroseconds(10);
  digitalWrite(trigger,LOW);
  duration = pulseIn(echo,HIGH);
  distance = duration*0.034/2;
  lcd.print(distance);
  lcd.print("cm");
  delay(100);
  lcd.clear();
}

প্রকল্পের ব্যবহার:

  • স্মার্ট গাড়ির ব্যাকিং সিস্টেম
  • দরজার কাছাকাছি অবস্থান শনাক্তকরণ
  • হ্যান্ড সেন্সর স্বয়ংক্রিয় পানির কল
  • রোবটিক্সে অবজেক্ট ডিটেকশন

উপসংহার:

এই প্রজেক্টটি নতুনদের জন্য দূরত্ব পরিমাপের ধারণা শেখার জন্য দারুণ একটি হাতেকলমে উদাহরণ। শুধু প্রোগ্রামিংই নয়, এতে সেন্সর থেকে সিগন্যাল পাঠানো ও গ্রহণ করার বাস্তব প্রক্রিয়া শেখা যায়। এটি দৈনন্দিন জীবনেও অনেক কার্যকরীভাবে ব্যবহার করা যায়।