sending data from VB6 to PIC18F458 problem

Discussion in 'Programmer's Corner' started by farahin, Jun 12, 2011.

  1. farahin

    Thread Starter New Member

    May 30, 2011
    hii.. i'm new to VB6 and PIC.. i have problem to send data from VB6 to PIC.. actually my project is to measure current temperature and control on/off valve using zigbee module..

    The problem is when i click command button in VB6, the PIC doesn't receive the signal. I'm not sure on the coding in VB and PIC. Is it correct to send a character in VB6 to PIC? Can PIC receive a character?

    My VB coding:
    Private Sub Command1_Click()
    MSComm1.Output = ??
    End Sub

    can anyone give example on the coding..plz help me..
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    What interface/hardware exists to make it possible for the PC to communicate with the PIC?
  3. farahin

    Thread Starter New Member

    May 30, 2011
    I'm using Zigbee module which transmit data wirelessly from PC to PIC..Is it possible for VB to give command to PIC? i mean wirelessly transmit the command from VB to PIC..