My Notebook

My DIY wireless solar powered temperature sensor network

Author
Andreas Rohner
Date

This post describes my DIY wireless solar powered temperature and humidity sensor network, which I have installed in my apartment. Everybody can buy a cheap solar powered weather station, but I wanted to build it myself and learn a thing or two about electronics in the process. read more...

New Arduino library for 433 MHz AM radio modules

Author
Andreas Rohner
Date

I have just finished my new Arduino library for 433 MHz AM radio modules with a focus on reliable one-way communication and forward error correction. There already are a few libraries that work with these cheap little modules, namely VirtualWire and its successor RadioHead as well as rc-switch, but I wasn't quite happy with either of them. read more...

How to make the Watchdog timer work on an Arduino Pro Mini by replacing the bootloader

Author
Andreas Rohner
Date

I have just spent several hours debugging a very annoying issue with the Arduino Pro Minis Watchdog timer, until I finally realized that the fault wasn't in my code, but in the bootloader. The Watchdog timer is used to reset the microcontroller, if it is non-reactive for a certain period of time. The microcontroller can crash or enter an infinite loop for any number of reasons, so an automatic recovery from these states is an important feature. read more...

How to set the PWM-frequency for the Attiny84

Author
Andreas Rohner
Date

Pulse-width modulation can be used by a microcontroller to control the power supplied to other devices like LEDs or motors. It works by switching a digital pin on and off at a high frequency. The power supplied to the device is determined by the length of time the pin is on versus off. This relation is given as a percentage and is called the duty cycle. read more...

How to fix device permissions for the USBasp programmer

Author
Andreas Rohner
Date

If you try to use the popular, open-hardware ISP programmer USBasp in Linux as a regular non-privileged user, you get an error message like this:

avrdude: Warning: cannot open USB device: Permission denied
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'
read more...

How to modify an Arduino Pro Mini (clone) for low power consumption

Author
Andreas Rohner
Date

Yesterday I decided to do a little project with my cheap Arduino Pro Mini clone, which had been lying around for a while. I decided to power it with normal AA batteries and I assumed that this tiny board would already use the minimal possible amount of power. But I soon discovered that it had an annoyingly bright power LED, which couldn't be turned off. While searching for a solution, I came across lots of articles and posts with catchy titles like "How to run an Arduino (clone) on (AA) batteries for over a year", but I couldn't find a step by step guide for a total beginner like me. Since my Arduino clone had cost me only 7 €, I decided to warm up my soldering iron and start messing with it. read more...