Pages: [1]   Go Down
Author Topic: Final Exam Problems (Visual Basic 6.0 + arduino uno)  (Read 753 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone, please help me
i am confuse for my final exam...

what is the code for the 'submit button' ?
if we click the submit, visual basic 6 will send the data (combo box + message box) to arduino uno...

and what is the code for the arduino uno to receive the data ?

pleasee, i beg your help, this is for my final exam
thanks


* send data.jpg (131.21 KB, 960x720 - viewed 26 times.)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
this is for my final exam
In what, Cheating 101?

If this is any kind of programming class, and you hadn't slept all quarter, and had done any of the homework, you'd know how to get data from the text fields. You'd know how to convert, if necessary, those numbers to text. You'd know how to concatenate strings to form the message to send. You'd know to generate an event to deal with the button press.

You'd be expected to know that the only way that the PC can talk to the Arduino is via the serial port, so, you'd be expected to have been awake in class long enough to have learned how to access the help system, where you could search for "serial". I'm sure that there is enough information there (having read it) for a well-rested person to figure out how to open a serial port, how to write data to it, and how to read data from it.

Quote
and what is the code for the arduino uno to receive the data ?
Since you've been sleeping, and I'm feeling generous (hey, don't laugh!), I'll help you out with the first part of the code:
Code:
// global variables go here

void setup()
{
  // do some one-time stuff here
}

void loop()
{
  // stuff that happens over and over again, like reading serial data, goes here
}
Logged

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

Please don't cross-post, it wastes time.
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.

Pages: [1]   Go Up
Jump to: