How Workflow Automation Can Benefit Small Businesses?

Hi Friends! Hope you’re well today. I welcome you on board. In this post, I’ll walk you through How Workflow Automation Can Benefit Small Businesses?

Reduce the possibility of human error, save time and improve efficiency – The main goal of workflow automation. If your employees spend a lot of time on mundane and repetitive tasks, it’s a high time to invest in workflow automation. Especially if your business is small and you are in the early stages to leave a footprint in the competitive market. You can’t afford to hire scores of employees to do predictable tasks that you can automate with workflow automation. For instance, follow-up emails and sales calls, finance approval and invoice generation, and onboarding new employees, you can automate these tasks without having to worry about hiring someone to handle them manually.

Curious to know how workflow automation can benefit small businesses?

Keep reading.

How Workflow Automation Can Benefit Small Businesses?

Before we proceed further, we’ll cover what workflow automation is?

Workflow automation is the process to automate manual repetitive tasks to improve efficiency and reduce human error. When you apply technology to business operations, you can effortlessly translate the manual handling of processes into automation. This way employees can spend more time on value-added tasks that require a human touch and brainstorming.

What’s more, with workflow automation you can monitor employees’ performance and can immediately apply tweaks to revisit your strategic decisions. Plus, you don’t need a technical IT team to streamline processes, improve reporting and integrate two or more apps. Apps like Zapier do it for you. It involves creating Zaps that is creating links between business tools. For instance, it can integrate a website, CRM software, and messaging app to improve productivity and bridge the communication gap between customers and the agency.

Benefits of Automating Your Business

The following are the core benefits of incorporating automation into your business.

 

Increased Productivity

Chasing down people across departments is so frustrating, especially when you don’t know the current status of the file. With workflow automation, you can monitor the workflows online and get an instant alert to set priorities. This improves the productivity of the employees, allowing them to be better prepared for the pending tasks.

Lower Costs

Employees are the backbone of any industry. But you need to keep your budget in check while getting employees on board. You can significantly reduce the cost of labor workload if you automate some of your business processes. For instance, freeing employees from doing predictable and mundane tasks will help you invest in the things that involve human input.

Get Creative

When employees are free from manual tasks such as data entry, form filling, and invoice generation, they will find more time for brainstorming and get creative on the tasks that require innovation and emotion. The potential to apply intelligence, sensitivity, and expertise on the product level allows companies to deeply connect with the customers and deal with their questions and queries with deliberate intention.

Remote Work

When the pandemic hit, the demand for remote work increased more than ever before. Not everyone can manage to do an in-house job in a time of crisis. Companies that know how to manage the workforce remotely can effectively capitalize on the given resources. With workflow automation, you can seamlessly connect employees from different parts of the world. For instance, Google Drive, and DropBox allow the companies to share files across departments, and tools like Loom allow them to have full visibility of the teams.

Business Tasks That Require Automation

What tasks do we need to automate? The answer is simple: Tasks that are repetitive and require approvals and smooth communication. Following are the five tasks that you can automate in your business.

Expense Reimbursement

At times employees have to spend money on the best of money for business purposes. Companies can’t instantly pay those employees who pay out of their pocket. And when they apply for reimbursements, they come across a hassle process especially when reimbursements are handled manually.

To effectively handle such scenarios, automation is the solution. Incorporating workflow automation prevents employees to chase hectic approvals and make regular visits to the finance office. Automation makes this process straightforward. Employees simply upload the receipts on the software which instantly gets connected with the manager for approval. Once the manager grants approval, receipts move to the finance department and they release the money spent by the employees.

Onboarding New Hires

First impression is the last impression especially when it comes to onboarding new hires. The seamless onboarding process tells a lot about employees if they are going to stick with the company for a longer time.

Tasks like updating new hires, documents approval, and follow-ups can be automated before candidates even join the company. Plus, you can effortlessly communicate and assign them the tasks so they are better prepared when they embrace the new role. Automation removes the tedious paperwork and mundane approvals, allowing both employer and employees to come on the same page without the need to back and forth face to face interaction.

Vacation Requests

Every organization deals with the influx of leave requests regularly. If organizations still use traditional ways to approve requests, they might already know it’s a tedious process. At times manager feels difficulty in managing the required number of employees in the company. One employee might want the same day off already applied by another employee. If handled manually, it is very challenging to keep the record of employees with days off or those who want particular time away from the company.

Workflow automation removes this uncertainty and makes sure the company doesn’t go understaffed. Automation software tracks and keeps the record of the time of those away and the manager can instantly approve the leave requests by scanning everything on the single screen. Software is stuffed with an online form to let employees know which days are available or unavailable that automatically limits two employees requesting the same days off.

Data Procurement

No matter the type and size of your business, data procurement is a critical part of every business. It is a process that consists of a series of functions required to obtain goods and services from the vendor and keep a record of how these services and goods are used to achieve business goals. The effective use of the procumbent function directly influences the cost-saving objectives of the agency. Yes, by analyzing the data you can revisit decisions if you need to change vendors and suppliers. Data procurement goes beyond the purchase of goods and services. For instance, it also includes a better understanding of the performance of all business units, supplier performance, risk and compliance management, and contract utilization.

Manual processing of data procurement often leads to compromised risks like operational risks, delivery risks, and potential frauds. Moreover, inaccuracy and inefficiency are other issues that result from the manual handling of data. However, with automation procurement software these issues can be avoided. Automating vendor management and purchase orders guarantee enhanced compliance and greater productivity.

Instant Invoice Generation

Invoice generation is an integral part of any business. Effective invoice generation builds trust and allows clients to stay in touch with your business and keep coming back for what you have to offer. If you create invoices manually, you might need to generate an invoice every time to request payment from the client. However, with workflow automation this process becomes transparent, preventing you from entering information every single time to request the next payment. A smart automation solution comes with automation of data entry, matching prices, transferring digital payments, managing purchase orders, and more. Generating digital invoices is crucial for businesses to keep up with the modern trends and compete with rival brands.

Final Thought

When you start a small business, you need employees to keep it up and running.

However, it’s probable in the early stage of your business you’re tight on budget.

To combat this, a smart automation solution is key.

No advanced automation solutions are required. Some vendors offer low-cost solutions that perfectly fit your budget.

From vacation requests and invoice generation to data procurement and onboarding new hires, you can automate workflows for your business growth.

Know that not every business task requires automation, since some mission-critical tasks like system failure and hacking demand instant human involvement to run a business without delays.

That’s all for today. Hope you’ve enjoyed reading this article. If you have any questions, you can ask me in the section below. You are most welcome to share your experience of incorporating workflow automation into your business. Thank you for reading the article.

LED blinking with Raspberry Pi Pico and MicroPython

Hello readers, I hope you all are doing great. In our previous tutorials on raspberry pi Pico, we discussed the basic features, architecture, download and installation of development environments for raspberry Pi Pico programming. In this tutorial, we will learn how to access and control Raspberry Pi Pico and its GPIO pins to implement LED blinking using MicroPython.

Introduction

Raspberry Pi development boards are quite popular and frequently used among students and hobbyists. But the drawback of Raspberry Pi is their cost i.e., around $35-$45. So when cost of the development board is of prime importance the users prefer to use ESP8266, ESP32, Arduino, PIC etc. over Raspberry Pi. To overcome this drawback, Raspberry Pi foundations designed a new board i.e., Raspberry Pi Pico which is a cost effective solution for costlier Raspberry Pi boards.

Raspberry Pi Pico is a cost-effective development platform designed by Raspberry Pi which has enough processing power to handle complex task. It is a low cost and yet powerful microcontroller board with RP2040 silicon chip.

Prerequisites

  • Raspberry Pi Pico Module
  • Latest version of Python
  • Latest version on Thonny IDE should be installed on your system
  • MicroPython setup installed in Raspberry Pi Pico

We have already published tutorials on how to download and install the above mentioned software components.

Follow the given link for detailed study of Raspberry Pi Pico: https://www.theengineeringprojects.com/2022/04/getting-started-with-raspberry-pi-pico.html

Programming Raspberry Pi Pico

To program Raspberry Pi Pico board there are various development environments available (like uPyCraft IDE, Visual Studio Code, Thonny IDE etc.) and multiple programming languages as well. In this tutorial, we are going to use Thonny IDE to program the Raspberry Pi Pico board.

Installing Thonny IDE for Raspberry Pi Pico Programming:

We have already published a tutorial on installing Thonny IDE for Raspberry Pi Pico Programming. Follow the given link to install the IDE: https://www.theengineeringprojects.com/2022/04/installing-thonny-ide-for-raspberry-pi-pico-programming.html

The Raspberry Pi Pico board comes with an onboard LED which is internally connected with GPIO 25. So first we will discuss how to access the on board LED and then will interface an external one.

Controlling (Blinking) Raspberry Pi Pico’s on board LED:

  • Open the Thonny IDE.
  • Connect your Raspberry Pi Pico board with your system (laptop or desktop).
  • To create a new project; go to Files >> New.

Fig.

  1. Write the program to blink the inbuilt LED with a particular delay.

Programming

Steps included in programming the Raspberry Pi Pico to make the onboard LED to blink are:

  1. Importing necessary files from machine

