Introduction: LCD Shield in Visuino - Tutorial/Experiment

Testing the LCD Components in Visuino

This Insrtuctable is using the LCD Shield that I picked up with a Gift Card.
Since the LCD component is a popular component, this shows how to setup the LCD Shield in Visuino.

Hardware that is needed:

  1. LCD Shield - I am using a OSEPP-LCD-01 - this one came pre-soldered, but there are kits for these too.
  2. UNO Compatible board - Even though you can't see it, I am using a Freetronics Eleven Board for this project.

    Pictures can be seen in the next step.

Software Required:

  1. Arduino IDE 1.6.7 or higher
  2. Visuino The current release is 7.8.2.15

First thing to do is plugin you LCD Shield, then power on your Arduino.

Step 1: The Hardware

Picture 1 Shows the UNO compatible board I used for this Instructable.

Picture 2 Is the LCD Shield that I had on hand to setup for this project.

Step 2: Setting Up the LCD Shield in Visuino

Next you will need to Run, Visuino and you'll start with the main screen.

Then you need to do a search for 'LCD' in the upper right corner, Picture 1.

Picture 2 shows the results of the Search and the correct version of the Component to drag on to the Workspace.
Once that is done you should see Picture 3 showing the 2 components so far.

This one gives us the the DATA pins that we need to connect to the Arduino board.

Step 3: LCD Shield - Visuino - Text Fields

Next we add the Text Fields that will display on the LCD.
Double Click on the top bar and you will see this come up: The "Elements" window; Picture 1

Now Double Click the words "Text Field", twice. Picture 2 shows what it should look like after the first double-click and Picture 3 shows after the second double-click.

Those will be added to the left-hand side of LCD window. You can now close the Elements window.

Select the LCD component and look to the left-hand side of the Visuino window, here you should see the "Properties" of the LCD block. Click the plus sign folder icon to expand it and you should see what's in Picture 4.

"Item 0" is the top row of the LCD and "Item 1" is the bottom row, So for the top row we want to type in "Hello World!" for the "Initial Value" As seen in Picture 5.

For "Item 1" we need to set the "Row" to "1", as seen in Picture 6.



Step 4: LCD Shield - Visuino - Other Components

The next component we will add is the Sine Analog Generator, Picture 1

And connect it to the "Text Field2" input, Picture 2

Then add the Clock Generator and connect it to the "Clock Pin",Picture 3 on theSine Analog Generator.

Now that you are on the "Clock Generator", look at the "Properties" for it
and modify the "Frequency" to "3", Picture 4 The Value of "3" indicates that it will refresh 3 times per second.

The "Sine Generator Properties" should stay the same and look like Picture 5






Step 5: LCD Shield - Visuino - the LCD Connections

Now for my LCD Shield the connections will be different then a bare LCD sans the Shield, but this shields connections look like this. Picture 1

Now you can save the Visuino sketch and connect up you Arduino and Shield, then power it all on to upload it.

Picture 2 is another shot of mine when I loaded this sketch.

Picture 3 shows the entire layout, in Visuino

Let me know in the Comments how yours went.

Comments

author
Billy60 (author)2016-11-06

Good morning,

Could you please be kind to further explain some points:

- The Sine Generator: what are the values provided in the 'Amplitude' (Volts ? why 0,5 ?) 'Frequency (what units ? the 1 stands for what frequency ?), 'Offset' ( what is this for ?)

- The Out pin of the SinGenerator goes IN the LCD, ok. But why does the OUT pins pf this LCD goes into the IN pins of the Uno ? Usually these Uno pins are OUTputs for an LCD …?

Thanks for the explanations, because IMHO those Visuino projects are attractive but have usually hardly any explanations.

Have a good day.

author
KurtRoesener (author)Billy602016-11-09

Howdy Billy60,

The Amplitude is the normalized value from 0 to 1, as most of the items in Visuino are normalized. As example Analog pin has range of 0 to 1 for the 0 to 5V and servo has range 0 - 1 for 0 to 180 degree etc. This makes connecting items easier and requires conversion only in case you want something in specific unit.

The Frequency represents the number in Hz, so a value of "1" with clock once per second. While the offset is normalized DC offset for the signal is from 0 to 1. The result: = Offset + Sin( x ) * Amplitude.

The pin from the SINE to the LCD is going into TEXT field so it can be output on the LCD.

I hope this helps you out.

author
Billy60 (author)KurtRoesener2016-11-10

Good morning Kurt,

Thanks a lot for those explanations. They make it quite clear and I feel much better at how to use the whole Visuino concept in this matter.

Have a good day.

author
BoianM (author)2016-07-25

Congratulations! Nice easy to follow one :-)

About This Instructable

1,701views

9favorites

License:

Bio: Computer Tech for 30 years, got interested in Raspberry Pis around 2012 and Arduinos in 2015. Always into Electronics and now creating Projects for others.
More by KurtRoesener:Using the Trinket Pro With the Neo-Pixel Stick With VisuinoLCD Shield in Visuino - Tutorial/ExperimentSetting Up Visual Studio and Visual Micro for Coding the Arduino.
Add instructable to: