A visual output always adds value to any project. In this third day tutorial, we are going to display some numeric, alphabetic as well as two symbolic characters on a 4-digit seven segment LED module. The way we are interfacing the seven segments LEDs is known as multiplexing, which allows to save some I/O pins of Netduino as compared to driving them individually. The seven segment LEDs are resource and power hungry, but we are going to do this experiment just to get our feet wet in the microcontroller or embedded world and to understand the basics of a seven segments LED displays.
Tag Archives: Netduino
Liquid Crystal Displays (LCD) are a great choice of output device for displaying alphanumeric characters in real time. They are also very useful if your project requires an interactive user interface for data input. Besides, they are inexpensive, consume less power than LED displays, and give a more professional look to your project. Today we will explore how to interface an HD44780 based character LCD to Netduino to display alphanumeric characters. For technical details of the HD44780 driver, please read its datasheet as well as its interfacing example with chipKit.
We will start our Netduino tutorial series with a very basic project of flashing an LED. The objective of this project is to explore basics of Netduino I/O pins as well as to make sure that everything is setup correctly, including software installation and hardware setup. In this project, we will use an Analog pin to read a potentiometer’s analog output, and a digital pin to flash an LED. The frequency of LED blinking is varied based on the potentiometer output. It will blink at an interval of 10 milliseconds to 1000 milliseconds based on the wiper position of the potentiometer. In Netduino, you can set the range for 10-bit ADC output of an analog port.Writing code will be carried out in Visual Studio with C# as programming language.
There are a few things that need to be done besides simply connecting the Netduino to the computer. I will be using Netduino Plus for the tutorials however Netduino and Netduino Plus are more or less the same for our tutorials. Let’s first list all the necessary tidbits:
- Microsoft Visual Studio (C# or VB) Express 2010
- Using this software we will be writing our codes in VB.NET or C#.NET.
- .NET Micro Framework SDK v4.1
- Without this, we will not be able to write code that Netduino (or any Micro Framework supported hardware) will understand.
- Netduino SDK v4.1.0
- 32 bit : http://www.netduino.com/downloads/netduinosdk_32bit.exe
- 64 bit : http://www.netduino.com/downloads/netduinosdk_64bit.exe
- This SDK will enable us to write Netduino specific codes.
- Netduino or Netduino Hardware
- This is our main microcontroller where we will deploy our code and it will perform as we have written.
- Basics electronics board and components.
- It’s hard to list but at the minimum we will need a computer (of course), breadboard, connecting wires, LEDs, resistors, etc.
Once you have all these installed/accessed, plug your Netduino to your computer, and start your Visual Studio. When Visual Studio is started for the first time it may ask you a few things, such as the language (VB or C#) that you are comfortable with.
Visual Studio (VS) that I have installed is configured for CSharp.NET so when I start a Visual Studio and try to create a new project, it automatically selects CSharp (C#) section. To create a new project, from VS go to File > New > Project, this will display a New Project file open dialog-box, as shown below. Under C# and Micro Framework, highlight Netduino Application or Netduino Plus Application and give Name, Location then click OK button. (I will be using Netduino Plus.)