“from machine import Pin, Timer”

  1. The onboard LED is internally connected to the GPIO 25 of the raspberry Pi Pico board. So, the next step is creating LED object from pin 25 and setting the GPIO25 as output pin.

“led = Pin(25, Pin.OUT)”

  1. Toggle the LED: toggle() command is used to blink the onboard LED.

“ led.toggle()”

  1. Save the program.
  2. Save the program. We can save the program either on computer or on Raspberry Pi Pico board.

Fig. Save the program

  1. Run the code.

Fig. Run the code

Note: If you are already running a program on Raspberry Pi Pico board then press ‘Stop’ before running a new program.

Code to blink onboard LED

from machine import Pin, Timer

led = Pin(25, Pin.OUT)

timer = Timer()

def blink(timer):

led.toggle()

timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)

Result

Fig. Blinking On-board LED

Interfacing peripherals (LED) with raspberry Pi Pico

Table 1

Fig. Iterfacing LED with Raspberry Pi Pico

Programming

Steps included in programming the Raspberry Pi Pico to make the peripheral LED to blink are:

  1. Importing necessary files from machine: We are importing two files one is to access GPIO pins and another for accessing timer functions.

“from machine import Pin”

“import time”

  1. Create LED object: We have multiple GPIOs available where we can interface peripheral LED. So we are using GPIO_14 of Raspberry Pi Pico board.

Create an object ‘led’ from pin14 and set GPIO pin14 to output.

“led=Pin(14,Pin.OUT)”

  1. Making the onboard LED to continuously blink: We are using the ‘while loop’ to make the inbuilt led blink continuously.

“while True:"

  1. Setting LED high: Thevalue()’ command is used to set the peripheral LED as high where we are passing ‘1’ as an argument for HIGH output.

“led.value(1)”

  1. Adding delay: A delay of 1 second is added to make the led blink.

“time.sleep(1)”

  1. Setting LED Low: Argument ‘0’ is passed inside ‘led.value()’ command to set the led as LOW.

“led.value(0)”

  1. Save the program either on Raspberry Pi Pico board or on your system..
  2. If you are already running a program on Raspberry Pi Pico board then press ‘Stop’ before running a new program.

Result

Fig. Interfacing and Blinking LED with raspberry Pi Pico

Code

from machine import Pin, time

led=Pin(14,Pin.OUT) #Creating LED object from pin14 and Set Pin 14 to output

while True:

led.value(1) #Set led turn ON

time.sleep(1)

led.value(0) #Set led turn OFF

time.sleep(1)

Conclusion

This concludes the tutorial, we hope you find this of some help and also hope to see you soon with a new tutorial on Raspberry Pi Pico programming.

Top 10 Workflow Automation Software

Hi Friends! Happy to see you around. Thank you for clicking this read. In this post today, I’ll walk you through the Top 10 Workflow Automation Software.

Running a business is not an easy job. It requires a lot of deliberate effort and careful attention to run business processes successfully. Some tasks involved are repetitive and time-consuming, making it difficult for you to do them manually. This is where workflow automation comes in handy that doesn’t require human intervention and can be used to effectively manage and execute business processes.

Curious to know about Top 10 workflow automation software?

Scroll on.

Top 10 Workflow Automation Software

Workflow is a process that requires a lot of steps to be completed in a sequential manner. The process goes from start to finish and normally involves people or systems.

Workflow automation software is a tool used by most businesses to automate repetitive and time-consuming tasks. This tool is usually employed to improve employees’ efficiency, reduce errors and increase revenue. From lead management, sales, and marketing, to finance and accounting, this tool is used to automate manual processes. Some software come with flexible customization options, allowing you to develop and modify workflows as per the business needs.

Mainly two types of software are used: no-code tools and low-code tools.

No-code tools come in simple drag-and-drop and flow chart settings that you can use with no coding skills or technical expertise while low-code tools, on the other hand, require a little bit of technical knowledge to get a hands-on experience of them. But don’t worry, you don’t require a software degree to use them, if you pay careful attention, you can learn them yourself on the go.

Listed below are the top 10 workflow automation software used by organizations.

1: Zapier

Zapier is a user-friendly automation tool that helps you automate business processes. It comes with thousands of pre-crafted templates that you can customize based on your business needs. Building a zap is just one click away. Plus, you can add tailor-made workflow logic and multiple steps to automate tasks that would otherwise be completed manually.

Unique Features:

  • A free forever plan is available that gives you access to 100tasks/month and existing applications. However, starter, professional, team, and company plans are also available. Choose what fits your budget and business objectives.
  • Allows 3000+ applications to work together. You can incorporate any kind of app and can make two apps work together to automate tasks.
  • Comes with a top-notch security system and world-class support. Your data is in safe hands where professionals know how to effectively handle your business processes.
  • Allows you to build intelligent workflows that work on the conditions you set.
  • Zapier is a noise-free software that can effortlessly run in the background and gives you a notification alert when tasks in the workflow are completed.

2: Nintex

Nintex is an intelligent no-code workflow automation tool that helps you easily optimize and manage processes. Trusted by more than 10,000 organizations, Nintex allows you to create result-driven workflows with a workflow cloud which means your data is managed and stored over the internet. Setting you free from creating and managing in-house data centers. Automate the manual, repetitive, and time-consuming tasks with just a few clicks.

Unique Features

  • Offers a drag-and-drop visual builder that allows you to create complex workflows on the go.
  • Gives analytics of the processes, helping you figure out the inefficiencies and improve upon them.
  • Even though vendors give you the option to use Nintex on the cloud, in-house and hybrid settings are also available which means you can manage data on-premises or in the hybrid environment: a combination of both cloud and in-house settings.
  • Perfect your automation journey with pre-built templates, allowing you to build over 1 billion workflows every year.
  • Starts with a 30-day free trial followed by $910 per month for 10 workflows with unlimited users and includes advanced forms, Mobile, DocGen®, and Xtensions. Nintex enterprise pricing is also available that starts at $1400 and comes with Nintex Analytics and Nintex App Studio to develop process apps.

3: Kissflow

Kissflow is a market leader in workflow automation that allows users to develop workflows with the visual builder. Integrated with a sleek interface and drag-and-drop settings, Kissflow helps companies to speed up the workflow processes from all-in-one workflow automation software. Moreover, the notification alert option gives you a deep insight into the performance of complex workflow automation processes.

Unique Features:

  • Offers six different pricing options that you can choose to scale up your team performance.
  • Designed for modern workflow, it is a perfect fit for e-commerce businesses and mobile-dependent organizations.
  • Trusted by 10,000 world leaders, Kissflow helps you automate tasks in customer support, marketing, finance, sales outreach, and human resource.
  • Highly recommended for small businesses that are just stepping into workflow automation.
  • Stuffed with over 50 pre-built process apps, Kissflow can manage your business processes promptly with one integrated platform.

4: Integrify

Integrify is a user-friendly workflow automation software that facilitates in building file approval workflow and custom documents. Plus, it incorporates a visual drag-and-drop builder that lets you visualize the workflows as you develop them. Its form builder allows you to monitor workflow automation, giving you an insight into inefficiencies so you can find areas for improvement.

Unique Features:

  • Easy-to-use workflow management software that comes with a drag-and-drop editor for creating complex workflows.
  • Offers free, pre-designed process apps so you don’t have to start from scratch.
  • Allows you to manage and complete tasks in business processes including human resources, sales, finance, and project management.
  • Prompt customer support is available where experts give you the technical support to automate your business processes.
  • Coupled with 15 years of experience, Integrify offers flexible subscription-based pricing. Pricing is available upon request.
  • Offers cloud and advanced cloud fully managed SaaS infrastructure. Moreover, the self-managed on-premises option is also available, allowing you to manage your infrastructure.

5: Flokzu

Flokzu is a workflow automation software that allows you to develop visual workflow models with a visual builder. It is a cloud-based process management tool that features a real-time reporting dashboard allowing you to get a hold of each stage your process is in, so you can make educated decisions for your future outcome. Gives you notification of each pending task, and as the pending task is completed, it automatically assigns a new task to the user.

Unique Features:

  • No coding skills are required. Visually create workflows to outline business processes.
  • Offers over 700 pre-built applications that you can connect with Zapier and Webservices.
  • Comes with cloud-based with end-to-end encryption, ensuring the security of your sensitive data.
  • Offers real-time process analytics that guarantees areas of improvement for your team.
  • Gives you an insight into pending tasks, tasks completed and the time it took to complete each task.
  • Features four pricing options that you can choose as per your business needs. Scale and speed up your business processes with simple and comprehensive monthly/yearly billing options.

6: Automate.io

Trusted by over 30,000 organizations from small enterprises to Fortune 500, automate.io is a process management automation software designed for industries where you can create simple workflows or sync data between two different apps. You can sequentially automate tasks in different business processes including lead management, sales outreach, content marketing, social media marketing, and more.

