Hi all!
I recently got interested in the Arduino in order to build a remote controlled vehicle per WIFI like the one detailed on JBProjects.
The question I have at the moment, before I go and buy stuff, is whether I can use the USB2serial function of the Arduino Mega to interface it with a router/PC via USB. I know it is programmed via USB and I've read that there's something to be considered about it automatically resetting itself. But I am not sure, whether in the I end I could use the USB to interface the programmed Arduino Mega with my router/PC.
I already own a router with OpenWRT and it has a USB port.
This way I wouldn't have to physically modify it.
I would enjoy hearing your comments.
Thanks,
Mike
The Arduinos have a USB-to-Serial chip that connects the USB port to the serial pins. The Arduino IS not a USB device.
USB devices are either host devices or slave devices. The Arduino is a slave device.
It isn't clear exactly how you want the Arduino to be connected to the router, or how connecting the Arduino to the router would make for a wireless robot.
Well my idea would be to install the driver for the ATmega8U2 USB-to-serial converter on the OpenWRT of my router and thus have a COM port between the router and the Arduino Mega.
That way I could interface the two over a serial port without having to modify the hardware of the router or having to buy anything else.
So what do you guys think?
Thanks for the reply by the way...
Forgive be for not understanding what you are trying to accomplish.
The router is not a wireless device. It is tethered by the ethernet cable connected to it. So, connecting the Mega to the router with a wire makes the Mega a tethered device, too. How will the Mega then control remote controlled vehicle? What will be the non-wired connection between the vehicle and the tethered Mega? How will the Mega control anything on the vehicle.
Perhaps a picture or a block diagram or something is needed. I'm not seeing something.
Ok. Sorry. I should have mentioned that it is a wireless router using WIFI. The project I mentioned earlier uses a Linksys WRT54GL. Here's the link:
http://www.jbprojects.net/projects/wifirobot/
I didn't post the link to the project before, because, as these are my first posts in this forum, I was not allowed to.
So what do you think about the idea of using the USB-to-serial to interface with the router? Do you think it's doable?
Do you think it's doable?
Beats me. I was just trying to understand what it was you were trying to do. The wireless routers I've seen were not wireless in the sense that there were no wires TO the router. They are wireless in the sense that there are no wires FROM the router.
You have, presumably, the instruction manual for the router. What does it say that the USB port is for? Have you hacked the OS on the router, to open it up for external control of the USB/serial port?