I need code for arduino and joystick to control fpv camera.

I need code for arduino joystick with arduino nano or similar, for control my fpv camera pan and tilt.
I want to control camera pan and tilt similar i control game view in the games with ps4 ????

If you want someone to write code for you please click on 'report to moderator' and ask them to move this to gigs and collaborations, please indicate how much you are willing to pay.

If you want to learn to write code start with the examples in the Arduino IDE and on this web site, and ask for help when you get stuck. Please follow the forum rules:
General guidance and
How to use this forum

We are not code-monkeys who will do your project for you.

If you provide what exactly you want to do, what hardware you already have and what you have in mind, we might be able to provide some insights on how to obtain that.

Untill that time, good luck.

What did you find when you searched for "Arduino joystick pan/tilt"? It looks to me like plenty of people have done something very similar and shared all their project information.

Steve

Sorry, my copy paste error from google translator. I do not need code. Ok I will be more specifically. I need advice from code users because i know 3 main types of code for arduino joystick(not for hall or rotary pots or usb).

  1. "without servo holding position".
  2. "with servo holding positions".
  3. "with servo holding positions and with pots value average calculation for better acuracy ".

I will make camera controll hub with joystick and switches for zoom camera and pan-hold gimbal control via PPM output for ER9x. I will use joystick hub to control 10x zoom camera and gimbal for my uav. I already write code for camera control (Visca protocol) and gimbal. But i can not decide what type of code will be best for joystick because i did not have joystick already.

Hello Sitas,
Thank you. I'm sorry, I don't know enough about what you want to do to offer anything helpful. I hope someone else can help.

Thanks.

sitas:
because i know 3 main types of code for arduino joystick(not for hall or rotary pots or usb).

  1. "without servo holding position".
  2. "with servo holding positions".
  3. "with servo holding positions and with pots value average calculation for better acuracy ".

[.....]

But i can not decide what type of code will be best for joystick because i did not have joystick already.

If you know how to write code for those three options then I think the only way to answer your question is by trying each of them when you do get your joystick.

IMHO it is a big mistake to try to write a complex program without testing after every few lines of added code.

...R

Robin2:
If you know how to write code for those three options then I think the only way to answer your question is by trying each of them when you do get your joystick.

Totally agree with Robin here. I don't think the hardware choices depent on the type of control algorithm, so get yourself a joystick first. Then, start from the simpelest version, and upgrade if results are not statisfactory.

"But i can not decide what type of code will be best for joystick because i did not have joystick already."

I've made a number of pan/tilt setups using servos. Probably what you will have to deal with is that most joysticks spring return to the centered position when released. That sometimes interferes with peoples ideas of how their joystick controlled pan/tilt will work.

Hm... i can't even decide that type of the joystick will be better for zoom camera. With rotary pots, hal sensors, regular pots? Or arduino joystick for drone gimbal with zoom camera is a good soliution ?

What sort of zoom camera?

Novoxy SK-ART1130A. Analog out PAL, 10x zoom.

Just begin the project with whatever you find inside your scrap box.