Author: Felix Tang
-
Web-Based console for Raspberry Pi: HTTP GET and HTTP POST
In this project, HTTP GET and HTTP POST are by Ajax in HTML file to talk with python file “server.py”. The main difference between HTTP GET and HTTP POST requests lies in how the data is transmitted and the intended purpose of each request type: In summary, GET requests are used for retrieving data, while… Read more
-
Web-Based console for Raspberry Pi: JSON data
In this Raspberry Pi project, JSON data is utilized as an interchange format between the front-end HTML/JavaScript and the back-end Python programs. In this post, let’s delve into the topic of JSON data, specifically focusing on its role in this project and providing examples of how it is used in the programs. JSON (JavaScript Object… Read more
-
Web-Based console for Raspberry Pi: python code to control GPIO
The GPIO pin status on a Raspberry Pi is managed through the /sys/class/gpio/ directory in the Linux file system. This directory contains a series of files and directories that allow you to interact with the GPIO pins. When you configure a GPIO pin as an input or output, a corresponding entry is created in the /sys/class/gpio/ directory. The naming… Read more
-
Web-Based console for Raspberry Pi: debug methods
To effectively fix problems with webpages, both front-end and back-end development require different tools. The Chrome Developer Tools is a powerful toolkit specifically designed for front-end developers. It offers an extensive set of features and utilities to help debug issues, optimize performance, and improve the user experience of websites and web applications. To access it,… Read more
-
Web-Based console for Raspberry Pi: front-end and back-end development
IP-enabled devices generally offer a web-based interface for managing and configuring them. In this particular case, I have created web-based login page, dashboard and configuration page for a Raspberry Pi4B controlling two LEDs. This project exemplifies the standard process of front-end and back-end development. Front-end development encompasses the creation of the user interface and design… Read more
-
My own creation – the robotic finger
Introduction This project represents the culmination of my high school journey, where I have focused on creating an electronic device. The main aim of this project is to gain knowledge and skills in developing an Internet of Things (IoT) device for home automation. The end result is a product that enables me to control a… Read more
-
Effortless Setup of a 3.5-inch TFT LCD Touch Display XPT2046 on the Raspberry Pi
Let me talk about the adding of a 3.5 inch TFT LCD touch display XPT2046 on Raspberry Pi. It is easy and straight forward. Plug the display on to the Raspberry Pi, with the pins flushed all the way to the corner. The touch screen should be illuminated white when the power source is connected… Read more
-
Run a Python program in a terminal that opens automatically
I have developed a Python program called ping_script.py, which runs on a Raspberry Pi and continuously pings a hostname and save the results to text file. For checking purpose, I want to display the ongoing pinging process on a 5″ LCD display when the Raspberry Pi starts up. To get the job done, I tackle… Read more
-
Streamlining Pi Board Development with WinSCP and SSH
Connecting a keyboard and a monitor directly to a Pi-based board for development can often be cumbersome, as it requires additional space for an extra monitor and keyboard alongside my PC. To streamline this process, I typically opt for network connectivity by connecting my PC to the Pi board using WinSCP and Putty SSH. Not… Read more
-
Raspberry Pi-Based Ping Testing for 60 Days
Table of contents Introduction In certain projects, it is essential to ensure the connectivity of the 4G/LTE cellular network at specific locations. To do this, I plan to regularly ping a chosen hostname (such as 8.8.8.8) using a mobile network, with a frequency of once per second. The ping results will be saved to an… Read more