DIY Projects Internet of Things (IoT)

How to Glow an LED using Raspberry Pi and Python

Today, most of the IoT based applications and products are powered by Raspberry Pi. If you haven’t yet read the previous article, about why IoT is the buzzword of the decade, do check it out! Raspberry Pi is a pocket sized affordable computer which is both fun to play around and build projects as per your ideas. You can plug any computer monitor or TV into the Pi for the display. To get started, you can further connect a standard keyboard and mouse to use it like a mini computer. In true sense, It’s as good as a full sized desktop computer. You can browse the internet, create documents and spreadsheets, watch high definition (HD) videos and play games as well. In this article, we look at a simple DIY Project on how to build your first IoT application using Python to glow an LED.

Raspberry Pi is pretty simple to get started. It provides you a practical approach to learn programming. If you’re familiar with Python, and know how to connect LEDs and resistors to a breadboard, you are good to go! However, if you’re not familiar with Python then I recommend going through this website.

Make sure you have a Raspberry Pi with Raspbian Jessie installed. The circuit is connected as shown below.

LEDs Glow IoT Demo

Connect the LEDs and Raspberry Pi to the breadboard as shown in the diagram using Jumper Wires. Hook up the Raspberry Pi to a monitor via the HDMI port on the board.

Launch the terminal and open ‘nano’ text editor, or you could use any text editor that is already familiar to you. This demo is as simple as a Hello World program. Running the following code will make the LEDs blink.

Now that we have blinking LEDs, lets go ahead and build a silly game. Modify the current code that picks a random number from a given list, glows green LED when you guess the number correctly and glows the red LED if you’re wrong. Run the following code, happy playing!

The sheer form factor and hardware coupled with its ease of use, gives Raspberry Pi the capabilities to interact with everyday things/devices and makes it one of the favourite boards for IoT based products. People around the world are already making phenomenal tools using Raspberry Pi and also share them with the community.

I hope building your first ever IoT project was fun. Let us know what you think in the comments below. Keep checking this space for more projects in the coming days!

Internet of Things (IoT) IoT News

Microsoft brings in Wireless 3D Printing for Windows 10 IoT Core

Today, Microsoft introduced the Network 3D Printer app for its IoT-based platform (IoT Core) which gives wireless functionality to 3D printers. Windows 10 IoT Core is a version of Windows 10 that is optimized for smaller devices with or without a display, and that runs on the Raspberry Pi 2 and 3, Arrow DragonBoard 410c & MinnowBoard MAX. Windows 10 IoT Core utilizes the rich, extensible Universal Windows Platform (UWP) API for building great applications. With Windows 10 IoT Core. you can make devices to integrate richer experiences such as natural user interfaces, searching, online storage and cloud based services. This Network 3D Printer application gives 3D printers what traditional printers had with Wi-Fi capabilities for years, allowing users to print without being connected to the computers.

Setting the IoT system is pretty easy. You just have to connect the Raspberry Pi to a 3D printer using the USB connection. This Windows IoT Core app works on the Raspberry Pi and takes the command for printing jobs wirelessly and then pass them on to a chosen 3D printer. This mini-computer will then start transmitting the printer to a network, allowing a Windows PC to see it and take the print command. The app also lets multiple computers to share a printer and pass the print commands.

The Network 3D Printer works with these below printers at this moment – Lulzbot Taz 6, Makergear M2, Printrbot Play, Plus and Simple, Prusa i3 Mk2, Ultimaker Original and Original+, Ultimaker 2 and 2+, Ultimaker 2 Extended and Extended+.

The Network 3D Printer App currently works only on Raspberry Pi. We should be seeing support for other boards soon.

Earlier at build 2016, Microsoft launched the Azure IoT Starter Kits, similar to the Internet of Things (IoT) starter kits which would help developers start with development for these technologies. The Azure IoT Starter Kits are available on Github here. You can Download Windows 10 IoT Core for your device here. Here are few sample projects to get an idea on how the IoT Core platform is helping builders make stuff.