Engineering Blog

Learn it. Build it. Simulate it.

2,781 step-by-step tutorials and projects on Arduino, ESP32, Raspberry Pi and Proteus.

2781 articles found.

How to Use a Raspberry Pi as A Media Server

How to Use a Raspberry Pi as A Media Server, raspberry pi 4 media server, media server in raspberry pi 4, raspberry pi 4 media server, plex in rpi4, rpi4 plex, media server rpi4, rpi4 media server

Welcome to the next tutorial of our Raspberry Pi programming course. Our previous tutorial taught us to set up a webserver in raspberry pi. We also looked at configuring addclient and deploying apps to our repositories. This tutorial will teach us to set up a free media server on Raspberry Pi. Even if you lack some of the expertise mentioned above and experience, we can still attempt to accomplish this task, and you will gain new knowledge in the process! This can be done in a variety of ways. It's a mix of free and paid options. While we're here, we'll learn how to use the DLNA protocol to run a public media server on a Raspberry Pi. Let's get right down to business right away. It's possible to store information in the form of files on a media server at a central location. It doesn't matter if it's a document, image, film, ebook, or scripting file stored on a conventional media server; everything it contains is a file. It merely allows you to store data in a more orderly fashion. Accessing data should necessitate you navigating it on your own. A media server sits on top of the file server. Media items such as photos, music, and videos can be accessed with this application. In addition, it enables network playback. There's no need to worry about where the video files are kept. You don't have to do anything more than type in your questions and wait for the results to appear. For example, you can search for all the music by a particular artist or musician. These new features ...

How to Setup a Web Server in Raspberry Pi 4?

How to use a raspberry pi 4 as a webserver, raspberry pi 4 webserver, webserver in raspberry pi 4, rpi4 webserver, webserver rpi4, webserver in raspberry pi 4

Hello friends, I hope you all are doing great. Today, we are going to share the 2nd tutorial of Section-VIII in the Raspberry Pi Programming Course. In the previous tutorial, we interfaced a Barcode Scanner with Raspberry Pi 4. In today's tutorial, we will discuss how to set up a web server in raspberry pi. So, let's get started: We are going to use the following components, in today's project: When configuring a Raspberry Pi, select the expand FileSystem option to ensure that all of the Micro SD storage is allocated for the operating system and modify the default Pi passwords to protect your server from attackers. Next, we will install the web server. As a result of its minimal memory footprint and compatibility with Node.js, We use Nginx as our web server. Apache or Lighttpd web servers could also be used. Run ifconfig to discover the IP address of your Rpi. Your ethernet adapter's output will be found under eth0. After discovering the IP addresses, you can direct your browser to it and expect to receive the default Welcome message for Nginx. If you don't intend to get access to your Raspberry Pi from elsewhere in your local area network, the following step is unnecessary. Those who wish to connect to their server from a different area should nevertheless be able to do so. It is common for devices connected to a router in a domestic home networking environment to appear hidden from view. The external IP address of your network can only be used to access your router. Those ...

Interfacing Servo Motor with Raspberry Pi Pico using MicroPython

Interfacing Servo Motor with Raspberry Pi Pico using MicroPython, raspberry pi pico servo motor, servo motor raspberry pi pico, raspberry pi pico servo control, servo motor control with raspberry pi pico, Rpi pico servo motor, servo motor Rpi pico

Hello readers, I hope you all are doing great. In our previous tutorial, we discussed the implementation of pulse width modulation (PWM) in Raspberry Pi Pico using the MicroPyton programming example. We also implemented the LED brightness control program to demonstrate an application of the pulse width modulation technique. In this tutorial, we are going to implement another application of pulse width modulation technique which is ‘Direction and position control of a servo motor’ with Raspberry Pi Pico module and MicroPython programming language. Later in this tutorial, we will also discuss how to control the position of a servo motor with push buttons (to be used as control inputs) and also to use LEDs for indication purposes. Before interfacing the servo motor with the Raspberry Pi Pico module, let’s first understand the behavior of a servo motor and how it is different from a DC electric motor. There are several applications for electric motors in which the motor must only rotate at a specific angle. We need a special type of motor with a special arrangement that causes the motor to rotate at a specific angle for a given electric signal (input) in such applications, or we can call it an angular precision motor. The Servo motor is used in these types of applications. A servo motor is a low-cost, high-power output device that can only rotate 180 degrees (90 degrees in each direction) and can control the angle of rotation anywhere within that 180-degree range. Fig. 1 Servo ...

Taking a screenshot in Raspberry pi 4

Taking a screenshot in Raspberry pi, how to take a screenshot in Raspberry pi 4, screenshot raspberry pi 4, screenshot rpi4, rpi4 screenshot, take a photo with rpi4, pic rpi4

