I2C

  • Class 11 – Digital Clock Using Interrupt

    Hi Buddies! In our last class, we built a digital clock without using interrupts — and yes, it worked well! But you might have noticed a small flicker when you pressed a button. Today, let’s solve that using interrupts. But before that, let’s understand what interrupts are. Blocking Code Method In earlier classes, especially when blinking LEDs, we used a delay inside the main loop. That delay blocks the system — during this time, the […]

  • Class 10 – Digital Clock Project using 7 Segment

    Hi Buddies, Most of the time, we check the time on our phone or on store-bought wall clocks. But just imagine… what if we built our own digital clock? How cool would that be! Today, let’s build a fully functional digital clock from scratch, step-by-step using the Buddy51 board. Before we begin, this project uses some concepts from previous classes. If you haven’t watched those, please check them out first: Class 3 – How Single […]

  • Class 9 – I2C Concept & RTC using DS1307

    Hi Buddies! Today on our BuddyKit, let’s explore one of the essential communication protocols – the I2C Protocol. Microcontrollers support many protocols like I2C, SPI, and Serial. Among these, I2C (Inter-Integrated Circuit) is widely used for communication between devices on the same board or across boards. I2C works with one master and multiple slave devices. Each slave device has a unique address, and communication starts when the master sends a data packet with the slave […]

  • LCD4

    1. LCD Not Initializing Q: My LCD shows nothing or random characters. A: Verify LCD_Init() was called first Check power supply (4.7V-5.5V recommended) Confirm contrast potentiometer is adjusted For I2C LCDs: Ensure correct I2C address 2. Missing Characters/Garbled Text Q: Some characters don’t display or appear corrupted. A: Check all data connections (D4-D7 for 4-bit mode) Add 100ms delay after LCD_Command(LCD_CLEAR) Verify RS and EN signal timing 3. Cursor Position Issues Q: Text appears at […]

  • PCF8591

    Here’s the optimized FAQ for your PCF8591 library in the requested format: 1. No Communication (ACK Not Received) Q: My PCF8591 doesn’t respond to I2C commands. A: Verify PCF8591_Init() was called first Check device address (default 0x48, configurable via A0-A2 pins) Ensure 4.7kΩ pull-up resistors on SDA/SCL Confirm power supply (2.5V-6V) is stable 2. ADC Reading Issues Q: ADC always returns 0 or 255. A: Check AREF pin has proper voltage reference Verify input voltage […]

1 2