Hi buddies! In this post, let’s explore the Timer and Counter feature in the Buddy51 board. Why use a Timer instead of NOP? In our previous examples, we used NOP-based software delays. However, these are not accurate. To achieve precise timing, we use hardware-based timers and counters. What is a Timer or Counter? A timer or counter is a register that increments with each clock pulse. If the pulse is from an external pin, it’s […]
🧠 Concept Overview 🌊 How Ultrasonic Distance Measurement Works The ultrasonic sensor sends a 10 µs pulse via the TRIG pin. The ECHO pin goes HIGH while the signal travels to the object and back. The duration (in microseconds) that ECHO stays HIGH is proportional to the distance. Speed of sound ≈ 343 m/s or 0.0343 cm/µs. Since the sound wave travels to the object and back, the formula is: Distance (cm) = (Time (µs) […]
🔐 Build a Simple Digital Door Lock Using 8051 and BuddyKit Hi buddies! 👋 In this class, we’re building a simple digital door lock system using the Buddy51 Mini development board. This project uses a 4×4 matrix keypad to enter a password and a relay connected to a digital pin to control the lock. The status of the door (Locked or Opened) is displayed on a 16×2 LCD screen. 📌 What You’ll Learn How to […]
Hi buddies! In our previous session, we saw how to create a counter using an LCD and a single key. In this class, we’ll learn about the working principle of a 4×4 Matrix Keypad. 🎛 What is a 4×4 Matrix Keypad? A 4×4 matrix keypad contains 16 keys arranged in 4 rows and 4 columns. These keypads are commonly used in password entry systems, calculators, and DIY electronics. 🔍 How It Works Each key press […]
Hi buddies!! In our previous class, we built a 7-segment display counter using an 8051 microcontroller. In this tutorial, let’s see how to display the same counter output on an LCD display. 📺 How Does an LCD Work? An LCD consists of three major parts: Backlight – A small LED that provides light behind the display. Liquid Crystals – These crystals align when voltage is applied, allowing them to either block or twist light. Polarizer […]