Home Made Arduino Prototype Shield

Making my own Arduino Prototype Shield

Read More

Arduino Uno R3

Read More

GPA Calculator

Self made program to make calculation of GPA much easier

Read More

Microchip Delay Calculator

A delay calculation program for Microchip's MCU

Read More

Welcome to waihung.net

Using Internal Oscillator on ATmega328P

Intosc Banner

I’ve been working on a project which involves a very small PCB layout, and I found it very hard to route unless I remove some unnecessary connections. Therefore, I decided to remove the external oscillator and use the internal 8MHz oscillator. To do this, you’ll need a programmer. I’m using a cheap USBASP bought from ebay. To enable the internal …

Read More

74HC595 Shift Register Tutorial

Sr Banner

Shift register is a sequential logic circuit consisting of flip-flops. They are created mainly to store digital data in the form of bits. The basic working principle of a shift register is the user would enter data into it sequentially and the data will move from the beginning till the end of the shift register. Any bits that ‘flow’ out …

Read More

Salvaging Valuable SMD IC

Smd Banner

I’ve got a non-working Pickit 2 clone lying around. It uses the popular PIC18F2550 because it has USB capabilities. A quick check on Element 14 says that this MCU costs RM 19. That is an expensive microcontroller. Normally a heat gun is required to remove SMD components but I couldn’t be bothered to buy one just to remove a few …

Read More

L298N Dual-Channel 2A Motor Driver

L298 Banner

I’m working on a new project which has two 12V DC Geared motors. Below are their specifications. Its’ rated current is 410mA but if it is stalled, it requires a whopping 1.8A. Stall current is the highest current that the motor will consume when the load is too much (causing the motor shaft to stop turning). When choosing a suitable …

Read More

Microchip PIC16 / PIC18 PWM Mode

Pic Pwm Banner

This article explains how to set up and use the PWM module on almost all PIC 16 and PIC 18 devices. Depending on the specifications, some PICs may not even have a PWM module at all and some may have 1 or 2 pins that are PWM capable. For this example, I’m using a PIC16F876A which has two PWM modules …

Read More

Arduino + Visual Basic : PWM Control

Vb Pwm Banner

Pulse Width Modulation or PWM allows the microcontroller to mimic analog control by turning the voltage on and off very quickly. The Arduino has an 8 bit PWM built-in, which means it has up to 256 levels of control. ( 2^8 = 256 ). These 256 levels of control actually determines the percentage of the ON duty cycle over the …

Read More

Page 3 of 15«12345»10...Last »