Pages

Tuesday, 3 March 2015

Integrating C# .NET with Embedded System:Chapter-1

OVERVIEW

C# is a modern, general-purpose, object-oriented programming language developed by Microsoft and approved by Ecma and ISO.C# was developed by Anders Hejlsberg and his team during the development of .Net Framework.


C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment that allows use of various high-level languages to be used on different computer platforms and architectures.



The following reasons make C# a widely used professional language:


·         Modern, general-purpose programming language.

·         Object oriented.

·         Component oriented.

·         Easy to learn.

·         Structured language.

·         It produces efficient programs.

·         It can be compiled on a variety of computer platforms.


·         Part of .Net Framework.

Getting started

Creating a new visual studio C# project:
Once Visual Studio is running the first step is to create a new project. Do this by selecting New Project from the File menu. This will cause the New Project window to appear containing a range of different types of project. For the purposes of this tutorial we will be developing a Windows Forms Application so make sure that this option is selected.

CREATING NEW PROJECT

The first thing you do when you want to create a new application is to create a NEW PROJECT.

This can be done from start page.

New project created from the NEW PROJECT window:

Then the “NEW PROJECT” window will appear.

In this window you will select an appropriate template based on what kind of application you want to create, and a name and location for your project and solution.


The most common applications are:
  •        Windows form application.
  •        Console application.
  •      WPF application
  •       ASP.NET web application.
  •      Silverlight application. 
Select WINDOWS FORMS APPLICATION.

TOOL BOX

When you select WINDOWS FORM APPLICATION, you will get FORM DESIGN WINDOW,it is used to design USER interface by making use of TOOLBOX on the left side of window,

The TOOLBOX contains all the necessary controls, etc. You need to create a user interface by making use of these controls as shown in figure below.



In order to use these controls, just drag and drop it on to your Design forms, as shown in figure.



Figure shows TOOLBOX and DESIGN FORM:


The following screenshot shows, making use of these toolbox controls for designing the user interface on DESIGN FORM.




PROPERTIES WINDOW


Each TOOLBOX we have used on our form has many properties that we can set. This is done by using Properties window. We can find the property window on the right bottom side of your project.


BUILD AND DEBUGGING TOOL

The visual studio has lots of Build and Debugging Tools,


BUILD MENU:


Below we see the Build menu. The most used Build tool is BUILD SOLUTIONS.


DEBUG MENU:


In order to RUN or DEBUG your windows form we make use of DEBUG TOOLs. The most used debug tool is START DEBUGGING.it can be find the shortcut for this on the top of your visual studio windows.      



                                                                                                                                                                                                     

Windows programming


When creating ordinary windows form application, we can select between the following:



·         Windows form Application

·         WPF application




HELLO WORLD


We start by creating traditional “HELLO WORLD” application using Windows Form Application is shown below. Thevisual studio UI shown below.



In this application we make use of simple textbox and Button(Button name is changed to Submit in the properties) when we click on submit the “HELLO WORLD ”massage will be displayed in the Textbox.

The OUTPUT  of this form as shown below:
THE CODE IS AS FOLLOW:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication9
{
publicpartialclassForm1 : Form
    {
public Form1()
        {
            InitializeComponent();
        }

privatevoid textBox1_TextChanged(object sender, EventArgs e)
        {

        }

privatevoid button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = "HELLO WORLD";//displaying hello worldin the textbox.
        }
    }
}




ATMEL Mini Development Board


OVERVIEW:

If you are learning microcontrollers or want to quickly develop embedded solution based on standard 8051 core, this board will help you quick start with the application by giving you access to everything required to run the AT89S52 microcontroller. With this board you can develop and prototype with any of 8051 40 pin microcontrollers.The board have User buttons and status LEDs.



FEATURES OF PRODUCT:
  • Quartz crystall 11.0592Mhz.
  • The DIP40 locking device, easy to remove the ATMEL microcontroller for reuse.
  • Reset button.
  • Power Indicating LED.
  • External TX,RX, GND
  • Pull up resistor for PORT0.
  • On board ISP programmer.
  • Coour :RED
For more Sample codes and schematics: CLICK HERE

Monday, 2 March 2015

PIC Mini Development Board


OVERVIEW:

PICs are popular with both industrial developers and hobbyists alike due to their low cost, wide availability, large user base, extensive collection of application notes, availability of low cost or free development tools, and serial programming (and re-programming with flash memory) capability. They are also commonly used in educational programming .
With this board you can develop and prototype with any of Microchip's 40 pin PIC microcontrollers.The board have User button and status LED.


FEATURES OF THE PRODUCT: 
  • PIC Development Board for Microchip PIC Series.
  • Quartz crystall 20Mhz.
  • The DIP40 locking device, easy to remove the PIC microcontroller for reuse.
  • External TX,RX, GND
  • On board programming ISP.
  • Power indicator LED.
  • Reset Switch for the IC.
  • Colour :RED
  • High quality PCB FR4 Grade with FPT Certified.
For More Sample codes and Schematic: CLICK HERE

Wednesday, 25 February 2015

GPS Uno Shield


OVERVIEW:
  
To make the GPS module easily to compatible with the existent shield , we use the same pin packaging as XBee wireless module.So you can put the GPS module into the existent shield which compatible with XBee.Arduino Xbee Adapter Development Board allows an Arduino board to communicate wirelessly using  XBEE.




FEATURES OF PRODUCT:

  • 33 tracking/ 99 acquisition-channel GPS receiver.
  • Supports QZSS, SBAS(WAAS, EGNOS, MSAS, GAGAN*) ranging.
  • Ultra-High Sensitivity: -165dBm.
  • High Update Rate: up to 10Hz(: SBAS can only be enabled when update rate is equal or less than to 5Hz.).
  • 12 multi-tone active interference canceller(Some features need special firmware or command programmed by customer please refer to “PMTK Command List”)
  • High accuracy 1-PPS timing support for Timing Applications (±10ns RMS jitter).
  • Mounts directly onto your Arduinos
  • Reset button brought out.
  • High quality PCB FR4 Grade with FPT Certified. 

For More Sample Codes And Schematic: CLICK HERE

LM2576S BUCK DC-DC voltage power supply module Constant 5V

 
PRODUCT IMAGE:



FEATURES OF PRODUCT:

  • LM2576S DC - DC step-down module.
  • The input voltage: 7 V ~ 35 V.
  • The output voltage: 5V
  • The output current: 3 A (Max).
  • Conversion efficiency :92% (the highest).
  • The output ripple : < 30 mv.
  • Switching frequency: 52 kHz .
  • Working temperature: - 45 ~ + 85
For More Sample Codes And Schematic: CLICK HERE

LM2576S BUCK DC-DC voltage power supply module

      
PRODUCT IMAGE:



FEATURES OF PRODUCT:


  • LM2576S DC - DC step-down module.
  • The input voltage: 3.5 V ~ 35 V.
  • The output voltage: 35 V ~ 1.25 V
  • The output current: 3 A (Max).
  • Conversion efficiency :92% (the highest).
  • The output ripple : < 30 mv.
  • Switching frequency: 52 kHz .
  • Working temperature: - 45 ~ + 85
For More Sample Codes and Schematic: CLICK HERE
 

GPS Receiver PA6E-CAM with GPS Antenna

OVERVIEW:

GPS module from GlobalTop: PA6E-CAM, based on MediaTek MT3333 chipset. Possibility of using both systems improves position accuracy and shortens cold start time, especially in difficult satellite signal conditions.
Module is pin-to-pin and functionally compatible to older PA6E module based on MT3329 chipset. Thus it is possible simple migration to this module without changing of printed boards.

 
 



FEATURES OF PRODUCT:

  • 33 tracking/ 99 acquisition-channel GPS receiver.
  • Supports QZSS, SBAS(WAAS, EGNOS, MSAS, GAGAN*) ranging.
  • Ultra-High Sensitivity: -165dBm.
  • High Update Rate: up to 10Hz(: SBAS can only be enabled when update rate is equal or less than to 5Hz.).
  • 12 multi-tone active interference canceller(Some features need special firmware or command programmed by customer please refer to “PMTK Command List”)
  • High accuracy 1-PPS timing support for Timing Applications (±10ns RMS jitter).
  • AGPS Support for Fast TTFF.

APPLICATION:

  • Handheld Device
  • PLB
  • M2M application
  • Asset management
  • Surveillance.

For More Sample Codes and Schematics: CLICK HERE