Discussion in "Project Doubts" started by    redzs08    Dec 13, 2010.
Sun Aug 07 2011, 10:48 am
#51
send a or b from your application it will work as if you are emulating human input from terminal. I dont think you need to make any change in the code on controller side. As i said.. just emulate human input using software.
Sun Aug 07 2011, 11:33 am
#52
@ajay and @majoka thanks for your explanation....

now i need some understanding on vb how to turn on and off the relay..............


below there is a vb code for on button can u check for me why it will not work...
Private Sub Command2_Click()
 On Error Resume Next                'error handler
    
    If MSComm1.PortOpen = False Then    'Check if serial port is open
        MSComm1.PortOpen = True         'Open the serial port
    End If
    If Err Then MsgBox Error$, 48       'If there is an error display in a box
    
    'Set all outputs to High
    MSComm1.Output = Chr(97 + k)   'Relay board command string

End Sub


Sun Aug 07 2011, 11:36 am
#53
do any of you have at89s51 Device Programmer software cozs i bought one but the software is not working it using parallel port for communication


[ Edited Sun Aug 07 2011, 01:25 pm ]
Sun Aug 07 2011, 01:17 pm
#54
@ redzs08
what programmer ur using what is the name of programmer
there are many programmers on net that are working programmers
n vb code what u expected what this code will do then we explain it that what should it do
Sun Aug 07 2011, 01:42 pm
#55
the at89s51 programmer software that i was using is ISP PROGRAMMER by Adam Dybkowski


Private Sub Command2_Click()
 On Error Resume Next                'error handler
   
    If MSComm1.PortOpen = False Then    'Check if serial port is open
        MSComm1.PortOpen = True         'Open the serial port
    End If
    If Err Then MsgBox Error$, 48       'If there is an error display in a box
   
    'Set all outputs to High
    MSComm1.Output = Chr(97 + k)   'Relay board command string

End Sub




the code above i expext it turn ON the relay

and

the code bellow is turn OFF the relay......... the relay port pin in microcontroller is P1^3


Private Sub Command3_Click()
On Error Resume Next                'error handler
    
    If MSComm1.PortOpen = True Then    'Check if serial port is close
        MSComm1.PortOpen = False         'close the serial port
    End If
    If Err Then MsgBox Error$, 48       'If there is an error display in a box
    
    'Set all outputs to Low
    MSComm1.Output = Chr(97 + k)   'Relay board command string


will this 2 code will ON and OFF the relay driver ULN2803 on the circuit .....


i will send the VB that i alter from abbas..... the code belong to ON OFF button

Attachment


[ Edited Sun Aug 07 2011, 08:44 pm ]
Tue Aug 09 2011, 01:18 pm
#56
hi i need help on the breadboard testing of the DAQ system i build the circuit ready but i cant run ...... when i check the voltage of every component it show that every component working fine but when i try to connect to VB using serial port there is nothing what is the problem i dont understand really is it the serial port must be set first .... other thing please some help....


is this circuit diagram is correct..... and pls check for max232 circuit below.......


[ Edited Tue Aug 09 2011, 09:27 pm ]
Tue Aug 09 2011, 09:27 pm
#57
the circuit

Tue Aug 09 2011, 09:36 pm
#58
@ redzs08
first check max232 connections
and verify that circuit
may b controller is not working there can be many reasons
use terminal program from this site
remove controller and short its base pin no 10 and 11
now send any character using terminal program u will see that back
it means max232 is ok
Tue Aug 09 2011, 10:04 pm
#59
how to use terminal program is it hyper terminal ...
Wed Aug 10 2011, 04:44 pm
#60
my hardware circuit cant work can somebody help me tell where to check first...
i got one doubt the crystal oscillator capacitor is it must be the ceramic ...... or can use polarity capacitor.... and the variable resistor can use the trimpot ....or the normal one..............


[ Edited Wed Aug 10 2011, 05:28 pm ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am