EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / ok it is fixed…. now it is

ok it is fixed…. now it is

|

Microcontroller › AVR › water level controller › ok it is fixed…. now it is

July 23, 2011 at 5:52 pm #6509
Maneesh PK
Participant

ok it is fixed….

 

now it is displaying the level….

i wrote cammand to turn the motor on and of at desired levels

i am using port a for adc

port b for display data

port d for keypad

and c for lcd control and motor control…

 

C0, C1 and C2 are display control

 

and C7 as motor control

 

my program is like

 

main

{

//port initialisatn

 

while(1)

 

{

//read adc and display

 

//if less than lower level motor on

 

//if greater then upper level motor off

 

 

}

 

 

}

 

i defined PORTC=ctrl

PC7=motor

 

and wrote 

ctrl=(1<<motr); to turn motor on

 

 

but when level is low the line for motor is not steady…..

i mean if i connect an led there it is blinking…

 

please help……

 

 

RSS Recent Posts

  • using a RTC in SF basic July 20, 2025
  • Faulty heat air gun (dc motor) - problem to locate fault due to Intermittent fault [unrepairable] July 20, 2025
  • Dismantling a WestinghouseRoku TV ? July 20, 2025
  • Does US electric code allow branching ? July 20, 2025
  • My Advanced Realistic Humanoid Robots Project July 20, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise