Offline
Newbie
Karma: 0
Posts: 10
|
 |
« on: August 18, 2012, 02:08:58 pm » |
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
Faraday Member
Karma: 33
Posts: 3626
@ssh0le
|
 |
« Reply #1 on: August 18, 2012, 02:37:47 pm » |
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
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25566
Solder is electric glue
|
 |
« Reply #2 on: August 18, 2012, 02:49:31 pm » |
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
Edison Member
Karma: 29
Posts: 1148
Arduino rocks
|
 |
« Reply #3 on: August 18, 2012, 03:58:23 pm » |
In .Net is very easy, just 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
|
|
|
|
|
Copenhagen / Denmark
Offline
Edison Member
Karma: 5
Posts: 2340
Do it !
|
 |
« Reply #4 on: August 18, 2012, 04:07:24 pm » |
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
Faraday Member
Karma: 33
Posts: 3626
@ssh0le
|
 |
« Reply #5 on: August 18, 2012, 04:21:13 pm » |
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
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6400
-
|
 |
« Reply #6 on: August 18, 2012, 06:33:25 pm » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #7 on: August 18, 2012, 06:44:41 pm » |
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
Tesla Member
Karma: 89
Posts: 6400
-
|
 |
« Reply #8 on: August 18, 2012, 07:36:41 pm » |
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
|
|
|
|
|
Wiscon
Offline
Newbie
Karma: 1
Posts: 19
Admin whatisacnc.com
|
 |
« Reply #9 on: October 05, 2012, 11:39:39 am » |
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
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #10 on: October 05, 2012, 12:17:55 pm » |
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.
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2311
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #11 on: October 05, 2012, 04:48:44 pm » |
Yeah But close counts only with horseshoes and... handgrenades...
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Wiscon
Offline
Newbie
Karma: 1
Posts: 19
Admin whatisacnc.com
|
 |
« Reply #12 on: October 05, 2012, 06:11:34 pm » |
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
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3626
@ssh0le
|
 |
« Reply #13 on: October 05, 2012, 06:36:25 pm » |
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
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Wiscon
Offline
Newbie
Karma: 1
Posts: 19
Admin whatisacnc.com
|
 |
« Reply #14 on: October 05, 2012, 06:38:36 pm » |
Still don't know what I said wrong.....
|
|
|
|
|
Logged
|
|
|
|
|
|