How To Use Usb Microcontroller On Vb
Jul 28, 2009i am talking about this [URL] device
1 what namespace referce do i add ?
2 what imports statement do i use ?
3 how do i make output input commands ?
i am talking about this [URL] device
1 what namespace referce do i add ?
2 what imports statement do i use ?
3 how do i make output input commands ?
i want to activate robotic parts using a pic microcontroller with vb.basically i want to use the thechniques shawn in this video :
[URL]
here are my questions :
1 what activex do i add ?
2 are there any references i need to add ?
3 are there any imports statements i need to add ?
4 are there classes i can add ?
5 what commands do i use for output ?
6 what commands do i use for input ?
7 can you recomend a specific microcontroller ?
8 how do i add hardware to the device ?
9 what commands do i need to add so the software doesn't glitch ?
I've already wrote a simple program for connecting to a serial port that can send data to the microcontroller, do some basic arithmatic and transmit it back to my Form. This was just to see if I could set up the conection.I have a PIC Microcontroller giving an 8-bit number thats is taken from an external sensor device.What I want to do now is to present this data from the microcontroller in a textbox as a number either in real time (as the sensor output changes) or if not possible, on request (using a button).
View 15 Replies<!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria
Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-
[code]....
I have written a program in vb to serial in data from my microcontroller and it is working good except for one thing. When I try to send the number 26 to vb it just reads a blank I dont know what is going on? The data that I am reading is being converted to int16, and I am using Encoding 28591 and have also tried Encoding 1252. I have also tried a new microcontroller with no success. I dont know if this is a VB problem or a microcontroller program problem.
Dim ReceiveBuffer As String
Dim portname1 As String = "Com5" ' Serial in through this port
Dim portspeed1 As Integer = 19200
Dim WithEvents COMPort As New System.IO.Ports.SerialPort
[CODE]...
I have a problem regarding rs232-usb converter... I'm using toshiba laptop. The problem i faced is i can receive data from my microcontroller to VB but i cant send data to microcontroller... However, when i use the same VB code and same converter, i try at my friend laptop (other brand), it works... May i konw is there any other setting i need to set for my laptop??
View 3 RepliesHi, I'm trying to develop a VB GUI that allows the user to download assemler code (Hex file) into microcontroller via a LAWICEL CANUSB.
I can now send signle message(8 Bytes.: example t1F0200081122334455667788, with ID:0x1F02000, DLC: 8 Bytes and Data:1122334455667788)
[Code]...
Is Win32 API a good approach for use with USB communication between VB2005 and a microcontroller with USB capability? If so where can I find these APIs?
View 2 RepliesI need to write an application for receiving data (ascii characters) from microcontroller through the serial port in three separate parts. I've created three RichTextBoxes, but I do not know which commands I need to type. In first textbox I need to receive one byte... next six bytes need to be placed in second text box, and finally last seven bytes need to be placed in third textbox.
View 11 RepliesLike the title says, i have a code written in vb.net that receives data from a PIC microcontroller via rs232, but i need a way to know when te trasmission ends. I have put the word "END" in the microcontroller code so that after he sends all the data , will send the word "END" ..so i need to implement this in my vb.net code and when "END" is received to display "finish" popup message.
Imports System
Imports System.ComponentModel
Imports System.Threading[code].......
Im working on a HSD 32 bit data bus to serial converter via a microcontroller. Now first I want to make a sort of data sniffer to read the data bus (32Bit) .All on the controller side is working and the stream of bytes are coming in via RS232 as 4 bytes in HEX like FD,A5,45,8B . I already converted the bytes in Dec and ASCII to determine what is passed true the bus and how fast and stuff.. Now that is all correct and working very well if the LSB (least significant bit) of the 32 data bus is Data line 0 and the MSB (most significant bit) is Data line 31 but if that is not the case I need to invert the 32Bits (like as I would invert the connector on the bus) . How do I best do this using the 4 bytes I send from the micro controller.
Example:
(MSB) 01001000 01100101 01101100 01110000 (LSB)
HEX= 48 65 6C 70
DEC= 72,101,108,112
ASCII= H E L P
I need to invert it with a button to:
(MSB) 00001110 00110110 10100110 00010010 (LSB)
HEX= 0E 36 A6 12
DEC= 14,54,166,18
ASCII= (SO) 6 : (DC2)