Unique Features:

  • Comes with 200+ renowned cloud tools including ZenDesk, Gmail, Google Sheets, PayPal, SalesForce, Mailchimp, Hubspot, and more.
  • No IT knowledge is required. Use a simple drag-and-drop builder to create integrations.
  • Connect multiple apps and create automated workflows on a single screen.
  • Include conditional logic, format data, and incorporate time delays in your workflows.
  • Features six pricing options from a 7-day free trial period to paid plans made for small to medium businesses. Though you can use the free plan, premium apps are included in the paid plans.
  • Incorporates Excess Actions Feature. Using it you can go above your monthly action quota. However, you are only billed additional charges for the extra usage at the end of the month.

7: Processmaker

Processmaker is a low-code automation tool used to create approval-based workflows with ease. A notification alert system allows you to get real-time reporting about the tasks to be created so you know exactly what’s happening inside each process. Industries that can benefit from this tool include healthcare, insurance, banking, higher education, manufacturing, and telecom.

Unique Features:

  • Opens opportunities to manage business processes across different departments including IT, finance, HR, design, and sales and marketing.
  • Drag-and-drop feature allows you to model canvas on a single screen.
  • BPMN 2.0 compliant, robust and powerful.
  • Connect with third-party systems through API and generate much more value from the existing data.
  • Four pricing options are available from app and standard to enterprise and custom. No matter your business requirements, it has a package to serve them all.

8: IFTTT

IFTTT stands for If This, Then That. It’s a powerful tool that works on conditional statements (called Applets) and executes processes when these conditions are met. It is mainly used to connect apps and allow services and devices to work together. Most popular applets are used in building a smart home environment. For instance, turning on the device with your voice, powering the security system upon leaving your home, and determining the temperature using the weather.

Unique Features:

  • Allows you to automate different routine tasks like tracking work hours through Google calendar, tweeting your Instagram photos as your native photos on Twitter, and getting weather forecasts every day.
  • Helps you to create your own applets or you can use pre-built applets with a few clicks.
  • Even though the Free plan is available with limited options, customizable applets are included in Pro and Pro+ pricing plans with features like multi-actions, queries, and filter code. You can use Pro and Pro+ with a 7-day free trial.
  • With around 700 services onboard, IFTTT allows you to integrate and automate your favorite services.

9: Monday

Trusted by over 152,000 customers worldwide, Monday is an open-source automation tool to streamline your everyday tasks. Build and customize workflows to improve the collaboration and productivity of your team. Stay connected with real-time notifications, so you know the performance of each task completed.

Unique Features:

  • Gives a visual overview of the business processes, allowing you to make business decisions with confidence.
  • Build custom dashboards and track progress to figure out inefficiencies.
  • Collaborate smartly to assign and prioritize tasks and know data analytics to learn where things stand at a glance.
  • You can start with a 14-day free trial. Plus, four paid plans are available that go from limited features to advanced features with more users.
  • Comes with the context option to be included upon uploading each file.

10: Asana

Asana is a project management software designed to remotely manage teams and assign tasks with one integrated platform. You can collaborate and build strategic project plans from anywhere. The notification alert feature gives you an insight into when the task is completed and what’s new on the table. Allows you to automate routine work so you can pay attention to what matters and adds value to your team.

Unique Features:

  • Helps you assign and organize tasks across teams so they know what needs to be completed urgently and when these tasks are due.
  • Gives you a visual overview of each process so you know what’s working and what things are not going as planned.
  • Comes with a cross-indexing option that lets you assign single tasks across 20 different projects.
  • Offers video messaging through Vimeo. Employees can record and embed new videos to effectively convey their message with confidence.

Final Thought

Workflow automation is critical for business growth. When repetitive and manual tasks are automated, you can improve the productivity of your team by paying attention to the actual business objectives. Using technology to your advantage is the best way to excel and grow in this digital transformation stage and leave a footprint in the competitive market.

That’s all for today. Hope you’ve enjoyed reading this article. If you have any questions, you can ask me in the section below. I’ll help you according to the best of my knowledge. Share your experience if you have used any workflow automation software before. Thank you for reading this post.

Web-Server Based Weather Monitoring System Using ESP32

Abstract: This paper is written to represent a web-server based real-time weather monitoring system implemented using the ESP32 module. The system is designed to measure the weather conditions like temperature, pressure, humidity etc, in its vicinity. This system continuously provides real-time data (weather conditions) over limited or controlled areas, for example, agriculture fields, homes or a particular room, industries etc. Although we have satellites for weather monitoring but to perform research over a particular area, the data observed should be highly accurate which is not possible with satellites. To implement an IoT network we need to use a webserver to continuously store and display the real-time data which can be accessed globally. ’ThingSpeak’ is a web service where one can upload and access (globally) with internet-connected devices. ESP32 will be acting as an interface medium between the various sensors and the web-server. ESP32 module is also responsible for collecting, processing and then communicating the data to the server. The real-time data stored on the web server can be further used for research and analysis of weather conditions of a particular place.

Keywords

ESP32, IoT, Temperature sensor, Humidity sensor, Pressure sensor, Altitude sensor, Arduino IDE, ThingSpeak.

Where To Buy?
No.ComponentsDistributorLink To Buy
1ESP32AmazonBuy Now

Introduction

The evolving generation of wireless technology has made human life a lot easier. Where everything is online and automatic we can easily monitor multiple things virtually from anywhere in the world. The WSN (wireless sensor networks) and Internet of things or IoT play an important role in implementing and accessing these wireless technologies. Smart homes, smart cities and smart weather monitoring systems are examples of such technologies where things are quite simpler or easier.

In this web-server based weather monitoring system, the weather data (from the surrounding environment or of a particular location) like temperature, humidity, pressure etc. is measured with the help of some sensors and then the collected data will be stored on a server after being processed by a microcontroller. Our daily activities are inseparable from weather conditions and various environmental factors. The real-time data collected can be used in research and analysis and the results can be helpful in human life and for improving environmental conditions as well.

The Internet of Things is a system made up of multiple inter-related computing devices. The main factor ‘things’ in IoT is designated to a component that is capable of communicating data over a network (IoT), the thing could be animals, a digital machine, a sensor, a human being etc. Each component of the Internet of Things network is given an individual or a distinct identity and the ability to communicate data or information over a wireless network that is too without the intervention of a human or a computer [8].

An interface medium capable of collecting, controlling, and communicating data among transmitter and recipient electronic equipment or servers is required to build the IoT network[9].

The ESP32 microcontroller series was developed by Espressif Systems. This module (the ESP32) includes a 2.4GHz Wi-Fi chip, memory, a 32-bit Tensilica microcontroller, an antenna, peripheral interfacing abilities, power management modules, and more. This ESP32 module is excellent for the Internet of things because of all of its technological and infrastructural aspects [10].

DHT11 and BMP280 sensors are used to collect the data from their surrounding environment and then communicate the data to the ESP32 module over a particular protocol [11].

The application of this weather monitoring system can also play an important role in the field of agriculture[12 ] to increase productivity, research application, and reducing manpower (by reducing the need to manually monitor the field status). Sometimes in a particular agricultural zone that is hazardous for a human beings, it is quite difficult to manually (offline) monitor the environment or weather conditions. In such cases, this web server based or online weather monitoring system can be of great importance.

Fig. 1

Hardware and Software Components

The list and quantity of the components required to implement the web server based weather monitoring system are shown in Table1.

Table: 1

DHT11

Fig. 2 DHT11 sensor

DHT11 sensor (or temperature and humidity sensor) is a sensor module used to measure humidity and temperature from its surrounding. This sensor module is responsible for monitoring the ambient temperature and humidity of a given area. An NTC (negative temperature co-efficient) temperature sensor and a resistive type humidity sensor make up the sensor. An 8-bit microcontroller is also included. The microcontroller performs ADC (analogue to digital conversion) and outputs a digital signal via the single wire protocol [13].

Some of the technical specifications of the DHT11 sensor are:

Table:2  DHT11 technical specifications

DHT11 sensors can also be used to create a wired sensor system with up to 20 meters of cable.

To measure temperature and humidity, two DHT modules (DHT11 and DHT22) are available on the market. Both modules serve the same purpose, but they have different specifications. The DHT22 sensor, for example, has a wider range of temperature and humidity sensitivity. However, DHT22 is more expensive than DHT11. As a result, you can choose to use any of the modules as per your needs.

Interfacing DHT11 with ESP32[14]

Table.3  Interfacing DHT11 with ESP32

BMP280

Another sensor we are using is the BMP280. The BMP280, also known as the barometric pressure sensor, is a temperature, pressure, and altitude sensor. This sensor's small size and low power consumption make it suitable for mobile applications, GPS modules, and battery-powered devices, among other things[15].

The Bosch BMP280 is based on Bosch's validated ‘Piezo-resistive pressure sensor technology’, which features high accuracy, long-term stability, linearity, and EMC robustness.

The barometric pressure sensor (280) is the successor to the BMP180 sensor, and it is mostly preferred in all areas where precise temperature and pressure measurements are required.

Fig.3  BMP280 Sensor

Fitness, indoor navigation, and GPS refinement are all new technologies which require relative accuracy, and the BMP280 is ideal for them. This module is preferred over the other available modules for temperature records or measurement because of its low TCO (Temperature coefficient of Offset).

The temperature measured with the BMP280 sensor is more accurate than the DHT11 sensor. BMP80 provides a 0.01°C accuracy rate.

Some technical specifications of the BMP280 sensor are:

Table:4  BMP280 Technical specifications

ThingSpeak web service

A web server is a place where one can store data online and can access that data at any time and from anywhere in the world [16]. A real-time data is created with the help of a web-server. There are various web services available to store real-time data for research and analysis like AWS (Amazon Web Service), Azure, Firebase etc.

We are using the ThinSpeak web service provided by MathWorks which allows us to send sensor readings/data to the cloud. The ThingSpeak is an open source data platform for the Internet of Things (IoT) applications. We can also visualize and act on or access the data (calculate the data) sent to the ThingSpeak server from ESP32. Two different types of channels are available to store data on the ThingSpeak server namely ‘Public Channel’ and ‘Private Channel’ and one can use either of the available channels to store and display data [17].

ThingSpeak is frequently used for IoT prototyping and proof-of-concept systems that require analytics[18].

Software Used

We need to give instructions to our ESP32 module so that it can interface, read data from DHT11 and BMP280 sensors and then finally publish the collected data to the ThingSpeak server. Arduino IDE is an integrated development environment used to write, compile and debug the program for the ESP32 module[19].

Fig. Arduino IDE

Process Flow

The process flow of our weather monitoring system is shown below in Chart 1. The process starts with the initialization of ESP32 module which is acting as an interface medium between the sensor modules and the web-server. The ESP32 wi-fi module is continuously searching for the network credentials as per the instruction provided. After connecting to the internet the sensor modules will be initialized and the real-time data [22] collected from the surrounding environment will be pushed to the ThingSpeak web server[23].

Flow Chart: 1

Results

The results observed from the implemented weather monitoring system are shown below. We observed four different environmental conditions which include temperature, humidity, pressure and altitude. The sensor data collected by ESP32 from DHT11 and BMP280 sensors is published to the ThingSpeak web server. On ThingSpeak we have created a channel that contains four fields to store four different environmental factors temperature, humidity, pressure and altitude.

Fig. Hardware

In fig. 4 we can see the ‘Field 1’ which is containing the temperature readings published or communicated from the ESP32 module and saved on the ThingSpeak server.

Similarly, fields 2, 3, and 4 are displaying the humidity, pressure and altitude respectively.

Fig. 4 Temperature (°C)

Fig. 5 Humidity

Fig. 6 Pressure (hPa)

Fig. 7 Altitude

Each factor is monitored at different intervals of time to observe the variations in various environmental factors. From table 5 we can see the various environmental factors and their values at different time intervals for the approximate duration of 24hrs.

Table 5 Variations in weather conditions

Conclusion

We observed the weather conditions (that includes temperature, humidity, pressure and altitude) with our “Web-server based weather monitoring system using ESP32”. The observed real time data is stored on the ThingSpeak server which can be accessed globally. The different values of each (mentioned earlier) environmental factor at different intervals in time are also observed (given in table 5) and the observed result clearly shows the changes in the weather conditions for a full day cycle. Hence, we have successfully implemented and tested the web server based weather monitoring system with ESP32 and ThingSpeak web server.

References

  • Maier, A., Sharp, A. and Vagapov,  Y., November  “Comparative  analysis  and practical implementation  of  the  ESP32  microcontroller  module  for  the  internet  of things”  2017 .
  • Prisma Megantoro, Brahmantya Aji Pramudita, Vigneshwaran Pandi, “Real-time monitoring system for weather and air pollutant measurement with HTML-based UI application” June 2021.
  • Foughali Karim, Karim Fathallah, Ali Frihida, “Monitoring System using web of things in precision agriculture” 2017.
  • J.Shah and B. Mishra, “IoT enabled environmental monitoring system for smart cities,” in 2016 International Conference on Internet of Things and Applications (IOTA), 2016.
  • P.Susmitha , G. Sowmyabala, “ Design and Implementation of Weather Monitoring and Controlling System” July 2014.
  • S.Navulur, A. S. C. S. Sastry, M. N.  Giri Prasad,  “Agricultural  management  through  wireless  sensors  and internet of things” .
  • K.Siva, S. Ram, and A. N. P. S. Gupta, “IoT based Data Logger System for weather monitoring using Wireless sensor networks,” 2016
  • Ferdin Joe John Joseph, “IoT Based Weather Monitoring System for Effective Analytics”, 2249 – 8958, Volume-8 Issue-4, April, 2019.
  • A F Pauzi, MZ Hasan, “Development of IoT Based Weather Reporting System”, 2020.
  • ESP32-IoT Development Framework, https://www.espressif.com/en/products/sdks/esp-idf
  • Carlo Guarnieri Calo Carducci, Antonello Monti, Markus Hans Schraven, Markus Schumacher, Dirk Mueller, “Enabling ESP32 based IoT Applications in Building Automation Systems”, 2019.
  • R.K. M. Math and N. V Dharwadkar, “IoT Based Low-cost Weather Station and Monitoring System for Precision Agriculture in India”, 2018 (2nd International Conference on I-SMAC).
  • N. Tianlong, “Application of Single Bus Sensor DHT11 in Temperature Humidity Measure and Control System [J]”, 2010.
  • “Create a Web Server With ESP32”, https://www.theengineeringprojects.com/2021/11/create-a-web-server-with-esp32.html
  • ThinSpeak, https://thingspeak.com/pages/learn_more
  • T. Thilangam. J, T. S. Babu, and B. S. Reddy, “Weather monitoring system application using LabView”, 2nd International Conference on I-SMAC, 2018.
  • J.Weiss and R. Yu, "Wireless Sensor Networking for the Industrial Internet of Things".
  • Gaurav Verma, Pranjal Mittal, Shaista Farheen, “Real Time Weather Prediction System Using IoT and Machine Learning.
  • R.Shete, S. Agrawal, “IoT based Urban Climate Monitoring using Raspberry Pi”, International Conference on Signal Processing and Communication, 2016.

Data Normalization - The Art of Structured Data

Industries from sales to healthcare rely on data to make business decisions and project key metrics. Tracking troves of the customer, purchasing, and logistical data reveals trends that can boost revenue or uncover missed savings.

Storing and analyzing big data is essential for process audits. For example, a company’s ongoing shipping audits explained several issues, including patterns of overcharges and delayed deliveries. A customer experience audit can yield similar findings by noting bottlenecks in the customer journey. All of these processes require the input of large sets of readable data.

Businesses need a data normalization process to store and filter raw data into useful information that can inform these valuable processes.

What is Data Normalization?

Data normalization is an automated process that organizes information into a database or table. As a result of normalization, data is searchable and verifiable. Normalized data is also easier to scan for errors, such as missing data or redundancies.

Without normalization, data becomes overwhelming and unstructured. As raw data contains errors, it can lead to poor or uninformed decisions. Unfiltered data can degrade a sales team’s ability to identify viable leads. On the other side, companies may fail to notice that investment is providing a low or negative return.

Most data normalization tables categorize data by recognizable fields. For example, a table of customer information would most likely contain their names, contact information, and job titles. Company data may contain labels such as product SKUs or employee identification numbers.

Data normalization tables prevent a phenomenon known as inconsistent dependency. This occurs when unrelated data items are entered in the same table. Data input should be logical so that anyone searching for a piece of information knows exactly where to find it.

Many software-as-a-service platforms, such as invoicing or customer management solutions, automatically normalize data. To reduce errors in automated normalization, companies must set a standard format for inputting data. Some commonly used conventions are abbreviations for addresses and job titles, or no hyphens or spaces in telephone numbers. Once data is normalized, it is easier to carry out important data analysis processes, including cleaning and interpretation.

Forms of Normalization

Normalization tables come in several normal forms, known as NFs. Each NF has its own rules for organizing and displaying data. For example, a 1NF table restricts any cell from containing more than one piece of data. Additionally, no entry can be duplicated.

For example, if a data table contains a product that comes in several sizes, each size will be listed as a separate row rather than a distinct column. In a 2NF table, the searcher can pull up a separate table to view all of the color options for a particular product.

As normal forms advance, they build off one another. A 2NF pulls data from 1NF tables, a 3NF from a 2NF table and so on. While there are many normal forms to choose from, most databases only need up to 3NF to process and store data.

Choosing the correct normal form and preparing the data can be time-consuming. As a result, more developers opt to outsource this process to automated software.

Benefits of Data Normalization

As data collection has become ubiquitous, data normalization has become indispensable. Firstly, normalization corrals data into one depository. This reduces storage space by eliminating duplicate information. Browsing through normalized data also saves time as databases contain search functions that quickly identify the needed information.

Normalized data also lends itself well to segmentation. During segmentation, the analyst will filter the data through parameters, such as location, gender, or average purchase value.

Segmentation allows marketers to target specific demographics with tailored messaging. This process can also benefit internal business processes. For example, human resource departments may search for employees demonstrating signs of burnout, such as higher than normal call-outs, and connect them to resources.

Data normalization is also essential for monitoring metrics and performance. Normalization makes it possible to create visual dashboards to measure common indicators such as sales targets, vendor costs, and revenue.

Final Word

Data normalization is an essential step in any business’s data strategy. As a developer, you can make you and your client’s jobs much easier by considering normalization as you create your projects and database structures.

