Uh okay thanks so I type my command and enter etc in void loop ?
shudzone:
Uh okay thanks so I type my command and enter etc in void loop ?
I think you should start with a bit more understanding of an Arduino. That is programming, not giving commands.
Start with the examples in the IDE. The first you will see is Blink. Make sure you understand what's going on, then continue to the other examples.
It seems to me that you want to type commands on the computer, that are then sent to an Arduino (over the USB/Serial interface), which the Arduino then interprets and acts upon. The communication part (where the Arduino receives & parses the commands) is explained here. But your questioning seriously makes me believe that to be able to understand that tutorial you have lots of basics to go through first - hence the IDE examples. Go through them, play with them, make sure you understand what's going on, and you'll have no problem understanding that tutorial and implementing your own program.
My interpretation of OP's request is different. Arduino issues command or sequence of commands and gets data back (e.g. dir listing).
See reply #10.
Could be... nonetheless I think OP should seek to understand Arduinos (and whatever they're trying to do) a bit better than what they have shown so far. And in either case, understanding Serial communication and how to deal with it is required.
Thanks very much for the answers and I'm gonna try to understand better arduino.
Which hardware did I need for my project? I got lot of arduino hardware but idk what I need
And sterretje you are right this is exactly what I want to do
Any Arduino that has a USB/Serial interface can do this. So not the Pro Mini but just pretty much all other common boards. Of course you need a matching USB cable as well. Or if you to use a Pro Mini: an FTDI cable.
shudzone:
Which hardware did I need for my project? I got lot of arduino hardware but idk what I need
Maybe you should list what you have so we can advise which one gives you the best change.
Uh I got 7 arduino boards (4uno and 3nano) all the cables and different starting sets like elegoo starter pack etc
shudzone:
Uh I got 7 arduino boards (4uno and 3nano) all the cables and different starting sets like elegoo starter pack etc
If you want to emulate keyboard input to the PC, you need a processor with HID capability. The Uno and Nano do not have that.
?
Thanks everybody for help I think I can continue by myself so thanks you so much
The HID part to send commands to the PC is the easy part. The communication between PC and the Arduino to transfer the requested data reliably will be the difficult one.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.