Microcontrollers

MicroControllers (MCUs) are the hardware heart of every IoT application. On the one hand they interface with the sensors, acquiring and processing data, on the other they interface with the network, transmitting the data to other devices or to the cloud.

The main advantage of MCUs is their small size and low power consumption, which makes them ideal for use in applications where space and power are at a premium. They are also highly customizable, with a wide range of peripherals and features available, allowing them to be tailored to specific applications. So, they are a key building block in many electronic systems, providing the control and processing capabilities needed to power a wide range of devices and applications. MCUs are commonly used in a wide range of applications, including automotive systems, industrial control systems, consumer electronics, and IoT devices. They are often used in applications that require real-time processing and low power consumption.

The main characteristics of microcontroller units (MCUs) for IoT (Internet of Things) applications include:

  • Low power consumption: MCUs used in IoT devices typically need to operate on limited power sources, such as batteries, for extended periods of time. As a result, low power consumption is a key characteristic of MCUs for IoT.
  • Small size: IoT devices are often small and compact, and therefore require MCUs that are also small in size to fit within the device's form factor.
  • Built-in connectivity: MCUs for IoT often include built-in connectivity options, such as Wi-Fi, Bluetooth, or other wireless protocols, to enable communication with other devices and the internet.
  • Real-time processing: IoT devices often require real-time processing capabilities, such as sensors that provide immediate feedback, and therefore MCUs for IoT need to be able to handle real-time processing requirements.
  • Low cost: IoT devices are often produced in large volumes, and therefore require MCUs that are affordable to produce at scale.
  • Security features: IoT devices often require security features, such as encryption and authentication, to protect against cyber threats. MCUs used in IoT applications need to include these security features to help ensure the security and privacy of IoT data.

IoT-basics-5

Example of flexible MCU for wearable IoT applications

In general, MCUs for IoT need to balance power consumption, processing capabilities, connectivity options, and security features, while remaining cost-effective and small in size, to meet the requirements of IoT applications.

Due to their vastness of applications, there are MCUs of different shapes, sizes, consumption. There are MCUs that only perform calculation functions and others that have integrated sensors or connection devices. Some MCUs are better suited for prototyping (rapid development of amateur or test applications), others are better suited for professional application development. In the IoT field there are even wearable MCUs, suitable for being integrated into clothes or accessories. Each manufacturer often offers different types of MCUs with different functions and suitable for different applications. It is therefore very difficult to exhaustively describe the MCUs currently available on the market, even only for IoT applications.

Here are some of the more popular ones:


Arduino

Arduino is an open-source platform for building electronics projects. It consists of a physical programmable circuit board (MCU) and an integrated development environment (IDE) that runs on a computer and is used to write and upload code to the microcontroller. The Arduino board can be connected to various sensors, actuators, and other electronic components, allowing users to create interactive projects and prototypes.

Arduino platform was originally developed in 2005 by a team of designers and programmers at the Interaction Design Institute Ivrea in Italy. It was intended as a low-cost, user-friendly alternative to traditional microcontroller development boards, with a focus on simplicity and ease of use.

Arduino is popular for several reasons:

  • Easy to use: The Arduino platform is designed to be simple and easy to use, even for beginners with little or no programming experience. The Arduino IDE includes a user-friendly interface and simplified coding syntax, making it easy to get started with building and programming electronic projects.
  • Low cost: The Arduino platform is relatively inexpensive compared to other microcontroller development boards, making it accessible to a wide range of people. The low cost also makes it easy to experiment and try out different ideas without investing a lot of money.
  • Open-source: The Arduino platform is open-source, meaning that the design files and software are freely available to anyone to use, modify, and distribute. This has led to a large community of developers who have created a vast library of code and tutorials that make it easy to learn and build with Arduino.
  • Versatility: The Arduino platform can be used for a wide range of applications, from simple LED blink projects to more complex robotics and home automation systems. The ability to easily connect to a variety of sensors, actuators, and other electronic components makes it a versatile platform for building interactive projects.
  • Community support: The Arduino community is large and active, with many forums, blogs, and online resources available to help users troubleshoot problems, share ideas, and learn from others.

IoT-basics-6

Some Arduino boards

Another advantage that has made Arduino popular worldwide are the shields. Arduino Shields are add-on boards that can be plugged into an Arduino microcontroller board to provide additional functionality. Shields are designed to be compatible with the standard Arduino form factor and can be easily stacked on top of an Arduino board, allowing users to easily add new features and capabilities to their projects. There are a wide variety of Arduino shields available, each designed to provide specific features or functions. Some popular types of Arduino shields include Ethernet Shields, Wi-Fi Shields, Motor Driver Shields, LCD Shields, Sensor Shields, etc. Arduino shields are a convenient and easy way to extend the functionality of Arduino boards, allowing users to quickly and easily add new features and capabilities to their projects without the need for extensive wiring or hardware integration.

Arduino has since become a popular platform for hobbyists, artists, students, and professionals in a variety of fields, including robotics, home automation, and education. Its popularity is due to its low cost, ease of use, and large community of developers, who have created a vast library of code and tutorials that make it easy to get started with Arduino. In February 2019, Arduino announced its IoT Cloud service as an extension of the Create online environment.

Arduino has democratized the process of building and prototyping electronics projects, making it accessible to anyone with an interest in electronics and programming. As of February 2020, the Arduino community included about 30 million active users based on the IDE downloads.

 

Raspberry Pi

Raspberry Pi is a series of small, low-cost, single-board computers that can be used for a variety of projects, including robotics, home automation, media centers, and more. It was developed by the Raspberry Pi Foundation, a UK-based charity organization, with the goal of promoting the study of computer science and electronics in schools and developing countries.

Raspberry Pi is similar to a traditional desktop computer, but with a smaller form factor and lower cost. It typically includes a CPU, GPU, RAM, and built-in Wi-Fi and Bluetooth connectivity. The Raspberry Pi can be powered by a USB cable and can be connected to various peripherals, such as a keyboard, mouse, and monitor.

Raspberry Pi runs on a variety of operating systems, including Linux-based distributions like Raspbian and Ubuntu, as well as Windows 10 IoT Core. It also has a large and active community of developers who have created a vast library of software and projects that can be easily adapted for use with the Raspberry Pi.

IoT-basics-7

Raspberry Pi 4 B

Raspberry Pi is popular for IoT applications for several reasons:

  • Low cost: The Raspberry Pi is a low-cost computer, making it an affordable option for IoT projects. The low cost also makes it possible to deploy large-scale IoT systems at a lower cost.
  • Versatility: The Raspberry Pi is a versatile device that can be used for a wide range of applications, including IoT projects. It can be used to collect and analyze data from various sensors and devices, communicate with other devices, and control actuators.
  • Easy to use: The Raspberry Pi is designed to be user-friendly, with a simple setup process and an intuitive graphical user interface (GUI). This can be particularly helpful for IoT projects that involve non-technical users or those without extensive programming experience.
  • Connectivity: The Raspberry Pi has built-in Wi-Fi and Bluetooth connectivity, which can be used to connect to a variety of sensors and devices. It also has Ethernet connectivity for wired networks.
  • Large community: The Raspberry Pi has a large and active community of developers who have created a vast library of software and projects that can be easily adapted for use with the Raspberry Pi. This makes it easy to find resources and get help with any issues that may arise during a project.

Raspberry Pi is a versatile and affordable platform that can be used for a wide range of projects, from basic computing tasks to complex IoT applications.

 

ESP32

ESP32 is a low-cost, low-power, highly integrated microcontroller designed for Internet of Things (IoT) applications. It is developed by Espressif Systems, a Chinese company that specializes in microcontroller and Wi-Fi technology.

