Electronics tutorials including microcontroller, microprocessor, programing and circuits. Intended for beginners, electronics hobbyists, college students, professionals and educational purposes.

Getting Started with STM32 ARM Cortex-M Microcontroller using Keil IDE

In this tutorial we will learn how to blink an LED using STM32 ARM Cortex-M microcontroller STM32F103C8T6 and Keil IDE. This is a beginners hello world project. Here we use STM32CubeMx for generating basic startup code and Hardware Abstraction Layer (HAL) for Keil IDE. Components Required Hardware STM32 Blue Pill Development Board STM32F103C8T6ST-Link-V2Jumper Wires Software Keil IDESTM32CubeMX STM32 Development Board This is one of the smallest and low-cost ARM Cortex development board available in the market. It uses STM32F103C8T6, an STM32 ARM Cortex-M3 microcontroller. It provides...

Interfacing HC-05 Bluetooth Module with Arduino Uno

In this tutorial, I will explain about Interfacing HC-05 Bluetooth Module with Arduino Uno. HC-05 uses bluetooth classic and can be configured in master or slave modes. It can be interfaced with a microcontroller using UART. Components Required Arduino UnoHC-05 Bluetooth ModuleLEDJumper WiresBread Board Software Required Arduino IDEAndroid App - Arduino Bluetooth Controller HC-05 Bluetooth Module HC-05 Bluetooth Module Operating Voltage : 4 V to 6V (have internal 3.3V regulator).Operating Current : 30mAIntegrated antenna and an edge connector.Range about 10 meters.Configurable in both master and slave modes.Pins...

Interfacing DHT11 Temperature and Humidity Sensor with Arduino Uno

In this tutorial we will learn about Interfacing DHT11 Temperature and Humidity sensor with Arduino Uno. The term DHT is an abbreviation of Digital Humidity and Temperature sensor. DHT11 consists of a resistive humidity sensor, NTC temperature sensor and an 8-bit microcontroller providing cost effectiveness, anti-interference ability, excellent quality and fast response. Components Required DHT11 SensorArduino Uno0.96 inch OLEDBread BoardJumper Wires DHT11 Temperature and Humidity Sensor DHT11 Temperature and Humidity Sensor Module - PIN Diagram Specifications Operating Voltage : 3V ~ 5.5VTemperature range : 0...

Interfacing L298N Motor Driver with Arduino Uno

In this tutorial we will learn how to interface L298N motror driver with Arduino Uno. You might be thinking why we need L298N for controlling a motor. The answer is very simple, Arduino board or a microcontroller IO pins don't have enough current/voltage driving capability to drive a motor. For driving the motor in both directions (clockwise and anti-clockwise) we need to use an H-Bridge. Please read our article H-Bridge - DC Motor Driving for more information. L298N is an...

Interfacing Mercury Tilt Switch with Arduino Uno

In this tutorial we will learn how to interface Tilt Sensor with Arduino Uno. As the name suggests, it is an electronic device used to detect the orientation or tilting of an object and provides digital output based on the orientation. It behaves like a normal ON - OFF switch that is controlled by tilting. Tilt sensor consists of a mercury ball and two contacts in a sealed enclosure, in which the mercury ball will short the leads based on...

Interfacing Servo Motor with Arduino Uno

In this tutorial we will learn how to interface servo motor with Arduino Uno. Servo Motor is an electrical linear or rotary actuator which enables precise control of linear or angular position, acceleration or velocity. Usually servo motor is a simple motor controlled by a servo mechanism, which consists of a positional sensor and a control circuit. Servo motor is commonly used in applications like robotics, testing automation, manufacturing automation, CNC machine etc. The main characteristics of servo motor are...

Interfacing Ultrasonic Sensor with Arduino Uno

In this tutorial we will learn about integrating HC-SR04 ultrasonic distance sensor with Arduino Uno. Ultrasonic sensors are commonly used for obstacle detection and distance measuring applications. The sensor works on the same principles of a radar system, which converts electrical energy into acoustic waves and vice versa. The HC-SR04 ultrasonic sensor is based on the principle of SONAR, which is an abbreviation of Sound Navigation Ranging. This sensor is used in many hobby projects where there is a need...

Blinking LED using LPC2148 – ARM Microcontroller Tutorial – Part 3

Hello World In this tutorial we will learn how to start programming an ARM microcontroller. This is a hello world project (blinking an LED) intended for beginners to ARM microcontroller programming. Here we are using LPC2148 ARM microcontroller and Keil IDE for programming. Components Required LPC2148 Development BoardLED220R Resistor Registers In this section we will learn about different registers used for configuring or controlling a pin of an ARM microcontroller. In microcontrollers, pins are divided in to different PORTS. Usually a 32-bit microcontroller will have...

>