TheCodersCorner.com items tagged with arduino.

How the Arduino memory model works - for AVR

By dave

An overview of memory organisation All general purpose processors, be it Intel, ARM or AVR devices work by reading instructions from memory and executing them. They are generally based on one of two Architectures: Von-Neumann or Harvard. The vast majority of larger systems such as PC's and mobile devices use Von-Neumann, but AVR processors in Arduino boards such as Uno and...

Detecting power loss in a power supply

By dave

There are times when your program needs to react to your device being turned off, for example to save the current state of an Arduino sketch to EEPROM before shutting down, or to disengage relays in a power module to ensure there is a clean shutdown. Usually, the power loss detector is designed as part of the power supply, so...

Consider using Arduino for your new product

By dave

Edited 02/2026: Over the time I wrote this around 7 years ago, things have really moved on. Now many low volume IoT solutions do ship from what's effectively Arduino, or similar. I was proven right and even native chains have all moved toward simplified builds with CMake and helpful starting points. PlatformIO is heavily used and productionizes Arduino builds. CLion by...

Making an arduino board holder from ply & wood

By dave

Making a nice case for an Arduino board can range from the simplest possible case , a piece of plywood the right size, with a few holes to mount the board, right through to an intricate box with closing lid etc. This one probably falls in the middle somewhere. Why another Arduino board holder you ask? Now that my son has...

Arduino digital input and output tutorial

By dave

In this tutorial and accompanying youtube video (left), I discuss how Arduino inputs and outputs work. Arduino 8 bit boards are mainly based on Atmel AVR chips, in fact the Mega is named after the chip number AVR-Mega-2560. Outputs on the AVR chips are much more versatile than they first look, and the video covers this in detail. If you are...

IO abstraction: the same code for pins, shift registers and i2c IO

By dave

When writing Arduino code that needs quite a few IO pins, you may need to expand the IO using a shift register or i2c expansion device such as the PCF8574. Up until now that meant significantly changing your code to use the new device. If you were using the IOAbstraction library , then you'd just set up a different type of...

Designing a simple PGA2310 based preamplifier with network control

By dave

At the moment I am prototyping a high quality pre-amplifier based around the PGA2310 volume control and an op-amp buffer input with RF filtering. Each channel will be selectable by relay, along with gain adjustment for each channel in terms of increase in dB. Each channel will be assigned a name that can be changed easily in software and stored along...

SPI Serial Peripheral interface for Arduino tutorial

By dave

In this tutorial, I present a fictional SPI chip that we will use for the sake of example. This chip has two LED's and controls them over SPI. It will help us to understand SPI with a real worked example. Following on we will build a real world circuit, using the SPI library, to see how easy it is to use...

Arduino to PC communication using USB serial and Java

By dave

In this article, I present an example showing how to connect an Arduino device to your PC using USB serial and Java. USB serial is available on nearly all Arduino based boards. Further, there are serial interface Java libraries that can connect to an Arduino. If you are unfamiliar with data communications in general, take a look a the introduction to...

Wiring a 20x4 character display to an Arduino board

By dave

In this article I describe how to wire a 20x4 character display to an Arduino. I'm assuming you are using a regular 5V 8bit Arduino, if this is not the case this article will not work for you as you'll need voltage level converters. Most character based LCD displays use the same wiring, but I can't guarantee that all will be the...

These may be of interest

We use cookies to analyse traffic and to personalise content. We also embed Twitter and Youtube on some pages, these companies have their own privacy policies.

See the privacy policy and terms of use of this site should you need more information or wish to adjust your settings.