Академический Документы
Профессиональный Документы
Культура Документы
Locally display data: In this part controller convert data into standard values and
display on LCD.
Sending Data on Application: In this module data is send to an application using cloud
(Internet) or BLE.
MQTT:
Why MQTT?
MQTT has unique features you can hardly find in other protocols, like:
It’s a lightweight protocol. So, it’s easy to implement in software and fast in data
transmission.
It’s based on a messaging technique. Of course, you know how fast your
messenger/WhatsApp message delivery is. Likewise, the MQTT protocol.
Minimized data packets. Hence, low network usage.
Low power usage. As a result, it saves the connected device’s battery.
It’s real time! That’s is specifically what makes it perfect for IoT applications.
o HTML
Hypertext Markup Language (HTML) is the standard markup language used to
create web pages. A markup language is your way of making notes in a digital
document that can be distinguished from regular text. It’s the most basic building
block you’ll need for developing websites.
o CSS
CSS (Cascading Style Sheets) is the language used to present the document you
create with HTML. Where HTML comes first and creates the foundation for your
page, CSS comes along next and is used to create the page’s layout, color, fonts,
and…well, the style!
o JavaScript
Another MAJOR tool in your front-end developer toolbox is going to be
JavaScript (JS). Where HTML is a markup language and CSS is a style sheet
language, JS is the first language I’ve mentioned that’s a Bonafede programming
language. What’s the difference? Where HTML and CSS determine the
presentation of a page, JS determines the function.
Arduino Ide
Arduino IDE is an open source software that is mainly used for writing and compiling the
code into the Arduino Module. It is an official Arduino software, making code
compilation too easy that even a common person with no prior technical knowledge can
get their feet wet with the learning process. It is easily available for operating systems
like MAC, Windows, Linux and runs on the Java Platform that comes with inbuilt
functions and commands that play a vital role for debugging, editing and compiling the
code in the environment. A range of Arduino modules available including Arduino Uno,
Arduino Mega, Arduino Leonardo, Arduino Micro and many more.
6.3 Project Code
Controller Code
#define DOUT D4
#define CLK D5
HX711 scale(DOUT, CLK);
float calibration_factor = -106650;
char auth[] = "j8A2dA4r5HCXN8SEfJ8GYMJdyem7779i";
char ssid[] = "robot";
char pass[] = "12345678";
BlynkTimer timer;
void myTimerEvent()
{
scale.set_scale(calibration_factor);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Weight:");
lcd.setCursor(8,0);
lcd.print(scale.get_units(), 3);
float w = (scale.get_units());
Blynk.virtualWrite(V5, w);
}
void setup()
{
lcd.init();
lcd.backlight();
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, myTimerEvent);
scale.set_scale();
scale.tare();
void loop()
{
Blynk.run();
timer.run();
}
Website Code
<!DOCTYPE HTML>
<html>
<head>
<title>Kitchen Inventory</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,
user-scalable=no" />
</head>
<body onload="init();">
</div>
<span class="image object">
<img src="ft.jpg" alt="" />
</span>
</section>
</header>
<div class="features">
</div>
</section>
</div>
</div>
<section>
<ul class="contact">
<li class="fa-envelope-o"><a
href="vishalmate10@gmail.com">ashwinishelke1998@gmail.com
</br>pingalepooja09@gmail.com </br>pratu.krushnali@gmail.com
</br>ghumre.priya@gmail.com </br>dpranjal03@gmail.com </br></a></li>
<li class="fa-phone">+91
9209265769</li>
<li class="fa-home">SAPKAL COLLEGE OF
ENGINEERING, NASHIK<br />
, MH </li>
</ul>
</section>
</div>
</div>
</div>
<script type="text/javascript">
//sample HTML/JS script that will publish/subscribe to topics in the
Google Chrome Console
//by Matthew Bordignon @bordignon on twitter.
var msg;
var wsbroker = "test.mosquitto.org"; //mqtt websocket enabled broker
var wsport = 8080// port for above
var client = new Paho.MQTT.Client(wsbroker, wsport,
"myclientid_" + parseInt(Math.random() * 100, 10));
if(message.destinationName=='/health/s2'){
var tmp = message.payloadString;
document.getElementById("msg2").innerHTML = tmp;
}
if(message.destinationName=='/health/s3'){
var tmp = message.payloadString;
document.getElementById("msg3").innerHTML = tmp;
}
};
var options = {
timeout: 3,
onSuccess: function () {
console.log("mqtt connected");
// Connection succeeded; subscribe to our topic, you can add multile
lines of these
client.subscribe('/health/#', {qos: 1});
</Script>
</body>
</html>
Chapter 7
Software Testing
6.1 Types of Testing
Testing is the process of evaluating a system or its component(s) with the intent to find whether
it satisfies the specified requirements or not. Testing is executing a system in order to identify
any gaps, errors, or missing requirements in contrary to the actual requirements.
Mastering the domain of a system always gives the tester an edge over someone with limited
domain knowledge. Unlike black-box testing, where the tester only tests the application's user
interface; in grey-box testing, the tester has access to design documents and the database. Having
this knowledge, a tester can prepare better test data and test scenarios while making a test plan.
6.3 Test Cases
6.3.1 Test Cases for Hardware
Sr. Component / module Expected Result Actual Result Status
No.
1. Sensors Sensor should read the Sensor display value Pass
parameters accurately with 5% accuracy
2. Siren When any incident Siren works as per Pass
occurs Siren should requirements
start
3. Notification LEDs When any incident LED works as per Pass
occurs LED should requirements
blink
5. Notifications Notification should Sending Notification Pass
send on application accurately
Sr. Component / module Expected Result Actual Result Status
No.