Pages: [1]   Go Down
Author Topic: 4 PWM inputs to control camera zoom/focus etc  (Read 699 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all,

This should be simple...

I want to use a arduino mini to take 4 channels from my RC receiver (pwm) and control a camera zoom, focus, etc. The camera has the leads that control the camera when grounded. so, if I ground one lead, it zooms in, another lead it zooms out, another lead focus near, another lead focus far etc. So, would I need to have relays for each lead or can the arduino short the leads to ground by itself? Anyone have a similar set of code to get me started?

Thanks
Logged

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11179
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to know the voltage on those leads, and how much current they flow when they're shorted to ground. If it's less than 5V and about 20mA then the Arduino can sink it directly, otherwise you'd need to go through a transistor.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 21
Posts: 1670
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Something like this ?

http://rcarduino.blogspot.com/2012/04/how-to-read-multiple-rc-channels-draft.html

Duane B

rcarduino.blogspot.com

Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the info. I will check the voltage and the info on that page and report back.
Logged

Pages: [1]   Go Up
Jump to: