Pages: [1]   Go Down
Author Topic: Arduino ethernet to digital pins  (Read 561 times)
0 Members and 1 Guest are viewing this topic.
GTA, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 10
The power is in the code.....
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well there is a possibility that I'm just blind, however I have not been able to find an answer to this issue. Is it possible to access the serial pins or any other digital pins through the ethernet shield as a virtual serialport? I'm helping someone setup a remote control paintball turret. It currently is controlled from a vb.net application with a joystick, through the serial port. Serial port -> Xbee -> Xbee -> Arduino. There is video feedback via WIFI from a web cam. If possible, I'd like to eliminate the xbee and just go through wifi. Computer -> Wifi Router-> Arduino Ethernet shield. It would be very easy to just access it as a virtual serial port, that way I wouldn't have to worry about rewriting the vb.net code.

Any thoughts?

Thanx
Logged

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

Quote
Is it possible to access the serial pins or any other digital pins through the ethernet shield as a virtual serialport?
Access pins, and reading serial data, as both possible.

Quote
It would be very easy to just access it as a virtual serial port, that way I wouldn't have to worry about rewriting the vb.net code.
Start worrying. The Ethernet shield is not an extension of the serial port.

The Arduino with Ethernet shield is either a client, periodically polling a server for information, or it is a server, periodically responding to GET requests.

You most likely want the Arduino to act as a server, responding to GET requests. The GET request will convey additional information that tells the Arduino what to actually do,

That is going to require a major rewrite of the VB application.
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9671
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If possible, I'd like to eliminate the xbee and just go through wifi. Computer -> Wifi Router-> Arduino Ethernet shield. It would be very easy to just access it as a virtual serial port, that way I wouldn't have to worry about rewriting the vb.net code.

As long as the the joystick is connected to the computer, the computer will have to be running some type of program to support the activity. If you want to use the ethernet module for lan/wan connections, the probable communication choises  would be http, telnet, and UDP protocol. You would need to develop the appropriate application on the pc to support these. The arduino with an ethernet shield would have a server application to respond to the commands from the pc.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: