Exploring Super Cheap Microcontrollers and How to Get Started

Exploring Super Cheap Microcontrollers and How to Get Started

Choosing the right microcontroller can be a daunting task, especially when budget is a concern. In this article, we'll explore various super cheap microcontrollers and provide a step-by-step guide on how to start working with them. Whether you're a beginner or an experienced programmer, this guide will help you make an informed decision and get up and running with your project.

What Are Super Cheap Microcontrollers?

When looking for a microcontroller that won't break the bank, the term 'super cheap' can be quite relative. The cost of microcontrollers can vary widely depending on the quantity purchased and the specific model. However, there are some standout options that are particularly cost-effective.

One such example is the 8-pin PIC microcontroller from Microchip. Though not always the lowest-cost option, the 8-pin PIC often offers a balance between performance and affordability. For instance, the ATtiny85 costs around $2.50 and features 8 pins in both dual in-line package (DIP) and surface mount configurations. It has an internal RC-based clock of up to 16 MHz, and it can handle ADC and PWM just like the ATTiny in the Arduino Uno, albeit with fewer pins.

The Evolution of Affordable Microcontrollers

It's important to note that a lot of microcontrollers can be significantly cheaper when purchased in bulk. For example, the Silicon Labs 8051 clone is priced at approximately $0.29 per unit for thousands of units. This makes them highly suitable for serious projects where quantity matters.

Aside from the ATtiny, there are many other affordable microcontrollers available from various manufacturers:

STMicro - Offers development boards for approximately $20, including a free IDE and limited compiler. The STM8 and ST32 development kits fit this price range and can be connected via a USB cable to your computer. Renesas, Freescale, Silicon Labs, Nordic, Nexperia, and Altera, Atmel - These companies offer microcontrollers and development boards at reasonable prices. Many of these boards are available for under $10.

How to Get Started with Super Cheap Microcontrollers

Once you've chosen a microcontroller, the next step is setting up your development environment. Almost all microcontrollers come with a "C" compiler and/or assembler, and many have the option to write programs in C. Here's a brief overview of how to get started with the ATtiny85:

Setting Up the Arduino IDE: The ATtiny can be programmed using the Arduino IDE. You'll need to download the appropriate support files and select the ATtiny in the IDE. Using Another Arduino: You can use another Arduino to program the ATtiny via its SPI pins, reset, and power pins. Alternatively, you can buy an inexpensive programmer like the USBtinyISP and add a programming socket to it. Direct USB Programming: Some versions of the ATtiny come with a board that connects directly to the PC via USB and can be programmed directly by the Arduino IDE. However, personally, I prefer the smaller 8-pin DIP version.

Key Takeaways

When it comes to working with super cheap microcontrollers, there are several key takeaways:

Quality doesn't always correlate with cost. Development boards can significantly ease the programming process. Understanding the different programming options is crucial for successful projects. The best option for you will depend on your specific needs and the project requirements.

Whether you're working on a hobby project or a commercial product, using the right microcontroller can make all the difference. With the right choice and setup, you can bring your ideas to life with minimal upfront costs.