Saturday, July 11, 2015

Water Level Indicator Project using Microcontroller


Water tank controller  is an embedded project where motor switch automatically controlled by a microcontroller .When tank's water level is very low , the microcontroller system turns on the motor switch , Until the water level is full or 100% and the motor switch remains on . When microcontroller get notification tank is full , it turns off the switch of motor . Until the tank is empty this stage remains on . 
Now the question is , how can we get notification about water level ? We will apply a technique . Look at the picture given below .
Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller
Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller




Here microcontroller pins (RA0-RA4)  are connected to VDD through five 10k Ohm resistors . Five cables are connected to the points between resistors first end points and mcu (RA0-RA4)pin points . Those five (A,B,C,D,E) cables are hanged  into the tank at different five levels(A,B,C,D,E) so that each cable represents each of five levels individually .
Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller
Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller
Once water level goes to E level , it makes enable the connection between GND and 'E' level cable . So , it makes the RA4 pin GND(logical 0) and we get notification the tank is empty . Consequently the system turns on the motor of switch . 

Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller
Water Tank Controller Project using Microcontroller

When it's full, all the mcu pins(RA0-RA4) goes to low or 0 . We get the notification tank is full the motor needs to be turned off . That's the working process of this system.

Souece Code :






void main() {
   ADCON1=0x0F;                 // Configure RA) pin as input
   CMCON=7;
   TRISC.F0=0;
   TRISA.F0=1;
   TRISA.F1=1;
   TRISA.F2=1;
   TRISA.F3=1;
   TRISA.F4=1;
   TRISB=0x00;
 while(1){
  if(PORTA.F4==0 && PORTA.F3==0 && PORTA.F2==0 &&  PORTA.F1==0 && PORTA.F0==0){
      PORTB.F0=1;
      PORTB.F1=1;                                         // 100% full
      PORTB.F2=1;
      PORTB.F3=1;
      PORTB.F4=1;
      PORTC.F0=0;   //motor turned off
       }
   if(PORTA.F4==0 && PORTA.F3==0 && PORTA.F2==0 &&  PORTA.F1==0 && PORTA.F0==1){
      PORTB.F0=0;
      PORTB.F1=1;                                        // 80% full
      PORTB.F2=1;
      PORTB.F3=1;
      PORTB.F4=1;}
   if(PORTA.F4==0 && PORTA.F3==0 && PORTA.F2==0 &&  PORTA.F1==1 && PORTA.F0==1){
      PORTB.F0=0;
      PORTB.F1=0;
      PORTB.F2=1;                                            // 60% full
      PORTB.F3=1;
      PORTB.F4=1;

       }
   if(PORTA.F4==0 && PORTA.F3==0 && PORTA.F2==1 &&  PORTA.F1==1 && PORTA.F0==1){
      PORTB.F0=0;
      PORTB.F1=0;                                            // 40% full
      PORTB.F2=0;
      PORTB.F3=1;
      PORTB.F4=1;
 }
  if(PORTA.F4==0 && PORTA.F3==1 && PORTA.F2==1 &&  PORTA.F1==1 && PORTA.F0==1){
      PORTB.F0=0;
      PORTB.F1=0;
      PORTB.F2=0;
      PORTB.F3=0;                                              // 20% full
      PORTB.F4=1;
      PORTC.F0=1;   //motor turned on
       }
 }
}

Circuit :


Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller
Water Tank Controller Project using Microcontroller
Microcontroller Project : Water Tank Controller using pic18f2550 Microcontroller
Water Tank Controller Project using Microcontroller

Thank You!


38 comments:

  1. how did you manage to produce a hex file without assigning the PIC in the C source file? I'm having issues trying to compile the C source file given here.

    ReplyDelete
  2. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. view more

    ReplyDelete
  3. Your work is truly appreciated round the clock and the globe. It is incredibly a comprehensive and helpful blog. οικιακά φίλτρα νερού

    ReplyDelete
  4. I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. project execution

    ReplyDelete
  5. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing. lora module

    ReplyDelete
  6. Considering Microcontroller project for water level is not a piece of cake so this post is quite helpful for understating water level indicator project. Assignment Writing Services

    ReplyDelete
  7. Can i get the header file from this coding?

    ReplyDelete
  8. Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post. crystal water bottle

    ReplyDelete
  9. Thanks for another wonderful post. Where else could anybody get that type of info in such an ideal way of writing? https://www.nox-emulator.com/hydrogen-water-and-their-advantages/

    ReplyDelete
  10. The gatherer liquid goes through one side of the exchanger and the tank water goes through the opposite side. รับติดตั้งโรงงานน้ำดื่ม

    ReplyDelete
  11. We as a whole need to have a pardon for our conduct when it isn't what we proposed; eliminate that hindrance. Liquor store near me

    ReplyDelete
  12. Admiring the time and effort you put into your blog and detailed information you offer!.. máy lọc nano

    ReplyDelete
  13. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
    ultrasonic level sensor

    ReplyDelete
  14. These things are very important, good think so - I think so too... visit this page

    ReplyDelete
  15. I see some amazingly important and kept up to a length of your strength searching for in your on the site.Waste Water Solutions Company

    ReplyDelete
  16. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck.shopping for a tankless water heater

    ReplyDelete
  17. This is an article about the importance of routine ice machine maintenance. ice tube maker

    ReplyDelete
  18. That is great post which you have shared here. I get an information by this blog for test and tag equipment which is my interest. I like your blog too much please share more info for us. Thank you.

    ReplyDelete
  19. Regardless of whether you're purchasing straightforwardly from a business online retailer, an individual web based shopping webpage, or an Internet closeout website, shopping on the web can be fun, basic, efficient and prudent.car battery to outlet
    car battery to power outlet

    ReplyDelete
  20. We believe in providing a top-quality digital marketing agency in Jacksonville, FL, businesses can trust with their digital growth. You can get the most out digital marketing agency jacksonville

    ReplyDelete
  21. I learn some new stuff from it too, thanks for sharing your information. Mold Damage

    ReplyDelete
  22. Sometimes it becomes very hard to find a well-written and well-established bog which gives you correct and useful information. However, I found this blog and got some relevant information that is helpful for me.Dairy Wastewater Treatment Plants

    ReplyDelete
  23. Need professional WordPress Web Design Services? We're experts in developing attractive mobile-friendly WordPress websites for businesses. Contact us today! https://just99marketing.com/wordpress-web-design

    ReplyDelete
  24. Water restoration involves not only removing water but also addressing potential contaminants and sanitizing the area. water damage restoration

    ReplyDelete
  25. Investing in a high-quality water heater is worth every penny. replacing water heater raleigh

    ReplyDelete
  26. "A well-insulated attic can reduce the workload on your water heater during winter." water heater replacement danville virginia

    ReplyDelete
  27. Electric water heaters are not affected by altitude.
    water heater surprise az

    ReplyDelete
  28. Water heater efficiency – it's all about saving energy and money. water heater replacement nm

    ReplyDelete
  29. Sediment buildup is a common issue in water heaters, which can reduce efficiency and shorten the lifespan of the appliance.
    water heater replacement rancho cucamonga

    ReplyDelete
  30. Water heaters with a digital interface offer easy programming and monitoring.
    water heater repair

    ReplyDelete
  31. Regular maintenance can help ensure a water heater operates at peak efficiency.
    water heater repair murfreesboro

    ReplyDelete
  32. Storage water heaters store and heat a specific amount of water.
    water heater replacement edgewater

    ReplyDelete

Ain't getting any visitors!
Please Share and Bookmark posts.

Tags

: (1) 18F2550 (1) 36KHz (3) and (1) arduino (1) Based (1) battery (1) Bipolar (1) Blinking (1) blinks (1) Bluetooth (1) bluetooth device interfacing (1) bluetooth module (1) button (1) circuit (1) clock (1) control (1) crystal oscillator (3) Db9 (1) DC Motor (2) digital (2) Digital Voting Machine (1) digital voting machine using pic (1) display (2) DS1307 (1) electronic (1) embedded c programming tutorial (11) embedded c tutorial (11) experiment kit (4) external interrupt (4) flash (1) flashing (1) Gas Leakage detector (1) HC-06 (1) home (1) how (1) How to (10) i2c tutorial (1) in (1) indicator (1) infrared Connection (3) interface (8) interfacing (3) Interrupt (3) Introduction (1) IR Connection (3) IR Receiver (4) IR Transmitter (4) key pad (1) keyboard (1) keypad (1) lavel (1) Lcd 16x2 (2) lcd 2x16 (2) led (1) lm35 (2) LPG (1) machine (1) make (1) Make bootloader (1) making (1) matrix (1) max232 (1) membrane keyboard (2) meter (2) Micocontroller (1) microchip (4) microchip pic (2) microchips (3) microcontroller (9) microcontroller based (3) microcontroller programming (3) Microcontroller Project (4) Microcontroller Projects (1) microcontroller_project (2) microcontrollers (4) Microprocessor (2) mikroC (5) mikroc code to start and stopstart and stop dc motor (1) mikroc pro for pic (2) Motion detector (1) MQ-9 Gas Sensor (1) musical (1) NEC Protocol (4) pcb (5) PIC (3) pic controller (11) pic microcontroller (11) pic microcontroller tutorial (11) pic programming (1) pic programming in c (12) pic proteus (1) Pic Tutorial (12) pic18 (2) pic18f2550 (11) picmicrocontroller (4) picRFモジュール (1) PIR Motion Sensor (1) printed circuit board (1) proteus (6) pulse width modulation (1) push (1) push button (1) PWM (1) real (1) rf transmitter (3) Rs 232 (1) Rs232 (1) scroll (1) scrolling (1) Serial communication (1) Serial Connection (1) Serial Port (1) serial port rs232 (1) Servo Motembedded c programming tutorial (1) simulation (2) Soil Moisture Meter (1) speed control (1) step by step (7) step bystep (1) Stepper Motor (2) text (2) Thief Detector (1) time (1) timer (4) timer0 (4) tone (1) TSOP38236 Receiver (4) tutorial (2) Unipolar (1) USART Connection (1) USB (1) usb 1.0 (1) USB bootloadere (1) USB HID (1) using (9) voltmeter (1) voting (1) water level indicator (3) with (2) work (1)

Traffic Feed


Live Traffic Feed
Visitor Tracking

Leave Your Message Here

Name

Email *

Message *

Like on Facebook