Most developers follow the decades old principles created by relational database pioneer Edgar Codd. Codd’s 12 rules, since expanded to more than 300, outline the existential criteria for relational database management systems. While no system follows every rule, they are a foundational step for approaching normalization projects.

Introduction to Workflow Automation

Hi Guys! Hope you’re well today. I welcome you on board. In this post, I’ll walk you through Introduction to Workflow Automation.

Workflow automation is a critical part to run a successful business. It is used to improve the efficiency and productivity of the business to provide a better user experience, reduce errors and increase revenue. Workflow automation is the process of automating a set of repeatable tasks to achieve a certain goal within the software or app you use.

Confused?

Don’t be.

We’ll touch on this further in the article.

Curious to know more about workflow automation, its benefits, how to choose workflow automation software, and how it can help your business?

Keep reading.

Introduction to Workflow Automation

Before we get into the nitty-gritty of workflow automation we must know what workflow is.

What is Workflow?

Every business is based on a predefined process. It’s the set of activities including manual tasks like creating reports, data transfer, collaborating within the company and more… all these tasks are performed to fulfill the business needs. Workflow guarantees all these processes are planned and executed in a sequential manner by the people or systems to achieve a certain goal.

Know that a workflow image can be a simple flowchart diagram representing a set of activities to reach the desired goal.

What is Automation?

And automation is the process that repeats itself without human intervention. It works on WHEN and THEN rules. For instance, when the temperature falls below 30 C, then turn on the AC.

What is Workflow Automation?

Simply put, workflow automation is automating the workflow – it involves incorporating the automated software system within the company to monitor and control business processes. The software is used to perform a repeated set of steps consecutively to do a certain task. In this process the work goes from start to finish without human involvement, eliminating the manual steps and ensuring the error-free work on time.

The workflow automation you can implement in the business processes includes sales and marketing, human resource, lead management, and more. This way businessmen can pay careful attention to the more important tasks rather than worrying about properly executing the workflow within the software.

Workflow Automation Benefits

The key benefits of workflow automation include:

  1. Helps you to determine the custom metrics and real-time analytics. With data derived from the automation process, you can predict the future outcome and can execute your process based on the calculated data.
  2. Helps you automate the business processes to save time and additional workforce requirements, allowing you to pay attention to the key areas that add value to your business.
  3. If done manually, the workflow can lead to scores of errors especially in data entry and form filling jobs. Wrong data entry will lead to the wrong outcome and can drastically generate compliance issues. So incorporating automation in your workflow can help you figure out the areas of improvement in your business process for optimal results.
  4. Can identify the information and data to further streamline the business process and connect the different stages in workflows on time.
  5. Allows you to customize the workflow process as per the needs and requirements of the business. Business goals change as the business grows. Things you need to execute at the start of the business may need modification over time and with workflow automation, you can make the process work as you like better for your agency.
  6. Provides a better customer experience. The priority of any business is to satisfy their customer and turn them into recurring clients. With workflow automation, products and services are delivered to the audience on time and correctly. This way customers not only put their trust in your business but also feel less hesitation to connect with it with user-friendly and less complex workflow automation software.

How to Choose the Right Workflow Automation Software

Choosing the right workflow automation software is a bit tricky. It depends on the workflow processes you want to manage within a business.

There are two types of software used in workflow automation: no-code tool and low-code tool.

The no-code tool works better for the beginner with no technical expertise. Some of these tools come with a drag and drop feature, allowing you to easily customize the workflow for your business process at hand. The low-code tool, on the other hand, requires coding skills to put into practice. Low-code tool doesn’t mean you have to be a tech-geek to get a hold of it. And you don’t require any software degree either, you can learn it easily if you put a deliberate effort and attention.

Other things you must consider while choosing the right tool include:

The tool comes with easy to handle user interface UI which means you can learn it yourself, if it requires technical support at every step, you better skip it.

The tool must be economical and scalable so you can modify it as per the business processes.

The tool must be compatible with your apps. What may fit for other businesses might not work for your business. If everyone is buying it doesn’t mean you also have to buy it. Keep your business processes in mind before choosing the right tool.

How Workflow Automation Can Help Your Business?

Workflow automation sets you free from doing manual repetitive tasks and automates your business processes to improve efficiency and productivity.

Following are the key areas of your business you can automate with workflow automation:

Invoice Generation

Invoice generation is a crucial task to create a document to bill your clients. When done manually, mistakes are obvious. But with workflow automation, you can automate the invoice generation process to bypass the multiple manual processes. You can use workflow automation software to create the invoice to bill the client month after month for a definite amount. Plus, you can keep a record of the invoices you create for a particular client.

Onboarding New Candidates

Onboarding new candidates is overwhelming at times. It requires a lot of brainstorming, resources, workforce, and time. However, with workflow automation, this process can be straightforward without the involvement of repeated manual processes. Workflow automation software allows the new candidates to list their information and submit it directly to the HR department. It removes the need for manual tests and check-ups to reach the hiring manager, effortlessly bridging the gap between the company and new candidates.

Lead Management

Quality leads form the basis of any business growth. Manual lead management requires a lot of data filtering and manual follow-ups that slow down the process of reaching potential clients.

Workflow automation allows the companies to discard the low-quality leads, and automate the process to turn the visitors into customers. Moreover, it allows the sales team to streamline the sales funnel process, stuff CRM with the required information, direct new leads to the sales manager, and effectively deliver the products to the customers.

Refund Staff Expenses

Manual handling of staff expenses is a tedious job. But workflow automation is here to rescue you. At times you spend money on the behest of the company. If you want to have approved those expenses from the company, first you need to write the email to the manager who will approve it and then send it to the accounting department. Everything will be documented in a report before the accounts department refund the money to the employees. However, workflow automation software can simplify this and other manual processes including creating reports, managing travel tickets, approving leave and vacation requests and producing purchase orders, and more.

Conclusion

A workflow automation software is an important tool for your business growth.

Using this tool, redundant tasks are eliminated and repetitive and manual tasks are put on auto-pilot.

Whether or not should you pick the automated workflow software for your business is a tricky question and unfortunately, there is no simple formula to figure this out. However, the business processes that can use automation to drive value include time-bound activities, manual repetitive tasks, lead management, customer support and data entry jobs, and more.

Keep two things in mind while picking the right tool: it meets your business's core objectives and it should be economical.

That’s all about the Introduction to Workflow Automation. If you have any questions in mind, you may ask me in the comment section below. I’ll help you to resolve your query. Keep sharing your feedback and suggestions to help us improve the quality of our content. Thank you for reading this article.

Interface DS18B20 with Raspberry Pi 4

Hello friends, I hope you all are having fun. Today, we are going to share the 7th tutorial of Section-III in our Raspberry Pi Programming Course. In the last tutorial, we interfaced a DHT11 sensor with Raspberry Pi 4. Today, we are going to interface another temperature sensor i.e. DS18B20 with Raspberry Pi 4.

DS18B20 is a popular temperature sensor especially in severe/critical environments i.e. chemical plants, mines, industrial sites etc. because of its 1-wire operational technique and accurate readings up to 4 decimal digits.

Project Description

Today, we will interface a DS18B20 temperature sensor with Raspberry Pi 4 and will display the values on a 16x2 LCD.

Let's have a look at the components required for this project:

Components Required

Here's the list of components:

  • DS18B20.
  • Raspberry Pi 4.
  • LCD 16x2
  • 10k trim pot
  • 10k Pull up resistor
  • Breadboard
  • Male to Female Jumper Wires

DS18B20 Sensor: A Quick Overview

  • DS18B20 is a low-cost, 3-terminal temperature sensor, that uses a 1-wire protocol to send its data.
  • To communicate with a microcontroller or processor board like Raspberry Pi, the DS18B20 uses only one wire.
  • We can also interact with multiple DS18B20 sensors with a single Pin by calling their signatures.
  • DS18B20 temperature sensor along with pinout, is shown in the below figure:

A waterproof variant of this sensor is also available, which encloses the sensor within a cylindrical metal tube. The sensor depicted in the above image will be used in today's project. The sensor's specifications are shown below.

Types of Temperature Sensors

A wide variety of temperature sensors are available. The following are the two most common kinds of temperature sensors:

Contact sensor: Some thermometers use direct contact with an object, referred to as "contact type temperature sensors," to measure the degree of warmth or cold.

Non-Contact sensor: This type of thermometer does not touch the object it is measuring; instead, it measures the temperature based on the radiation emitted from that object. DS18B20 is a non-contact temperature sensor.

Circuit Diagram of DS18B20 with Raspberry Pi 4

Here's the circuit diagram of the DS18B20 temperature sensor and a 16x2 LCD display, connected with Raspberry Pi 4:

  • GPIO4 of Raspberry Pi 4 is used to connect the data Pin of DS18B20 and we have placed a pull-up resistor of 10k ohm, as shown in the circuit diagram.
  • GPIO 7, 8, 18, 23, 24, and 25 are used to interface LCD with Raspberry Pi 4. (You should read LCD interfacing with RPi4)
  • Potentiometer is used to adjust the brightness/contrast on the LCD.
  • Connected the Raspberry Pi's 5V pin with that of the LCD and DS18B20 Sensor, similarly, connect the GND pin of RPi4 with the GND of the sensor & LCD.
  • Here's the Raspberry Pi 4 Pinout:

