Archives

Author Archive for: ‘waihung’

HC-SR04 Ultrasonic Sensor on PIC

Hcsr04 Banner

HC-SR04 is a very common ultrasonic sensor and it is normally found in Arduino kits or projects. The library for this sensor is widely available for the Arduino platform but not for PIC. I’ve been asked to help to write a simple PIC code to interface with the ultrasonic sensor. It’s actually very simple by referring to the timing diagram. …

Read More

Bluetooth Mini Robot

Bluetooth Mini Robot Banner

Got another new robot kit and decided to create a bluetooth controlled robot with it. It’s from DFRobot and it’s called the MiniQ. Here it is assembled. Created a simple circuit on a donut board with a L293 H-Bridge and Arduino Nano. It is powered by a 2 cell Lithium Polymer battery. Typically each cell provides 3.7V so that amounts …

Read More

Programming Arduino using Atmel Studio 6

Arduino Atmel Banner

Arduinos are based on Atmel microcontrollers, and they can be programmed using Atmel’s native IDE – Atmel Studio 6. The main reason to use Atmel Studio 6 instead of Arduino IDE is because it provides better performance, Arduino IDE might be easy to use but it is slow because of inefficient compilation. It takes more cycles to execute an instruction …

Read More

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

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