changing this project (Data acquisition system using 8051) to another type of DAQ...need help
Sun Aug 07 2011, 10:48 am
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
@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...
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
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
@ 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
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
the at89s51 programmer software that i was using is ISP PROGRAMMER by Adam Dybkowski
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
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
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
[ Edited Sun Aug 07 2011, 08:44 pm ]
Tue Aug 09 2011, 01:18 pm
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.......
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:36 pm
@ 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
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
Wed Aug 10 2011, 04:44 pm
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..............
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 ]
Powered by e107 Forum System