Monday, November 16, 2026

Hello World

 A semiconductor temperature sensor provides 10mV/℃ and outputs 3V at 0 ℃. 

At 10 ℃, the sensor output is 3.1V. For a sensing range of 0 to 100 ℃, design a suitable 

circuit to match the Microcontroller ADC working in the 0 to 1.1V range with 10-bit resolution, 

so that the temperature could be measured with a 0.1 ℃ resolution. 

Further, if the temperature sensed by the sensor is 10 ℃, what would be the output of the ADC?

Monday, October 12, 2026

Power Supply Designs for Embedded Applications


Monday, September 07, 2026

Build a Circuit. Get a job!

 Build a Circuit. Get a job!

During my M.Sc. (Electronic Science) at University of Delhi, South Campus - thanks to the enthusiasm of Professor GP Srivastava, who used Prof. Ramesh Gaonkar's 8085 book to teach, I learned about 8085. After my M.Sc. I landed a job at SGTB Khalsa College as a lecturer and built an 8085 based Morse Trainer (due to my interest in Ham Radio and as a licensed radio operator). Someone forced me to sell it to them, I have no pictures or records.

Soon in 1990, I learned about (8051) microcontrollers - thanks to a workshop organized by GoI's Department of Electronics' MAEP (Microprocessor Application Engineering Program), which was conducted by Sarat Chandra Babu Nelaturu and his team. I used that knowledge to build an 8051 based Morse Trainer System (pictured below). Before that, I built a Parallel Port based EPROM emulator (described in my "Programming the Parallel Port: Interfacing the PC for Data Acquisition and Process Control" book) to finalize the 8051 code.

MAEP invited me to talk about it during a "Microcontroller Based System Design" workshop they organized at Delhi Institute of Technology (DIT - forerunner of NSIT) in 1991.

Later in 1992, I applied for a job at IUCAA for the position of a Scientific Officer. For the interview, I took this 8051 gadget to show them. I got selected, although I do not know if this gadget had any role to play in my selection, but my would be boss - Professor Shyam Narayan Tandon was intrigued and asked me to open the enclosure and show the innards.

Fast forward to my life as a faculty at NSIT/NSUT and directing the CEDT/TI-CEPD labs. Lot of students built projects and would take their project to the job interviews and get the job!

Being able to build a working prototype of a gadget or an instrument is a great skill. If you can build it and defend the design and build process, no one can deny you a job!

I am told (by Ashish Hari) that lot of students bring such gadgets (even if they have not built it) to interviews to swing the job in their favor... :D





Wednesday, August 19, 2026

DMM Teardown Pictures

 






Sunday, March 29, 2026

Tasks of a Microcontroller

 

  1. Provide Digital Outputs.

  2. Read Digital Inputs. Serial Monitor.

  3. Measuring time, events and time between events.

  4. Measure Voltage/Current/Resistance, read sensors (ADC, oversampling, voltage

    reference, hall effect current measurement).

  5. Respond to synchronous and asynchronous events (Interrupts), FSM, FSMD.

  6. Visualize/Print data/information.

  7. Generate waveforms, sound, notes and music.

  8. Communicate with internal and external devices.

  9. Generate random numbers (LFSR, using noise, counter).

  10. Signal processing (averaging, FFT etc).

  11. Read and Store data.

  12. Control motion.

     



     

Sunday, March 22, 2026

Circuit Prototyping

Monday, March 16, 2026

Teaching Microcontrollers to Beginners

 

The teaching of microcontrollers and embedded system design often encounters a specific pedagogical hurdle: students coming from a background in basic and digital electronics frequently attempt to solve design problems using discrete functional blocks. When tasked with implementing a system, students often suggest adding external integrated circuits (ICs) such as multiplexers, decoders, or encoders to the microcontroller.

The primary objective of the Microcontroller Trainer Kit is to demonstrate that such hardware-centric approaches are often unnecessary. Instead, the functionality of these discrete components can be effectively implemented within the microcontroller through software, showcasing the versatility and efficiency of programmable logic. 

 

The trainer kit is built around an Arduino microcontroller, integrated onto a zero board with hand-soldered hookup wires. The hardware interface includes a variety of input and output peripherals designed to facilitate multiple learning modules:

• Processing Unit: Arduino Microcontroller. 

 • Input Interface:

  • –  Mode Selector: A set of jumper pins used to select between four distinct operational modes.

  • –  Photo-Gates: Two slotted optocouplers (labeled A and B) for motion sens- ing.

  • –  Potentiometer: Used for analog input to control parameters such as clock speed.

  • –  Push Button: A momentary switch for manual triggering and input.  

    • Output Interface:

    – 7-Segment Display: For decimal numeric output.
    – Mode LEDs: Four LEDs indicating the currently selected operational mode.

– Counter LEDs: Three LEDs displaying the binary output of the system’s internal counter (Q0, Q1, Q2).

– Buzzer: For audible feedback or signaling.


• Power Supply: Derived directly from a portable power bank. 

Block Diagram of the System

The trainer kit is programmed to operate in four progressive modes, each introducing a new level of complexity in embedded programming and logic.

Mode 1: Free-Running Counter

In this baseline mode, the microcontroller functions as a three-bit binary counter. The count is displayed in binary via three dedicated LEDs. A potentiometer is utilized to provide a variable clock speed, allowing the user to observe the count sequence at different frequencies.

Mode 2: Manual Increment Counter

This mode transitions from an automated clock to a user-triggered input. The counter increments only when the push button is pressed and released. This demonstrates the implementation of external interrupts or polling-based input handling.

Mode 3: Electronic Dice (Random Number Generator)

The hardware remains identical to the previous modes, but the software logic is altered to generate a random number between 1 and 6. Upon pressing and releasing the button, the 7-segment display shows a randomized result, simulating an electronic die.

Mode 4: Visitor Counter

The final mode utilizes the two photo-gates to implement a sophisticated visitor counter. This mode teaches the concept of a Finite State Machine (FSM). The system requires a specific sequence of triggers (Sensor A then Sensor B) to register a person entering the room. The software ensures that partial interruptions or reversals do not result in a false count, demonstrating how microcontrollers handle complex real-world logic. 

 

A key lesson of the trainer kit is the elimination of external decoding hardware. In traditional digital circuits, a BCD-to-7-segment decoder IC would be required to drive a display from a counter. In this trainer, the Arduino directly drives the seven segments (A through G). 

 

The software maps the internal counter value to the specific bit patterns required to light the corresponding segments of the display. This ”one-to-one” correspondence between the microcontroller’s outputs and the display segments reinforces the concept that software can replace physical logic ICs.

 




 Demo Video