For my project I'm trying to control several PWM driven devices using an Arduino Mega, which receives its instructions from a laptop running Windows 8.
What I'm wondering is: is it possible to have a DIRECT ethernet connection between the laptop and the arduino board? (i.e. No router)
I know it's possible for computer-computer, just wondering whether this could be done with Arduino.
is it possible to have a DIRECT ethernet connection between the laptop and the arduino board?
Hi ,
You can connect the arduino sheild to the computer by using the ethernet cable , you just need to assign IP for you computer and assign subnet mask , I don't know about it in windows 8 , but you will see it wired properties in network configuration , I have used many times with windows 7 and ubuntu , you can set it as a server and let your laptop as a client , then you can test the arduino , maybe in a web browser.
You'd be relying on the PC to auto-detect the uplink connection. Worst case, if your PC's NIC doesn't support that, is that you'd need to connect them via a hub.
Right, but it should be ok since most recent network cards will have auto-mdix afaik.
Another question: How reliable will the connection be if it's connected like that (Using UDP) over 50m of wire? I need to know this because I don't want any commands to be missed out. (Or perhaps I should use TCP/IP for more reliable communication?)
alpheustest:
I have decided to use TCP for the guaranteed delivery.
TCP does not guarantee delivery either. It is reliable in the sense that if it tells you delivery was successful then you can know that it was in fact successful. Failures can still occur and you will still need to deal with them.
The "router" (wrongly described, actually a network "switch" or "hub", often part of a router) is completely unnecessary. It simply enables multiple devices to be connected together instead of just two.
To correct an earlier comment,
PeterH:
You'd be relying on the PC to auto-detect the uplink connection. Worst case, if your PC's NIC doesn't support that, is that you'd need to connect them via a hub.
Guys I cant manage to connect my Ethernet Shield to the Internet without the router.
I have connected the shield to the Ethernet output of my laptop , I have assigned a static IP to the Local Area Network of my laptop and still i cant get it to work.
Something to add, is that I have tried the following guide, but I dont know how to manually assign IP address to my Arduino Mega.