Dejan Levec


Compiling programs for OpenWRT

When I was trying to compile my first OpenWRT program I searched around the web, but didn’t found any useful (at least to me) tutorials/guides that would help me. After spending a few hours behind a computer and figuring out how to do this I found the easiest way to do it. The are two […]

DS18S20 and MSP430

Couple of weeks ago, when I was thinking about what temperature sensors to use with my heating controller, I remembered DS18S20 and instantly order samples from Maxim. Today I finished programming software for main controller – MSP430 chip and I want to show you, how I got those sensors working by bitbanging data pin. Sensors […]

Heating controller – Triac board

Hi, I successfully designed, etched and build triac board for my central & water heating controller. Board is divided into two parts: Triac & optocoupler part Power supply part   Board features four BTA12 triacs that are driven by MOC3063 optocouplers and have snubber circuit. Optocouplers input will be controlled via MSP430 microcontroller. Power supply […]

Central & water heating controller

About a year ago I decided to replace analog heating controller at home with something a bit more advanced. I have designed circuit and PCB at that time, but haven’t made until recently. It consisted of ATmega328 microcontroller, 4 relays and ENC28J60 breakout board for network connection. When I was writing source code, I thought […]

STM32F4 Discovery board

I bought STM32F4 Discovery board from Farnell two months ago, but I got to it only two days ago. After testing some examples and trying to interface with ENC28J60 Ethernet Controller, I quiclky found out, that free versions of development tools cannot build executables bigger than 32KB. So I decided to install toolchain on Ubuntu […]

RFID Reader

Code Latest source code is available at Hex file is available only for ATmega8 at 16MHz. Host executable is available only for Intel Macs with latest software update. Currently you need to request ID from a device. Example: ./set-led status Receiving ID when tag is scanned is still in progress. (I have some problems […]

AVRs on Ubuntu

Installing AVR environment on Linux is very hard. Firstly you need to download source code of all the tools, then install additional necessary libraries and compile everything which can take a lot of time … On Ubuntu it\’s easy, you just need to install 3 programs with apt-get command. 1. Open Terminal 2. Copy-Paste into […]

Old mobile phone, RS232

A few days ago a friend send me an old mobile phone for using in a project about weather information in a remote location. On the internet I found which pins on telephone are TX, RX, GND. I simply connected them to USB -> RS232 cable, when I found out that I must destroyed it […]

H-bridge and transistors

[center][img]/media/someone16/uploads/BipolarHBridgeSchematic.png[/img][/center] For a couple of days I was building a robot … not really a robot, just a simple car, that I could controll by my laptop. Today I got the wheels spinning, but only in one direction. I intended to use H-bridge but I didn’t have both types of transistors (PNP and NPN) so […]

AC Switching By Computer

Project I’m building a device for switching AC devices by computer program through USB. It could be used for light show, home automation system, etc. I’ll be using 8 triacs with 8 opto-triacs (to protect microcontroller and computer from direct contact with AC line). I haven’t build it yet because I don’t have every part […]