Click here to Skip to main content
15,915,603 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:01
sitebuilderLuc Pattyn11-Nov-07 15:01 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:07
The ANZAC11-Nov-07 15:07 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:15
sitebuilderLuc Pattyn11-Nov-07 15:15 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:17
The ANZAC11-Nov-07 15:17 
QuestionCystal Report Pin
Assaf8210-Nov-07 22:38
Assaf8210-Nov-07 22:38 
AnswerRe: Cystal Report Pin
AliAmjad10-Nov-07 23:24
AliAmjad10-Nov-07 23:24 
Questionmake a switch with serial port Pin
nasser5910-Nov-07 8:51
nasser5910-Nov-07 8:51 
AnswerRe: make a switch with serial port Pin
Fu Manchu10-Nov-07 13:23
Fu Manchu10-Nov-07 13:23 
Ok,

If i understand you correctly on this, you're trying to switch something, say a LED or a device using the PC serial port. Nice plan but unfortunately the serial port doesn’t work like that!

The serial port is a communications device and simply used to send ASCII data to and from the PC via some software. The good thing is there is plenty of help on the serial port to help you achieve this. Microsoft have thankfully included a class from the serial port in VS 2005 see http://msdn2.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^]

Now the serial port, well in a very simple cut down way is capable of doing anything you want, however you will need to implement additional electronics to achieve this.

When data is sent to the serial port, depending how its configured by baud rate etc, the signal is in a eight bit stream hence its name, this simply means any data sent to the port would look like a train of 1's and 0's. If you send the character 'A' the code would simply translate this to the ASCII value '65' which is '1000001' is binary

This is simpler to understand if you write a comms application between two computers.

The electronics would have to be a microcontroller of some description, PIC16F84 is good for beginners. The serial port could be coupled together with a MAX232 IC inteface directly and connected to the PIC16F84. This would be a very simple circult and probably thousands of web links to it. The Microcontroller can be programmed to respond to anything to demand, turn on a led or a relay etc.

http://www.boondog.com/tutorials/pic16F84/pic16f84.html[^]

Have Fun!
AnswerRe: make a switch with serial port [modified] Pin
Luc Pattyn10-Nov-07 14:38
sitebuilderLuc Pattyn10-Nov-07 14:38 
QuestionHow to manipulate disk quota using vb 6? Pin
gblue0710-Nov-07 6:09
gblue0710-Nov-07 6:09 
QuestionString to Object Question Pin
Fahad Sadah10-Nov-07 5:37
Fahad Sadah10-Nov-07 5:37 
AnswerRe: String to Object Question Pin
AliAmjad10-Nov-07 5:44
AliAmjad10-Nov-07 5:44 
GeneralRe: String to Object Question Pin
Colin Angus Mackay10-Nov-07 10:46
Colin Angus Mackay10-Nov-07 10:46 
GeneralRe: String to Object Question Pin
AliAmjad10-Nov-07 22:21
AliAmjad10-Nov-07 22:21 
GeneralRe: String to Object Question Pin
Fahad Sadah10-Nov-07 23:00
Fahad Sadah10-Nov-07 23:00 
GeneralRe: String to Object Question Pin
AliAmjad10-Nov-07 23:38
AliAmjad10-Nov-07 23:38 
GeneralRe: String to Object Question Pin
Colin Angus Mackay11-Nov-07 0:30
Colin Angus Mackay11-Nov-07 0:30 
GeneralRe: String to Object Question Pin
AliAmjad11-Nov-07 1:29
AliAmjad11-Nov-07 1:29 
GeneralRe: String to Object Question Pin
Colin Angus Mackay11-Nov-07 3:00
Colin Angus Mackay11-Nov-07 3:00 
GeneralRe: String to Object Question Pin
AliAmjad11-Nov-07 4:55
AliAmjad11-Nov-07 4:55 
AnswerRe: String to Object Question Pin
nlarson1110-Nov-07 7:27
nlarson1110-Nov-07 7:27 
GeneralRe: String to Object Question Pin
Fahad Sadah10-Nov-07 23:01
Fahad Sadah10-Nov-07 23:01 
GeneralRe: String to Object Question Pin
Colin Angus Mackay11-Nov-07 0:34
Colin Angus Mackay11-Nov-07 0:34 
QuestionRecording the screen Pin
Zaegra10-Nov-07 2:04
Zaegra10-Nov-07 2:04 
AnswerRe: Recording the screen Pin
Colin Angus Mackay10-Nov-07 2:11
Colin Angus Mackay10-Nov-07 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.