You are browsing the Blog for AVR.

Talking to Ultrasonic Distance Sensor HC-SR04 using an ATtiny84
In a previous post, I talked about interfacing an Arduino with the HC-SR04 ultrasonic distance sensor. This time, I will do the same, but using an ATtiny84 and C code – no Arduino hardware or libraries. The HC-SR04 works as follows: Send a 10us HIGH pulse on the Trigger pin. The sensor sends out a
...read more...

Serial Communications with the ATtiny84
In a previous post, I talked about serial communications with an ATmega168. But that chip has USART – hardware support for serial communications. But what about the tinyAVRs? As continuation of my last post on setting up the ATtiny84 for programming, this time, I will talk about sending data from an ATtiny84 to a computer
...read more...

Getting Started with the Atmel ATtiny84 Microcontroller
Like many folks, I got introduced to microcontrollers through the Arduino platform. The ease of setup, simple language syntax and the availability of a huge number libraries makes Arduino a very attractive choice to prototype your hardware projects. But after you get a grip on your project, sometimes it’s worth asking if you really need
...read more...

ATmega168 Power Save Mode and Pin Change Interrupt
Most times your microcontroller is running in a loop, waiting for something to happen – like a button press. All this while it is consuming power, and this could be an issue, especially if you are running the circuit from a battery. To counter this problem, there are ways of reducing the power consumption of
...read more...

Recent Comments