+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 2
    Points: 1,568, Level: 9
    Achievements:
    7 years registered

    Join Date
    Nov 2007
    Posts
    2
    Helped
    0 / 0
    Points
    1,568
    Level
    9

    LCD Show Garbage at Arduino Project

    Dear All,

    Recently I develop one project, which is "Induction Bearing heater". The project contain 16x2 LCD display with Arduino UNO R3. When press ON key then an inductor/X-former primary coil get 220VAC power, through a relay and the bearing getting warm as transformer secondary short circuit. A LM35 sensor sensing Heat and showing on LCD. When it reach the preset temperature then relay get stop.
    Problem is when I press the on button and machine get run but the LCD show garbage, machine working normally other than display.

    Click image for larger version. 

Name:	Bearing%20Heater.jpg 
Views:	1 
Size:	22.6 KB 
ID:	129293

    Code:
    include 
    include 
    int RelayPin = ;
    int BuzzerPin = ;
    int buttonONpin = ;
    int buttonOFFpin = ;
    int UpPin = ;
    int DownPin = ;
    int SetTemp = EEPROM.read;
    int SensorReading = ;
    long time = ;  the last time the output pin was toggled
    long debounce = ;  the debounce time, increase if the output ickers
    int SensorPin = A;
     initialize the library with the numbers of the interface pins
    LiquidCrystal lcd, , , , , ;
    void setup 
    pinModeRelayPin, OUTPUT;
    pinModebuttonONpin, INPUT_PULLUP;
    pinModebuttonOFFpin, INPUT_PULLUP;
    pinModeSensorPin, INPUT;
    lcd.begin, ;  set up the LCDs number of columns and rows:
    lcd.setCursor, ;
    lcd.printBer.Temp.:;
    lcd.setCursor, ;
    lcd.printSet.Temp.:;
    lcd.setCursor, ;
    lcd.printSetTemp,DEC;
    lcd.printchar;
    lcd.printC;
    pinModeUpPin,INPUT;
    pinModeDownPin,INPUT;
    digitalWriteUpPin,HIGH;
    digitalWriteDownPin,HIGH;
    pinModeBuzzerPin,OUTPUT;
    digitalWriteBuzzerPin,LOW;
    
    void loop 
    ifdigitalReadUpPin == LOW  if SW is pressed perform action described in loop
    
    SetTemp++;  Increment Count by 
    ifSetTemp > 
    SetTemp = ;
    lcd.setCursor, ;
    lcd.print ;
    lcd.setCursor, ;
    lcd.printSetTemp,DEC;
    lcd.printchar;
    lcd.printC;
    toneBuzzerPin, , ;
    delay;
    
    ifdigitalReadDownPin == LOW  if SW is pressed perform action described in loop
    
    SetTemp--;  Decrement Count by 
    ifSetTemp < 
    SetTemp = ;
    lcd.setCursor, ;
    lcd.print ;
    lcd.setCursor, ;
    lcd.printSetTemp, DEC;
    lcd.printchar;
    lcd.printC;
    toneBuzzerPin, , ;
    delay;
    
    if digitalReadbuttonONpin == LOW
    
    digitalWriteRelayPin, HIGH;
    digitalWriteBuzzerPin,LOW;
    
    
    SensorReading = analogReadSensorPin;
    int celsius = SensorReading;
    lcd.setCursor,;
    lcd.printcelsius, DEC;
    lcd.printchar;
    lcd.printC;
    delay;
    if celsius > SetTemp
    
    digitalWriteRelayPin,LOW;
    toneBuzzerPin, ; digitalWriteBuzzerPin,HIGH;
    
    if digitalReadbuttonOFFpin == LOW
    
    digitalWriteRelayPin,LOW;
    noToneBuzzerPin; digitalWriteBuzzerPin,LOW;
    
    EEPROM.write, SetTemp;
    
    Can any one face such problem then inform any idea...

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 30,285, Level: 42
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    9,061
    Helped
    1143 / 1143
    Points
    30,285
    Level
    42
    Blog Entries
    9

    Re: LCD Show Garbage at Arduino Project

    You are supplying both the Relay and the Arduino module with the same bus, I guess 5v. It in general is not a good deed; It is aggraved due to the fact that the load is strongly inductive. You should think about to use another source, such as 12v to drive an external relay.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Newbie level 2
    Points: 1,568, Level: 9
    Achievements:
    7 years registered

    Join Date
    Nov 2007
    Posts
    2
    Helped
    0 / 0
    Points
    1,568
    Level
    9

    Re: LCD Show Garbage at Arduino Project

    I am using 5V relay at Arduino Shield then on a 220 VAC Magnetic Contactor by this 5V relay. This Magnetic Contactor supply the inductor/X-former primary coil.



--[[ ]]--