Introduction: WiFi Temperature Sensor Using 4Duino-24
In this project we will quickly create a ‘temperature monitor’ that measures the ambient temperature of a room or an outdoor space. The temperature is measured by TMP35 temperature sensor and is displayed on the 4Duino screen. The data is also sent to Thingspeak IoT platform which enables data logging over a period of time.
Step 1: How It Works
The TMP35 temperature sensor detects the room’s temperature in unit Celsius.
TMP35 communicates the temperature data to ATmega32U4 via Analog Input pin A0.
As per the program, ATmega32U4 converts this to unit Fahrenheit.
ATmega32u4 requests ESP8266 to send the current temperature to Thingspeak IoT platform.
ATmega32u4 requests Picaso to update the thermometer widgets and LED digits to display temperature in both units (C and F).
Step 2: Build
- TMP 35 Temperature sensor
- Bread Board
- Jumper cables
- µSD cable
- Micro USB cable
Build the circuit as shown in the diagram.
Step 3: Set Up
Create yourself a ThingSpeak account at https://thingspeak.com
- Create a new channel
- Get the channel API Key under channel settings / API Keys. This key will be later added in to your 4Duino code.
- Setup your Channel fields as shown in the third picture.
Step 4: Program
Workshop 4 – 4Duino Extended Graphics environment is used to program this project.
This project requires the Arduino IDE to be installed as Workshop calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino.
- Download the project file here.Open this file using Workshop 4.
- Simply change the SSID and the PASSWORD to suit your router, on both the program.
- Enter your API key for the channel you wish to use.
- Connect the 4Duino to the PC using µUSB cable. Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.
- Finally, go back to “Home” tab and now click on the “Comp’nLoad” button
- The Workshop 4 IDE will prompt you to insert a µSD card to the PC in order to save the widget images. Insert µSD card, select the appropriate drive and press button “OK”. If the µSD card has the widget images you can click button “No Thanks”.
- Insert the µSD card you saved the image files to into the 4Duino. After uploading the program in to the 4Duino, it will try to mount the µSD card. If the µSD card is not present it will print an error message
You will notice that your 4Duino connects to reads and displays the temperature and meanwhile sends this data to Thingspeak IoT Platform.
2 years ago
Hello, the project is interesting but the download link is offline, will it be possible to have another download link? thanks.
6 years ago
I have made several attempts to use my 4duino card but alas it insists I use the "Workshop" software and that baulks at my installation of the Arduino IDE and tells me the arduino executable is not available. It clearly is available as I use it all the time. Could someone let me know when you've sorted your software and I'll try using it again. Shame really as it looks like a neat little card and screen.
Reply 3 years ago
I realize this answer is about 3 years lat, but it may help somebody else.
I had the same problem and solved it by uninstalling both Arduino IDE and Workshop IDE.
Them install Arduino in the default place (c:\Program Files (x86)\Arduino\)
Next install Workshop4 IDE.
Once installed, download the 4Duino datasheet (https://4dsystems.com.au/mwdownloads/download/link/id/166/) and follow the setup information.
Question 5 years ago on Step 2
What is the uSD cable specified in the instructions? I am trying hard to get this to work but without success.
Why does it keep asking me to "select comm"? I select the comm port and then later it asks again, and again.
I'd appreciate an answer if you're not too busy for the little guy. Thanks
Answer 5 years ago
I could be wrong, but I think it is a typo, i would assume you need a microSD CARD and a microUSB CABLE. but i could be wrong
5 years ago on Step 4
I have dug my old 4duino thing out of the shed to give it one last go - nope this does not work - I use all the driver the 4duino says to use and libraries but the best I can get with this is a permanent "Mounting...." comment on the screen after swapping SD cards backweards and forwards as the thing copies files to it and onto the 4duino at the same time.
Can ANYONE get these 4duinos to work?