Categories
Examples

PIC Timer1 External Clock Frequency Counter

We are using the PIC16f887 microcontroller’s internal Timer1 module in External Clock mode to count the number of clocks on the associated pin RC0. While using the timer1 module, we have two options for selecting the clock source, 1 is to use the internal clock or we can select the external clock source by setting […]

Categories
Examples

MicroPython getting started Guide

MicroPython is getting hype these days, due to the most advanced microcontrollers and development boards are now supporting the MicroPython. Especially the MicroPython support for ESP8266 and MicroPython for ESP32 board and now the modern Raspberry Pi Pico board is also supporting the MicroPython. Originally the MicroPython was designed for Pyboard which was specially designed […]

Categories
Examples

PIC16F676 LED Blink Program

LED Blink Program is a hello world program of microcontroller world. It not only gives us the idea of how to use the GPIOs of the microcontroller but also makes us sure that our development environment is stable and ready to use. PIC16F676 microcontroller is a 14 pin microcontroller that is very much suitable for […]

Categories
Examples

Arduino RTC based Digital Clock with 7 segment module

Digital Clock with Arduino is an important and simple project to start with RTC. RTC Stands for Real-time Clock. Whenever we require the real-time clock management system we need to use some RTC interface. Componenet List Here is the list of components that we are going to use for building this setup Arduino Nano TM1637 […]

Categories
Examples

How to Control Your DC Motor Using Arduino

For an overview, DC Motor Control using Arduino is the automation of DC Motor. With the help of this automation, one can create advanced as well as simple voltage control and proportional control of DC Motor. To begin with, let’s discuss the DC Motor control with Arduino, the automation system of DC Motor with L298 […]

Categories
Examples

PWM in Arduino

Arduino Nano is a very good machine when it comes down to multitasking automation tasks. For many industrial designers, PWM is their main criterion when looking for a suitable automation platform. PWM stands for “Pulse width modulation”, which simply means that it is a type of signal that contains a range of possible frequencies. PWM […]

Categories
Examples

STM8s External interrupt example

Using External Interrupt is one of the key feature of any microcontroller. Just like any other microcontroller, STM8s series also provide the external interrupt functionality out of the box. If you are coming with any other 8-bit microcontroller family like the 8051 series you may notice that those microcontrollers provides limited numbers of pins for […]

Categories
STM8 Cosmic C Examples

STM8S UART Example Code

UART is one of the rudimentary and crucial peripheral. Using UART in STM8 microcontroller is also effortless. We will use STM8S003F3 or STM8S103F3 Blue pill board for the demo purposes. But this code will equally work well on other variants of the STM8S microcontrollers. As I had tested this code on STM8S903K3 micro controller as […]

Categories
ESP8266 Examples

Log Temperature sensor data to Google sheet using NodeMCU ESP8266

We often need to log data to different platforms. Due to the wide popularity of the NodeMCU, it is now possible to Log data to a secure and easy to access data sources like Google Sheet. Today, we are going to log temperature sensor data to google sheet using nodemcu esp8266. The reason for choosing […]

Categories
Examples ESP8266

DS18b20 Interfacing with ESP8266 NodeMCU board

DS18b20 is a temperature Sensor module which works on single wire protocol. The reason to choose DS18b20 as a temperature sensor is because, we can interface many DS18b20 sensors on single wire. So we do not need extra pins for interfacing as well as we also do not need analog pins. Because ESP8266 Nodemcu module […]