Ambient light sensor TEMT600

TEMT6000 is ambient light sensor. It is sensitive to visible light much like human eye and has peak sensitivity at 570nm. Visible spectrum is 390 – 700 nm. The sensor can handle voltages from 3.3v and 5v. The sensor has been designed into a voltage divider circuit. To read that voltage connect SIG pin toContinue reading “Ambient light sensor TEMT600”

Electronic “paper crane” or orizuru – freeform circuit

I had a bunch of smd LEDs and no idea what to do with them. But then, when I had watched all these events in Hong Kong. And when I had seen how they make this paper cranes I decided to make my own version. It use ATtiny13 AVR microcontroller and software PWM to slowlyContinue reading “Electronic “paper crane” or orizuru – freeform circuit”

Fotogrammeetria

Mis on fotogrammeetria Fotogrammeetria on protsess, kus me teeme hunniku järjestikuseid pilte mingist objektist ja laseme arvutil neist rekonstrueerida kolmemõõtmelise objekti. Nagu panoraamfoto tegemisel peab ka siin iga järgmine foto katma osaliselt sama ala, mis eelmine. Seejärel targad programmid ja algoritmid analüüsivad pilte ja proovivad tuvastada, mis on esiplaanil (teravamad) või tagaplaanil (udusemad), mis osadContinue reading “Fotogrammeetria”

C vs. C++: Bubble sort

I have identical bubble sort algorithm in C and C++. Same data and same computer. Experiment shows that C is twice as slow as C ++. In C it takes 124 processor clicks or 0.000124 sec. In C++ it takes 66 processor clicks or 0.000066 sec. C Bubble sort code: C++ Bubble sort code: https://github.com/taunoe/cpp-examples/tree/master/Sorting-algorithms/Bubble-sort