Posts: 91
Threads: 13
Likes Received: 24 in 17 posts
Likes Given: 3
Joined: Sep 2017
Reputation:
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?
• Posts: 1,590
Threads: 89
Likes Received: 1,283 in 768 posts
Likes Given: 1,274
Joined: Jan 2017
Reputation:
31 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
• Posts: 12,099
Threads: 125
Likes Received: 3,739 in 2,836 posts
Likes Given: 99
Joined: Feb 2017
Reputation:
388 22-Sep-2017, 01:58 PM (This post was last modified: 22-Sep-2017, 01:59 PM by voodoo614.) 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.
• Posts: 12,099
Threads: 125
Likes Received: 3,739 in 2,836 posts
Likes Given: 99
Joined: Feb 2017
Reputation:
388 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.
• Posts: 91
Threads: 13
Likes Received: 24 in 17 posts
Likes Given: 3
Joined: Sep 2017
Reputation:
1 22-Sep-2017, 08:13 PM (This post was last modified: 22-Sep-2017, 08:41 PM by flightmode0.) 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
• Posts: 12,099
Threads: 125
Likes Received: 3,739 in 2,836 posts
Likes Given: 99
Joined: Feb 2017
Reputation:
388 can you type "resource" and post that?
• Posts: 91
Threads: 13
Likes Received: 24 in 17 posts
Likes Given: 3
Joined: Sep 2017
Reputation:
1 # 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).
• Posts: 91
Threads: 13
Likes Received: 24 in 17 posts
Likes Given: 3
Joined: Sep 2017
Reputation:
1 Thanks for the support. I found some videos on servo tilt and channel forwarding. Will link if useful.
• Posts: 12,099
Threads: 125
Likes Received: 3,739 in 2,836 posts
Likes Given: 99
Joined: Feb 2017
Reputation:
388 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.