ESP32 is a dual-core microcontroller with built-in Wi-Fi and Bluetooth connectivity. It also includes a variety of interfaces, such as SPI, I2C, UART, and ADC, which makes it easy to connect to a wide range of sensors and devices. In addition, it has a large amount of memory and supports a variety of operating systems, including FreeRTOS and Espressif's own ESP-IDF (IoT Development Framework).

IoT-basics-8

ESP 32

ESP32 is known for its low power consumption, which makes it ideal for battery-powered IoT applications. It also includes a variety of power-saving features, such as a sleep mode, that can be used to further reduce power consumption.

In conclusion, the ESP32 is a powerful and versatile microcontroller that is well-suited for a variety of IoT applications, such as smart home devices, industrial monitoring systems, and wearables. It offers built-in Wi-Fi and Bluetooth connectivity, a variety of interfaces for connecting to sensors and devices, and low power consumption, which makes it an attractive option for IoT developers.

 

STM32

STM32 is a family of microcontroller units (MCUs) produced by STMicroelectronics, a global semiconductor company. The STM32 family of MCUs is based on the ARM Cortex-M processor and is widely used in a variety of applications, including industrial control systems, home automation, wearables, and automotive systems.

STM32 MCUs are known for their high performance, low power consumption, and support for a wide range of communication protocols, including USB, Ethernet, and Wi-Fi. They also offer a wide range of peripherals, such as timers, analog-to-digital converters, and communication interfaces, that make them suitable for a wide range of applications. STM32 microcontrollers come with several built-in security features, such as hardware cryptographic accelerators, secure boot, and secure firmware update, which are essential for secure IoT applications.

IoT-basics-9

STM32 Nucleo

In addition to the hardware features, STM32 MCUs are supported by a comprehensive set of software development tools, including the STM32CubeMX tool, which helps developers configure and generate code for their STM32 projects. The STM32 family also has a large and active community of developers, with extensive documentation, code examples, and forums available to support developers in their projects.

STM32 family of MCUs is a popular choice for IoT applications due to their combination of performance, low power consumption, communication capabilities, and software support. They are commonly used both for prototyping and for professional applications.

 

MSP430

MSP430 is a type of microcontroller developed by Texas Instruments (TI). It is a low-power, high-performance microcontroller that is designed for use in embedded systems. The MSP430 microcontroller is widely used in a variety of applications, including medical devices, consumer electronics, industrial control systems, and automotive applications.

IoT-basics-10

MSP430 LaunchPad

MSP430 microcontroller is known for its low power consumption and efficient use of resources. It is available in a range of configurations, including flash memory, RAM, and various peripheral interfaces. The MSP430 microcontroller is also known for its versatility, with support for multiple communication protocols and a wide range of input/output options.

Texas Instruments provides a comprehensive suite of tools and software for programming and debugging the MSP430 microcontroller, including development kits, compilers, debuggers, and software libraries. These tools help engineers and developers to quickly develop and deploy MSP430-based applications.

 

SPRESENSE

Sony Spresense is a compact development board designed for building IoT applications. It features a powerful Arm Cortex-M4F processor running at 156 MHz, along with a variety of integrated sensors and hardware interfaces. The board is equipped with a 6-axis accelerometer and gyroscope, a digital microphone, a temperature and humidity sensor, a barometric pressure sensor, and a GPS receiver.

In addition to the integrated sensors, the Sony Spresense board also features a range of hardware interfaces, including UART, I2C, SPI, USB, and audio input/output. It also has a microSD card slot for external storage, and a JTAG interface for debugging and programming.

IoT-basics-11

Sony SPRESENSE

Spresense board is designed to be easy to use and is supported by the Arduino IDE, making it accessible to a wide range of developers and makers. It is also compatible with the Sony's own "NuttX" real-time operating system, which provides a robust and efficient platform for building complex IoT applications.

In general, the Sony Spresense board is an excellent platform for building IoT applications, with its powerful hardware, integrated sensors, and easy-to-use software tools.