top of page

Wireless Water Level Indicator P1 | How To Make It

  • Writer: Admin
    Admin
  • May 5, 2020
  • 1 min read

In this section we will tell you how to make a Wireless Water Level Indicator which works on Radio frequency. Watch video


Components Required-

  • Atmega16 Microcontroller

  • 7805 voltage Regulator

  • 12v Power Adaptor

  • 12MHz Crystal

  • 7-segment CA

  • 16x2 Display

  • Transistor

  • 12v Relay

  • Resistors

  • 10K Pot

  • LEDs

Proteus Circuit Diagram

Code Vision AVR Code


#include <mega16.h> #include <delay.h> // Alphanumeric LCD Module functions #asm .equ __lcd_port=0x15 ;PORTC #endasm #include <lcd.h> void main(void) { // Port C initialization PORTB=0x00; DDRB=0xff; DDRA=0xff; // Port C initialization PORTD=0xff; DDRD=0xff; // LCD module initialization lcd_init(16); while (1) { if(PINA.3==1) { PORTB=0b00001000; PORTD=0b10011001; PORTA.7=0; lcd_gotoxy(1,0); lcd_putsf("MADE IN INDIA"); lcd_gotoxy(3,1); lcd_putsf("TANK FULL"); delay_ms(70); lcd_clear(); lcd_gotoxy(1,0); lcd_putsf("MADE IN INDIA"); delay_ms(70); lcd_clear(); lcd_gotoxy(3,1); } else if(PINA.2==1) { PORTB=0b00000100; PORTD=0b10110000; lcd_gotoxy(1,0); lcd_putsf("MADE IN INDIA"); lcd_gotoxy(0,1); lcd_putsf("WATER LEVEL 75%"); } else if(PINA.1==1) { PORTB=0b00000010; PORTD=0b10100100; lcd_gotoxy(1,0); lcd_putsf("MADE IN INDIA"); lcd_gotoxy(0,1); lcd_putsf("WATER LEVEL 50%"); } else if(PINA.0==1) { PORTB=0b00000001; PORTD=0b11111001; lcd_gotoxy(1,0); lcd_putsf("MADE IN INDIA"); lcd_gotoxy(0,1); lcd_putsf("WATER LEVEL 25%"); } else { PORTB=0b00010000; PORTD=0b11000000; PORTA.7=1; delay_ms(70); lcd_clear(); lcd_gotoxy(2,0); lcd_putsf("MADE IN INDIA"); lcd_gotoxy(3,1); lcd_putsf("TANK EMPTY"); delay_ms(70); lcd_clear(); lcd_gotoxy(2,0); } } }

Watch Video- Click here

Comments


bottom of page