Now, let's design this circuit on a breadboard with the help of Jumper wires. When everything is connected, my hardware will look like this.

We have designed our circuit, so it's finally time to write the Python code for DS18B20 with Raspberry Pi 4:

Installation of Python Libraries

Before start working on our code, we need to first install the LCD Python library and enable the 1-wire protocol in RPi board.

  1. Adafruit LCD Library.
  2. 1-Wire Protocol.

Adafruit LCD library

We need to install Raspberry Pi's Adafruit LCD library to display the temperature on the LCD screen. Using Adafruit's library, we can easily operate the LCD in 4-bit mode. So, follow the below instructions to install Adafruit Python Library:

  • Step 1: Use the following command to install git on your Raspberry Pi:

Any project on GitHub can be cloned using Git. Since the library is hosted on Github, we'll need to set up a Git before installing this library.

  • Step 2: To copy the LCD library project to Pi's home directory, run the below command:

  • Step 3: Now we need to open the LCD library folder, so type the below command in the terminal to change the directory:

  • Step 4: Now, we need to install the LCD library, so run the following command:

That's all there is; the library should now be operational. In the same way, let's install the 1-wire library for DS18B20 sensor.

Enabling 1-Wire Protocol in Raspberry Pi

If we want to connect with the DS18B20 sensor via a One-Wire approach, we must have to enable the One-Wire Protocol in Raspberry Pi first. So, follow the below instructions:

  • Step 1: To open the config file, type the following command in the Command Prompt window:

  • Step 2: Add the following line to the config file: "dtoverlay=w1-gpio" and save the file:

  • Step 3: Run the following command to restart the Pi:

  • Step 4:- Take a look at your terminal after the system has been restarted and type as follows:

This is what you can expect to see in your terminal windows:

  • Step 5:- To get a unique pi number, type "ls". According to the sensor, this number will vary from user to user, but will always begin with 28-. In our case, it's 28-03172337caff.
  • Step 6:- The following commands can be used to verify that the sensor is functioning correctly:

You can see the sensor's readings on the terminal as a result of these commands. The image below shows a red arrow pointing to the temperature. The current temperature in my home is 37 degrees Celsius.

Using Python on a Raspberry Pi

Here's the complete Python Code to display the temperature from DS18B20 on an LCD display with Raspberry Pi 4:

So, let's understand this Pi code for LCD display and One-Wire communication. I've broken down the code into smaller, more digestible chunks below to make it easier to understand.

DS18B20 Python Code Explanation

Importing the necessary header files is always the first step in a new program. Time and the LCD header are imported here to use the LCD with Pi.

It is important to mention the Display pins linked to the Raspberry GPIO. Consult the diagram above if you're unsure of the pin numbers for specific GPIO pins. Once the pins on the PI to which the LCD is connected have been declared, use these lines of code to initialize the LCD display.

Once the LCD has been initialized, we show a sample text message. To indicate a new line, the character 'n' is used. There is a delay of two seconds before users can begin reading the intro message.

Make sure you remember what you did in step 4 in order to enable the one-wire interface on your Pi. For this reason, we are using the os.system function to repeat the code. Afterwards, a file path is supplied where the temperature value will be read from. We can't open the folder since we don't know its exact name. The device folder variable connects to the '28-' folder using the * symbol. The temperature value is stored in a file with the name device file, which is also in that folder.

Then we create a get temp method, which specifies how to read the temperature from the file we previously linked. There will be a file containing the temperature data; however, the format will be as follows:

We only need the temperature value, which is 37000, from this. A reading of 37.00°C can be seen in this instance. After trimming all the unnecessary information from this type of text, we must next divide 37000 by 1000.

Using the lines variable, the file's lines can be parsed. A search for "t=" is done in these lines, and in the variable temp string, the value that comes after that letter is recorded. Finally, we perform division on the string value with 1000 in the variable temp c to obtain the temperature value. Finally, the code should output the temp c variable.

To display the current temperature on the LCD panel, we merely need to invoke the previously described function inside the infinite while loop. Every second, we refresh the LCD display to show the current value.

Output

Use the code provided at the end of this page to compile it on your Raspberry Pi and see what happens. Before running the application, Install the display libraries and enable a one-wire connection on the Pi. You can now run the application and see if everything went well; if so, the intro text should be visible. Adjust the contrast potentiometer, if necessary. What you'll see when it's all done is shown in the below images:

DS18B20 Applications

Temperature sensors can be used in a variety of ways, so here are some examples.

  • Motors - Temperature monitoring is required for several motor components to ensure that the motor does not overheat.
  • Surface plate – In order to accurately detect temperature, a typical type of surface plate temperature sensor is the ring terminal sensor (RTS).
  • Home appliances – Temperature sensors will be found in everything from coffee makers to toasters to washing machines and dishwashers.
  • Computers – Temperature sensors are built into computers to guard against overheating.
  • Industrial equipment – The temperature sensors utilized in these applications must be extremely durable because of the harsh conditions.
  • Warming Electrical Radiators – In order to regulate the temperature of electric radiators, NTC thermistors are employed.
  • Monitoring of Exhaust Gases from Racing Vehicles – Temperature sensors used in racing must be extremely reliable and long-lasting to ensure that performance does not suffer.
  • Food Production; 3D printed chocolates – The melted chocolate used in 3D printing is monitored using temperature sensors.
  • Alcohol breathalyzer – Alcohol breathalyzers employ thermistors to gauge the subject's exhaled breath temperature.

Conclusion

In this lesson, we have studied how to use Raspberry Pi's GPIO pins to connect DS18B20. In addition, we looked into the sensor's fundamental principles and current-day usefulness. We also designed a circuit that we later programmed to collect temperature readings using the temperature sensor and perform a little calculation and display it on the LCD screen in degrees Celsius. In the next tutorial, we will interface the BMP180 Air Pressure sensor with Raspberry Pi 4. So, stay tuned. Have a blessed day.

Interface DHT11 Sensor with Raspberry Pi 4

Hello friends, I hope you all are doing great. Today, I am going to share the 6th tutorial of Section-III in the Raspberry Pi Programming Course. In our previous tutorial, we have seen how to interface an Ultrasonic Sensor with Raspberry Pi 4 and used Python to perform its calculations. In today's tutorial, we'll discuss how to interface a DHT11 temperature and humidity sensor to a Raspberry Pi.

So, let's get started:

Components

Here's the list of components, we are going to use in today's circuit:

  • LCD display
  • DHT11 sensor
  • Raspberry pi
  • Breadboard
  • Male-to-female jumper wires

What is a DHT11 sensor?

DHT11 is a low-cost digital sensor, used to measure temperature and humidity in the surroundings. DHT sensor has three main components i.e.

  1. A resistive-type sensor(used to measure humidity)
  2. NTC Temperature Sensor(used to measure temperature)
  3. 8-Bit Microcontroller(to calibrate & serially transmit the values as a digital signal)

Now, let's have a look at the Pinout of DHT11 sensor:

DHT11 Pinout

DHT11 has 4 pins in total, which are:

  1. Vcc: We need to provide +5V at this pin.
  2. Data Pin: We need to connect it to the Digital Pin of the Microcontroller to get humidity & temperature data.
  3. NC: Not Connected.
  4. GND: We need to connect it to the Ground Pin.

  • Here's the Pinout of the DHT11 Module:

DHT11 Working Principle

The DHT11 timing diagram is shown in the below figure:

This device uses a thermistor to monitor temperature and a capacitive humidity sensor to measure relative humidity. A humidity-detecting capacitor's electrodes are separated by a dielectric substrate that retains moisture. When the humidity level fluctuates, the capacitance value changes as well. Analog resistance values are measured, processed, and stored by the IC, which then translates them into digital values.

The resistance value of this sensor is monitored, as it warms up using a negative temperature coefficient thermometer(NTC). This sensor is commonly made of semiconductor ceramics in order to achieve a higher resistance value even at the smallest temperature change.

With a 2°C precision, the DHT11's temperature range is 0 to 50 degrees Fahrenheit. This sensor can accurately monitor humidity levels from 20% to 80% with a 5% degree of precision. One reading per second, or 1Hz, is the sampling rate of this sensor. The microcontroller DHT11 has a power consumption of 3 to 5 volts. The maximum amount of current that can be drawn during a measurement is 2.5 mA.

The sensor and the microcontroller are connected via a 5K to 10K ohm pull-up resistor.

Types of Temperature and Humidity Sensors

There are many types of temperature sensors available. Factors involved in selecting a correct sensor are: what we're measuring, how precise we need it to be, and where we're taking the readings. The Negative Temperature Coefficient (NTC) thermistor, thermocouple, semiconductor sensors, and Resistance Temperature Detector(RTD) are the most commonly used temperature sensors.

Grove – AHT20

With its dual-row flat, no-lead SMD design, Grove's new AHT20 temperature and humidity sensor is ideal for use in reflow soldering applications. In addition to the standard temperature sensor, the AHT20 has a capacitive humidity sensor made by MEMS semiconductors that is more accurate than the standard sensors.

