ATmega328P – measuring its own supply voltage III

Timing of the internal analog-to-digital converter of an ATmega328P with a 5 V supply voltage.

After the first two parts of this series ATmega328P – measuring its own supply voltage ATmega328P – measuring its own supply voltage II where I investigated the possibility of the Atmel ATmega series microcontrollers to select the internal bandgap voltage VBG as input for the analog-to-digital converter. Using the analog supply voltage AVcc as reference… Continue reading ATmega328P – measuring its own supply voltage III

ATmega328P – measuring its own supply voltage II

A simple yet versatile testcircuit for the analod-to-digital converter.

Here is a brief follow up from yesterday’s post on the internal reference voltage VBG of the ATmega328P. I wrote a small test program where I wait for a variable delay time after switching the input multiplexer of the analog-to-digital converter to the internal bandgap reference voltage VBG. Using the AVcc of as the conversion… Continue reading ATmega328P – measuring its own supply voltage II

ATmega328P – measuring its own supply voltage

A sketch of the test circuit on a breadboard.

The trick is not new, it is utilized in the AVR transistor tester which you can buy for quite cheap money from China, and it has been discussed in internet forums for almost 10 years (see below for some links). The Atmel AVR microcontrollers feature an analog to digital converter (ADC) equipped with a multichannel… Continue reading ATmega328P – measuring its own supply voltage

XeTeX and your math is bitmapped?

Bitmapped math in XeLaTeX output.

I have now been using XeLaTex exclusively for quite a while for all my LaTeX work, which essentially means for everything: lecture notes, lecture slides, lab instructions, letters, reports,… For some shorter time the symbols in my equations would show up ok on screen but a bit blurry on printouts. I was looking for the… Continue reading XeTeX and your math is bitmapped?

Brave New World

MS Outlook Web App - a survival mechanism for Outlook/Exchange refuseniks.

Today my employer, Uppsala University, will migrate our email system from an open-source and Unix based one to Exchange Server. At the same time we are all encouraged to migrate ourselves to using Exchange/Outlook for the sake of the benefits. Well, I will not, ever… Some working group in the administration has decided that it… Continue reading Brave New World

AVR ISP breadboard adapter

My very own AVR ISP adapter on a breadboard.

Breadboards are great! I mean the solderless breadboard type which you can get everywhere now for almost no money. I use them all the time to prototype electronics circuits and have been forcing my students to do the same. Most of my current projects also involve AVR microcontrollers which support an in-system programming. For this… Continue reading AVR ISP breadboard adapter