Applying the Scarcity Principle to Software Products

Understanding and leveraging the concept of scarcity can greatly benefit your software-based business. Scarcity creates a sense of urgency and urgency often leads to increased desire and action. In this post, we will explore how companies use scarcity to their advantage and how you can apply this principle to your own business. Scarcity is a powerful force that companies utilize to drive sales. For example, popular travel booking website Booking.com often displays popups indicating that a particular room is the last one available and that other users are currently viewing it....

Arduino Project: Controlling a Servo Motor with a Potentiometer

In this Arduino project, we will learn how to control a servo motor using a potentiometer. By reading the rotation of the potentiometer through an analog input pin, we can obtain values ranging from 0 to 1023. We will utilize these values to rotate the servo motor from 0° to 180°. First, let’s build the circuit and then proceed to write the program. Connect the power pins (5V and GND) to the + and - breadboard lines, as shown in the image below....

Arduino project: Controlling the built-in LED using your browser

In this tutorial, we will build upon the Arduino Web Server example to enable controlling the built-in LED on the Arduino board through commands sent from a web browser. To achieve this, we will turn on the LED by accessing the /on URL and turn it off by accessing the /off URL. Any other URL will have no effect on the LED. Let’s start with the code from the previous tutorial:...

Arduino Project: Generating Sound with a Passive Buzzer

In this Arduino project, we will be using a passive buzzer to generate sound. Similar to the active buzzer example, you will need to connect the buzzer to the Arduino. The buzzer has a positive “+” pole, which can be connected using a red wire (a good habit to follow). Connect the negative “-” wire to the GND on the Arduino and the “+” wire to a digital output pin. In this case, we will be using pin #8....

Arduino Project: Generating Sound with an Active Buzzer

In this Arduino project, we will be utilizing an active buzzer to generate sound. This tutorial will guide you through the process of connecting the buzzer to your Arduino and writing the necessary code to produce different sounds. Connecting the Buzzer To begin, connect the buzzer to your Arduino using the following steps: Attach the red wire to the + pole of the buzzer. Connect the - wire to the GND (ground) pin on the Arduino....

Arduino Project: How to Blink a LED

In this tutorial, I will guide you through creating your first Arduino project, which involves blinking a LED light on and off. This project is simple yet educational, especially if you are new to Arduino. Before we begin, make sure you have an Arduino board that works at 5V I/O pins. In this tutorial, I will be using an Arduino Uno rev 3 clone board, but you can use any board that meets the requirements....

Arduino Project: How to Read a Digital Input

In this tutorial, we will explore how to read from a digital I/O pin using the digitalRead() function in Arduino. On the Arduino Uno board, the digital I/O pins are located on the side of the board near the USB port. These pins are numbered from 0 to 13, but typically pins 0 and 1 are reserved for serial communication. To begin, let’s build a simple circuit. Connect one lead of a button to GND on the Arduino and the other lead to digital pin #3 (you can use any other digital pin as well)....

Arduino Project: Reading Analog Input for Sensor Data

In this Arduino project, we will learn how to read analog input using a potentiometer and connect it to an analog input pin on the Arduino board. We will also write a program that reads and displays the current values. Introduction to Analog I/O In the previous Arduino Project #2, we covered reading digital inputs, where the value could only be 0 or 1 (LOW or HIGH). However, with analog input/output (I/O), we can read a range of values....

Arduino Project: Understanding the analogWrite() Function and PWM

In Arduino projects, we often need to output analog signals. However, Arduino boards like the Uno do not have dedicated analog output pins. Thankfully, we can use the analogWrite() function provided by the Arduino language to simulate analog output using a technique called Pulse Width Modulation (PWM). PWM involves rapidly changing the output signal between a HIGH state and a LOW state. By varying the amount of time the signal spends in the HIGH state relative to the LOW state, we can create the illusion of an analog signal with varying average voltage levels....

Arduino project: Using the map() function for value scaling

When working with analog input pins on an Arduino, the acquired values are typically in the range of 0 to 1023. This is because the analog read resolution is 10 bits, resulting in a range of 2^10, which is 1024. However, on certain ARM-based Arduino devices such as Arduino Zero, Arduino Due, and the Arduino MKR family, it is possible to extend the resolution to 12 bits by calling the analogReadResolution(12) function....