DHT11

Digital sensors can monitor temperature as well as relative humidity. Two measurements are converted into a digital signal via an analog-to-digital converter chip. Temperature sensors with long-term stability and great performance are among the most popular.

DHT22

Both temperature and humidity are monitored by the DHT22, quite similar to DHT11. The DHT22 costs a little more because it has a wider temperature and humidity range than DHT11, making it more precise. In terms of how it's handled and coded, the DHT22 is identical to DHT11. A temperature sensor that performs better and is more accurate should definitely be considered.

BMP280

When compared to the DHT series, the BMP280 has the capability to measure both temperature and barometric pressure. You can use this in both SPI and I2C modes, making it an upgrade from the BMP180. Because the air pressure changes with elevation, it can estimate a location's altitude as well.

BME280

While the BMP280 only monitors temperature and air pressure, the BME280 has a humidity measurement in addition.

DS18B20

DS18B20 is a one-wire temperature sensor and gives accurate values up to 4 decimal digits.

AF5485

AF5485 is a small and light-weight sensor but it has an impressively complex internal system that allows it to provide the best accuracy. Building automation, weather stations, and temperature monitoring are just a few possible applications.

AM2311A

Compact and lightweight, the AM2311A is an auto-calibration module that consumes minimal power. Furthermore, it is capable of transmitting data at distances greater than 20 meters. It goes without saying that this sensor is extremely dependable and stable over the long run. As a result, it can be employed in a variety of settings.

Circuit Diagram of DHT11 with Raspberry Pi 4

  • Here's the circuit diagram of DHT11 with any microcontroller:

As you can see in the above figure, the circuit diagram is quite straightforward. To avoid noise in the DHT11 output, a 5K pull-up resistor is connected to the Data Pin. The temperature and humidity readings are transmitted as serial data through this pin.

  • Here's the Circuit Diagram of DHT11 with Raspberry Pi 4:

We have also placed an LCD 16x2 to display the values. We have already discussed LCD Interfacing with RPi4, but in that tutorial, we used data pins to write on the LCD, but today, we will use an I2C LCD and send the data via I2C pins.

  • Here are few of the images of our hardware setup and as you can see, we have interfaced both DHT11 and I2C LCD with our Raspberry Pi board:

To connect the DHT11 sensor to the Raspberry Pi, the following steps must be followed.

  • The DHT11 sensor's signal pin is connected to GPIO 4 of the Raspberry Pi board via the yellow wire.
  • The sensor's power pin is connected to the 5V pin on the Rpi board using the red wire.
  • The sensor's GND pin is connected to the Raspberry Pi's GND pin with a black wire.

Now, Raspberry Pi 4 has to be connected to the 16x2 LCD screen:

  • The GND Pin of LCD is connected to the Raspberry Pi's GND pin through a black wire.
  • Connecting the LCD display's voltage pin to the Raspberry Pi board's 5V pin is done using the red wire.
  • The LCD display's SDA pin is connected to the Raspberry Pi's SDA pin by a blue cable.
  • The SCL pin of the LCD display is connected to the Raspberry Pi board using an orange wire.
  • Now let's power up the Pi board to check, if everything's correct:

All our modules are powered up, so everything's correct. Now it's time to write the Python Code for getting DHT11 values and displaying them on the LCD screen:

Python Code for DHT11 Sensor with Raspberry Pi 4

 We need to install the DHT11 Adafruit library to read the sensor values from Raspberry Pi 4.

DHT11 Adafruit Library

  • Step 1: To download the Adafruit module for DHT11, use the following command in the RPi console.

  • Step 2: To install the library on your RPi, follow the below instructions one by one.

  • Step 3: The device must be rebooted, after the library installation.

Now let's design our Python code:

Python Code to read DHT11 data

Here's the complete Python Code to read the data from the DHT11 sensor using Raspberry Pi 4:

Let's understand the code line by line:

  • First of all, we need to import the required Python modules in our code.
  • In order to use system-specific parameters in our program, we first need to import the sys module.
  • To control the I2C LCD screen, we need to import the I2C LCD Driver.
  • When connecting a DHT11 sensor to a Raspberry Pi, the Adafruit DHT module is used.
  • We also need to import the time module to add delays to our program.
  • After importing RPi modules, we initialized an I2C LCD object named "mylcd"  and printed a welcome message on the LCD screen.
  • In the Try code, we are reading the Humidity and Temperature values from the DHT11 sensor.
  • If we got the values, we printed them on the LCD screen.
  • If someone exits the code, a Greeting Message will be displayed.

Reading DHT11 Output with RPi4

  • Before the temperature and humidity values are shown on the screen, the following text appears on the screen.

  • The LCD display will show the first reading from the sensor after a short delay:

  • It will take some time for a new set of values to appear, as shown below:

  • Any warm object placed near the sensor will alter the sensor's reading:

  • You'll see the following text if you provide a keyboard interrupt, while the program is running:

DHT11 Applications

Networked IoT Environment Monitoring

Monitoring or controlling environmental quality is the main goal of environmental monitoring. The DHT11 humidity and temperature sensors are widely used in such systems.

Weather Station

Since this temperature sensor is inexpensive, it can be used in low-cost but effective weather stations that show the temperature and humidity of the surrounding environment.

Climate Control

Climate control is a method of managing the temperature. So, the DHT11 temperature and humidity sensors may be useful in ensuring that the environmental readings are accurate. Temperature and humidity sensors are sent to the microcontroller, and the system will respond if the temperature exceeds a predetermined upper or lower limit.

Conclusion

In this tutorial, we have studied how to connect a DHT11 sensor for humidity and temperature readings with Raspberry Pi 4. The sensor's principles and applicability in the current world were also studied. In the next tutorial, we'll learn how to interface DS18B20 with Raspberry Pi 4. So, stay tuned. Have a good day.

Interface Ultrasonic Sensor with Raspberry Pi 4 using Python

Hello friends, I hope you all are doing well. Today, I am going to share the 5th tutorial of Section-III in our Raspberry Pi Programming Course. In our previous tutorial, we have seen the interfacing of a PIR Sensor with Raspberry Pi 4. In today's tutorial, we will interface an Ultrasonic sensor with Raspberry Pi and will use Python to perform its calculations. So, let's get started:

Components:

Here's the list of components, we are going to use in today's project:

  • Raspberry Pi 4
  • Ultrasonic sensor
  • Male-to-female jumper wires
  • Breadboard
  • 1k ohm resistor
  • 2k ohm resistor

What are Ultrasonic Sensors?

An Ultrasonic Sensor consists of a transmitter and a receiver, the transmitter emits the ultrasonic wave, which after hitting some object bounces back and receives by the ultrasonic receiver. If the Ultrasonic sensor is operated at 5V, it normally measures a distance of up to 450 centimeters.

With an ultrasonic sensor, you can measure the distance between your body and a target item, by sending and receiving ultrasonic sound waves. Unlike audible sounds, ultrasonic waves move faster. To create ultrasonic sound waves, the transmitter uses piezoelectric crystals. The sound then travels to and from the target. When it returns, the receiver gets the sound.

Mostly, ultrasonic sensors can detect objects as close as a few centimeters and as far as about five meters. Measurements of approximately 20 meters can be achieved with specially designed units.

An established technology, ultrasonic sensors have a wide range of uses, from industrial to consumer. Many new devices requiring presence detection or distance measuring can benefit from their simplicity, low cost, and durable construction. Because the hardware and software settings can be changed, they can be used in a wide range of situations.

Ultrasonic Sensor Pinout

The Ultrasonic Sensor has four connections:

  • Vcc: We need to provide +5V here.
  • Trig: Trigger Pin(Connected to Microcontroller)
  • Echo: The sensor's response (Connected to Microcontroller)
  • GND: We need to provide Gound here.

Ultrasonic Sensor Working Principle

An ultrasonic sensor is made up of two parts: a transmitter and a receiver, arranged side by side as close as possible. Smaller measurement errors are achieved when the receiver is near the emitter, as the path of sound from the source to the destination is straight-lined. In addition, the transmitter and reception functionalities of some ultrasonic transceivers are combined into a single device, decreasing inaccuracy to the greatest extent possible while simultaneously reducing the PCB footprint of the device.

Moving further away from the transmitter causes sound waves to broaden and the detection area increases. Ultrasonic sensors, instead of specifying a fixed detecting region, provide coverage specifications in the form of beam width or beam angle to account for this shifting terrain. For comparison, either the full beam angle or the difference from a transducer's straight line, is being used.

The beam angle has a secondary effect on the device's range. As shown in the above figure,  in the case of a narrow beam, the energy of an ultrasonic pulse can travel farther, before it dissipates to unusable levels. Wide beams are better for broad detection and covering large regions, while narrow beams are better for preventing false positives, since they limit the detection region.

When looking for individual parts, transmitters and receivers for ultrasonic sensors can be found separately, or as part of a single device called an ultrasonic transceiver. In most analog ultrasonic sensor alternatives, a trigger signal is sent by the transmitter, and the receiver gets the signal as soon as the echo is recognized. In order to meet specific requirements, the designer can alter the pulse length and any encoding. The microcontroller is ultimately responsible for decoding and calculating the time between the trigger and the echo.

