I wrote an article on UX Collective showing how designers could use some really affordable tools to prototype user experiences that involve both digital and physical components.
The tools I used are Origami Studio for building the prototype UI and Particle Photon for actuating an LED.
The Origami Prototype. Head over to GitHub to download the Origami file
The hardware setup. Pretty simple. Download the Photon sketch from this link.