Pages: [1] 2   Go Down
Author Topic: Which software to interface to computer  (Read 1447 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Howdy I am new to arduino. I have written my first sketch to read the analog 0 port and turn on several LED’s. I would like to know which programming software is the easiest way to send the info to the computer to print on the screen ( VB-6, C++,VB-2010. Etc.). Right now all I want to do, is print the values from analog in. I have Visual basic-6
Thanks for any help
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

arduino sends its data through a serial port, so anything that can read a serial port is a good choice. I am partial to C# but any of the visual products will have pretty much the same features. Theres also processing which is java based if you dont want to bother compiling or nailing your application to windows only stuff, but if your just wanting to print values from the arduino, use its biult in serial monitor or an external terminal program like hyperterm or putty.
Logged


Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 509
Posts: 31483
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A lot of people use Processing http://processing.org/ it is free and multiplatform it uses Java and has a vast array of user contributed libraries. People do cool things with it.
Logged

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In .Net is very easy, just
Code:
SerialPort.Open(

Not sure about VB6 but I remember there was a "draggable" serial port object in the toolbox (but you need to add it)
Logged

My website: http://ried.cl

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

VB6 is about 120 years old :-) use vb.net (or c#) express. Its much better for serial port stuff, and modern as well :-)
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that is true you can get the 2010 express editions off of microsoft's website for free as long as its not for commercial use, and VB.net is right there with them (if you wanted to stick with VB)
Logged


UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11179
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Right now all I want to do, is print the values from analog in. I have Visual basic-6

Have you tried using the serial port monitor within the Arduino IDE? If it's connected to the correct port and set to the right speed, anything the Arduino prints out on the Serial port will display here.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes I have tried serial monitor. I just want to get fancy windows.LOL
Thanks for the replies. Think I will try VB-2010 it's free.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11179
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Think I will try VB-2010 it's free.

There are free versions all the visual studio variants so you have a choice of C#, C++, 'C', VB, silverlight, Java etc. It might help to bear in mind that your sketch is written in a language that is essentially C++.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Wiscon
Offline Offline
Newbie
*
Karma: 1
Posts: 22
Admin whatisacnc.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Howdy I am new to arduino. I have written my first sketch to read the analog 0 port and turn on several LED’s. I would like to know which programming software is the easiest way to send the info to the computer to print on the screen ( VB-6, C++,VB-2010. Etc.). Right now all I want to do, is print the values from analog in. I have Visual basic-6
Thanks for any help

Any language you choose that is "server side" is the correct decision, so if you are more of a Java guy or PHP programmer you can use either one to send and receive packets from or to the Arduino.

How it works:
The Arduino PCB(Printed Circuit Board) has a little chip on it called a TFID IC (Integrated Circuit) that makes your computer see the USB as a COM port. The COM port is generally found on older machines, the large COM ports have 25 pins and are known as DB25 ports.
When you use a GUI (Graphical User Interface) the program sends Packets of Data to the USB port, the Arduino listens for the packet and does so at extremely high speeds thanks to the Crystal, once the information is received by the Arduino AVR sketch takes over, if you want to receive data the GUI you wrote using the language of choice does whatever you have asked of it once receiving the data packet.

So it is entirely up to you, the real question here is what information are you trying to send to the computer? What are you trying to accomplish?

Cheers,
Rob
http://whatisacnc.com
Logged

http://whatisacnc.com
The frustration of a CNC

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Arduino PCB(Printed Circuit Board) has a little chip on it called a TFID
Well, the letters are all there, just in the wrong order.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 44
Posts: 2810
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah But close counts only with horseshoes and... handgrenades...

Bob
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Wiscon
Offline Offline
Newbie
*
Karma: 1
Posts: 22
Admin whatisacnc.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Arduino PCB(Printed Circuit Board) has a little chip on it called a TFID
Well, the letters are all there, just in the wrong order.

What are you saying?
 the PCB is the board made from fiberglass and copper, it contains the IC (Integrated Circuit). In this case the IC is the TFID.
So how are my letters in the wrong order my friend.
I don't mind being wrong and respect your criticism, can you explain how what I stated is incorrect?

Thanks for all your help.
Logged

http://whatisacnc.com
The frustration of a CNC

SE USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

FTDI (future technology devices international) makes USB to rs232 bridges among other things, and was used on the arduino's up till the UNO, after that its a ATMEGA somewhat similar to the main processor on the arduino, programed to behave the same way (microchip also makes one thats a programmed PIC, though its a bit junky)
Logged


Wiscon
Offline Offline
Newbie
*
Karma: 1
Posts: 22
Admin whatisacnc.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Still don't know what I said wrong.....
Logged

http://whatisacnc.com
The frustration of a CNC

Pages: [1] 2   Go Up
Jump to: