Raspberry Pi Full Stack
  • Preface
  • Part 1 - Introduction
  • Chapter 1. Getting Started with Raspberry Pi
    • 1.1 About Raspberry Pi 3B
    • 1.2 Raspberry Pi Online Resource
    • 1.3 Install Raspbian onto a Raspberry Pi 3B
    • 1.4 Raspberry Pi Configuration
    • 1.5 Network Configuration
    • 1.6 Package Update & Upgrade
  • Chapter 2. Getting Familiar with Raspbian
    • 2.1 Package Management
    • 2.2 Matlab Like Bash
    • 2.3 Install Packages from Repository
    • 2.4 Install Packages from Source
  • Part 2 - GPIO
  • Chapter 3. Raspberry Pi GPIO
    • 3.1 GPIO Web Server
    • 3.2 GPIO Pin Test
  • Part 3 - Pi Camera
  • Chapter 4. Pi Camera
  • Part 4 - Raspberry Pi Based Mini Automated Vehicle
Powered by GitBook
On this page
  1. Chapter 3. Raspberry Pi GPIO

3.1 GPIO Web Server

PreviousChapter 3. Raspberry Pi GPIONext3.2 GPIO Pin Test

Last updated 7 years ago

provides its own code to test Raspberry Pi 3B's GPIOs. The backend server is written in Python, while the frontend interface is written in javascript.

Let's check out the source code first:

git clone git@github.com:LongerVision/RaspberryPi.git

To run this code, you will need python3-rpi.gpio, run the server from terminal with specified IP address (Raspberry Pi 3B's IP) and an randomly specified unused port number.

And then, we can interact with the server from a webbrowser by specifying Raspberry Pi 3B's IP with the specified port number, as follows:

Longer Vision Robotics
Image
Image
Image