Offline
Newbie
Karma: 0
Posts: 49
|
 |
« on: April 14, 2012, 02:53:23 am » |
Hi i am a newbie in arduino..any guidence here can teach me on how to send the text file from pc to arduino?
i am search through google...but it seem likes complicated. Any 1 can guide me?thanks.
I tried using VBS and Gobetwino....but it is complicated for me...really need help here.
the content in my file is a sensor data: X:0012 Y:ffef Z:00ff
how do i read this txt file and send to arduino?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #1 on: April 14, 2012, 03:07:56 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #2 on: April 14, 2012, 03:31:35 am » |
hi , thanks for reply, just forgot to mentioned i am using windows...so any method is suit for me?i check on the link all the times since i start my project...but i have no idea on which 1 is suit for me...any more details?thanks
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #3 on: April 14, 2012, 03:34:43 am » |
The OS does not really matter. The question is which programming language you want to use on your PC. Choose whatever you prefer and learn to use the serial interface in the language of your choice. I would choose either C# or Python depending on what I am after. Your preferences might be different. http://arduino.cc/playground/Main/InterfacingWithSoftware
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #4 on: April 14, 2012, 03:38:09 am » |
The OS does not really matter. The question is which programming language you want to use on your PC. Choose whatever you prefer and learn to use the serial interface in the language of your choice. I would choose either C# or Python depending on what I am after. Your preferences might be different. http://arduino.cc/playground/Main/InterfacingWithSoftwareFrom your words, is that mean that i need to use another language to work on this?it cant works only if only using ARDUINO IDE? Lets say i choose C#...may i know where can i get the sample code of related project??thanks....
|
|
|
|
|
Logged
|
|
|
|
|
Hannover, Germany
Offline
Newbie
Karma: 0
Posts: 48
|
 |
« Reply #5 on: April 14, 2012, 03:43:30 am » |
Don't know GoBetwino, but when I look here: http://arduino.cc/playground/Interfacing/GoBetwino I see in the list what we can do with it: "Read a file and return data to Arduino." Aren't there any examples in the package? (I've not downloaded it). Perhaps Processing will help? http://www.processing.org, too. best regards Andreas
|
|
|
|
« Last Edit: April 15, 2012, 03:29:48 am by danimath »
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #6 on: April 14, 2012, 03:45:20 am » |
If you want to automatically transmit it this is the way to go. If you want to copy it manually you could use the serial monitor. If you are satisfied to transmit it statically you could compile it into your program. Until you explain clearly what you want to achieve more specific advice is close to impossible.
Maybe the GoBetwino will fit you bill but unless you get more specific nobody can tell you.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #7 on: April 14, 2012, 03:59:20 am » |
Hi Andreas...thanks for your info. I am not using processing before so i just scare will make this become complicated...is it suitable for my case?if yes then i probably will work on this....about gobetwino...i cant find any examples through their blog...so this make me struggling....anyway thanks
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #8 on: April 14, 2012, 04:01:50 am » |
If you want to automatically transmit it this is the way to go. If you want to copy it manually you could use the serial monitor. If you are satisfied to transmit it statically you could compile it into your program. Until you explain clearly what you want to achieve more specific advice is close to impossible.
Maybe the GoBetwino will fit you bill but unless you get more specific nobody can tell you.
Now i am just a beginner to face with whatever i am working on. These kind of stuff is strange for me...so i need some example to start...after searching the information that you provided...it is seem like less what i had found regarding to my case....so to read a txt file and send to arduino, is this necessary to use another software to do it? cant just use arduino code?
|
|
|
|
|
Logged
|
|
|
|
|
Copenhagen / Denmark
Offline
Edison Member
Karma: 5
Posts: 2338
Do it !
|
 |
« Reply #9 on: April 14, 2012, 04:25:43 am » |
In the GoBetwino download there's a PDF file describing the sample code that also comes with the download.
In there you can see how your Arduino program can ask GoBetwino to send over a line from a text file.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #10 on: April 14, 2012, 06:56:14 am » |
In the GoBetwino download there's a PDF file describing the sample code that also comes with the download.
In there you can see how your Arduino program can ask GoBetwino to send over a line from a text file.
have u ever used it?i checked on this software already. I read that it is not fully tested for windows 7...just wondering how to use to send the text file to arduino....
|
|
|
|
|
Logged
|
|
|
|
|
Copenhagen / Denmark
Offline
Edison Member
Karma: 5
Posts: 2338
Do it !
|
 |
« Reply #11 on: April 14, 2012, 08:22:57 am » |
I made it  You can not use it to send a text file as a whole unit to Arduino, but you can use it to send a line at a time from a text file. Check the documentation page 26.
|
|
|
|
« Last Edit: April 14, 2012, 08:27:12 am by MikMo »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #12 on: April 15, 2012, 02:39:02 am » |
I made it  You can not use it to send a text file as a whole unit to Arduino, but you can use it to send a line at a time from a text file. Check the documentation page 26. Hi i also done it with given downloadtest.pde in sample folder...able to print it at the gobetwino ....but i have to store it into a variable for further calculation...is it possble"?? for example in a line i have : x:ff22 y:f00ef z:ff23 can i stored a = ff22, b= 00ef c=ff23? can i make something like this??? Let's say i have 100 lines with different value.... Can any1 help me out??really appreciate thanks.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 50
Posts: 6546
Arduino rocks
|
 |
« Reply #13 on: April 15, 2012, 02:56:25 am » |
Can any1 help me out??really appreciate thanks. It might be good to Explain the big picture on what you are trying to do. With windows you can send a file to the com port using a simple batch file like below. type hotpix.jpg >com5
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 49
|
 |
« Reply #14 on: April 15, 2012, 03:07:40 am » |
Can any1 help me out??really appreciate thanks. It might be good to Explain the big picture on what you are trying to do. With windows you can send a file to the com port using a simple batch file like below. type hotpix.jpg >com5 ok basically i am using a eval board of adxl345 sensor. I can stored the value to a txt file in my PC. Then i have to send the data in the txt file to arduino to control a servo motor. So since the data is read line by line in each line as i describe previously. How i going to stored each axis value to a variable?
|
|
|
|
|
Logged
|
|
|
|
|
|