Welcome to the next tutorial of our Raspberry Pi programming course. Our previous tutorial taught us to how to print from a Raspberry pi. We also discussed some libraries to create a print server in our raspberry pi. We will learn how to take screenshots on Raspberry Pi using a few different methods in this lesson. We will also look at how to take snapshots on our Raspberry Pi using SSH remotely. This article will assist you when working with projects that require snapshots for documenting your work, sharing, or generating tutorials. Screenshots are said to be the essential items on the internet today. And if you have seen these screenshots in tutorial videos or even used them in regular communication, you're already aware of how effective screenshots can be. They are quickly becoming a key internet currency for more efficient communication. Knowing how and when to utilize the correct ones will help you stand out from the crowd. In this case, we'll employ Scrot, a software program, to help with the PrintScreen procedure. This fantastic software program allows you to take screenshots using commands, shortcut keys, and enabled shortcuts. Scrot is already installed by default in the latest release of the Raspbian Operating system. In case you already have Scrot, you may skip this installation process. If you're not sure whether it's already installed, use the command below inside a pi Terminal window. If your Pi returns a "command not found" error, you must install it. Use the ...

Printing in Raspberry Pi 4

Printing in raspberry pi, how to print in RPI4, printing Raspberry Pi 4, Raspberry Pi 4 printing, how to print in raspberry pi 4, print rpi4, rpi4 print

Welcome to the next tutorial of our Raspberry Pi programming course. Our previous tutorial taught us to how to tweet from Raspberry pi. We also discussed some methods used by the tweepy library to perform some API calls in our project. We will learn how to print from a Raspberry pi in this lesson. There are several benefits of having a print server. Print servers may link numerous computers to one or multiple printers, either physically or wirelessly, allowing you to access the printer with various devices and send print instructions from all the other connected computers. It is not easy to print from an Android smartphone to a cabled printer; however, a printer server makes it simple. A print server is useful in small workplaces where employees may print from any business printer. Another benefit is that we do not need to install drivers and software for the printer on your devices. The Common Unix Printing System is a printing tool for machines running UNIX-like operating systems. It enables the machine installed to function as a printer server. A CUPS-enabled computer may take tasks from numerous devices, process them, and send them to the right printer for printing. With our Raspberry terminal, we will configure the typical Unix printing system. We need to ensure that our Pi runs the most recent software; thus, we will carry out the following command in the terminal. Once the installation is finished, we will restart our raspberry pi. A few system changes are required ...

Tweeting on Raspberry pi 4

Tweeting on Raspberry pi 4, how to tweet in RPi4, tweet in RPi4, how to tweet in RPi4, twitter RPi4, Twitter with Raspberry Pi 4, How to tweet with Raspberry Pi 4

Welcome to the next tutorial of our Raspberry Pi programming course. Our previous tutorial taught us to configure our raspberry pi for voice control. We also discussed some methods of reducing vexing noises so that the voice command program understands you. However, in this lesson, we will learn how to tweet from Raspberry pi. Assume you wish to add tweeting into a Raspberry Pi software you're developing. This article will show you how to build a Twitter app, get access privilege tokens, and post a tweet. On our Raspberry Pi, we'll make a simple program that tweets the result of the uptime command. This is a made-up example, but it demonstrates what is needed to tweet from a raspberry pi. For this session, a repo has been set up. Because we'll be referring to code within the repository, cloning it will be helpful. You could use this program as a reference point for your programs or copy the components you need. Let's start by installing git with the command below. We're going to clone the repository into our current working directory now: After that, change the directory into the repository. The Twitter Application programming interface requires that all queries use OAuth for authentication. To access the Application programming interface, you must first create the authentication credentials. Four text strings make up these credentials: If you're a Twitter account, go through the procedures below to get the keys, tokens, and secrets. If you don't have a Twitter account, ...

Voice Control Project using Raspberry Pi 4

Voice Control on Raspberry Pi, Voice Control using Raspberry Pi 4, Voice Control in RPi4, RPi4 voice control, voice control rpi4, voice control with raspberry pi 4

Welcome to the next tutorial of our Raspberry Pi programming course. Our previous tutorial taught us to make a button-controlled "music box" that plays different sounds depending on which buttons are pressed. In this lesson, we will configure our raspberry pi for voice control. Like the Amazon Echo, voice-activated gadgets are becoming increasingly popular, but you can also construct your own with a Raspberry, a cheap USB mic, and some appropriate software. Simply speaking to your Raspberry Pi will allow you to search YouTube, view websites, activate applications, and even answer inquiries. Because the Raspberry Pi lacks a soundcard or audio port, this project requires a USB microphone or a camera with a built-in microphone. If your mic only has an audio jack, look for an affordable USB soundcard that connects to a USB port on one side and has a headphone and mic output on the other. For the Raspberry Pi, there are various speech recognition programs. We're utilizing Steve Hickson's Pi AUI Toolkit for this project since it is powerful and straightforward to set up and operate. You may install a variety of programs using the Pi AUI Suite. The first question is whether or not the dependencies should be installed. These are the files that the Raspberry Pi requires to work with voice commands, so pick Yes, then press Enter to agree. Following that, you'll be asked if you wish to download the PlayVideo software, which allows you to open and play video content using voice commands. ...

