In this project we are going to set up and control the pins on a Raspberry Pi using NodifyMe Studio or the NodifyMe mobile client.
Prerequisites- Download NodifyMe at: https://www.nodifyme.com/Downloads
- Android App at: Google Play
- Raspberry Pi with Hub and Service Host installed and running. Get help with this.
- NodifyMe Studio installed and running. Get help with this.
This is going to be a really simple circuit of an LED, resistor and the Raspberry Pi itself.
Quick Note: Make sure that when you are hooking this circuit up that you put the LED anode (long wire side) hooked to the 330 ohm resistor. Polarity matters with LEDs.
Software (NodifyMe)Required ServiceThis is also going to be a fairly quick section if you already have NodifyMe Studio running, have the Hub running and know how to Install Services.
If you need a refresher on how to download and install Services you can go here and then come back.
The Service Pack that we are going to use is called RPiDigital and can be found under the Services section of the NodifyMe website here.
Once it has been installed on the Hub that is running on the Raspberry Pi, you should be able to see a bunch of pin-related Nodes.
The one that we will be interested in for sending digital signals out will usually be the Digital Pin Writer node.
Go ahead and drag that Node to the the Active Nodes column. You will need one of these Nodes for each pin that you want to control using NodifyMe. In this case we only need one.
Next we will click on the Digital Pin Writer Node that we just added to the Active Nodes list so that we can set it up.
The only thing that we really need to set up here is the Pin Number. We can do this by clicking on the Pin Number and setting the value to 15 and then click Save/Send button (green button with Play icon).
Note on Pins: For various reasons, the pin numbers of the Raspberry Pi have changed over the different generations. The creator of the library that this Service uses anticipated that and created a Pi independent numbering scheme. You can find more info on this wonderful library and the pins by visiting the following link.
WiringPi pin information and chart
The creator, Gordon, has made his hard work and knowledge available for free.
That is it! Everything is setup and should now be good to go.
Make sure that the Service and the Node are both enabled using the slider at the top of each of their views..
.. and after both have been enabled, you can now go and directly control the LED using NodifyMe by navigating to the Node's auto generated view as below:
Toggling the Pin Value from Off to On should blink the LED!
You can barely see the difference in the photos because of the room lighting but I can assure that the LED is on in the photo below.
Keep in mind that you can also control your projects using NodifyMe for Android. You can find the app in the Google App Store.
Hopefully this is the beginning of a long line of new project. Remember that this same software setup is useful for far more than LEDs. You can hook up (with care and research) other circuits that are triggered by one of the Raspberry Pi's GPIO pins.
We can't wait to see what you build!
Related Hardware:
The Raspberry Pi is an awesome single board computer. It is kind of the swiss army knife of computers. It can run as a gaming platform, as a general purpose web browser, power a robotic or run an automation project somewhere in the desert.
LEDs are used for just about every project! I am not sure that we will ever have enough of these things.
NodifyMeServices:
The RPi GPIO service provides nodes that allow you to set and read the state of the pins of a Raspberry Pi. Note: This service must be run with root privileges.
Comments
Please log in or sign up to comment.