Thread Tools
Sep 15, 2016, 12:51 AM
Registered User
Thread OP
Mini-HowTo

HOWTO: F4 Revo / Revolution Betaflight / Raceflight - sbus vbat telemetry buzzer OSD


Since there is lack of complete documentation, I decided to concentrate all the needed info on getting the revo F4 to work with BF or RF with all the extras.

By "extras" what i wanted to get was:
SBUS
VBAT
Telemetry
OSD
Buzzer

Very modest request in my opinion

Got the Revo from RTFQ, it is the version like regular revo, without the RF, so its pretty cheap.



SBUS:

SBUS is one of the easy parts:


You connect the SBUS to the "Main" port on the buttom right of the picture, it is UART 1 on the betaflight configuration, you activate it as Serial Rx.
Since the main port has inverter on the Rx, its pretty easy to connect,

The Rx where the SBUS will connect is pin 4
Pin 1 is ground
Pin 2 is VCC (which ever power input you connect to the board, i suggest 5v )


OSD:

This one I connected to the Flexi-IO port on the left.

Pin 1 - ground
Pin 2 - VCC
Pin 7 - Tx
Pin 8 - Rx
This is Serial 6 on the GUI, you just activate it as MSP.


Telemetry:

Almost the trickiest part, the output from Frsky X4R-SB or XSR Rx is inverted, I tried external inverters to invert it back but for some reason it didn't work for me, there are no other inverters on this F4 board, F3 actually has inverters built in.
I found this hack:
https://blck.mn/2016/06/smartport-th...nd-betaflight/

It looks complicated but really, all you have to do is connect from the green arrow to the Tx of the Flexi port which is on the bottom left.
Pin 3 - is the Tx
The solder on the XSR is not that complicated.
Flexi port is serial 3 on the betaflight GUI, just set it up to S.Port telemetry.


VBAT:

On regular naze32 and F3 you connect the battery directly to the board to measure, the Revo expects upto 3.3v, for that you need a voltage divider, these are just two resistors:

For a 4S battery (16.8Volts) the following resistors can be used:

R1: 2.2K
R2: 10 K

I found 10K was hard to calibrate the vbat scale, moved to 15k, 20k would probably be better.
You connect the R2 to the battery VCC,
You connect the R1 to the ground
Then you connect both other ends of the resistors together an to a wire to the Power connector on the bottom of the left side to Pin 4

Volt pin in this pic.



Buzzer:

The trickiest part, the Revo doesn't have a buzzer circuit which usually controlls the buzzer from the ground side of the buzzer, the VCC is constant.
You need to build this:


You need just bc557 and 2.2k resistor
The picture explains it pretty good, the colors on the resistor in the pic are wrong so ignore it.

We then connect the buzzer to Motor 6 PWM output.
This is supported in Raceflight (probably)
Not supported yet in Betaflight 3, might be supported officialy in betaflight 3.1.
What we do is download an alternative Betaflight 3 version which only adds this feature:
http://bit.ly/2cGJanQ
It is compiled on each betaflight release.
We input in CLI:

set enable_buzzer_p6 = ON

If we don't input in cli the buzzer with beep constantly.

Betaflight 3.1 update: No special version needed, just these commands in cli:

beeper_od = ON
beeper_inverted = OFF
resource BEEPER A00



Flashing:

Download, Zadig from here:
http://zadig.akeo.ie/
Start in bootloader mode, by shorting the boot pins - between main and flexi ports on my board.
Connect USB, windows will detect STM bootloader driver, in zadig you select list all devices and replace driver.
You should now have DFU driver and betaflight will see it as a port and you can flash to it, you should keep shortning the boot pins not like Naze32 of F3 where they are shorted only for the boot, they need to be shortened on the Revo until you finish flashing.

Thats it


Some links:

Openpilot docs:
https://librepilot.atlassian.net/wik...lot+Revolution
Openpilot vbat:
http://opwiki.readthedocs.io/en/late...e_current.html
Board - Revo from Raceflight:
https://github.com/rs2k/raceflight/wiki/Board---Revo
Telemtry hack:
https://blck.mn/2016/06/smartport-th...nd-betaflight/
Buzzer source:
https://www.rcgroups.com/forums/show...postcount=5211
Zadiag tutorial for flashing:
https://prestongarrison.com/flashing...th-raceflight/
OSD setup from Raceflight (he got the flexiports-io pins wrong for Revo):
http://raceflightinfo.com/2016/06/01...3d-revolution/
Last edited by sevet; Nov 04, 2016 at 04:58 PM.
Sign up now
to remove ads between posts
Sep 15, 2016, 12:51 AM
Registered User
Thread OP
Now banggood also has an upgraded version of the Revo with vbat already in, for telemetry you will still need the hack.
There is also a buzzer port but it is not implemented it in Raceflight or Betaflight.

