Troy City, MA.
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« on: January 29, 2011, 12:33:36 pm » |
I have been a big fan of arduino ever since i saw it on Instructables. I bought a arduino duemilanove for my first explorations into the PLC. i recently received a robot from Robotshop.com, his name is Doug, he has the same micro-controller the other board i own. As much as i like the arduino programming platform adn i know i can easily write a program to turn his motors on and off with, lets say, a wii nuchuck. I like the idea of using Visual Studio 2010 to control him. i have a bunch of sensors and stuff that it would be cool to see the inputs on a screen, like the level of ambient light or the temperature and display it on a form as an actual value. I do not know where to begin, I've been all over this forum, google, VB Help, and i can't get it to work. I've tried firmata and a sample program that is up in the playground for arduino. I feel if i can figure out how to press a button in VB 2010 and get the LED on Pin 13 to light up i could expand upon this and get the motor to work and get read outs from my sensors. Please help.
John the Undead
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35471
Seattle, WA USA
|
 |
« Reply #1 on: January 29, 2011, 06:31:17 pm » |
On this page, http://arduino.cc/playground/Main/InterfacingWithSoftware, down near the bottom, is a link to Visual Basic.NET. That would be a good place to start.
|
|
|
|
|
Logged
|
|
|
|
|
Troy City, MA.
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #2 on: January 30, 2011, 07:36:03 pm » |
That was the first thing i tried and that didn't work at all. i loaded up the standard firmata and tried both VB programs the tutorial had and neither worked.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35471
Seattle, WA USA
|
 |
« Reply #3 on: January 31, 2011, 06:08:04 am » |
Forget Visual Basic. Branch out a little, and learn some C#. Much easier to get C# to talk to the serial port, and get data back from it. I have a sample application that I could share, if you wanted to go that route.
|
|
|
|
|
Logged
|
|
|
|
|
Troy City, MA.
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #4 on: January 31, 2011, 08:14:56 am » |
now i know that i can use C# in VB. see what i'm looking for is to be able to get read outs and have them on the screen in a sort of UI with controls and stuff. So do you mean use C# in VB instead of the VB language or use C# in another program and if so can i still have a UI similar to VB?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35471
Seattle, WA USA
|
 |
« Reply #5 on: January 31, 2011, 08:27:17 am » |
C# allows you to create Windows forms applications. So, I mean for you to dump Visual Basic altogether, and use C# to build the form and talk to the serial port.
|
|
|
|
|
Logged
|
|
|
|
|
Troy City, MA.
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #6 on: January 31, 2011, 09:15:03 am » |
I'm not married to VB 2010 so bring on the sample code! Which environment can i code in C#?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35471
Seattle, WA USA
|
 |
« Reply #7 on: January 31, 2011, 10:01:40 am » |
Microsoft offers Visual C# Express for a very reasonable price. Free.
|
|
|
|
|
Logged
|
|
|
|
|
Troy City, MA.
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #8 on: January 31, 2011, 03:01:59 pm » |
so, Paul, how about that sample code? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 311
Posts: 35471
Seattle, WA USA
|
 |
« Reply #9 on: January 31, 2011, 04:22:21 pm » |
I clicked on the e-mail link under your avatar, and sent you an e-mail. It that didn't work, PM me with a valid e-mail address, and I'll send it again.
|
|
|
|
|
Logged
|
|
|
|
|
|