Arduino Forum

Using Arduino => Displays => Topic started by: tarekza3tari on Nov 19, 2012, 12:36 am

Title: control lcd
Post by: tarekza3tari on Nov 19, 2012, 12:36 am
how to control to lcd? i have in lcd 3 current i want to change or turn off one from lcd??
Title: Re: control lcd
Post by: MarkT on Nov 19, 2012, 05:11 pm
You will need to explain:

* exactly which LCD (link to datasheet is ideal, part number is better than nothing)

* what you want to achieve in detail

* which Arduino you have

And optionally:

* what you've tried already

* supply any code you've got and explain what its trying to do and what is failing.
Title: Re: control lcd
Post by: tarekza3tari on Nov 20, 2012, 12:56 am
My project is:
1-   I have 3 devices (refrigerator, washing machine and a television) I need to take a current for each device and connect it to the Arduino (done that by the ct sensor and connected them , and I want to display on the LCD how much of current I consume from the maximum to the minimum)
2-   I have 2 sources of electricity connected to the arduino : governmental and the generator (but I don't know how to connect  them).I need when the governmental electricity goes off the higher 2 currents shown on the LCD goes off and keep the 3rd  and after discussion turn the generator on and keep the 3rd device on, and in case the governmental electricity came give it the priority.
3-   I want to use an Automatic/manual button, in case automatic is chosen the system does what is explained in (number 2) and in case of manual I can choose from the LCD from the devices on which one to turn it off.
Title: Re: control lcd
Post by: liuzengqiang on Nov 20, 2012, 01:46 am
I think the answer is apparent. Refrigerator current > washing machine > TV, unless you have something uncommon. Apart from this, you could get a 20*4 character display for info.
Title: Re: control lcd
Post by: tarekza3tari on Nov 20, 2012, 02:08 am
1) my main question how to control LCD
for example: lcd display: ref.: 3A is
                                              washer: 2A is
                                              tv: we 1.5A
I want to change it for off from lcd

2) my first step is to read current for each devices and display to lcd in way as to example
Title: Re: control lcd
Post by: liuzengqiang on Nov 20, 2012, 06:27 am

I want to change it for off from lcd


I don't understand. Your poor English is not helping. Can you use a translator? Maybe native English speaker can guess what you mean but I can't.
Title: Re: control lcd
Post by: tarekza3tari on Nov 20, 2012, 11:49 am
display at lcd make
ref:3A turn on
washer:2A turn on
tv:1.5A turn on

i want to turn off ref. and washer from lcd
Title: Re: control lcd
Post by: liuzengqiang on Nov 20, 2012, 06:08 pm
I kind of understand now. You want a menu or interface to control which appliance to turn on and off? That takes a lot of programming to do. I recommend you to use a simple approach first, one button for each appliance. If you sense the button,  you turn the appliance on or off.
Title: Re: control lcd
Post by: liuzengqiang on Nov 20, 2012, 11:11 pm
FYI, please post what you PM me here, more people are willing to help out if you post here, instead of sending PM.
Title: Re: control lcd
Post by: tarekza3tari on Nov 20, 2012, 11:21 pm
i want to use lcd 16*2 how i do lcd menu? and how i control lcd from the pushbutton?
Title: Re: control lcd
Post by: liuzengqiang on Nov 20, 2012, 11:44 pm

i want to use lcd 16*2 how i do lcd menu? and how i control lcd from the pushbutton?


You are doing a lot better this time in terms of clarity of question. I think I PMed you my answers. Let's see if you are able to use the answers. But by all means, post here, don't PM.
Title: Re: control lcd
Post by: tarekza3tari on Nov 20, 2012, 11:56 pm
?
Title: Re: control lcd
Post by: floresta on Nov 23, 2012, 05:17 am
There is another thread here --> http://arduino.cc/forum/index.php/topic,133086.msg1001373.html#msg1001373 <-- which decodes a bit more of what he is trying to accomplish.  These are bordering on cross-posting but due to the language problems it might be best to keep them both going.

Don
Title: Re: control lcd
Post by: liuzengqiang on Nov 24, 2012, 07:44 am

?


Tell me how well do you program in C. If you program in C well enough, you are suggested to use this library, which is exactly written for your type of need:

http://liudr.wordpress.com/libraries/phi_prompt/

If your programming skills are poor, you should go get one of these, which I AM SELLING:

http://www.inmojo.com/store/liudr-arduino-and-physics-gadgets/item/serial-lcd-back-pack---phi-panel/
You don't need much programming at all.