In this project we are going to set up and control the pins on a Raspberry Pi using NodifyMe Studio or one of the NodifyMe mobile clients.
- 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.
This 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 begining 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!