Project Description

Description:

An Arduino UNO (and Ethernet Shield) queries Yahoo using a Temboo account and retrieves weather information. The data is filtered and processed, and then passed on to another Arduino UNO to be displayed on a TFT LCD module. Two Arduino UNOs are used because the Ethernet library and the UTFT library are both memory hungry, and together consume more memory than one Arduino UNO can handle.

Hardware Required:

• Arduino uno

• Ethernet Shield w5200

• TFT LCD module

• Proto shield

•Jumper wires

• Breadboard.

Step1:

Visit the Temboo website: https://www.temboo.com/ 
Create an account by entering a valid email address.
Then click on the Sign-Up button.

160

Step 2:

Verify your email address by clicking on the link provided in the email sent by Temboo.

Step 3:

You will be directed to the account setup page:
Create an Account Name, and Password for future access to your Temboo Account
Check the terms of service and if you agree, then tick the box
Press the Go! button

161

Step 4:

You will then encounter the “Welcome!” screen:

162

Step 5:

Navigate to the top right of the screen and select the LIBRARY tab 163

Step 6:

On the left-hand side, you will see a list of choreos.
Type Yahoo into the search box on the top left of the screen.
Navigate to the GetWeatherByAddress Choreo by clicking on…
Yahoo _ Weather _ GetWeatherByAddress.

164

Step 7:

Turn the IoT Mode to ON (in the top right of screen)

165

Step 8:

What’s your platform/device? : Arduino
How is it connected? : Arduino Ethernet

The following popup box will appear:

166

Step 9:

Name: EthernetShield – you can choose any name. Letters and numbers only. No spaces.
Shield Type: Arduino Ethernet
MAC Address: You can normally find the MAC address of the Ethernet shield on the underside.
Enter the MAC address without the hyphens. Then click SAVE. 167

Step 10:

Move to the INPUT section.
Enter the Address of the place you want the Temperature for.
Address = Perth, Western Australia
Expand the Optional INPUT for extra functionality
Units = c – If you want the temperature in Celcius. 168

Step 11:

This will automatically generate some Arduino CODE and a HEADER FILE.
Don’t worry about the Arduino code for now… because I will provide that for you.
However, you will need the automatically generated HEADER file. I will show you what to do with that soon.
So don’t lose it !’

169

Arduino code (Slave)

Step 1: Ethernet Shield

Place the Ethernet shield onto the Arduino MASTER.
Connect an Ethernet cable (RJ45) to the Ethernet shield. The other end will connect to your internet router.

170

Step 2: Arduino SLAVE and TFT LCD module

You can either wire up the TFT LCD module on a breadboard, or you can use a ProtoShield with mini-breadboard. It doesn’t really matter how you hook it up, but make sure you double check the connections and the TFT specifications before you power it up. I have powered the Arduino Slave by connecting it to the Arduino Master (see fritzing sketch below).

There is no reason why you couldn’t just power the slave separately. In fact, this is probably the safer option. But I read that this power-sharing setup was ok, so I wanted to give it a go. I have no idea whether it would be suitable for a long-term power project… so use it at your own risk. I tried using 4 x AA batteries to power this circuit but found that the LCD screen would flicker. So then I tried a 9V battery and noticed that the 5V voltage regulator was heating up more than I felt comfortable with. In the end, I settled with the USB option and had no further issues.

171

172

173