Pages: [1]   Go Down
Author Topic: Arduino using PC with USB/VGA (Arduino > PC, not PC > Arduino)  (Read 1213 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, is this possible?

Connect Arduino to a PC with either USB or VGA.
Arduino connects and then creates a folder/file on my computer?

I am NOT aware about how connection is made/initialize/works when connecting a usb/vga to an computer so I would like to get some guidance with that. Links or search terms would be good.

I am aware that arduino can interact with the computer as a keyboard for an example.
I am using a PC, Windows 7 if that's matter.

Best regards!
Logged

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

Quote
Connect Arduino to a PC with either USB or VGA.
These are completely different hardware and software technologies. I don't see how you can consider them interchangeable in any way.

The Arduino can be connected to a USB port. That is how you program it.

The Arduino can not create a file on your PC. It can send data to a serial port. If there is an application running on the PC that monitors that serial port, that application can create a file on the PC, and write whatever it likes to the file (presumably based on data it got from the serial port, but that depends on the program).
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It should be possible with USB if you get a USB Host Shield or re-program the USB interface of the Arduino UNO to make it possible to emulate a USB keyboard.  If you can create files using the physical keyboard it should be possible to create files using an emulated keyboard.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank guys, are there any documents that shows how an interface connects to an pc? Like the win7 initialize an usb and interact to it?
Thanks johnwasser I also thinks that an arduino could create/interact with the computer its connected to.
I also want to know if an arduino could access the computer throw VGA (rs232). And that means not an answer like "no" or "not possible".
Regards!
« Last Edit: November 19, 2011, 07:26:19 pm by dubz » Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 3991
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.obdev.at/products/vusb/index.html
Quote
V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip.

Runs on any AVR microcontroller with at least 2 kB of Flash memory, 128 bytes RAM and a clock rate of at least 12 MHz.
No UART, timer, input capture unit or other special hardware is required (except one edge triggered interrupt).

Be sure to check the Projects pages out if only to see how little hardware can work. A USB HID keyboard set to feed a console window sure -can- run a PC! Setting that up can be automated on the PC side, possibly as a batch file run at Startup.

 

Logged

Examples can be found in your IDE.

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6049
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I also want to know if an arduino could access the computer throw VGA (rs232). And that means not an answer like "no" or "not possible".

VGA is "Video Graphics Adapter."  It is an output.  You can't control anything through the VGA port on a PC.  (So No, Not possible.)

RS232 to a Serial Port which is input and output.  Again, you can't directly control anything on a PC through RS232, unless you have software running on the PC.  (So No, not directly possible.)
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks again guys, so it is USB all they way then.
So for any pc-controlling code to work there must be a program on the pc that establish the connection and listen for input.

If I buy a usb keyboard at the store and then connecting it to the pc, without any drivers/CD, then windows will try to search both offline and online for the drivers. How does that work?
If I order a Atmega microprocessor and wiring that up with an usb port. Is it possible for me to make windows install the unit as an keyboard then? Or could I program a lib/dll that the windows shall install instead?

Regards!
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 3991
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dubz, with USB HID you don't need drivers since they are standard in most O/S's.

You can make an ATTiny with only 8 pins look like a USB keyboard to many PC's for less than $5 in parts.

The 'control program' is called a Console Window, Command Terminal, Shell Interface. -Anything- that can type into one can do a lot to direct operations of the PC. And how hard is it to have a Console run at Startup?

Logged

Examples can be found in your IDE.

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think what you want is for sale here for $79.99:
http://hakshop.myshopify.com/collections/frontpage/products/usb-rubber-ducky
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dubz, with USB HID you don't need drivers since they are standard in most O/S's.

You can make an ATTiny with only 8 pins look like a USB keyboard to many PC's for less than $5 in parts.

The 'control program' is called a Console Window, Command Terminal, Shell Interface. -Anything- that can type into one can do a lot to direct operations of the PC. And how hard is it to have a Console run at Startup?


Thanks! Will look it up  smiley
And thanks for all the response, very helpful!
Best regards!
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 3991
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Awesome and scary at the same time!
Logged

Examples can be found in your IDE.

Pages: [1]   Go Up
Jump to: