Welcome to Multi-Rotor UK. Please login or sign up.

Friday,May 30, 2025, 23:40:01

Login with username, password and session length

Shoutbox

Bad Raven:
12 May 2024 08:13:51
 I have some F1 Abusemark boards going spare,,,,,,,,,,,,,    ;)    :azn
DarkButterfly:
11 May 2024 22:12:29
And with oldskool parts  :D
DarkButterfly:
11 May 2024 22:11:57
I must be the only one doing tricopters right now  :laugh:
DarkButterfly:
11 May 2024 22:09:30
 :D
Gaza07:
11 May 2024 21:15:16
Domain has been renewed closure has been cancelled  :D
Gaza07:
02 May 2024 08:07:52
Who are most people ??? I think the person you are referring to has put in a lot of effort to keep things moving  :rolleyes:
hoverfly:
01 May 2024 10:16:12
Most people I have spoken to are pizzed off with the yellow peril  flooding the forum,go figure. :whistling:
Gaza07:
23 Apr 2024 08:09:45
The Domain expires for the forum in 60 days, I'm not going to renew it this time unless I see any activity  :beer2:
Gaza07:
20 Apr 2024 18:02:50
Is there anyone who would like to see this forum stay open ? :shrug:
hoverfly:
17 Apr 2024 17:15:13
 :rolleyes:
Members
Stats
  • Total Posts: 201,532
  • Total Topics: 20,277
  • Online today: 181
  • Online ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 94
Total: 94

Theme Changer





3d - Printworx

How To? Non Technical Onstructions

Started by jimbo385, Friday,January 31, 2014, 08:04:05

Previous topic - Next topic

jimbo385

Morning,

I understand that this is a continual work in progress but when a solution has been confirmed, can us non technical folk get clear easy instructions on how to!

I';d like to get clear non technical instructions on the following;

1.) How to install a buzzer to the CRIUS AIOP v2 board

2.) how to monitor flight battery on the CRIUS AIOP v2 board


Many thanks
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

teslahed

#1
For part 1.

You probably want one of these;

http://www.ebay.co.uk/itm/151221269845?var=450260432732&ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

A 5 volt Active Buzzer - Continuous Sound

I haven';t got any further than this myself :whistling: I just ordered 5 earlier this morning to try fitting to my Naze32 flight controllers - should be the same job as with the crius AIOP running multiwii.

For part 2.

You need a voltage divider circuit. You can make one very simple as follows;



Then you enable the VBAT code in the multiwii config file;

/********************************************************************/
  /****           battery voltage monitoring                       ****/
  /********************************************************************/
    /* for V BAT monitoring
       after the resistor divisor we should get [0V;5V]->[0;1023] on analog V_BATPIN
       with R1=33k and R2=51k
       vbat = [0;1023]*16/VBATSCALE
       must be associated with #define BUZZER ! */
    #define VBAT              // uncomment this line to activate the vbat code
    #define VBATSCALE       131 // (*) (**) change this value if readed Battery voltage is different than real voltage
    #define VBATNOMINAL     126 // 12,6V full battery nominal voltage - only used for lcd.telemetry
    #define VBATLEVEL_WARN1 107 // (*) (**) 10,7V
    #define VBATLEVEL_WARN2  99 // (*) (**) 9.9V
    #define VBATLEVEL_CRIT   93 // (*) (**) 9.3V - critical condition: if vbat ever goes below this value, permanent alarm is triggered
    #define NO_VBAT          16 // Avoid beeping without any battery


And hopefully that should do it. You may need to adjust the above values if you are running on 4 cells rather than 3.

You may also need to mess with;

**************************************************************************************/
  /********                      override default pin assignments    ********************/
  /**************************************************************************************/

  /* only enable any of this if you must change the default pin assignment, e.g. your board does not have a specific pin */
  /* you may need to change PINx and PORTx plus #shift according to the desired pin! */
  //#define OVERRIDE_V_BATPIN                   A0 // instead of A3    // Analog PIN 3


If you can';t get it working using one analogue input pin try A0 instead of A3 (or vice versa).

Hopefully this will do the trick.
One circlip short of a quadcopter.
 1 lobe short of an antenna.

jimbo385

This is what I mean!