http://www.banggood.com/Raceflight-Betaflight-CC3D-REVO-F4-STM32F405-Flight-Controller-with-VbatBuzzer-p-1087561.html?p=RU2509087943201210XZ
Last edited by sevet; Sep 15, 2016 at 07:34 AM.
Sep 15, 2016, 05:01 AM
Test Pilot
teracis's Avatar
Great write up mate, I just received a pair of the Revo acro boards from rtfquads in the mail today and went through the documentation again looking for a vbat in. When I didn't find it I realised I'd probably have to build a voltage divider e.t.c. but I definitely hadn't yet realised about the inversion on the smartport telemetry, you've just saved me a fair bit of time working it all out.

Cheers
Tim
Sep 17, 2016, 07:51 PM
Registered User
where do you download the alternative betaflight 3.0 for buzzer ?
Sep 18, 2016, 02:24 AM
Registered User
Thread OP
Quote:
Originally Posted by yappy
where do you download the alternative betaflight 3.0 for buzzer ?
For some reason it wasn't showing so I created a short URL for it:
http://bit.ly/2cGJanQ
Sep 18, 2016, 12:40 PM
Registered User
Quote:
Originally Posted by sevet
For some reason it wasn't showing so I created a short URL for it:
http://bit.ly/2cGJanQ
Thanks.

Worked.
Sep 20, 2016, 05:26 PM
Registered User
How do you get the buzzer to work with raceflight?
" set enable_buzzer_p6 = ON " does not work.
Sep 20, 2016, 06:20 PM
Registered User
Quote:
Originally Posted by yappy
How do you get the buzzer to work with raceflight?
" set enable_buzzer_p6 = ON " does not work.
It depends on what version you're running. You should be running the newest available beta build anyways, if you want to get the most out of the Revo. It wasn't until beta build 258/59 that it was fixed. With a npn transistor soldered as shown below, the buzzer works correctly.

Sep 20, 2016, 06:28 PM
Registered User
So is it the same CLI command for raceflight ?

How do you activate the beeper.
Sep 21, 2016, 05:30 AM
Registered User
Thread OP
Quote:
Originally Posted by yappy
So is it the same CLI command for raceflight ?

How do you activate the beeper.
Yep, should be same command, but i still didn't test raceflight yet, you do need the newer builds from the web page, the builds on the github are outdated, the diagram 2 posts above this replay is the same as what I put in the OP but, what I put is more visual and self explanatory
Sep 21, 2016, 02:18 PM
Registered User
Quote:
Originally Posted by yappy
So is it the same CLI command for raceflight ?

How do you activate the beeper.

No cli command needed if you use the newer builds from raceflight.net site and solder in transistor as posted in both diagrams in this thread, you just need to have it on pin #6. It works like any other FC with dedicated buzzer pads. You don't even need to define a cli command to deactivate when usb is plugged, it's properly coded into the builds. I'm not sure about other firmware though, some you had to input "set beeper_off_flags=X" to shut it up while in configurator. So annoying.
Sep 27, 2016, 08:35 PM
Registered User
I got my 1st revo acro board from readytoflyquads a few weeks ago, with little documentation I got sbus to work from the through-holes he has now on the boards he ships. That 1st revo order was placed on a Friday and I got my parts on Monday.

I placed an order for a few more boards and a few other things from him a week ago 9/21 and nothing has shipped yet. I'll wait until this Wednesday and file a paypal claim.
Sep 28, 2016, 12:58 AM
Test Pilot
teracis's Avatar
Quote:
Originally Posted by upupupandaway
I got my 1st revo acro board from readytoflyquads a few weeks ago, with little documentation I got sbus to work from the through-holes he has now on the boards he ships. That 1st revo order was placed on a Friday and I got my parts on Monday.

I placed an order for a few more boards and a few other things from him a week ago 9/21 and nothing has shipped yet. I'll wait until this Wednesday and file a paypal claim.
I used the through holes for sbus, they are uart 1 on my board. I think they are parallel to the main port which is the bottom right corner. I plugged in my data logger and nothing would respond so I figured it was the wrong port, I had to use the flexi port beside it (bottom left) instead.
Oct 05, 2016, 03:26 AM
Registered User
I really thank you!!
Oct 06, 2016, 04:33 AM
Registered User
Hi Guys,

I don't know if i am at the right place her, but did not know where to ask:

I bought a Revo Acro Board from rtfq but can't get my PPM Receiver to work....
I tried to connect it through the 10Pin "flexi-I/O Port", with PIN 1, 2 and 5 as described in the revolution pinout schematic. But it did not work... even PIN 3 or 6 instead of 5 gave no positive result.
Also trying the 4 pin "Flexi-Port" with PIN 1, 2 and 4 was without success.
I already verified the functionality of the receiver by connecting it to my naze32 Board and it works like a charm...
And yes, i selected in Betaflight PPM-Receiver... so i don't know what to try next.

I hope you can give me some advice how to solve this problem, without switching to a SBUS-Receiver.


Quick Reply
Message:

Thread Tools