Keyboard function

hello
I am having some problem with programming my arduino.
First I will explain what my project is about.
Im gonna buy an arduino BT (bluetooth) and Im gonna make a car with the arduino on it. I want to control the car from my computer with the arrowkeys on my qwerty keyboard. I was looking for the function in the code for this. My brother told me what it was in code C, it was something like: void (keyboard.keyUp....) {
But we couldnt find the function in the list of arduino codes, we concluded that it doesnt exist for arduino (true?).
Please help me!
I want to let my car go forward, backward, left and right.
I hope you can help me further, would be very nice :slight_smile:

Hello,

you sound very confused.

If your car has an Arduino mounted and you control it remotely from your PC, why should the Arduino provide you with keyboard codes for a device it doesn't have? That sounds more like you should look up in the documentation of your PC-Programming platform and not on the Arduino side how to handle keyboard input.

As a general note, you should first clean make at least a rough concept about how your system is going to work. Get rid of all the "Magic happens here" parts. My guess is you're going to need about 4 ports in your software:

[1] On your PC something to handle the key commands you issue.
[2] On your PC something to send the commands read in Step 1 to the Arduino
[3] On the Arduino something to handle the received commands from the PC created in Step 2
[4] On the Arduino something to execute the received commands from step 3 on the car hardware to change direction or speed.

Each of these modules can be refined and tested individually, usually quite independent of the rest. In Step [1] you will work only on your PC and work on the user interface, Step [4] will deal with your car hardware and how to attach it to the Arduino, in Steps [2] and [3] you will mess around with the communication between the PC and the Arduino.

Good luck.

Korman