Page 1 of 1

VB,C++,C# and FLASH And Android

PostPosted: Tue Feb 26, 2013 7:42 pm
by blurg
Can anyone teach me how to collect data with the Arduino Uno Board using the COM in Visual Basic?
I am try to use the snippet in VB,but the program never load properly or maybe the code itself is wrong.
I am quiet new with all the programming,so please teach me step by step.
//VISUAL BASIC IN WINDOWS NOT ARDUINO
CODE: SELECT_ALL_CODE
 Dim buffer As New StringBuilder()
        Using comPort As SerialPort = My.Computer.Ports.OpenSerialPort("COM3")
            Do
                Dim line As String = comPort.ReadLine()
                If line Is Nothing Then
                    Exit Do
                Else
                    buffer.AppendLine(line)
                End If
            Loop
        End Using

My Arduino connect at COM3 using USB.
What am I trying to do is collect all the data and save it/convert the data to something manageable for graph in Spreadsheet.Anyone can help?
OR
I have the wrong Arduino Board?I thought Arduino Leonardo is suitable for data storage and ArduinoMega is for Android Phone.
Which one?!Whatever...
:mrgreen:

Re: VB,C++,C# and FLASH And Android

PostPosted: Thu Feb 28, 2013 12:49 pm
by yonghui
im not so sure whether u can send data from the arduino board through the usb to the computer.
u can try send simple characters in a forever loop from the arduino board, then open the terminal to view if characters are received. remember to set the correct COM and baudrate. :D

Re: VB,C++,C# and FLASH And Android

PostPosted: Thu Feb 28, 2013 1:03 pm
by blurg
Thanks for reply,yes,you talking about the Arduino IDE,right(from the Serial Monitor-I hate copy & paste)?I have link to the problem.I think I am answering my question.

1)http://www.codeproject.com/Articles/42557/Arduino-with-Visual-Basic

Re: VB,C++,C# and FLASH And Android

PostPosted: Thu Feb 28, 2013 1:11 pm
by blurg
-post not available-

Re: VB,C++,C# and FLASH And Android

PostPosted: Thu Feb 28, 2013 4:02 pm
by yonghui
erm, are u going to connect the android device to your arduino board through bluetooth?

Re: VB,C++,C# and FLASH And Android

PostPosted: Thu Feb 28, 2013 6:56 pm
by shahrul
I don't really understand this thread? You talk about VB, sending data through Serialport. You want make oscilloscope, then talk about android. I don't know which one your focus.
If VB SerialPort see here.
If VB graph see here.

Re: VB,C++,C# and FLASH And Android

PostPosted: Thu Feb 28, 2013 7:21 pm
by blurg
1) Not Bluetooth.Just USB.
2) All of it.VB,C++,C# and Android.
:mrgreen:

Re: VB,C++,C# and FLASH And Android

PostPosted: Tue Mar 05, 2013 3:16 pm
by yonghui
yr android device has the usb host?

Re: VB,C++,C# and FLASH And Android

PostPosted: Tue Mar 12, 2013 12:32 pm
by blurg
no &no idea.thanks.just stick with the topic.just for discussion.i am a new learner in arduino. :mrgreen:

Re: VB,C++,C# and FLASH And Android

PostPosted: Tue Jun 25, 2013 9:33 pm
by blurg
Thanks.