Using a PCto controll a board remotely

Hi, i want to send remotely signals to a board over my PC. The board has this antenna to communicate:(https://www.amazon.de/gp/product/B07PQPFTWZ/ref=ewc_pr_img_1?smid=A3SCFTIO8CSK1X&psc=1) Another board is at the pc,
I've thought of using a micro at the pc and add also an antenna to the micro. Then i would like to enter for examle w at the pc and the board receive it over serialport. But I can't use the arduino IDE
My idea was to send numbers for each status. I know it's sounds a bit weird.
My first question: Is that possible?
My second question: How can I do that?

1 Like

I would say vague, not weird. You need to explain more.

This is a nRF24L01 variant. Look for the NRF24L01 libraries and the included examples for use. Note that this module uses SPI and not the serial port.

ok, but please do not say it's to complicated. I want to build a drone. I've already written the controlling code and in this first version of it there are nine possibilties of moving (No move: 0 ; Forward: 1 ; Backward: 2 ; Left: 3 ; Right: 4 ; Low: 5 ; High: 6 ; TurnLeft: 7 ; TurnRight: 8) Note: I know it isn't fine. My Laptop should be a sort of controller. I want to enter "w" and the drone should move forward. Here's the link: Dropbox - Drone

Are you expecting any feedback from your drone to your controlling program?

Yes, something to make clear the drone has gotten the instructions.
I would like to send picture too, but it's too early for that.

I am not going to say that is to complicated.

First the drone only should send a signal for confirming receiving a signal.

Is the program you wrote expecting that signal and describe it, please.

What do you mean by the 'drone only' ?

Are there other devices listening in on the commands sent from the PC ?

All data are stored on a computer, or transmitted elsewhere, as binary numbers.

That should be a sort of one way communication(from PC(Server) and drone(client). The signal that comes back from the drone is a integer(signalprotocol), which is to protocilze received and fails.

I know(I'm not a dummie)
For the status that means:
Dezimal: No move: 0 ; Forward: 1 ; Backward: 2 ; Left: 3 ; Right: 4 ; Low: 5 ; High: 6 ; TurnLeft: 7 ; TurnRight: 8
And Binary: No move: 0 ; Forward: 1 ; Backward: 10 ; Left: 11 ; Right: 100 ; Low: 101 ; High: 110 ; TurnLeft: 111 ; TurnRight: 1000
Really, I can't understand what you want to say to me. And I think you meant "and" instead of "or". PS: I have updated the code

I am trying to understand why you think it is "weird" to send numeric commands, as that is the only possibility.

My first question: Is that possible?

Of course it is.

My second question: How can I do that?

Follow any of the countless tutorials on line (including on this forum) for using Arduino to send data by NRF24L01 radio.

Because a status can only have one number of movement status. There is nothing between it. That means you can only fly straight, cant you?

You certainly are confused!

But good luck with your project.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.