- Posts: 35
Setting up FMODE as Lost Alarm switch
- bugman72
- Topic Author
- Offline
I've read through MWM's PDF and can't seem to figure out exactly how I need to set this up. Basically, I want the FMODE switch to, when in position 1, to activate the alarm. The alarm is installed on the output pins of Channel 5 on the CC3D. Can anyone give me some insight on how to do this?
Please Log in or Create an account to join the conversation.
- Arakon
- Offline
- Posts: 305
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
[channel5]
max=100
min=0
template=simple
[mixer]
src=FMODE1
dest=Ch5
curvetype=min/max
points=0
I've also tried a modified version of what robocog posted a while back. He used a 3-position switch (SW A0) instead of a 2-position.
[channel5]
failsafe=125
template=complex
[mixer]
src=SW A0
dest=Ch5
switch=SW A0
scalar=-125
curvetype=fixed
[mixer]
src=SW A0
dest=Ch5
switch=SW A1
scalar=0
curvetype=fixed
[mixer]
src=SW A0
dest=Ch5
switch=SW A2
scalar=125
curvetype=fixed
Please Log in or Create an account to join the conversation.
- TomPeer
- Offline
- Posts: 303
[channel5]
template=simple
[mixer]
src=FMODE1
dest=Ch5
curvetype=min/max
points=0
Please Log in or Create an account to join the conversation.
- robocog
- Offline
You have it working in the input of GCS - so that's the first stage (and all that is needed to ensure the TX is doing what it should
what channel is the buzzer plugged into on the CC3D?
You need to 'route' that RX input to the channel above's output on the CC3D - which IIRC involves going into the mixer in GCS and going to advanced and enabling the right input is routed to the right output
It was a while ago I did this myself and it took a bit of googling till I found the 'how to' for it that was comprehensive enough to make it work
Will see if I can find it....
Found something similar enough for you to go on
forums.openpilot.org/topic/8475-lost-mod...covery-buzzer-on-cc/
You /could/ always plug the lost model alarm direct into the RX as well
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
Robocog, I am 99% sure I have the CC3D set up properly. I have the alarm plugged into the output pins for Channel 5 on the FC. Inside GCS, I have mapped Channel 5 as Accessory0 under the Custom Tab of the Vehicle section with Curve 1 set to 127.
Input Section has Accessory0 as PPM and Channel 5 with a min/neutral/max setting of 1000/1500/2000.
Output Section has Channel 5 as Accessory0, min/neutral/max values of 1000/1500/2000 and bank settings of 50Hz and PWM.
I can't honestly see any reason why the alarm isn't coming on when I flip the switch.
Am I just missing something glaringly obvious? I've looked at two tutorials on this and have used all of the same settings. The ONLY thing I haven't done is change the RcvrPort setting from Pin 8 PPM + OneShot to Outputs + OneShot. I am connected to my receiver through PPM and am using wires 1,2 and 8 from the ReceiverPort output of the CC3D.
Please Log in or Create an account to join the conversation.
- robocog
- Offline
I'm sure I recall something in there needed doing
I will fire up the quad and hook it up to GCS and see if I can screenshot it
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
Please Log in or Create an account to join the conversation.
- robocog
- Offline
This is what mine is set to and it does work...
(plugged into ch6 on CC3D)
Have highlighted a red box round the relevant setting
I threw you a curve ball there so apologies
It's 'custom' not 'advanced' you need...rusty memory
[img]http://www.robocog.co.uk/rc/quadcopters/Image2 (Medium).jpg
Hopefully it will show OK
Let me know
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
Please Log in or Create an account to join the conversation.
- robocog
- Offline
I don't use PPM and am using bog std PWM
I can try and attach my ini and GCS files
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
Please Log in or Create an account to join the conversation.
- robocog
- Offline
(or even direct to an RX channel temporarily - just to test the buzzer is doing as expected)
The ini section you have attached is pretty much carbon copy of what I have - and it works this end - so I'm still not convinced its the TX or RX
My RX apparently will do PPM, but not got round to trying it
If your still stuck I can give it a go and see if mine behaves the same way
I am not a CC3D expert either, as my quad flew more than adequately after doing the setup wizzard and just seemed to work without having to read up I never really delved that deep into it
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
I've asked all of these questions on various other places (CC3D Facebook group, comments section of Painles360's video, OpenPilot forum), but this the ONLY place I've been able to get any sort or response.
Please Log in or Create an account to join the conversation.
- robocog
- Offline
PWM+NoOneShot should be used with a normal PWM type receiver. The 6 rightmost wires of the receiver port carry the signal for each channel individually.
PPM - Pin 3
PPM+NoOneShot is used with modern PPM type receivers, that combine the control signal to one wire. The PPM stream should be sent to the first input through the white wire connected to CC ReceiverPort wire/pin 3. For a PPM receiver, only one pin is used for signal - the remaining wires connected to CC ReceiverPort wires 4-8 are left unused.
PPM+PWM+NoOneShot combines the two modes above, wire/pin 3 is used for PPM and the rest, wires/pins 4-8 are used as PWM inputs.
PPM+Outputs+NoOneShot enables PPM input in ReceiverPort wire/pin 3, and PWM output in wires/pins 5-8. These work as output channels 7-10.
PPM - Pin 8
PPM_PIN8+OneShot is a new mode, where PPM input wire is moved from previous ReceiverPort pin 3 to pin 8 to allow PWM Sync and OneShot125 to be used as ESC output modes.
RECEIVER PORT AS OUTPUTS
Outputs+OneShot makes ReceiverPort pins 5-8 work as output channels 7-10. ReceiverPort pins 3 and 4 are unused. This and the Disabled option can be used if the control communication is via a spektrum satellite receiver or directly through telemetry.
DISABLING
Disabled+OneShot basically disables the ReceiverPort.
So in conclusion I /think/ you need to be using PPM+NoOneShot ...maybe
Is it actually saving much weight or space by doing PPM?
Are you cutting the unusued connectors off?
(It's one of the reasons I haven't yet tried PPM - as I don't see any advantage over PWM... unless I cut the unused wires back - and then its a point of no return should I change my mind and for very little weight or clutter savings)
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
It isn't as much of weight savings as much as space constraints. 3 wires on one plug into the Rx is much better than up to 8 wires. And yes, I have removed all of the wires but Pins 1,2 and 8 from the RcvrPort plug. And you don't actually cut the wires. You remove the connector from the plug itself, making it totally reversible.
I may try connecting the alarm to Channel 5 of my Rx just to see what happens.
Please Log in or Create an account to join the conversation.
- robocog
- Offline
I feel your frustration , but I would work with a less complex setup first (and then try adding oneshot)
It does sound like its a CC3D 'feature' to me and worth reporting if it does indeed work without oneshot enabled and it breaks again when it's enabled
I guess you will be quite good at completing the wizzard by the time you are done
Just don't forget to tell it the orientation of the board if starting again and its not mounted as std!...I got new motors and decided to start from fresh using the wizzard (rushing to get airbourne again) and it was the one thing I forgot to check and change....gemfans snap easy luckily so no bent spindles or any damage - but it did freak me out a little on first launch after a simple motor swap!
It certainly didn't just pop back into the air as expected!
Good luck and report back
Regards
Rob
Please Log in or Create an account to join the conversation.
- robocog
- Offline
Regards
Rob
Please Log in or Create an account to join the conversation.
- bugman72
- Topic Author
- Offline
- Posts: 35
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- Setting up FMODE as Lost Alarm switch