Controlling Raspberry Pi With Pi Buddy

Introduction: Controlling Raspberry Pi With Pi Buddy

This is a short tutorial to exhibit the abilities of the Pi Buddy app

Step 1: Setting Up the Pi

In order for the Pi to receive command from the device you must have the necessary files and dependancies installed.

Pi Buddy runs off of web-pins found here.
https://github.com/TheGreenToaster/web-pins

The instructions are here to set it and all its dependancies up on your Pi.

Step 2: Setting Up Test Circuit on Pi

Here is a simple diagram of an LED circuit. 

It is important to note that in this example the GPIO will need to bet set to LOW to illuminate the LED.

This diagram is not connected to a GPIO pin in order to test the web-pins we will need to connect the green wire to pin 12 (GPIO 18)

The LED should remain off.

Step 3: Testing Web-pins

The pins are named in an odd manor

0  = GPIO 17
1  = GPIO 18
2  = GPIO 21
3  = GPIO 22
4  = GPIO 23
5  = GPIO 24
6  = GPIO 25
7  = GPIO 4

Next we will construct a URL to test.

REPLACEME/pi-write.php?io=0&pin=YOURPIN

Replace the "REPLACEME" with the IP address of your Pi

Replace the "YOURPIN" with the pin number your led is connected to.

By changing the io value to "0" or "1" should toggle the LED on and off.

Step 4: Test the App

When you launch the app you are prompted with a screen that asks for the IP address of your pi.

Once you have entered your correct IP address you will reach a page that will allow  you to change the value of your pins.

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge
    • Make It Bridge

      Make It Bridge
    • For the Home Contest

      For the Home Contest

    5 Comments

    0
    KelHelmick
    KelHelmick

    8 years ago on Introduction

    This looks really interesting. However, it appears to be all Greek to me. Any chance someone could post up some REALLY easy directions for someone who is computer dumb? I'd love to try this out, but I really don't understand how you are doing this or how it's supposed to be programmed into the RPi. The link to the green toaster/web pins on GitHub are even MORE confusing!!

    0
    TheGreenToaster
    TheGreenToaster

    Reply 8 years ago on Introduction

    I can't go much further. But if it helps if you run all the commands in the github read me it should work. The best thing I can say is google is your friend. Don't let this discourage you though. Keep reading

    0
    KelHelmick
    KelHelmick

    Reply 8 years ago on Introduction

    Thanks for the comments. It would be fantastic if the Pi Buddy App would control the PiFace board - http://www.piface.org.uk/products/piface_digital/