Discussion in "General help Guidance and Discussion" started by    har    Jan 21, 2008.
Mon Jan 21 2008, 02:45 PM
#1
can anyone help me in building an VB interface with coding and tutorials.
basically how does the communication between the PC and the microcontroller takes plce through VB interface.
Mon Jan 21 2008, 06:10 PM
#2
all you need to do is add a MSCOMM component in your project. this has been explained in forum many times i think. Please search it once. you might find it.. for sure..
if not we are all here
 har like this.
Tue Jan 22 2008, 04:35 PM
#3
thanks once again, im not yet clear because im not thorough with Visual Basic.i would like to explain my doubt once again by taking the example of the PC remote project:
even in this project there is a form. does this form takes part in the interaction between the microcontroller and PC.
in VOICE INTERACTIVE COLLEGE AUTOMATION SYSTEM PUBLISHED HERE project im intended to enquire attendance of students from phone. so what is the role of VB here.
please kindly help
Tue Jan 22 2008, 06:44 PM
#4
As i said you need to add MSCOMM component in your project..
In Visual Basic 6.0: right click the toolbox and select "Components". Check "Microsoft Comm Control 6.0" and click "OK". Place a MSComm control (it looks like a phone) on your form (it will be invisible at runtime). You can name the control if you like, the default name is MSComm1.

For setting up MSComm1 component..
    MSComm1.CommPort = COM1        'Define COM port available on PC
    MSComm1.Settings = "9600, N, 8, 1"      '9600 Baudrate, No Parity, 8 bits data, 1 Stopbit.
    MSComm1.InputLen = 1                    'Read 1 character/byte whenever Input property is used.
    MSComm1.InputMode = comInputModeBinary  'Input will retrieve data in array of bytes.
    MSComm1.PortOpen = True                 'Open Serial Port COM1.


To read from serial port...
If MSComm1.InBufferCount Then
read_value = MSComm1.Input 'read_value will have whatever is sent to serial port of PC


and to write to serial port..
MSComm1.Output = something_to_send


I hope many things are clear now
 harpdi33 like this.
Tags MSCOMM VB projectserial programming VBCOM port programming Visual Basic
Thu Jan 24 2008, 09:46 AM
#5

ok
if i want to read the com port only when there is a new data received
by using interrupt
so how can we do that
Thu Jan 24 2008, 11:19 AM
#6
Ritesh
for this u can make use of onComm event.
go to properties of mscomm , set RThreshold to 1.
then use code
Private Sub MSComm1_OnComm() 
   If (MSComm1.CommEvent = comEvReceive) Then  ' if something received
        Text3.Text = MSComm1.Input 'save it to text3
   End If
End Sub

whenever new data is arrived , onComm event will be generated(like interrupt) and that data will be saved to text3.
Fri Jan 25 2008, 07:33 AM
#7
THANKS
ANY NEW IDEA TO SAME
BUT FOR DOT NET 2005
Fri Jan 25 2008, 08:06 AM
#8
.net is tough.. never used it
Sat Jun 28 2008, 11:47 AM
#9
can i know where to download the visual basic?what is the programming language use in visual basic?
Sat Jun 28 2008, 01:40 PM
#10
hi cenadius,
visual basic itself is the programming language .
It can be installed as an integral part of Microsoft Visual studio or can be installed seperately. It does not have a freeware or shareware version so u have to buy it from microsoft.

Get Social

Information

Powered by e107 Forum System

Conversation

Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

Sat Oct 05 2019, 02:38 PM
zexalo
Thu Oct 03 2019, 09:53 AM
thanhle12345
Thu Oct 03 2019, 07:37 AM
ramon_vsc
Fri Sep 20 2019, 04:53 PM
youssoufba
Thu Sep 19 2019, 11:57 AM
Taiphan000
Tue Sep 17 2019, 04:21 AM
mawantha
Fri Sep 13 2019, 10:42 AM
jonelily954
Mon Sep 02 2019, 12:34 PM

Online

Guests: 38, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38095
Newest member: [email protected]
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 13 2019, 06:10 PM
This code does some scrolling.You will need to fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Oct 12 2019, 10:19 PM
This code does not scroll, that will be complicate...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 12 2019, 06:44 AM
Sir, Please share code, i m unable to scroll messa...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Oct 12 2019, 02:45 AM
Okay I got it !Data is not automatically passed on...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Fri Oct 11 2019, 05:36 AM
please find below attachment. Att...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 11 2019, 02:33 AM
You seem to be 95% of the way there.Can you post y...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 10 2019, 07:49 AM
sir, i m trying to scroll message on dot matrix di...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Oct 10 2019, 01:31 AM
max 7219 dout pin not giving serial out data.Try t...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Wed Oct 09 2019, 08:48 AM
Dear sirall dot matrix display scroll same data.
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Wed Oct 09 2019, 08:46 AM
please find below attachment of circuit diagram. ...