For part 1, what do I do with that part? I already have a buzzer that came with a KK2 board. Will that do? Do I have to change any code to make it work?

For part 2, I have no idea what that diagram you posted is supposed to tell me! If I do manage to make that circuit, what do I do with it?

Sorry but it does not mean a lot to me! This is why I asked for a simple, clear instructions.
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

barneyg

Go and wash your mouth out with soap and do 12 hail Marie';s ... The words simple and MultiWii do not belong in the same sentence.

The strength and weakness of MultiWii is it was s designed to work with a range of hardware ... This means that you need to know the intimate details of your FC (as in which pin is A0) and you need to know enough electronics to build things like the voltage divider ... There are no simple instructions.

That said with the voltage divider you take 2 resisters and join one end of the first one to one end of the 2nd one.  You connect a wire to the join between them and connect the other end of that wire to the appropriate pin on the FC.  You then connect one of the free ends of your conjoined resistors to the positive side of your battery and the other end to the ground of your battery.

Resistors should be picked such that when you measure the voltage between the wire that connects to the FC and the ground of your battery it is less than 5 volts but as close to it as possible.
See the diagram is much easier :D

teslahed

QuoteFor part 1, what do I do with that part? I already have a buzzer that came with a KK2 board. Will that do? Do I have to change any code to make it work?

Here is the crius AIOP manual for multiwii;

http://www.multi-rotor.co.uk/index.php?topic=411.0

It will help explain stuff like which pins are what etc. This should include the buzzer pins - there will be positive and negative and you need to wire the buzzer up accordingly. If you search through the config file for the word ';buzzer'; you';ll quickly find all the buzzer related options. You can change the default pin assignments if you need to.

Then you';ll need to comment the buzzer in on the multiwii code;

********************************************************************/
  /****                             Buzzer                         ****/
  /********************************************************************/
    #define BUZZER
    //#define RCOPTIONSBEEP         // uncomment this if you want the buzzer to beep at any rcOptions change on channel Aux1 to Aux4
    //#define ARMEDTIMEWARNING 330  // (*) Trigger an alarm after a certain time of being armed [s] to save you lipo (if your TX does not have a countdown)
    //#define PILOTLAMP             //Uncomment if you are using a X-Arcraft Pilot Lamp


QuoteFor part 2, I have no idea what that diagram you posted is supposed to tell me! If I do manage to make that circuit, what do I do with it?

Here is the detailed thread explaining how i went about constructing my voltage divider;

http://www.multi-rotor.co.uk/index.php?topic=3144.0

Explaining everything totally from first principles would take all day. If you read the above links come back and let me know what you don';t understand and i will do my best to help.

If you need more background info here is the wikipedia page on voltage dividers;

http://en.wikipedia.org/wiki/Voltage_divider

Here is a youtube video explaining voltage dividers;

http://youtu.be/rIEnMpgIaU4

I had to learn a surprising amount of basic electronics to get this all working myself. Educational but not exactly plug and play - that';s what the Naza is for ~~

In summary - a voltage divider is 2 resistors in series. The total voltage dropped across both will be 12 volts if running from a 12 volt battery but if you measure the voltage in between the two resistors you';ll see a fraction of the total. The fraction depends on the ratios of the two resistors relative to each other. So if you use a 4kohm resistor and a 1kohm resistor you';ll have 12 volts dropping across the 5kohm worth of resistors but 9.6 volts would be dropped across the 4kohm resistor and the remaining 2.4 would be dropped across the 1kohm resistor. If you measured in between the two you';d either measure 9.6 volts or 2.4 depending on the order of the resistors.
One circlip short of a quadcopter.
 1 lobe short of an antenna.

jimbo385

Well, I have read all of the attachments and viewed the videos and I think I';m getting there!

So, my understanding for the buzzer is something like;

  Attach the -ve of a 5v buzzer to pin number ??
  Attach the +ve of a 5v buzzer to any -ve (gnd) pin

Amend Config.h as follows;

#define BUZZER
#define OVERRIDE_BUZZERPIN_PINMODE          pinMode (A7, OUTPUT); // use A7 instead of d8
#define OVERRIDE_BUZZERPIN_ON               PORTF |= 1<<7;
#define OVERRIDE_BUZZERPIN_OFF              PORTF &= ~(1<<7);

