Website About Engineering Projects For Engineering Students.
Search This Blog
Introduction To Smart Wi-Fi
We need faster tools and media to prove
our ideas, and this is where ready-to use modules like Smart Wi-Fi
enter. Fig. 1 shows the top side of Smart Wi-Fi module.
Fig. 1: Smart Wi-Fi moduleFig. 2: Block diagram of the introduction of Smart Wi-Fi
The module is low-cost and versatile;
all a developer needs is a USB cable and it is ready to work. For
software developers, working with hardware is always a pain, and this is
one of the biggest reasons why many ideas never exit a computer. Smart
Wi-Fi enables making a product quickly and reliably. With open software
resources and hardware data, moving to the final product after the proof
of concept is also easy.
One of the major aims for writing this
article is to show the versatility of this product and show how quick
the development can be. In this article a few tests with Smart Wi-Fi are
discussed, which show the applicability of this module for development
of the Internet of Things (IoT) products.
Fig. 3: Circuit diagram of the Smart Wi-Fi
Temperature is sensed by IC1 and its
output is measured with ADC pin of BOARD1. BOARD1 sends data to the
serial port. Data can be seen in the serial terminal of ESPlorer tool.
Real-time temperature data is uploaded over ThingSpeak (www.thingspeak.com).
Construction and testing
An actual-size, single-side PCB of Smart Wi-Fi is shown in Fig. 4 and its component layout in Fig. 5.
Fig. 4: Actual-size PCB pattern of Smart Wi-FiFig. 5: Component layout of the PCB
ESP8266 module has many tools that are
freely available, and you can select these as per your requirement. For a
person new to this kind of development, following tools are
recommended. Download and install these as per your PC configuration.
1. ESPlorer for serial port interface with Smart Wi-Fi.
2. CP210x USB drivers .
3. Smart Wi-Fi comes with the latest version of NodeMCUfirmware pre-loaded
4. NodeMCU API.
We describe two tests (TEST1, TEST2) in
this article. Before downloading the code in Smart Wi-Fi, you will need
to connect it to the PC using a micro-USB cable. Start ESPlorer tool and
set the port and baud rate [9600 default] and press Open Tab to open
the port. It is ready to use now. We have used ESPlorer v0.2.0-rc2
version, and the corresponding test procedure is described below.
Test 1 (Temperature sensor interface with Smart Wi-Fi)
The code here is for data read on the ADC and sent to the serial port
locally. Open Temperature_Interface.lua file (given in DVD), type
=call(“Temperature_Interface.lua”) on the left side of Send and press
Send.
We can now observe data into the serial
terminal of ESPlorer tool. The code will keep sending data over the
serial port every 15 seconds. In the code, we use internal timer # 1 of
ESP to call an inline function every 15 seconds. The function reads ADC0
value, which it receives in terms of millivolts, and divides it by ten.
As the resolution of LM35 is 10mV per degree Celsius, dividing by ten
provides the actual temperature in Celsius. We can print this value to
the serial port using print function:
Test 2 (Temperature data upload on the Internet using ThingSpeak API)
In Test 1, we connected a temperature sensor and observed the data
locally. This data can be used in multiple ways as per the application.
In Test 2, we will make the same data available on the Internet and it
would be accessible from anywhere in the world.
We use ThingSpeak API, which is a
freely-available tool used to access and present data over the Internet.
Before using ThingSpeak API, you need to create a user account for
ThingSpeak and a channel. You will get an API key (Fig. 6) for the
channel and then you can upload your data and present it in a graphical
form. The only limitation is the frequency of posts, which is limited to
15 seconds.
Fig. 6: Key generated for posting data on ThingSpeakFig. 7: Data posted on ThingSpeak API
Before going ahead with data upload, the
local Wi-Fi router needs to be paired with Smart Wi-Fi. Use the
following command to connect it to your Wi-Fi router:
This command will pair Smart Wi-Fi to
the Wi-Fi router you want to connect with. The response will be the IP
address assigned to Smart Wi-Fi by the router.
Open ThingSpeak_upload.lua file (given
in DVD), type =call(“Thingspeak_upload.lua”) on the left side of Send
and press Send. Data output on ThingSpeak API is shown as:
Error: Reference source not found.
The application code that will post data to ThingSpeak server (Fig. 7) is given below.
myKey = “put your API key here”
function post()
call(“setLED”, 2);
field1 = adc.read(0)/10;
print(fmt(“%3.1f”,field1));
call(“httpsend”, “api.thingspeak.com”, 80, “/update?api_key=”..myKey..”&field1=”..field1);
call(“setLED”, 0);
tmr.delay(50);
end
call(“connectap”,” your router SSID “,” your router password “)
tmr.alarm(1, 15000, 1, post)
Applications of Smart Wi-Fi
Smart Wi-Fi is an IoT-enabler tool.The applications it can cater to are
only limited by the imagination of makers. The very basic applications
could be for smarthomes or smartoffices.
This module can be used for data logging, data monitoring and more, and
provides very good support for product development. It also has all
features to act as a full-fledged product.
Conclusion
Using Smart Wi-Fi module, we have seen how easy it is to interface and
connect sensors to the Internet. Tools like ESPlorer and open source LUA
scripts make development very easy and fast. Platforms such as
ThingSpeak add to the benefits and provide support for testing and
development of an IoT product.
In this project, we are going to build an RFID Based Access Control System using 8051 Micro Controller . The same system can be named like RFID based door lock or RFID based access management system. If you have been to big hospitals or companies, you might have seen how they used RFID based locks to restrict access to certain areas. In hospitals, only hospital staff with approved RFID tags can access Intensive Care Unit and such restricted areas. So let’s begin to build the system. Project Description A RFID based Door Lock or Access Control System is based on some simple concepts. We store a set of RFID card data in our system, say 3 or 10 RFID card data. When the person with the right RFID card (compatible to data preloaded in our program/system) come and swipes his RFID tag, access will be granted. When the person with the wrong RFID card (whose data is not loaded in our system) swipes his RFID tag, access will be denied. I hope you understand the system concept of RFID based...
An astable multivibrator can be designed using different types of components, say using transistors (and associated components) alone or by using op amps (and associated components). In this article, we are designing an Astable Multivibrator using 555 Timer IC. If you are wondering what all are the practical applications of an astable multivibrator, lets begin by seeing a few. One of the most common application for an astable multivibrator is to generate time delays . Let’s say you want to turn an LED “ ON ” for 1 second and keep it “ OFF ” for 0.5 seconds, then an astable multivibrator is the best circuit you could use to build this application. Unlike the monostable multivibrator, this circuit does not require any external trigger to change the state of the output, hence the name free-running. Before going to make the circuit, make sure your 555 IC is working. For that go through the article: How to test a 555 IC for working An astable multivibrator can be produced by adding...
Comments
Post a Comment