Implementing PWM with Raspberry Pi Pico using MicroPython

Implementing PWM with Raspberry Pi Pico using MicroPython, pwm rpi pico, rpi pico pwm, pwm with raspberry pi pico, raspberry pi pico pwm, how to use pwm in raspberry pi pico, pwm raspberry pi pico, pulse width modulation in rpi4

Hello readers, I hope you all are doing great. In our previous tutorial, we discussed the implementation of LED interfacing and blinking program with Raspberry Pi Pico using MicroPython programming language. So continuing with our previous tutorial, in this tutorial we will learn how to control the LED brightness using PWM (pulse width modulation technique). As we mentioned above, in our previous tutorial we implemented the LED blinking program with a Raspberry Pi Pico board. Blinking an LED means turning ON and OFF and thus the process involves only two states that are ‘1’ (HIGH) and ‘0’ (LOW). But, sometimes it is required to change the digital output between these two (ON and OFF states) for example changing the LED brightness. PWM or Pulse Width Modulation technique is used to change the brightness of the LED. Raspberry Pi Pico (RP2040) offers 40 pins which include power supply pins, General Purpose Input Output (GPIOs) pins, ADC, PWM etc. where most of the pins are multifunctional except power supply pins. Almost all the GPIO pins (30 pins) can be used to implement pulse width modulation technology. Fig. 1 Raspberry Pi Pico Pi-Out RP2040 offers 16 PWM channels and each channel is independent of another. Means we can set the duty cycle and frequency for one channels without affecting the others. These PWM channels are represented in the form of slices or groups and each slice contains two PWM outputs channel (A/B). There are total 8 slices and hence 16 channels. The pin B ...

Top Reasons for Microsoft SQL Database Failure 

sql, sqllite, common issues in sql

Today all businesses utilize databases for practically all operations, ranging from sales & marketing to CRM. Hence, whenever organizations face a database failure, they are susceptible to losing crucial data that may be costly for the entire business. Microsoft SQL is a popular RDMS in all firms or organizations for professionally managing valuable data. SQLServer is incredibly useful in the business circuit, yet it has some corruption issues and errors that DBAs need to tackle strategically. Because of SQL database errors, users are unable to access their valuable data, and it is their responsibility to fix the issues promptly to make sure that there are no severe data loss issues. There are some predominant database corruption errors and issues. You may promptly resolve them to avoid undesirable severe data loss. We will know more about database corruption errors, issues, and perfect solutions for fixing SQL server database problems. Usually, there are three main reasons behind database failure. Let us examine each of them and identify ways to recover and restore your lost data. If a computer or server is shut down improperly, or if it encounters a power outage or surge or something occurs that abruptly interrupts the process of writing data to the files, there are chances of the OS files getting corrupted or damaged severely. This may lead to critical data loss. After encountering such a crisis, you are advised to repair or at least, examine the filesystem to safeguard ...

Build a GPIO Soundboard in Raspberry Pi 4

Build a GPIO Soundboard in Raspberry Pi 4, GPIO music in Raspberry pi 4, GPIO sound in Raspberry Pi 4, GPIO RPi4, GPIO soundboard RPi4, RPi4 GPIO soundboard

Welcome to the next tutorial of our Raspberry Pi programming course. In our previous tutorial, we learned how to create a timelapse video with still images and understand how phototimer and FFmpeg work. In this lesson, you'll make a button-controlled "music box" that plays different sounds depending on which buttons are pressed. Connect button pushes to function calls using the Python gpiozero package and uses the Python dictionary data structure For this project, you'll need some audio samples. On Raspbian, there are many audio files; however, playing them with Python can be challenging. You can, however, transform the audio files to a more simply used format for Python. Please make a new folder and rename it because all of your project files will be saved in the new location. Create a new folder named samples using the same technique as before in your new folder. In /usr/share/sonic-pi/sample, you'll find a bunch of sample sounds. These sounds will be copied into the samples folder in the following phase. Open the command window by selecting the icon in the upper left corner of your screen. To transfer all items from one folder to another, execute the following lines: You should now see all the.flac audio files inside the sample folder. To use Python to play sound files, you must first convert them from.flac to.wav format. Go to the sample folder inside a terminal. FFmpeg is a software program that can quickly transcode video files on Raspberry Pi. This comes preloaded on ...