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 / Topics / Garbage values on LCD (16×2) with change in speed of DC motor

Garbage values on LCD (16×2) with change in speed of DC motor

|

Microcontroller › 8051 › Garbage values on LCD (16×2) with change in speed of DC motor

  • This topic has 6 replies, 4 voices, and was last updated 7 years, 10 months ago by Anonymous.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 3, 2017 at 11:50 am #4653
    Er. NGM
    Participant

    Hello experts!

    I've faced a problem in one of my recent projects based on 8051 containing a DC Fan (driven by N-MOSFETs) & 16×2 LCD..

    The issue is that the LCD displays gabage symbols/values if the knobe of the fan is switched among Low, Medium & High. The microcontroller here is executing the code perfectly without any failure controlling other I/O devices as expected; only LCD behaves randomly.

    I also tried connecting an electrolytic capacitor of 220uF/25V at power supply pins of LCD to keep the power to lcd unfluctuated but still LCD is not in control.

    What could be included in the hardware so that LCD works fine??

    Kindly provide a solution to this problem asap…

    May 4, 2017 at 9:21 am #14592
    Hari Prasaath K
    Participant

    Check with the pin connections from mc to lcd are correct, if u have them connected them wrong there may be problem.

    check the coding for lcd initialization, lcd command write, and lcd data write functions you provided are right and if so check with the delays between sending data to Lcd.

    If u again face the prblm attach the circuit diagram and code.

    May 4, 2017 at 11:13 am #14593
    Er. NGM
    Participant

    Thanks for the reply sir.

    Actually all the connections are proper & LCD displays all the messages perfectly until the speed of DC motor is constant.

    As soon as we switch the position of knobe on DC Fan from low to high or vice versa; the LCD starts showing some garbage characters after sometime. I guess this is a kind of EMI / inductive effect of back emf generated by DC motor which is forcing LCD to go uncontrolled & show some garbage values..

    What do you say?

    May 6, 2017 at 9:26 am #14596
    Er. NGM
    Participant

    Kindly reply guys, if you have had a similar experience or any idea about its solution..

    It's really very important for me.. Because I am stuck with this problem & desperately need a solution..

    May 14, 2017 at 12:32 pm #14600
    Ashutosh Bhatt
    Participant

    connect one 0.1 uF capacitor very near to Vcc pin of 8051 micro controller

    connect free wheeling diode (FWD) accross motor pins.

    if this wont help. search on google for EMI protection 

    May 16, 2017 at 6:12 am #14603
    Er. NGM
    Participant

    Thanks Ashutosh..

    I actually connected a 33 uF cap at power pins of LCD earlier..

    Now I'll try connecting freewheeling diode & 0.1 uF cap across power pins of DC Motor & microcontroller respectively; and then let you know the outome soon..

    Thanks for the advice..

    June 28, 2017 at 10:21 am #14621
    Anonymous
    Guest

    test

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • LED circuit for 1/6 scale diorama May 14, 2025
  • Can I use this charger in every country? May 14, 2025
  • Electronic board faulty?!? May 13, 2025
  • using a RTC in SF basic May 13, 2025
  • An Update On Tarrifs May 13, 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