Please help. I would just like to ask regarding my build (attached is the schematic). How to edit/write an additional code for my program displaying on the LCD if sensor is NOT sensing "DRYER(1st line) VACANT(2nd line)" and if sensor is sensing "DRYER(1st line) ON GOING(2nd line)" (attached is the sample display ).
Here is my initial working code without the LCD code display yet.
int MotorPin = 13;
int inputPin =2;
int val = 0;
The standard (parallel) 16x2 lcd requires a lot of I/O lines in 8 bit mode, so opt for the 4 bit mode program code.
Even better, if you have yet to buy a LCD, purchace one of the types that have an I2C interface using just 2 i/os +power.
You can buy just the I2C converter to add on to an existing parallel LCD.
I'm just saying that the first problem he faces is connecting the LCD display. Whilst the examples do have a list of connections, seeing how they are actually made may help the OP.
I don't think the speed matters a deal, as LCD displays are very slow devices anyway, so it makes very little difference. I did a test a few years back, using a PIC with one LCD attached as 4 bit , and three I2C ones of various sizes and different addresses - I send the same data to all of the displays sequentially, and gradually increased the speed at which the displays were updated. All the displays were able to update fast enough to make the displays unviewable, due to their slow response times, and all occurred at the same time.
However, I fully agree that it adds a further layer of complications - easiest to use 4 bit mode, even if only initially - you could always move to I2C later if pin count becomes an issue.
To be honest, while I've got plenty of I2C back packs in stock, and LCD's with them pre-fitted, I've yet to use one other than for 'playing' with them - I always just connect them as 4 bit.
As above, plus lots more good info on the web about using a LCD with the Arduino.
A very popular site for projects and code - https://learn.adafruit.com/character-lcds
As above, plus lots more good info on the web about using a LCD with the Arduino.
A very popular site for projects and code - http://learn.adafruit.com/character-lcds
I bought STONE STVC070WT-01 a few days ago, it has a free GUI design software I think it is very friendly to me as a novice so I bought it, in addition, I also bought the Arduino Uno board.
I bought STONE STVC070WT-01 a few days ago, it has a free GUI design software I think it is very friendly to me as a novice so I bought it, in addition, I also bought the Arduino Uno board.
As a beginner, you might find it easier to start learning the basics with a cheap 16x2 LCD as detailed in this thread before using a much more advanced TFT screen like that which uses a much more powerful inbuilt micro that the humble Arduino.
As a beginner, you might find it easier to start learning the basics with a cheap 16x2 LCD as detailed in this thread before using a much more advanced TFT screen like that which uses a much more powerful inbuilt micro that the humble Arduino.
Ok, thank you very much for your advice, I will buy a 16x2 LCD in the near future, I used to use a 16x2 LCD when I first started learning arduino when I was still in college.