Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Camera Switcher with betaflight
#1
I have a minicube F3. Can I configure betaflight to output pwm on a pin to control a camera switcher(from switch on taranis)
Can the led pin be repurposed?
Other possibilities?
Reply
Login to remove this ad | Register Here
#2
hi flightmode0 welcome to intoFPV!

What kind of camera switcher?

I only see 4 PWM outputs and I am guessing they're for the motors as usual. When looking at the board there is an RX2 and TX2... maybe UART2? Could you use that? I am not sure if that's where your receiver hooks up though, it appears that it may connect near the LEDs

This is the product I looked at for my answer. If yours is different then let us know.  https://www.banggood.com/de/Eachine-Mini...gL3JPD_BwE
carl.vegas
Current Quads: Operational: Diatone GT2 200 In need of repair: Bumble Bee, tehStein,  Slightly modified Vortex 250 
Reply
#3
It depends on what kind of switching you need. Off the top of my head I can think of two ways to do what you want.

Using PWM, but unfortunately you don't have an extra one. With pwm you can get a micro pwm switch.

The other way would be to use a relay. Connect to beeper and change beeper tone to constant. So when you flip the beeper switch it, it switch the relay. But it also mean you have to remove all other beeper tone.

I have never tried these ideas, so take it as working ideas.
Reply
#4
Thank you. This sees like a nice community.

http://www.micronwings.com/Products/FPVC...ndex.shtml

I'm rather new to RC electronic in general.
Reply
#5
That looks promising. Only problem is you don't have an extra PWM output on your FC. You might be able to remap PWM 5 to the LED.
Reply
#6
Is there anything hindering soldering directly to a MCU pin, even if has not been broken out on the board?

I think I need to do some reading on this.

This is what I get when I type in resource list in the CLI:
A00: ADC_BATT
A01: ADC_CURR
A02: MOTOR 4
A03: MOTOR 3
A04: MPU_CS
A05: SPI_SCK 1
A06: SPI_MISO 1
A07: SPI_MOSI 1
A08: FREE
A09: SERIAL_TX 1
A10: SERIAL_RX 1
A11: FREE
A12: FREE
A13: FREE
A14: FREE
A15: FREE
B00: FREE
B01: OSD_CS
B02: FREE
B03: LED 1
B04: PPM
B05: USB_DETECT
B06: I2C_SDA 1
B07: I2C_SCL 1
B08: MOTOR 1
B09: MOTOR 2
B10: FREE
B11: FREE
B12: SDCARD_CS
B13: SPI_SCK 2
B14: SPI_MISO 2
B15: SPI_MOSI 2
C13: MPU_EXTI
C14: SDCARD_DETECT
C15: BEEPER
F00: FREE
F01: FREE
F04: FREE
A00: ADC_BATT
A01: ADC_CURR
A02: MOTOR 4
A03: MOTOR 3
A04: MPU_CS
A05: SPI_SCK 1
A06: SPI_MISO 1
A07: SPI_MOSI 1
A08: FREE
A09: SERIAL_TX 1
A10: SERIAL_RX 1
A11: FREE
A12: FREE
A13: FREE
A14: FREE
A15: FREE
B00: FREE
B01: OSD_CS
B02: FREE
B03: LED 1
B04: PPM
B05: USB_DETECT
B06: I2C_SDA 1
B07: I2C_SCL 1
B08: MOTOR 1
B09: MOTOR 2
B10: FREE
B11: FREE
B12: SDCARD_CS
B13: SPI_SCK 2
B14: SPI_MISO 2
B15: SPI_MOSI 2
C13: MPU_EXTI
C14: SDCARD_DETECT
C15: BEEPER
F00: FREE
F01: FREE
F04: FREE
Reply
#7
can you type "resource" and post that?
Reply
#8
# resource
resource BEEPER C15
resource MOTOR 1 B08
resource MOTOR 2 B09
resource MOTOR 3 A03
resource MOTOR 4 A02
resource MOTOR 5 B07
resource MOTOR 6 B06
resource PPM B04
resource LED_STRIP A08

I have not done anything to this flight controller yet. This will be my first real practice build (X2 ELF).
Reply
#9
I did some research. My original idea is likely not going to work. You will probably have to use servo control on a switch. You will have to remap the servo output to the LED pad or beeper pad. Unfortunately, I have never mess with servo control and probably at the end of my knowledge to help you. Here is some reading you can do, and hopefully someone here can help you.

https://github.com/betaflight/betaflight...LT-for-3.1
Reply
#10
Thanks for the support. I found some videos on servo tilt and channel forwarding. Will link if useful.
Reply
#11
I think I figured it out. Make sure you save a copy of your original resource assignments before making these changes.

In CLI type

resource led_strip none
resource servo 1 A08
save

You need to add a switch to your TX mixer. We will use AUX1(channel 5) as an example.

Go to the servo tab in the configurator (you might have to toggle expert mode). On the servo 0 line, check the A1 box.

Now you can wire your pwm switcher to the LED pad. In theory, this should work.
[-] The following 1 user Likes voodoo614's post:
  • unseen
Reply
#12
Nice. I wil gave a go at it when I get back home tomorrow. Smile

Reply
#13
Keep us posted
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Betaflight OSD not showing any information, but OSD menu is working gwennoyel 22 9,171 19-Apr-2024, 08:35 PM
Last Post: Maxym666
  Camera Plug Wiring segler999 5 371 30-Dec-2023, 05:17 PM
Last Post: segler999
  Camera and VTX connection best practice? husafreak 9 675 24-Dec-2023, 10:11 PM
Last Post: husafreak
  Betaflight OSD not showing any information in goggles Anton Sky 7 756 22-Oct-2023, 08:57 AM
Last Post: Anton Sky
Question Help Betaflight OSD is not working (F405v3, TX800, Foxeer T-Rex Micro) maggrave 5 1,250 20-Oct-2023, 11:17 PM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here