It's IoT Week at SitePoint! All week we're publishing articles focused on the intersection of the internet and the physical world, so keep checking the IoT tag for the latest updates.
In the first part of this series, we learned a bit of Minecraft and the circuitry we can make inside it. We also made a circuit to alert us when the door to our mansion was opened.
We then hooked this virtual alarm to a listening PHP script, so we can know when the door is opened in the context of a PHP script.
In this part, we'll build a small Arduino-based alarm circuit. We'll learn how to trigger the alarm, using the the official IDE and programming language, and then using something called Firmata.
We'll round the series out by connecting the alarm circuit to the Minecraft circuit, so we hear a real alarm for Minecraft mansion.
You can find the code for this tutorial at http://ift.tt/29AgL1G
Crash Course in Arduino Programming
Arduino is one of many types hobbyist circuit controllers. There are a few different designs, like the bigger Uno or the smaller Micro.
What's common among them is that they have ports/pins for connecting to different components (e.g. buttons, sensors, and LEDs) and understand a common programming languages. The programming languages are C and C++, which is about the hardest thing to learn about Arduino.
Continue reading %PHP, Arduino, And… Minecraft? Connecting an Arduino to PHP!%
by Christopher Pitt via SitePoint
No comments:
Post a Comment