If I wanted to put the buzzer on A0, then I should amend 7 to 0 on the PINMODE override obove.



With regards to the voltage divider, there appears to be several solutions but I am at a loss as to what works best for a 3s or for a 4s battery on the Crius v2 AIOP.

I have found this on the Multiwii board which is very useful!

[attachmini=1]

Where it says A3 pin, do I plug this into A0?

Cheers.
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

teslahed

Quote from: jimbo385 on Saturday,February 01, 2014, 23:44:18
Well, I have read all of the attachments and viewed the videos and I think I';m getting there!

So, my understanding for the buzzer is something like;

  Attach the -ve of a 5v buzzer to pin number ??
  Attach the +ve of a 5v buzzer to any -ve (gnd) pin

How many pins does the buzzer have? Assuming it';s two you wire negative to negative and postive to the positive buzzer pin. Assuming you don';t comment in any of the pin over rides that defaults to D8 which i think is labelled as pin 32 on the flight controller itself. That pin is also used for servo based camera stabalisation so if you are using that you will need to use the pin over ride.

QuoteAmend Config.h as follows;

#define BUZZER
#define OVERRIDE_BUZZERPIN_PINMODE          pinMode (A7, OUTPUT); // use A7 instead of d8
#define OVERRIDE_BUZZERPIN_ON               PORTF |= 1<<7;
#define OVERRIDE_BUZZERPIN_OFF              PORTF &= ~(1<<7);

If I wanted to put the buzzer on A0, then I should amend 7 to 0 on the PINMODE override obove.

you shouldn';t need to comment in any of the buzzer pin overrides and especially don';t comment them all in. You just need to comment in ';#define BUZZER'; and then it will work off the default pin 32. Only comment the other lines in if you don';t want to use the default buzzer pin.

QuoteWhere it says A3 pin, do I plug this into A0?

Depends on if you use the voltage divider pin over ride or not. I can';t remember which analogue input it defaults to but you can use one or the other depending on if you have used the pin over ride or not. I may have got it the wrong way around on my first attempt so i just swapped analogue input pins and tried again. I could probably have used the over ride instead.
One circlip short of a quadcopter.
 1 lobe short of an antenna.

jimbo385

This is good stuff and my understanding is growing.

Just to confirm......

For the Buzzer , are A7 and pin32 one and the same?

For the divider, I';ll go to Maplins and get the resistors and maybe a board to mount them on.
When it';s said that the +ve goes to the +ve on the battery and the -ve to minus in the battery, is it ok to use spare sockets on the power distribution board? I bought an octo board to have extra female  connectors for led lights n stuff.


Cheers
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

teslahed

QuoteFor the Buzzer , are A7 and pin32 one and the same?

No. Analogue pin 7 is the 7th analogue pin and pin 32 is the pin that is actually labelled on the board itself as pin 32.

If you look on page 2 of the manual you can see pin 32 near the top left of the second board photo (shows the top side).

QuoteFor the divider, I';ll go to Maplins and get the resistors and maybe a board to mount them on.

That';s probably the best way to do it. I would suggest doing a little research on resistor values first though - i wonder if you can use the same resistors as me on 4 cells or not?
One circlip short of a quadcopter.
 1 lobe short of an antenna.

jimbo385

I think that';s my confusion!

Pin7 is on the connector and Pin 32 is actually the pad to the left of the "C" for CRIUS!

Chees
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

Ok,

Just before I commit a really hot soldering iron to a perfectly good CRIUS AIOP v2 board, here is a picture of the board and my understanding of what goes where.

[attachimg=1]

My next question would be, where';s the best place to get -ve on the board for the buzzer?
I already have GPS & 3DR Telemetry hooked into the serial port on the top so I really don';t want to re';do this.

Many thanks
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

Just putting together my shopping list for Maplins.

Using the Voltage Calculation within the Voltage Monitoring.pdf in an earlier post, I can only find the following that matches;

0.6w 36k Resistor  Part No M36K
0.6w 56k Resistor  Part No M56K

This gives a voltage difference of 4.93.

Will this work?   :crossfingers:

