Adding DAC to Arduino or any other microcontroller

Most of the 8-bit microcontrollers lack integrated DAC (Digital to Analog Converter) functionality. This is handy when you need to generate analog signals out of digital information. Adding DAC to any existing microcontroller is a piece of cake. But before you start, why not look at various options available. Embedded newbie provides a review of Arduino DAC solutions. Beginning with the R-2R ladder solution list goes through multiple ways of converting digital to analog. Depending on your needs and the speed required, a PWM DAC converter is nothing more than a digital signal passed through a low pass filter. This is how motor control works. It’s relatively slow, but serial that gives an advantage when small pin count microcontrollers are used. On the other hand, if signal speed is an issue, then parallel DAC – same R-2R ladder probably with an output buffer circuit. And lastly, there is always an option to use specialized DAC chips that can be interfaced through one of the available interfaces like SPI. These save space and MCU pins and still provide high resolution and speed.

Continue reading

Getting hands on Arduino Ethernet Shield

Probably everyone knows Arduino and perhaps using it. This development platform is worth its popularity. Probably the best thing about it is open-source ideology. Indeed it is an excellent development platform that includes software and hardware solutions where even non-electronics guru can master great projects. In a few years, Arduino has grown in a great community around the world. And that is great – this means that you have access to endless resources, endless project ideas and lots of members willing to help if you are stuck with something. All the necessary information you can always find in https://www.arduino.cc/. OK, enough of talkies. Let’s see what we have here. Thanks to SparkFun electronics, Arduino Duemilanove stands on my table fully assembled and ready to work. I decided to give a try on Arduino Ethernet shield based on Wiznet W5100 chip. It has a library, so you don’t need to think of details how Ethernet chip is controlled. Few lines and you have some info in your favorite browser.

Continue reading

Arduino introduces new boards – Uno and Mega2560

Arduino is a well-known platform among electronics hobbyists because of its simplicity, robust and intuitive design, and ease of use even for non-electronics enthusiasts. Instead of introducing new PCB variants or different microcontrollers on board, they made some significant upgrades in the Arduino concept. Recent changes came with two new Arduino boards, so-called Uno and Mega2560. Probably the most significant difference is the USB to serial converter. They decided to replace seemed to be hard-positioned FTDI chip FT232RL with microcontroller Atmega8U2 that has a hardware USB interface. With this upgrade, the Arduino board becomes much more flexible as a microcontroller driver can be configured more than a simple USB to serial converter. It also can convert Arduino to a standard keyboard, mouse, MIDI, and mass storage device. So, there are much more ways to use Arduino now. But this is not over yet. Arduino decided to change the bootloader too with the new Optiboot firmware that brings some improvements as well. The new bootloader occupies 1.5kB less code space leaving it for applications and loads firmware to flash faster.

Continue reading