OSOYOO Yun IoT Smart Home Kit for Arduino

by osoyooproduct in Circuits > Arduino

63 Views, 0 Favorites, 0 Comments

OSOYOO Yun IoT Smart Home Kit for Arduino

1.JPG

This is a great kit for you to learn about IoT(internet of things) and apply many smart home devices.

The kit is based around OSOYOO Mega Board — compatible with Arduino Mega2560 R3 and the Yun Shield — enables Makers to add connectivity to their designs. The OSOYOO mega2560+Yun Shield is similar to Arduino Yun board, as well there are more available pins.

Authorized Online Retailers

2.JPG

Tutorial and Sample Projects

3.jpg

You can see the following tutorial from: http://osoyoo.com/?p=15678

Lesson 1 What is Arduino?

Lesson 2 Osoyoo Mega2560 Board

Lesson 3 Osoyoo Uno vs Osoyoo Mega 2560

Lesson 4 What is Yun Shield ?

Lesson 5 How to use the Yun Shield with Arduino?

Lesson 6 What is Blynk ?

Lesson 7 Getting Started with Blynk

Lesson 8 Model Installation

Lesson 9 Remote Control a LED Blink

Lesson 10 Remote Control a Buzzer

Lesson 11 Remote detection the State of Flame Sensor

Lesson 12 Remote Control Relay

Lesson 13 Remote Control the SG90 Servo

Lesson 14 Remote Control the RGB Module

Lesson 15 Remote detection the state MQ2 Gas Sensor

Lesson 16 Photoresistor and Ultrasonic HC-SR04

Lesson 17 PIR Motion Sensor

Lesson 18 RFID Module

Lesson 19 Remote Display Message on I2C 1602 LCD

Lesson 20 Remote Access to DHT11 Data

Lesson 21 4×4 Keypad Password lock

Lesson 22 Osoyoo IoT Yun Smarthome System

Remote Control a LED Blink -- IoT Smart Home Tutorial

11-LED.jpg
2.png
3.png
4.png
5.png
6.png
7.png
LED.gif

In this lesson, we will show how to use the Osoyoo Yun IoT Kit with the Blynk APP to control a LED.

Preparations

HARDWARE

Arduino(Osoyoo Mega2560 here) x 1

Dragino Yun Shield x 1

Breadboard x 1

LED x 1200Ω

Resistor x 1

Jumpers

SOFTWARE
Arduino IDE (version 1.6.4+)

Blynk APP

Blynk library (Click this link for How to install additional Arduino Libraries)

Connection

Build the circuit as the picture 2 shows.

Code Program

After above operations are completed, make sure that the Yun Shield is on the same network with the computer. Open the Arduino IDE and choose corresponding board type and port type for you project. Then load up the sketch onto your Arduino.

In this example sketch, find this line:

char auth[] ="YourAuthToken";

This is the Auth Token that you emailed yourself. Please check your email and copy it, then paste it inside the quotation marks.

It should look similar to this:

char auth[] = "f45626c103a94983b469637978b0c78a";

Upload the sketch to the board. Wait until you see something like this:

avrdude done. Thank you.

Congrats! You are all set! Now your hardware is connected to the Blynk Cloud!

Add a Widget

Your project canvas is empty, let’s add a button to control our LED.

Tap anywhere on the canvas to open the widget box. All the available widgets are located here. Now pick a button.

Widget Box shows as the picture 3 shows.

Drag-n-Drop - Tap and hold the Widget to drag it to the new position.

Widget Settings - Each Widget has it’s own settings. Tap on the widget to get to them.

The most important parameter to set is PIN . The list of pins reflects physical pins defined by your hardware. If your LED is connected to Digital Pin 8 - then select D8 (D - stands for Digital).

Running Result

After you finished all above operations,open the Serial Monitor and you will see the connection situation,then open the Blynk APP, press the PLAY button. This will switch you from EDIT mode to PLAY mode where you can interact with the hardware. While in PLAY mode, you won’t be able to drag or set up new widgets, press STOP and get back to EDIT mode.

At the same time, you can see the hardware side as the .gif picture shows.