Pages: [1]   Go Down
Author Topic: vb6, arduino and xbee modules  (Read 568 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi all ,

i would like to know , how to send a reset command from vb6 to arduino uno board , through xbee modules ??

I'm using 2 xbee modules , one is connected to the pc and the other is connected to the arduino board , the problem is once i power on the arduino and the pc,,  the serial transmission begins , and the code on the arduino microcontroller is executed , what i need to do is when i start the vb6 application, it send a command to arduino to start its code from the begining

how can i do that ???

please help
Logged

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

Quote
how can i do that ???
You can't. As was mentioned in your other post on the same topic, you send some data to the Arduino, and make the Arduino do something. NOT RESET, but something. You need to determine what that something is so that the Arduino sends the data that you want, when you want it.
Logged

Wellington, New Zealand
Offline Offline
Sr. Member
****
Karma: 1
Posts: 404
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It doesn't sound like you need to reset the arduino, just add some code to your sketch to make it wait until it receives a go signal from your VB application.  E.g as the last part of your setup function, wait until you receive "go" from the serial port.
Logged


Pages: [1]   Go Up
Jump to: