Author: nebel

Replacing the Wire Library—Sometimes

The featured picture of this blog post is by user18526052 on Freepik.

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

Debugging 2.0

The featured image of this blog post is based on vector graphics by captainvector at 123RF.

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.

I sell on Tindie

Continue reading

Calibrating Your AVR MCU

The featured picture is by OpenClipart-Vectors on Pixabay.

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

ATmega328P: Fake or Real?

The featured image of this blog post is by PublicDomainPictures from Pixabay.

Recently, I bought some ATmega328P-PU (DIP packages) chips in China and was concerned that they might be counterfeit, given that three years ago some ATmega328P clones, which did not support nano-power, had been found on Pro Mini boards. The first check looked as if they were fake chips, but apparently, they were the real thing. but they seem to work fine.

Continue reading

Copyright © 2024 Arduino Craft Corner

Theme by Anders NorenUp ↑