Show Posts
Pages: [1]
1  International / India / Water level controller with a facility to send you a text message if the system on: April 12, 2013, 11:15:21 pm
Here I was Building a Water level controller with a facility to send you a text message if the system encounters any error and can be reset manually.I used Aluminium Electrodes as level sensor, their output amplified by  BC547 Transistors and taken into the digital pins of Atmega328, another optocoupler and Relay Driver to drive a 12Volt relay through which the Pump is connected, A buzzer driven by another BC547 NPN transistor and the SeeedStudio SIM900 GSM/GPRS shield to handle GSM Communication i.e. the SMS and "Miss-Calls".
I am attaching the code Herewith, any suggestions or comments are welcome.

2  International / India / Re: An Easy Password Base Lock System for Arduino using IR Remote on: April 06, 2013, 05:48:46 pm
Here are the Lwo Libraries, However you could have just googled too.
3  International / India / An Easy Password Base Lock System for Arduino using IR Remote on: March 26, 2013, 01:52:13 am
I searched a little to find any straight and easy to use Code for building a Password based Door Opening and Closing System, but could not find one. So I made a little modification to The IRRemote Library's Default Example and included the Password Library, and with very little effort this Code was Built.I will update after adding the Servo Controlled Sliding Door Code, but for now Here it is if someone else is also searching for the same.

#include <IRremote.h>
#include <Password.h>

Password password = Password( "1234" );

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup()
  irrecv.enableIRIn(); // Start the receiver

// Compare two tick values, returning 0 if newval is shorter,
// 1 if newval is equal, and 2 if newval is longer
// Use a tolerance of 20%
int compare(unsigned int oldval, unsigned int newval) {
  if (newval < oldval * .smiley-cool {
    return 0;
  else if (oldval < newval * .smiley-cool {
    return 2;
  else {
    return 1;

// Use FNV hash algorithm:
#define FNV_PRIME_32 16777619
#define FNV_BASIS_32 2166136261

/* Converts the raw code values into a 32-bit hash code.
 * Hopefully this code is unique for each button.
unsigned long decodeHash(decode_results *results) {
  unsigned long hash = FNV_BASIS_32;
  for (int i = 1; i+2 < results->rawlen; i++) {
    int value =  compare(results->rawbuf, results->rawbuf[i+2]);
    // Add value into the hash
    hash = (hash * FNV_PRIME_32) ^ value;
  return hash;

void loop() {
  if (irrecv.decode(&results)) {
    unsigned long hash = decodeHash(&results);
    switch (hash) {
    case 0xB7CEF1C7: // 1 (10)
    case 0x3F3C26A7: // 2
    case 0x3021612B: // 3
    case 0x7EFFC747: // 4
    case 0xD8AD1F4B: // 5
    case 0x2CAD10E3: // 6
    case 0x1D924B67: // 7
    case 0xB93DEFA7: // 8
    case 0x12EB47AB: // 9
    case 0x275A9FCB: // 0
    case 0x20934FE3: //Power Button
    case 0x253F247: //TV/AV 
      Serial.print("Unknown ");
      Serial.println(hash, HEX);   
    irrecv.resume(); // Resume decoding (necessary!)

void checkPassword(){
  if (password.evaluate()){
    Serial.println("Code For Opening Door");
    //Add code to run if it works
    Serial.println("Please Try Again");
    //add code to run if it did not work

4  International / India / Re: IVR(Interactive voice responce) on: October 09, 2012, 01:48:09 am
You may try using a Music Shield for using Pre Recorded Messages or Speakjet for Real Time Voice Response/Acknowledgement and an EasyVr Module for Speech Recognition alongwith the any flavour of Arduino microcontroller board.
5  International / India / Re: Who are you? Where are you located? on: October 09, 2012, 01:44:40 am
I am Debashish Mohapatra.My profession is Lectureship in an B-Tech Enginering College.Most of the time I am given the charge of Major and Minor Project for the final Year Students.I always prefer Arduino , may it be the Readymade board or a standalone Custom made bare bone one.I love the programming languag's ease of use for my projects on instrumentation, data acquisition etc.
Pages: [1]