Saturday, August 16, 2014

How to calculate simple transistor switch. How to light LED in the dark

I needed to make LED light in the dark, so I found this video, where Ben Krasnow explains how to make a simple transistor switch.




AVR Tutorial - Introduction to Timers

Avr microcontrollers have several timers (counters). They can be 8 bit (max == 2^8 = 256), or 16 bit (max == 2^16 = 65536).


  • Timers can count with different speeds and compute ticks
  • Count from external oscillators
  • With them we can compute time and time intervals (accuracy more than 0.5%)
  • Generate ADC signals.
  • Generate interrupts.

Friday, August 15, 2014

Servomotors practise, Servo Motor Control using AVR ATmega8

I had bought some chinese servomotors and decided to make a laser toy for my cat.



AVR library for HD44780


Creator's site
Library itself.
I will show some code explaining how to work with this library.

LED driver.

Driver is a thing which gives constant current regardless of what you will connect to it.

LED's work on current. They consume needed voltage without noticing it. If we connect LED to 12 volt DC, he consume needed (for example) 2 volts and spare voltage will go further. (if there is nothing else all 12 volts will be on LED and it will most likely burn).

LED matrix

I decided to play a little bit with LED matrix, so i will write what i found out.

Thursday, August 14, 2014

LED hearth

A long time ago i have spotted LED hearth circuit on radio-hobby.org. It was so simple, but effect was really interesting, so i decided to make it. On the Valentine's day i made my PCB and placed everything inside a clock enclosure. And used adhesive tape to keep it in place. It was my first project.