Controlling Microcontroller
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
Well,
I connected my robot (wich has MICROCONTROLLER onboard) and it recognized it.
I connected my robot (wich has MICROCONTROLLER onboard) and it recognized it.
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
A USB port does not provide the same access as a Serial port.
It's connected to USB
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
I imagine you would need a driver in order to simluate a serial port over a USB connection.
They were probably installed automaticlly
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
If you have a SDK for such a device, or if your device presents itself as a serial port over USB then that might be the case.
visioncr0 wrote:Hello,Where do i put all of these codes its confusing :|
This tutorial will show you how to connect to serial and write something in it.
Imports:Code: Select all1. Listing all Serial(COM) ports to control (in code ComboBox)Imporst System.IO.Ports
This will get name of portCode: Select allCode below will add ports to control (ComboBox)Dim ports As String() = SerialPort.GetPortNames()
Code: Select all2. Connecting to port selected by userDim port As String For Each port In ports ComboBox1.Items.Add(port) Next port
Add this under Class
Code: Select allCode below will select serial port and open(connect) to itDim serialPort As New SerialPort
Code: Select allDisconecting:Try serialPort.PortName = ComboBox1.SelectedItem serialPort.Open() Catch ex as exception End Try
Code: Select all3. Writing/reading to serial portserialPort.close() serialPort.dispose()
Writing:Code: Select allReading:serialPort.Write("something")
Code: Select allThat's allDim string As String = serialPort.ReadLine()
-visioncr0
Hey,
Here's the source code: Hope it helps
Here's the source code: Hope it helps
You do not have the required permissions to view the files attached to this post.
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
Copyright Information
Copyright © Codenstuff.com 2020 - 2023