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

Programmer, In-Circuit Debugger, PIC Start-Up Kit, Memory Interface...

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

Postby blurg » Tue Feb 26, 2013 7:42 pm

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:
blurg
Freshie
 
Posts: 6
Joined: Tue Feb 26, 2013 7:19 pm

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

Postby yonghui » Thu Feb 28, 2013 12:49 pm

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
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

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

Postby blurg » Thu Feb 28, 2013 1:03 pm

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
blurg
Freshie
 
Posts: 6
Joined: Tue Feb 26, 2013 7:19 pm

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

Postby blurg » Thu Feb 28, 2013 1:11 pm

-post not available-
blurg
Freshie
 
Posts: 6
Joined: Tue Feb 26, 2013 7:19 pm

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

Postby yonghui » Thu Feb 28, 2013 4:02 pm

erm, are u going to connect the android device to your arduino board through bluetooth?
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

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

Postby shahrul » Thu Feb 28, 2013 6:56 pm

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.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

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

Postby blurg » Thu Feb 28, 2013 7:21 pm

1) Not Bluetooth.Just USB.
2) All of it.VB,C++,C# and Android.
:mrgreen:
blurg
Freshie
 
Posts: 6
Joined: Tue Feb 26, 2013 7:19 pm

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

Postby yonghui » Tue Mar 05, 2013 3:16 pm

yr android device has the usb host?
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

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

Postby blurg » Tue Mar 12, 2013 12:32 pm

no &no idea.thanks.just stick with the topic.just for discussion.i am a new learner in arduino. :mrgreen:
blurg
Freshie
 
Posts: 6
Joined: Tue Feb 26, 2013 7:19 pm

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

Postby blurg » Tue Jun 25, 2013 9:33 pm

Thanks.
blurg
Freshie
 
Posts: 6
Joined: Tue Feb 26, 2013 7:19 pm


Return to PIC Development Tool

Who is online

Users browsing this forum: No registered users and 6 guests

cron