Debugging classic AVRs in the Arduino IDE 2 is finally possible! It took a while to implement this feature, but now it is just a piece of cake to enable debugging and start using the debugger.
Continue readingPage 2 of 7
Resurrecting Bricked AVRs
The featured picture of this post has been generated by Dall-E.
Three years ago, I wrote a short blog post about AVR fuses and what to do when you brick your MCU by setting the wrong fuse. This included a lot of jumper wires. In order to get rid of the jumper wires, I decided recently to design an Arduino shield that supports resurrecting bricked MCUs.
Continue reading
An IoT Badge Rack
If you own several badges, cards, or tickets and would like to automatically publish the number of unused badges on the web in real-time, there is no off-the-shelf solution. This post describes how to build such an IoT system.
Continue reading
Connecting the AVR-IoT Cellular Mini Board to the Internet
When you want to connect a sensor or actuator to the Internet and there is no WLAN around, then the next best option is LPWAN (Low-Power Wide Area Network). In this blog post, I will describe how to connect a sensor to a website using the AVR-IoT Cellular Mini board by Microchip.
Continue reading
Software I2C Multiplexer
What can you do to connect many I2C devices with the same device address to an MCU? Most often, the advice is to use hardware solutions. Here, we will look at how to solve the problem with software employing the FlexWire library.
Continue reading
Replacing the Wire Library—Sometimes
The Wire library is the one that connects your Arduino to sensors and actuators that communicate using the I2C protocol. Unfortunately, this library has a lot of shortcomings, and often you want to replace it with a different I2C library. Replacing the Wire library on a per-sketch basis turns out to be more complicated than one would expect. In this blog post, I describe an easy way to accomplish that.
Continue reading
The New ATtinys
Microchip launched a new generation of ATtinys. Is it worthwhile to consider them for your next DIY project?
Continue reading
Spontaneous MCU Restarts: Why Do They Happen?
AVR MCUs sometimes appear to restart without you having pressed the RESET button or any other obvious reason. Is that a sign of resilience or of looming danger? How can you find the root cause?
Continue reading
Debugging 2.0
What keeps people from using a debugger? Well, it is mostly that one has initial costs in terms of setting up the debugging environment and of learning how to use the debugging tool. Hopefully, the next iteration of my hardware debugging tool dw-link, which is able to debug classic ATtinys and ATmegaX8s, will somewhat ease that burden, in particular, because you can buy the accompanying hardware now at Tindie.
Continue reading
Calibrating Your AVR MCU
In building one’s own MCU board, one often does not use a crystal or resonator. Instead, the internal RC-oscillator is employed, which can be quite inaccurate. Similarly, if one wants to use the internal reference voltage to measure the supply voltage, it turns out that the reference voltage can deviate from its nominal value quite a lot. Both, the RC-oscillator and the internal reference voltage can be calibrated, though. In this blog post, I describe a simple method to calibrate both using only a UNO board and a multimeter employing the avrCalibrate library.
Continue reading