With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Hi,I have had a look at the link you mentioned and it seems I have the correct pin numbers. Looking at this link (http://pi4j.com/pins/model-2b-rev1.html) and the switch-config.json file, my allocations are:"Garage Door">"switchPinNumber": 0>GPIO_0>Pin 11"House Ceiling Fan">"switchPinNumber": 2>GPIO_2>Pin 13"Furnace Blower">"switchPinNumber": 3>GPIO_3>Pin 15These physical allocated pins (11,13,15) work with a simple test version of java code using pi4j enumerations you have described. Actually the test code uses the same code from switch-server>SingleSwitch.java>toPin().Could you provide further advice.thanks
Hi,Nice project and well written code for both Android & RPI.I have a few questions:Have followed the steps described, both Android and RPI are running but the relays do not operate on Android key presses. I have logs enabled on both Android & RPI, the RPI logs show SingleSwitch.java, turnOn() and turnOff() methods are called correctly, but the relays cannot be controlled. Physical pins 13 & 17 are always low.I have written a simpler java code that does toggle the relays correctly. I have RPI 2 B.Can you please advice.Thanks
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.