Skip to main content

Posts

Showing posts from April, 2016

USB curve tracer for NPN transistors

Curve tracer is an electronic test instrument to analyze the characteristics of transistors and other discrete semiconductors. In this post we construct USB base curve tracer to analyze properties of NPN transistors. This curve tracer is build around Microchip's PIC18F4550 MCU and it use simple Windows based GUI application to plot captured data of a transistor. In this design PIC18F4550 MCU is used to establish USB connectivity, perform voltage readings and control current/voltage flow into the test subject. To minimize the cost and to make it simple, we use R2R ladder circuit to generate discrete collector-emitter voltage levels for the transistor on test. In each scan session collector-emitter voltage level get increase from 0V to 7.5V in 256 steps. In this design, "tracer" scans the transistor for 7 base current levels which are in between 7µA to 60µA. In viewer application collector-emitter voltage levels are plotted on x-axis and collector current is plotted o

Automatic monitor brightness controller

This is an automatic "monitor brightness controller" based on environmental light conditions. This system uses a USB port base sensor unit to measure the light level and control monitor brightness accordingly. We design this system to reduce eye stress by matching the monitor brightness with environmental lighting. The sensor unit of this system is built around PIC18F2550 8-bit microcontroller. To measure the light level we use LDR with MCU's inbuilt ADC. The control software of this unit is design to work with Microsoft Windows operating systems and it uses Windows API's DDC/CI related functions to control the monitors/display devices. The firmware of USB sensor use 50-point boxcar filter to get the average readout from the ADC and that value is passed to PC over USB HID interface. Thanks to this HID interface this system may not need any special device driver, and it can use in any compatible PC with a minimum amount of configuration changes. A prototype v