Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

LCD Show Garbage at Arduino Project

Status
Not open for further replies.

Shahedul

Newbie level 2
Joined
Nov 19, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
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.

Bearing%20Heater.jpg

Code:
include <LiquidCrystal.h>
include <EEPROM.h>
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...
 

Attachments

  • Bearing Heater.pdf
    137.5 KB · Views: 62

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.
 
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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top