Category Archives: Uncategorized

LED candle avr

This is a simple project, called  LED candle. I will be using yellow LED’s of 2 and a simple PWM code that runs on AVR (ATmega328p) chip make’s the LED flickering that almost looks like candle.  😛  for candle I will be using  LED’s+translucent paper.

two-yellow-leds       translucent-paper



LED candle





code is very straight , Simple PWM code runs on ATmega48/328p

#define F_CPU 1000000UL
#include avr/io.h
#include util/delay.h

#include avr/interrupt.h

void timer1_init(void);

void timer1_init()
DDRB |= 1<<PINB1; //
DDRB |= 1<<PINB2;

TCCR1A |= 1<<COM1A1 | 1<<WGM11; //
TCCR1A |= 1<<COM1B1;
TCCR1B |= 1<<WGM12 | 1<<WGM13 | 1<<CS10; //
ICR1 = 49; //top value

int main(void)

OCR1B = rand() % 47 + 1;

OCR1A = rand() % 47 + 1;




pictures of my old projects.

Old projects.


Mini tank robot was my one of oldest project. I built it for fun, no use only for fun.  I did used ADXL335 accelerometer for inclination detection , AVR microncontroller (ATmega164P) for processing and controlling  and L293D motor driver Chip and BO series motor.



robot 2


POV display based on ATmega48


lm4752s amp pic1    lm4752s amp pic2






volume indicator

Volume indicator Indicates the level of audio signal.(this project is under construction.. will update soon )

INPUT devices: microphone                                                                                                         OUTPUT: LED bar graph                                                                                                               processing: AVR (ATmega32A)

My construction:

volume unit meter version1


microphone pickup’s the audio signal and BC546 preamp amplifies the signal to the level 1.8Vpp max, so that ADC can read.  BC546 collector feedback bias circuit.



audio fed to the ADC pin of ATmega32A

aaded voltage regulator (2sc1383 + 5V6 zener), we can also use LM7805 regulator.

volume indicatorpic1.jpg