So, once I have built this I can do the following;

  Plug the +ve of the divider into the +ve on the distribution board
  Plug the -ve of the divider into the -ve  on the distribution board
  Plug the center wire into A3 as indicated on the diagram in my last post.
  Amend the Config.h file accordingly


Sorry about all the questions but I';ve really only got one shot at this otherwise as has been said, I could brick my board.

Cheers.
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

teslahed

I think that looks right to me. Sorry about the confusion earlier with the pins - i was looking at my version 1 crius AIOP and you have the slightly nicer version 2 i think.

Before hooking your circuit up to the board use a multimeter to measure the voltage. As long as it';s less than 5 volts with a fully charged lipo you shouldn';t fry the board.

You might want to pick up a  10uF capacitor at maplins whilst you are there. You can add a noise filter to the voltage divider - possibly not necessary but wouldn';t hurt.
One circlip short of a quadcopter.
 1 lobe short of an antenna.

jimbo385

Thanks mate.

I';ve looked at Maplin for the capacitor but that';s £9.99. I think that I';ll leave it.

So, to check the divider, do I just plug the +ve  & -ve into the battery? Then do I test +ve to middle pin on the divider or middle pin on the divider to -ve?

The thought of doing this scares the pants off me!  :frantic:

I must admit that you';ve been a great help!  ~~

Lol!
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

BJT

Think you must be looking at the wrong  capacitor,
Try this code VH22Y 58p.

jimbo385

Many thanks for pointing me in the right direction.

I have knocked up this very simplistic spreadsheet of the divider.

[attachimg=1]

I hope that I';ve got it now!
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

Ok, it looks like I have built my divider with the resistors the wrog way round because I get 7.32 volts from signal to -ve and 2.17 from +ve to signal!

Thank god for Multimeters!

Also, thank goodness that I bought 2 of everything!

Next issue I have is a having an 8 pin Molex connector that has wires in all 8 pins! The only one I have has got no wires on pins 0,1 & 2!

Bummer as I intended to put Divider on pin 0 and Buzzer on pin 7 and utilise the pin overrides in the Config.h

Actually, can I use say Pin 3 for the voltage? I know that you got some strange results but will that work?

Cheers.
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

Managed to build another divider.
[attachimg=1]

The one on the left is the correct one giving 4.93 volts from the divider to the -ve.

The one on the right is the first one I built and I got the resistors the wrong way round! The voltage here between the divider and -ve was reading 7.32 volts. Sure would have bricked my board.

Using the online configurator here, http://panoramaic.se/configurator/2.2/, I have calculated the VbatValue as 128.

I have changed the code to enable buzzer on A7.

Also amended code to enable Vbat & include the VbatValue of 128 & left the override alone. Will connect to A0. If this does not work then I will enable the override code.

Fingers crossed!


F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

Well the board is not bricked but I do have a few issue!

Buzzer is plugged into pin 7, plugged the -ve into a -ve pin for an unused esc and I have changed Config.h. However, it does not work! Beeper is displayed on RC Control Settings screen in the gui and it doesn';t matter if I activate via switch or when I arm the quad, it doesn';t make a sound!
Any suggestions?

Next, I have activated Vbat and set the VbatValue to 128. However, the voltage is displaying 25.5. Even when I disconnect the divider, it is still displaying 25.5. I have noticed that within the FC Control screen, all of the battery monitoring figures were 0! I have entered them here and now the voltage is displayed correctly as expected and it appears to work!

It does appear to work though and retain those settings after a battery change.

I have since changed VBat Scale to 131, warning 1 to 116 & warning 2 to 106 & critical to 99.

Am I right in saying that once these warning levels are reached, the buzzer will sound?

Any suggestions?

Cheers.
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

The battery monitor works and I have no idea why or how it was playing up.

The only issue I have now is getting that buzzer to work!

I will start a buzzer only thread.
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro

jimbo385

Buzzer now sorted!

I had it plugged into pin A6 and not A7!   :banghead: :banghead:

I changed the defines in the Config.h to A6 and it now works!  ::)
F450 Clone KK2.0 General Batting around!

FPV550 KK2.0 FPV No gear on it yet!

DJI F350 Naza Lite Naza Experience

FPV 250 With RCTimer Power kit. Pocket Rocket!

Wishlist - Tarot FY680 Pro