How is the distance calculated?

Ultrasonic sensors typically emit a chirp of ultrasonic radiation, that is much higher in frequency than the range of human hearing. This chirp is used to calculate the duration taken for sound to reflect from an item. This method is based on the principles of echolocation, which are used by bats to detect their prey. With this in mind, it is easy to convert the time of the ultrasonic chip to distance because the sound travels at 343 m/s in the air at ambient temperature. So, in order to calculate the distance covered, we will use the following formula:

We have divided it by 2 because the waves will cover the distance twice, one while going toward the object and the second while coming back from the object.

For example, an ultrasonic sensor emits an ultrasonic wave pointed toward a box. The waves take 0.025 seconds to bounce back. Now, in order to calculate the distance between the sensor and the box, we need to use the above formula and it gives us 4.2875 meters, as shown in the below figure:

Interface Ultrasonic Sensor with Raspberry Pi 4

As we discussed in the Pinout section, Ultrasonic Sensor has 4 pins in total.

  • The sensor emits an ultrasonic signal if a high pulse is detected on the Trigger pin.
  • An echo will return a HIGH signal to the Microcontroller, almost at the same time.
  • Until the reflected sound is detected, the Echo Pin keeps on sending a HIGH signal.
  • When the sensor's receiver gets a sound back, the Echo output gets LOW.
  • With the time difference between the rising and falling edges of your Echo pin, we can easily get the distance between the sensor and the obstacle in the software.

Voltage Divider at Echo Pin

If you set Vcc to 5 volts, the Echo pin will also output 5 volts. Raspberry Pi GPIO pins are prone to voltages above 3.3V, so it is imperative to avoid them. Two alternatives exist at this point:

  • To compensate for this, we can use 3.3 V to power the sensor, but it will reduce the range to about 50cm, which was 250cm in the case of 5V.
  • The sensor is powered up by 5 volts and a simple voltage divider is used on the Echo Pin, to drop the incoming voltage from 5V to 3.3V. So, you get the sensor's full range, but you'll need two additional resistors to design this voltage divider.

Circuit Diagram

  • Here's the circuit Diagram of the Ultrasonic sensor(HC-SR04) with Raspberry Pi 4:

  • As you can see in the above figure, we have placed two resisters at the Echo Pin, to divide the voltage, as we need 3.3V max at RPi4 GPIO.
  • Any spare GPIO pin can be used, instead of Pin11 and Pin13.

Now let's design it with real hardware:

  • I have placed Male-to-female jumper wires on the Ultrasonic Sensor, the other side of these jumper wires will be plugged in the Breadboard:

  • Now connecting Jumper wires to Raspberry Pi 4:

  • Connected Ultrasonic Sensor & Raspberry Pi 4 via Breadboard:

  • Now, let's design the voltage divider for Echo Pin, so placing a 1k ohm resistor on the breadboard:

  • The second resistor used is of 2k ohm:

  • Here's our Raspberry Pi 4:

  • Pin 18 will be connected between the 1k ohm and 2k ohm resistors as shown below:

Python Code for Ultrasonic Sensor

Double-time distance measurements are calculated with the following Python program:

For ten seconds, the trigger is engaged and the sensor uses this signal to produce sound pulses. The start time is decided as soon as the echo signal rises to a high level. Once the echo signal's negative edge is identified, the stop time is calculated. To calculate how long it will take for a sound wave to travel between two points, subtract the starting time from the final time. The speed of sound in the air is 343 m/s, so multiple this time is multiplied by the speed of sound. You must multiply the values by 100 in order to display them in cm. A speed of 34,300 cm/s is obtained. Finally, to acquire a single distance, divide everything by 2. Now let's implement this pseudocode in Python script:

  • This code's first line imports modules for working with the Raspberry Pi's GPIO pins.

  • RPi.GPIO is a module that allows us to communicate with Raspberry Pi's GPIO pins.
  • When delivering ultrasonic sound waves, the Time Module is used to create a delay before the sound is picked up by the receiver.

When using the GPIO SetMode, the numbering scheme used to work on Raspberry Pi's GPIO can be defined in two ways: GPIO.board and GPIO.BCM, respectively.

If you want to learn more about GPIO.Board and BCM, I'd like you to check out the following picture.

  • Use the GPIO.setmode(GPIO.board) function to access the pin with the number in the circle.
  • GPIO.setmode (GPIO.BCM): BCM is the abbreviation for the Broadcom chip-specific number.GPIO.SetMode can be used to represent a pin number as a rectangle (GPIO.BCM).
  • When working with serial, SPI, I2C, and other communication protocols, I prefer to utilize GPIO.setmode (GPIO.BCM) method.

  • Assigning GPIO Pins to Trig and Echo pins:

>

  • Here, we are making the Trig Pin OUTPUT and the Echo Pin INPUT.

Python Code for Distance Calculation

  • In the below code, we are keeping the Trig Pin LOW for 2 milliseconds:

  • After that, we sent a HIGH signal at the Trig Pin and again make it LOW.

  • The delays are added to the GPIO TRIG pin in accordance with sensor datasheets.
  • Next, we need to calculate the Start and Stop time.
  • As seen in the below code, while the Echo Pin is LOW, we keep on updating the Start Time.
  • Once the Echo Pin gets HGIH, the second while loop will start and we will get the Bounce-back time.
  • NExt, we calculated the Pulse Duration and applied the distance formula.
  • Finally printed the distance formula in Raspberry Pi console.

  • The print function described above won't work, if you are using a Python version lower than 3.0. If this is the case, the print line can be modified as follows:

  • Here are the results:

Ultrasonic Sensors: Drawbacks

It is important to take into account the limits of ultrasonic sensors before making a final decision on which sensor to use.

  • Temperature and humidity affect the speed of sound, which can affect the accuracy of the measurements.
  • Just like any other sensor, they can become clogged, wet, or frozen, causing them to malfunction.
  • In a vacuum, ultrasonic sensors can't work. This is because they need sound, which needs a medium to make it work.

Conclusion

In this tutorial, we learned how to connect ultrasonic sensors to Raspberry Pi 4. In addition, we studied the sensor's fundamentals and the distance calculation etc. Next, we'll learn how to interface a DHT11 sensor with Raspberry Pi 4 board. Till then, take care. Have fun!!!

5 Great Tools for Designers

In the past, graphic designers had limited choice of graphic design tools. There were only 3-5 great design tools for professional work. This has all changed with free and open-source platforms making it easy to design what you want, wherever you want it. Also, many of these tools are cross-platform too, meaning you can whip up some quick designs on your Android or iOS device. Because the sheer number of available tools makes it harder to pick the best one, we are going to look at 5 great ones that you should be using right now.

Adobe Illustrator

Almost all designers agree that Adobe Illustrator is the best tool for creating vector graphics. You can use the software to create artwork, logos, infographics, artwork, icons, and pretty much anything else you like. Adobe Illustrator uses mathematical formulas to scale images as opposed to pixels, which means resizing might strain your computer, but you get seamless and infinite resizing.

Adobe Illustrator is not free. You get a free seven-day trial and then have to pay $20.99 per month after that.

Affinity Designer

Affinity Designer is regarded by many as the best Adobe Illustrator alternative. It is great for beginners and experienced designers alike, offering an intuitive interface and user-friendly features. You can also use it for almost all design work, and its two notable features are its 8,000X history steps and 1,000,000% zoom. Both of these features make it perfect for working with clients who want even the smallest details to be perfect.

Picsart Sticker Maker

In the past few years, stickers have grown exponentially in popularity, and it is almost impossible to go a day without seeing at least one sticker in real life or on social media. They are great promotional tools because they can be added to books, flasks, guitars, laptops, social media, and so many other places. With stickers being such useful marketing tools, designers need a way to create them easily.

Picsart Sticker maker makes it easy to make your own stickers, you only have to upload your photo and work on it using the tool. The platform also makes it easier to share all your stickers online or print physical copies for distribution.

Canva

Canva is an all-around online design tool that you can use to design almost anything. It uses a drag-and-drop interface that is familiar to many people, and that makes it easy even for beginners to whip up some quick and professional-looking designs.

The tool also comes with lots of backgrounds, templates, fonts, and images to get you started. Do note that you need to pay to get access to some of the assets on the platform.

Canva also stands out due to its social media integration; you can post designs directly from Canva to your accounts.

Pixlr

Pixlr is an image editing tool that is a little different; it does not come with all the tools other apps do. It provides all the basic and essential tools you need without requiring you to learn how to use new tools or integrate them into your workflow. Because of this, Pixlr is perfect if you are looking for a tool to help you complete quick edits.

Pixlr is part of an ecosystem of complementary design tools and supports many of the popular design file formats. It also uses a drag-and-drop interface which makes things a lot easier, even for beginners. As with Canva, it also comes with numerous design tools and templates to get you started quickly.

There are different graphic design tools, apps, and platforms available depending on what you are looking for. For beginners, there are online apps with simple features that get simple products done, while for professionals there is software that makes it easier to handle and complete massive and complex design projects.

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir