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 / hai zulorain….  u just edit

hai zulorain….  u just edit

|

Microcontroller › 8051 › Interfacing AT89S51 with ultrasonic sensor and LCD › hai zulorain….  u just edit

January 22, 2013 at 4:32 am #9025
nidhin.k
Participant

hai zulorain….

 

 

u just edit that code…

 

 

sbit red1=P0^0;

sbit red2=P0^1;

sbit red3=P0^2;

sbit red3=P0^3;

 

sbit green1=P0^4;

sbit green2=P0^5;

sbit green3=P0^6;

sbit green4=P0^7;

sbit buzzer=P1^3;

 

 

 

if(obj_distance<20){red1=red2=red3=red4=1;green1=green2=green3=green4=0;buzzer=1;}

else{red1=red2=red3=red4=0;green1=green2=green3=green4=1;buzzer=0;}

 

the conditional statements are placed in while condition.

RSS Recent Posts

  • Kawai KDP 80 Electronic Piano Dead May 16, 2025
  • An Update On Tarrifs May 16, 2025
  • Trying to use a L9110s motor driver chip May 16, 2025
  • I want to make a CRT with some modifications But i have no Idea where to start May 16, 2025
  • Funny Images Thread! May 16, 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