HOME

PROJECTS

TUTORIALS

C FUNCTIONS

PROGRAMS

PRODUCTS

VIDEOS

COMPANY

SPANISH

                 

project: C Sharp visual software for remote control of Bolt 18F2550 system through the serial port.

Authors: Gloria Luz Castillo Barrera, Edgar Omar Peņa de Alba

 

C SHARP SOFTWARE APPLICATION WINDOW

Background of C Sharp language:

C# (C Sharp) is a programming, object oriented language, developed and standardized by Microsoft as part of its platform .NET, which was later approved as a standard by ECMA (ECMA-334) and ISO (ISO / IEC 23270).

Its basic syntax is derived from C / C + + and uses the object model .NET platform, similar to Java, but includes improvements from other languages.

The name C Sharp was inspired by musical notation, where '#' (Sharp) indicates the note C is a semitone higher, suggesting that C # is superior to C / C + +.

Description of project:

In a former project a C Sharp software was developed as a graphics interface to remotely control different options in Bolt 18F2550 board through its serial port. In this project, a more complete visual interface with aditional functions is presented. A high resolution photo of Bolt 18F2550 board is used in this program to improve and facilitate its visual functioning with the user.

In addition, in this software, a plug and play option detects automatically the serial COM port assigned to the board. Finally, 2 communications channels may be used from the PC to the Bolt board : a serial cable, or a bluetooth interface.

This project has 2 parts: the software developed in C Sharp that runs in any Windows computer, and the firmware developed in ANSI C that runs in the Bolt 18F2550 system. Both programs interact with each other to make a nice and easy to use remote control application.

When using the C# software, the user will be able to work on a visual interface: the photo of the application window shown above, permits the user to click on different devices (any of the 8 leds, the relay, the microswitches, the temperature sensor, and the reset button) or write text on the LCD to send information from the PC to the Bolt 18F2550 system through the serial port.

All source files of the C# software and firmware are provided so that interested developers may make use of them for their own future or special applications.

Testing the C Sharp software for serial port remote control:

Download .zip file from the link provided in the bottom of this page. Install C# software in your PC or Laptop following the instruction of manual.

Manual-C-Sharp-Software-Interface-for-remote-control-of-Bolt-18F2550-system.pdf

You will first need to transfer the .hex firmware to the Bolt board. For this purpose, use software Bolt v.1.0.1.

Connect the devices as shown in photo below, with the Bolt 18F2550 board with its LCD inserted. Use an external wall transformer to power board and test the relay. A USB cable may be also used to power board, but then you won't be able to test the relay.

To connect board with the PC computer, a USB-Serial cable (with its driver installed) must be used. It is also possible to use an older PC with a DB9 connector and a DB9-DB9 cable to connect the Bolt board with the PC.

Commands available by clicking on devices in C Sharp application window:

Once the C# program is running, by clicking over each device in the application window, user may activate-deactivate remotely any of the 8 leds or the relay in the Bolt 18F2550 board, or read remotely its microswitches or the temperature sensor. You may also write text on the LCD window to transmit it to the Bolt board. Clicking on the reset button will remotely send a reset signal to the Bolt board.

A complete testing of the Bolt board may be performed using this software.

 

Please download firmware and software programs from the link below.

BOLT-C-SHARP-GRAPHICS-INTERFACE-V.4.zip

The following folders are included (see window below):

-Source code of C Sharp software. Folder: CSerialPic-source-files

-Installation C Sharp program (Windows 8, Windows 7, XP) Folder: Setup

-Source and executable (.hex) code for Bolt 18F2550. Folder: Bolt.18F2550-firmware

-Documentation and manual. Folder: Documents