Temperature & Humidity Pachube-Cosm Project

From openPicus Wiki
Jump to: navigation, search

Introduction

One humidity and temperature sensor (RHT03) is connected to the FLYPORT WiFi.
On the picture you see FLYPORT Wi-Fi and the RHT03 sensor mounted on a breadboard.
Connections are straightforward:
- IN5 is connected to PIN 2 of the RHT03 which is also connected with a 1K resistor to power
- PIN 1 goes also to power while the others PINs are connected to ground.


Cosm.jpg

The application contains a basic web page to show the functionalities of FLYPORT WiFi and how to control the digital IOs and monitor the analog inputs from the browser. The page uses AJAX requests to update the values of the analog and digital IOs. The web pages contains images and is formatted with a css stylesheet.

Cosm1.jpg

In this example, the user frmware is very basic, it just connects to the default network using the command WFConnect(WF_DEFAULT) and awaits for the connection to be established (monitoring the system variable WFStatus). By default, FLYPORT WiFi creates an open ad hoc network, but all the parameters can be changed running the wizard.
This is the web interface of the project that you will get pointing your browser to the flyport address:
Cosm2.jpg

The application contains a basic web page to show the functionalities of Flyport and how to control the digital IOs and monitor the analog inputs from the browser. The page uses AJAX requests to update the values of the analog and digital IOs. The web pages contains images and is formatted with a css stylesheet.
Cosm3.jpg

Source code

Source code for Flyport

Personal tools
Namespaces

Variants
Actions
START HERE
DEVELOPMENT
HARDWARE INFO
RESOURCES
PHASED OUT
Toolbox