Interfacing LCD display to 3V circuits

Usually, we are used to connecting LCDs to 5V systems. LCD controllers usually require a 5V power supply, and there must be some compliant circuitry used when interfacing to 3V systems like ARM LPC2000 microcontrollers. Here are few examples how this problem could be solved. Solution number 1 Standard LCD microcontroller can work with lowered power supply voltage to 2.7V. For this negative voltage for regulating contrast is needed. For this special inverting IC is needed or another solution. In this case, there is the ability to write and read from the LCD controller.

Continue reading

Interface multiple keys with one wire and save pins of MCU

Usually, the keyboard is connected by using matrix type of connection – rows and columns. For instance, for a 12 button keyboard wee need 3+4 digital inputs of the microcontroller. There is a way to build a keyboard and connect it to the microcontroller using only one wire. For this, we will need only signal wire, power, and ground, and of course microcontroller must have analog ADC input. One wire keypad circuit: The circuit is nothing more than simples digital to analog converter. The microcontroller reads the voltage from the signal line and calculates which key is pressed. Let’s see how it works. If no keys have been pressed, then the line has a voltage equal to a power source. If any key is pressed, the voltage divider divides the voltage according to the resistor connected to this button. A capacitor works as a filter of mechanical noise during button contact. This way microcontroller can check the voltage of the signal line and calculate which button is pressed.

Continue reading

Moving from PonyProg to AvrDude AVR programmer without pain

Probably PonyProg is one of the most popular programming software among AVR microcontroller developers. And this is OK as it is good software with a very intuitive interface and supports many chips like Atmel AVR, Microchip PIC micro, I2C, Microwire, SPI EEPROM. It works well with an AVR ISP adapter, which is easy to build. This is an ideal tool for low budget projects. The only thing that I don like with it, that I need to do additional steps to program the AVR chip: Compile project with WinAVR; Open hex file with PonyProg; Programm the chip; Then I thought- what if I could build and program the AVR chip with a single button press. This is where AVRDUDE comes in.

Continue reading

Using LPC2000 flash ISP utility to program LPC2148

As I earlier was writing about my homemade ARM7-Base development board for LPC2148 It is time to write few words on how to use LPC2000 flash ISP utility. LPC2000 flash utility is a software that is used to program LPC2000 series ARM microcontrollers: LPC2101, LPC2102, LPC2103, LPC2104, LPC2106, LPC2106, LPC2114, LPC2114, LPC2119, LPC2124, LPC2129, LPC2131, LPC2132, LPC2134, LPC2136, LPC2138, LPC2141, LPC2142, LPC2144, LPC2146, LPC2148, LPC2194.

Continue reading

Stimuli Generator for AVR Studio helps debugging programs in AVR Studio

Stimuli Generator for AVR Studio is a handy program that allows making stimuli files for AVR Studio. These files contain information on signals that can be used to affect AVR microcontroller pins virtually. With Stimuli Generator, you can emulate any interfacing like I2C, SPI, and others- this allows you to emulate real-world situations. The program’s working is simple: set target microcontroller (by default 8MHz), set measurement unit- microseconds or milliseconds. For instance, you want to send signals to Pin0 of PORTB. Target MCU -ATMega8, which runs at 4MHz. Set serial interface protocol, which is like start bit length – 60us, bit 0 – 20us, bit 1 – 40us. So, in this case, the step value would be 20us. Step value will depend on what variation on the duration of impulses.

Continue reading

Place electronics parts correctly on PCB

Let’s go through a few examples of how to place electronic parts correctly on the PCB board. SMD electronic parts, especially if the lead pitch is above 1 mm, then placement of leads has to be symmetrical on copper planes: If IC has a smaller lead pitch like 0.5 – 0.8mm, positioning by hand becomes harder. Sometimes it is recommended to use special glue to fix SMD parts before soldering. DIP electronic parts must be soldered as close to the PCB board as possible to make them stand stable and avoid heat resistance.

Continue reading

Drive dot LED matrix display using LPT port and driver IC

It is convenient to drive dot LED matrix displays using IC drivers of 5×7 dot LED matrices like MAX6952 and MAX6953. These two IC’s differ only by data interfaces: SPI for MAX6952 and I2C for MAX6953. In this article, you will see how these driver IC’s can be controlled by a computer using an LPT port. The program provided here works with almost all Windows versions: 95, 98, 98SE, ME, NT, 2000, and XP. The printer ports that can be used are LPT1 and LPT2. The program is called MAX6952, and it is programmed by using Visual Basic 5. To start this program, you will need a few standard VB run time libraries: MSVBVM50.DLL. The program uses a freeware driver of parallel port: DriverLINXTDLPortIO.DLL, responsible for hardware I/O in win32.dll and is not accessible by standard VB. Windows NT and Windows 2000/XP require drivers too. It is DLPortIO.SYS. Both drivers are owned by Scientific Software Tools, Inc. DriverLINXT is a registered trademark of Scientific Software Tools, Inc. First of all, installation on win98. Download file MAX6952-95.exe (793kB). This is a self-extracting archive that contains ReadMe.txt, ReadMeSST.txt, MAX6952.EXE, DLPortIO.DLL, and MSVBVM50.DLL. By default install directory is C: MAX6952. File MSVBVM50.DLL can…

Continue reading

New generation ICprog-AVR2.0 showed up

ICprog-AVR2.0 is a new generation USB AVR microcontroller programmer. The ICprog AVR is the smallest USB Programmer for Atmel AVR Microcontroller available on the market. The version ICprog AVR 2,0 programs with almost double programming speed as conventional programming adapters! The programmer is AVR910 compatible. Two versions of programmers are available: 6-Pin Version with standard AVR910 6-pin header 10-pin Version with KANDA interface

Continue reading

Endoscopy inspection in electronics-detect BGA defects

Endoscopy is known to be used in medicine, but it can also be used in other areas of industry like electronics. In big electronic industries where investments are huge, the requirements for quality are also big. In big industries, there is automatic testing using. This allows achieving maximum quality with minimal cost. In smaller industries, there is a requirement to inspect almost every product to avoid faults. One of the biggest problems that may occur is soldering errors, position errors, or other defects. For visual defect identification, endoscopy is often used. Endoscopy in electronics is some AOI (Automatic Optical Inspection), often used to check BGA pins. The endoscope usually consists of a light source directed by fibber glass and an optical sensor with variable focus. Changing focal length, it is possible to view about 50mm area while space between chip and board can be only 0.05mm. Information from the optical sensor can be sent to a computer for further processing. Comparing to the X-RAY method, optical inspection of electronic devices is cheaper.

Continue reading