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

Osama Mohammed

  • Profile
  • Topics Started
  • Replies Created
  • Engagements

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 30 total)
1 2 →
  • Author
    Posts
  • June 12, 2014 at 11:17 pm in reply to: 7805 Voltage Regulator #11822
    Osama Mohammed
    Participant

    Thank you all, 

    June 12, 2014 at 7:24 pm in reply to: Microcontroller #11821
    Osama Mohammed
    Participant

    Thanks, now it’s working 

    June 9, 2014 at 10:04 pm in reply to: Microcontroller #11811
    Osama Mohammed
    Participant

    wysiwyg_imageupload:12491:

    June 9, 2014 at 9:58 pm in reply to: Microcontroller #11810
    Osama Mohammed
    Participant
    #include <reg51.h>
    msDelay(unsigned int);
     
    cmd(unsigned char); //LCD command code initialization 
    dat(unsigned char ); // LCD data code initialization 
    sbit regs=P2^6;  //name the pin register select of the lcd
    sbit enab=P2^7;
    sbit rd=P2^5;
     
    void LCD_write_string(unsigned char *str)   //store address value of the string in pointer *str
    {
        unsigned char j = 0;
        while (str[j] != 0)
        {
            dat(str[j]);      // sending data on LCD byte by byte
            msDelay(100);
                    j++;
        }
        return;
    }
     
    void main (void)
    {
    cmd(0x38);
    msDelay(100);
    cmd(0x0C);
    msDelay(100);
    cmd(0x01);
    msDelay(100);
     
    while(1)
    {
    LCD_write_string(“osama”);
    msDelay(2000);
    cmd(0x01);
    msDelay(2000);
     
    }
     
    }
     
     
    cmd(unsigned char value)
    {
     P1=value;
     regs=0;
     rd=0;
     enab=0;
     msDelay(500);
     enab=1;
    }
    dat(unsigned char info)
    {
     P1=info;
      regs=1;
      rd=0;
     enab=0;
     msDelay(500);
     enab=1;
    }
     
    msDelay(unsigned int tdelay)
    {
     unsigned int k,j;
     for(k=0;k<=tdelay;k++)
     for(j=0;j<=100;j++);
     
    }
     
     
     
     
     
     
     

     
     
     
     
    This is a code I used to test the LCD , it is not the code that I use in the project that I am working in but just to test the LCD ,but unfortunately this is not working :(
    June 9, 2014 at 9:51 pm in reply to: Sending data wirelessly #11809
    Osama Mohammed
    Participant

    Thank you,

    I have bought HC-05 bluetooth module , and I will try it soon …. :) 

    June 9, 2014 at 9:50 pm in reply to: Microcontroller #11808
    Osama Mohammed
    Participant

    Thanks all , the problem is solved ! 

    I found that the problem was from the voltage supply ,although I am using 5v regulator to supply the microcontroller but the microcontroller was unable to function with it, I don’t know why is this but maybe the voltage regulator is of bad quality !!

     

    I tried to supply it with a 5v from 5v of the Arduino UNO board and the 8051 led blinking circuit worked well :D, this is how I detected where is the problem.

     

     

    but now I am facing another problem ,the LCD in my circuit is not working !!.

     

    when I tried the LCD code and circuit with ISIS proteus simulation it was working fine ,but when implementing it on my breadboard it doesn’t work ……. !!!!!!!!!!!! this would drive me crazy !!.

     

     

     

     

     

    May 21, 2014 at 11:42 am in reply to: Sending data wirelessly #11754
    Osama Mohammed
    Participant

    Okay send me 

    Thank you

     

    May 18, 2014 at 9:45 pm in reply to: Calculating flow rate of an infusion pump #11746
    Osama Mohammed
    Participant

    Please I hgave another question 

     

    my hex code file is 9 kilo bytes in size

     

    can it be used with 89C52 ?

    May 18, 2014 at 8:53 pm in reply to: Calculating flow rate of an infusion pump #11745
    Osama Mohammed
    Participant

    Hi,

     

     

    Thank you all,

     

    the problem is solved :)

     

    the if statement argument was wrong ,that is all !! 

     

     

     

     

     

    Dishant 

     thank you for posting this function I will try it 

    May 18, 2014 at 8:53 pm in reply to: Calculating flow rate of an infusion pump #11744
    Osama Mohammed
    Participant

    Hi,

     

     

    Thank you all,

     

    the problem is solved :)

     

    the if statement argument was wrong ,that is all !! 

     

     

     

     

     

    SHAH DISHANT H. thank you for posting this function I will try it 

    May 15, 2014 at 7:54 pm in reply to: Calculating flow rate of an infusion pump #11734
    Osama Mohammed
    Participant

    Thanks, 

    The problem is solved 

    but now I have another problem, 

    I don’t know how to display decimal numbers on LCD , for example 244 how if I want to display on LCD ?

    Also how to display a number preserved inside a variable ,for instance if k is a variable and k=200; , how to display this value of k ????

    May 14, 2014 at 9:23 am in reply to: Delay function in C #11730
    Osama Mohammed
    Participant

    Thank you guys,

    May 14, 2014 at 9:23 am in reply to: Delay function in C #11729
    Osama Mohammed
    Participant

    thanks you guys, 

    May 12, 2014 at 12:09 pm in reply to: Delay function in C #11722
    Osama Mohammed
    Participant

    :( 

     

     

    no my simulation is working good without the delay function ,when I use the delay function it stops working 

     

     

    anyway I tried to reduce the 1275 to 100 ,and it worked and it has worked well 

     

    but know how could I calibrate the function to return 1 second delay when I enter 1000 ms to the function arguement msDelay(1000)

    May 9, 2014 at 4:46 pm in reply to: Delay function in C #11707
    Osama Mohammed
    Participant
    This is the code of a setpper motor
    I am using ISIS Proteus 
    when I run the code with that delay function the execution us stuck in the function :)  !!
    when I remove this delay function the code is executed normally and continually without stopping ! :)
    I tried to make many modfiications but nothing works 
     
    #include <reg51.h>
    msDelay(unsigned int);
     
    #define stepperPort P2
     
    void main (void)
    {
     
    stepperPort=0x03;
    msDelay(4000);
    stepperPort=0x06;
    msDelay(4000);
    stepperPort=0x0C;
    msDelay(4000);
    stepperPort=0x09;
    msDelay(4000);
     
     
    } 
     
     
     
    msDelay(unsigned int tdelay)
    {
     unsigned k,j;
     for(k=0;k<=tdelay;k++)
     for(j=0;j<=1275;j++);
     
    }
  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 30 total)
1 2 →

RSS feed: Recent Posts Recent Posts

  • PWM Dimming for 24V LED Strips: What Should I Consider? October 14, 2026
  • Portable charger for my mate's new leg October 14, 2026
  • Funny Images Thread! October 14, 2026
  • Semi-automatic battery handler October 14, 2026
  • Looking for help with wiring PJ Bass (Series/Parallel blend bypass) October 14, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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