Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
Ayos to ah, more python projects pls. Idea lang boss.
Bookmark
Malaking Tulong to TS!
hello sir where having a thesis this coming feb 17 and i nid help sana mapansin nyo sir :")
we need sana a simple system using PC
" THESIS TITLE IS PARKING SYSTEM " Wiling kami for payment ung kaya lang namin ang price just pm me :")
boss good am matanong ko lang ano idea nyo about dito or pano yung plano nyo sana dito, interested ako FLOOD MONITORING SYSTEM WITH SOCIAL MEDIA NOTIFICATION
//Arduino Libraries
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
//Variables for twitter api
byte mac[] = { 0xD4, 0x28, 0xB2, 0xFF, 0xA0, 0xA1 }; // mac address
char thingSpeakAddress[] = "api.thingspeak.com"; // api Server
String thingtweetAPIKey = "dito po ang api key"; // api key
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
EthernetClient client; // client for twitter
//Variables for time api
unsigned int localPort = 8888; // local port to listen for UDP packets
char timeServer[] = "time.nist.gov"; // time.nist.gov NTP server
const int NTP_PACKET_SIZE = 48; // NTP time stamp is in the first 48 bytes of the message
byte packetBuffer[ NTP_PACKET_SIZE]; // buffer to hold incoming and outgoing packets
EthernetUDP Udp; // A UDP instance to let us send and receive packets over UDP
//Variables for main code
unsigned long arduinoTime = 0;
int timeLimit=0; // 1 post per 1 min
int currentLevel = 0; // current detected water level
int lastLevel = 0; // last tweeted water level to avoid multiple posting of the same water level
int confirmTime = 5; // time to confirm water level is 5 seconds
int confirmLevel = 0; // water level to confirm
void setup()
{
Serial.begin(9600);
startEthernet();
Udp.begin(localPort);
while(arduinoTime == 0){
delay(2000);
getTime();
}
Serial.println("Water Level Monitoring");
delay(1000);
}
void loop()
{
arduinoTime++;
delay(1000);
int Level1 = digitalRead(3);
int Level2 = digitalRead(4);
int Level3 = digitalRead(5);
Serial.print("Sensor 1: ");
Serial.println(Level1);
Serial.print("Sensor 2: ");
Serial.println(Level2);
Serial.print("Sensor 3: ");
Serial.println(Level3);
Serial.println();
if(timeLimit == 0){
if(Level1 == 0 && Level2 == 1 && Level3 == 1){
currentLevel = 1;
if(currentLevel != lastLevel){
if(confirmTime == 0){
Serial.println("Warning!!! Water Level Detected at Level 1");
updateTwitterStatus("The water in San Miguel Bridge is in Standard level or Safe Level");
timeLimit = 60; //set timeLimit
lastLevel = 1;
confirmTime = 5;
}else if(confirmTime == 5){
Serial.println("Confirming water level 1 in 5 sec...");
confirmLevel = 1;
confirmTime--;
}else{
if(confirmLevel == currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " in " + String(confirmTime) + " sec...");
confirmTime--;
}else{
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
}
}
}else{
if(confirmLevel != currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
confirmLevel = 1;
}
}
}else if(Level2 == 0 && Level1 == 0 && Level3 == 1){
currentLevel = 2;
if(currentLevel != lastLevel){
if(confirmTime == 0){
Serial.println("Warning!!! Water Level Detected at Level 2");
updateTwitterStatus("Warning! The water in San Miguel Bridge is rising and is in 3ft below the ground! Be Safe Everyone!");
timeLimit = 60; //set timeLimit
lastLevel = 2;
confirmTime = 5;
}else if(confirmTime == 5){
Serial.println("Confirming water level 2 in 5 sec...");
confirmLevel = 2;
confirmTime--;
}else{
if(confirmLevel == currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " in " + String(confirmTime) + " sec...");
confirmTime--;
}else{
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
}
}
}else{
if(confirmLevel != currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
confirmLevel = 2;
}
}
}else if(Level3 == 0 && Level1 == 0 && Level2 == 0){
currentLevel = 3;
if(currentLevel != lastLevel){
if(confirmTime == 0){
Serial.println("Warning!!! Water Level Detected at Level 3");
updateTwitterStatus("WARNING! CRITICAL LEVEL! BE ALERT! The water in San Miguel Bridge is rising and it is in 5ft below the ground. Be Safe Everyone! God Bless!");
timeLimit = 60; //set timeLimit
lastLevel = 3;
confirmTime = 5;
}else if(confirmTime == 5){
Serial.println("Confirming water level 3 in 5 sec...");
confirmLevel = 3;
confirmTime--;
}else{
if(confirmLevel == currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " in " + String(confirmTime) + " sec...");
confirmTime--;
}else{
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
}
}
}else{
if(confirmLevel != currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
confirmLevel = 3;
}
}
}else{
Serial.println("Normal Water Level");
currentLevel = 0;
lastLevel = 0;
if(confirmLevel != currentLevel){
Serial.println("Confirming water level " + String(confirmLevel) + " not confirmed...");
confirmTime = 5;
confirmLevel = 0;
}
}
}else{
timeLimit--;
Serial.print("Waiting ");Serial.print(timeLimit);Serial.print(" sec to post...");Serial.println();
}
}
void updateTwitterStatus(String tsData)
{
if (client.connect(thingSpeakAddress, 80))
{
// Create HTTP POST Data
tsData = "api_key="+thingtweetAPIKey+"&status="+formatTime(arduinoTime) + "\n" + tsData;
client.print("POST /apps/thingtweet/1/statuses/update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(tsData.length());
client.print("\n\n");
client.print(tsData);
lastConnectionTime = millis();
if (client.connected())
{
Serial.println("Updating Status in Twitter...");
}
else
{
Serial.println("Failed...");
}
// Wait before closing connection
while (client.available())
{
char c = client.read();
Serial.print(c);
}
client.stop();
}
else
{
Serial.println("Failed...");
}
}
void startEthernet()
{
client.stop();
Serial.println("Connecting Arduino to network...");
delay(1000);
if (Ethernet.begin(mac) == 0) // Connect to network amd obtain an IP address using DHCP
{
Serial.println("DHCP Failed, reset Arduino to try again");
}
else
{
Serial.println("Arduino connected to network using DHCP");
}
delay(1000);
}
// send an NTP request to the time server at the given address
unsigned long sendNTPpacket(char* address)
{
// set all bytes in the buffer to 0
memset(packetBuffer, 0, NTP_PACKET_SIZE);
// Initialize values needed to form NTP request
// (see URL above for details on the packets)
packetBuffer[0] = 0b11100011; // LI, Version, Mode
packetBuffer[1] = 0; // Stratum, or type of clock
packetBuffer[2] = 6; // Polling Interval
packetBuffer[3] = 0xEC; // Peer Clock Precision
// 8 bytes of zero for Root Delay & Root Dispersion
packetBuffer[12] = 49;
packetBuffer[13] = 0x4E;
packetBuffer[14] = 49;
packetBuffer[15] = 52;
// all NTP fields have been given values, now
// you can send a packet requesting a timestamp:
Udp.beginPacket(address, 123); //NTP requests are to port 123
Udp.write(packetBuffer, NTP_PACKET_SIZE);
Udp.endPacket();
}
void getTime(){
Serial.println("Setting time for Arduino...");
delay(1000);
sendNTPpacket(timeServer); // send an NTP packet to a time server
// wait to see if a reply is available
delay(1000);
if ( Udp.parsePacket() ) {
// We've received a packet, read the data from it
Udp.read(packetBuffer, NTP_PACKET_SIZE); // read the packet into the buffer
//the timestamp starts at byte 40 of the received packet and is four bytes,
// or two words, long. First, esxtract the two words:
unsigned long highWord = word(packetBuffer[40], packetBuffer[41]);
unsigned long lowWord = word(packetBuffer[42], packetBuffer[43]);
// combine the four bytes (two words) into a long integer
// this is NTP time (seconds since Jan 1 1900):
unsigned long secsSince1900 = highWord << 16 | lowWord;
Serial.print("Seconds since Jan 1 1900 = " );
Serial.println(secsSince1900);
// now convert NTP time into everyday time:
Serial.print("Unix time = ");
// Unix time starts on Jan 1 1970. In seconds, that's 2208988800:
const unsigned long seventyYears = 2208988800UL;
// subtract seventy years:
unsigned long epoch = secsSince1900 - seventyYears;
// print Unix time:
Serial.println(epoch);
arduinoTime = epoch + 28800;
// print the hour, minute and second:
Serial.print("The UTC time is "); // UTC is the time at Greenwich Meridian (GMT)
Serial.print((epoch % 86400L) / 3600); // print the hour (86400 equals secs per day)
Serial.print(':');
if ( ((epoch % 3600) / 60) < 10 ) {
// In the first 10 minutes of each hour, we'll want a leading '0'
Serial.print('0');
}
Serial.print((epoch % 3600) / 60); // print the minute (3600 equals secs per minute)
Serial.print(':');
if ( (epoch % 60) < 10 ) {
// In the first 10 seconds of each minute, we'll want a leading '0'
Serial.print('0');
}
Serial.println(epoch % 60); // print the second
}
}
String formatTime(unsigned long epoch){
String formattedTime;
String h = String((epoch % 86400L) / 3600);
String m = String((epoch % 3600) / 60);
String s = String(epoch % 60);
String a = "";
if((epoch % 86400L) / 3600 > 12){
h = String(((epoch % 86400L) / 3600) - 12);
a = "PM";
}else{
a = "AM";
}
if ( ((epoch % 3600) / 60) < 10 ) {
m = "0" + m;
}
if ( (epoch % 60) < 10 ) {
s = "0" + s;
}
formattedTime = h + ":" + m + ":" + s + " " + a;
return formattedTime;
}
Yung buRAT 2.0 lang talaga gusto ko dito kasi alam ko mas petmalu yan sa ibang keylogger dyan na available. Haha. Wag lang din ma backdoor. :v
Pero ang lupet niyo! LODI
thanks dito
Pwede po mag tanong, yung thesis project kasi namin ay Smart Water Drainage using IOT(internet of things) yung pwede ma detect nya kung may clog and passage way ng drainage at mag tetext sya kung saan ang may blockage at pwede rin ma monitor sa webpage kung saan may clog, yung tanong ko po ay, ok ba tong thesis proposal namin, parang ang simple lang kasi e ng concept, may e rerecommend kaba sa amin na thesis na gamit dapat IOT.. salamat po ng marami
Nice, Thank you,
welcome bossThank you po!
4 medicines ung schematic namin and code 4 lang din, but pwede dagdagan kahit ilan gusto nyoSir sa may MEDICINCE AUTOMATIC MACHINE po ba nyu ilang gamot lang ang pwdeng mabili ?
Kapag mag dadagdag pa ng gamot sir ano pa po yung mga idadagdag ? Pasensya na po ts kasi gusto kung gayahin project mo ee kung okay lang