RC Airplane kits
The Best Selection of RC Airplanes, Kits, Quadcopters
Show MenuHide Menu

Archives

June 2011
M T W T F S S
    Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

What do I get with Remzibi’s OSD?

June 30, 2011   

      You can order items individually by http://www.opensurprise.com/, but typically, you’ll receive the Remzibi’s OSD PCB Board, GPS Module and USB to Serial Cable to program and update your Remzibi’s OSD. These components give the ability to show Battery Voltage, Speed, Altitude, Direction Home and many other advanced displays.

What is Remzibi’s OSD?

June 30, 2011   

    Remzibi’s OSD is an On-Screen-Display unit that is used along with a video transmitter and video receiver on First-Person-View setups for Remote Control planes.

    First-Person-View gives you a view from inside the cockpit of the R/C plane. If you connect video goggles or a monitor/TV to the output of the Video Receiver, you can actually see as if you were sitting inside the plane.

    Here’s where Remzibi’s OSD comes into play. The OSD is connected between the video camera and the video transmitter and adds information using a video overlay processor on to the video image. It’s somewhat similar to watching CNN where they have the text scrolling along the bottom of the screen… or any network show you watch will frequently have their station logo at the bottom right. This is an overlay. It’s adding information to the picture displayed by the camera.

    Remzibi’s OSD board uses a GPS module to capture information like heading, speed, altitude and lat/long coordinates. In addition, it uses an ATMEL processor to capture information like battery voltage (video and main/motor) and other functions like Variometer which shows up and down changes in altitude. All of this information is updated in real-time and placed over the camera’s picture and fed into the Video Transmitter, sent back to the ground where it is captured by the Video Receiver and then output to goggles or a monitor where you (the R/C pilot) sees the camera video with the overlayed data.

KK Multicopter multicontroller Programming the IC with AVR Studio 4

June 26, 2011   

AVR Studio 4 is pretty daunting when you open it for the first time, especially if you have never programmed an IC before. But once you get to know it, it is actually very easy to use.

Before you start make sure you have the following.

The exact name of your IC chip you are going to program. There are many variants we can use in the KK multicontroller, Atmega48, Atmega48P, Atmega48PA, Atmega328P etc.
A target board to place your IC in while programming or else a version of the KK multicontroller PCB that has an In System Programmer (ISP) header. The target KK board or PCB must also have a power source (3v to 5.5v should be OK) while you are programming unless your programmer has a feature to power the board while programming.
A programmer to program your chip, such as the AVRISP mkII, Olimex AVRISP-500 or your own home made programmer.
A copy of the firmware you want to program the chip with, which is available in the firmware downloads section.
A copy of AVR Studio 4 available from the resources downloads section.

Are you sitting comfortably?   Then we’ll begin…

1. First set up your target board or PCB with your chip mounted in the socket. Make sure you identify the different pins on your chip according to this picture. Pin 1 (the Reset pin) is marked by a small dot on the top left of the chip.

2. Connect your Programmer’s 6 or 10 pin socket to the corresponding pins on the chip. Pin 1 on the ISP header is usually marked with a small triangle. If you are using a target KK Multicopter board you can either install a suitable header or directly connect the pins to the ISP header using jumper wires. Then connect the power to your target KK Multicopter board or PCB. This can be done via a battery connected to an ESC which is then plugged in, or a USB power source modified to connect to the board, or a battery pack with between about 3.3V to 5.5V.

3. Make sure you have installed the latest version of AVR Studio 4 and any drivers necessary for your programmer.

4. Start up AVR Studio 4. It will ask you if you want to begin a new project, or open an existing project. I choose “open an existing project” and select the appropriate aps or hex file (and then create a project from it) for the chip I am programming. This file can be found in the unzipped folder for the downloaded firmware. e.g. QuadControllerV4_3_M48_M88.aps

5. You may then be asked to select a device and debug platform. Some programmers do not have debug functionality, and so I choose one of the simulators. e.g. AVR Simulator 2. And I select the IC that I am going to program e.g. Atmega48PA. Then click finish.

6. Next you need to connect to your programmer. Click on the little black “Con” icon on the lower tool bar.

It will open a new window with a connection dialogue asking you to select your programmer and connection port. With a programmer like the AVRISP mkII it is easy because when you select that programmer it brings back only one choice of port… USB.  The AVR-ISP500 from Olimex is recognised as a STK500 and has the option to auto choose the port. If it fails to recognise the port, you may need to manually set the port for the programmer in your windows device settings to COM1 up to COM4 for AVR Studio to recognise it. When you have chosen your programmer and port, click connect and you will be taken to the AVR programming dialogue.

7. In the AVR programming window go to the “Main” tab and make sure that the chip you are programming (e.g. Atmega48PA) is selected in the “Device and Signature Bytes” drop down menu. Also make sure that the” Programming mode and target settings are set to ISP. Make sure that the settings for the ISP mode have the ISP frequency set low enough to talk to the chip. I set my AVR-ISP500 programmer’s frequency to 115.2 kHz. This is quite an important setting to get right. If you click on “Read Signature” and you get the response “Signature matches selected device” you have successfully managed to connect to your IC.

If it comes back with an error, check your connections to make sure you have the ISP header the correct way round, or that the wires from the IC pins are connected to the correct pins on the ISP header. Also make sure that the target KK Multicopter board or PCB is powered (You can check this by clicking on the HW Settings tab and checking if the programmer can see any voltage).

8. Now it is time to set the fuses so click on the “Fuses” tab. AVR Studio is very good in this respect as it will work out the fuse settings for your particular IC depending upon the check box options you choose.

Set the check boxes according to the following.

SELFPRGEN: unchecked

RSTDISBL: unchecked

DWEN: unchecked

SPIEN: checked

WDTON: unchecked

EESAVE: unchecked

BODLEVEL: Brown-out detection at VCC=1.8 V

CKDIV8 : unchecked

CKOUT: unchecked

SUT_CKSEL: Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 ms

The fuse setting output will be displayed at the bottom of the window.

Check the “Auto read” “Smart warnings” and “Verify after programming” options at the bottom of the window and then click program.

If all goes to plan, you should get OK messages in the output section at the bottom of your window for Entering Programming mode, writing fuse address, reading fuse address, Fuse bits verification and leaving programming mode.

If you get error messages, then recheck your chip version and all the connections from your programmer to your target KK Multicopter board and that the power is on. Also make sure that your fuse settings are as described above.

9. Now it is time to program the IC with your selected firmware for your KK multicopter. Click on the “Program” tab and have a look at the “Flash” section which is the 2nd section down. Check the “Input HEX file” check box. Then browse the unzipped firmware folder and click on your firmware HEX file suitable for the chip you are programming e.g. QuadControllerV4_3_M48_M88.hex for an Atmega48PA.  Then click “Program” in the Flash section of the window and you should get a load of OKs in the output section at the bottom of the window.  Then click “Verify” to make sure that the program has been successfully uploaded and if you have a load of OKs coming back at the bottom of the window then you have successfully programmed your IC.

Now sit back with an ice cold beer and admire your handy work in the knowledge that you are a god of AVR programming.

KK Multicopter multicontroller Compiling a Hex File From Source Code

June 26, 2011   

KK Multicopter multicontroller Compiling a Hex File

If you havn’t already done this, you will need to download AVRstudio4 and install it.

This method can be used to create any new Project:

Un-zip the XXcontroller code onto your hd.

Delete the .aps and .aws suffix files, as they will almost certainly point to the worng location.

Start AVRstudio4.

The application will present a Project Window at startup (Pic 1) – almost certainly empty in your case.

Click the New Project button

Then on the next screen (Pic 2) click ‘AVR GCC’ in the Project Type List.

This should open up other boxes.

Enter your Project name and un-check the ‘Create initial file’

Click the [...] button for Location and browse to the folder where you un-zipped the source.

Click OK and then click [Next>>] button

On the next window (Pic 3) Select Debug Platform: ‘AVR Simulator 2′ and locate and select your Device

Click Finish.

You should now be in the main application.

In the left-hand window (Pic 4), Click on ‘Source Files’ and Right-Click to get mini-menu.

Click ‘Add Existing Source File(s)’ and in Browse window, select XXcontroller.c

Click Open to add this file to the project.

Take Menu option: File/Configuration Options

In the Frequency, enter 8000000 and un-check ‘Unsigned Chars’ (Pic 5)

You can change the ‘Output File Directory’ if you wish (where hex file will be created)

Click OK

This completes the initial setup. You are now ready to compile the program.

Pic 6 Shows the application with source ready to be edited.

Take Menu Option Build/Build or F7 or click Build icon.

The compiler will spark into life and will write information into the Build window (bottom)

If all goes well , you should get:

Build succeeded with 0 warnings…

If you have an Atmel compatible programmer, then you can plug it in and click the Con icon to get the Programming window up.

The code as it is only needs a few lines changed to configure it to run on your particular copter.

Read the info at the top of XXcontrol.c and edit the #defines.

KK Multicopter multicontroller Programming the IC

June 26, 2011   

The Integrated Circuit (IC) is the “Brain” of the KK multicontroller. It contains the program that controls the speed of the rotors and manages the input  from the Gyros and RX Receiver to produce a stable KK multicopter. There are several different ways for experienced electronic engineers to program an IC but below is a step by step guide for beginners to program the IC on the KK multicontroller board.

If you would however prefer to take the easy route and order an IC with your selected firmware already loaded, these can be bought from people in the classifieds section.

What you will need:

1. A Programmer like one of these:

USBasp

Olimex AVR-ISP500

Atmel AVRISP mkII

2. You will need a target KK Multicopter board to place your chip in while programming, or else use the more recent KK multicontroller PCBs with the 6 pin ISP header connections. If you are using a target board make sure you connect the correct pins for the chip you have.

The pin 1 on the Atmega48 and other 28pin variants is marked by a little dot on the top left of the chip.

3. You will  need a copy of the firmware you want to upload into your IC. You can get the appropriate firmware from the downloads section  of this site.

4. You will need some programming software such as AVR Studio 4, AVR Dude, eXtreme Burner, or Pony Prog. There are links to these in the downloads section under resources.

Below you will find step by step instructions on how to program your IC for the KK multicontroller.

RC Surfboard

June 25, 2011   

RC Surfboard

Surfboard size:66cm*17cm*38cm

GT3B Radio control, 320A Brush ESC,Futaba  servos 3003

 

Quadrocopter Airframe

June 22, 2011   

Quadrocopter Airframe steps

KKmulticontroller Pre-Flight Check

June 20, 2011   

KK multicontroller  ADJUSTING:

Transmitter throttle adjusting:

-Turn on transmitter and flight controller.

-If led does not turn on and stays on, lower your trim.

-If still no go, you may need to reverse the throttle channel.

-On TriCopter v1.7 Quadrocopter v4.5 firmware above, you need to Arm your KK multicontroller board by putting the left stick down and to the right for the LED to come on. If this does not happen, adjust your throttle and yaw trim down and to the right on your transmitter.

Initial transmitter ATV/servo range settings:

-pitch (elevator): 50%

-roll (aileron): 50%

-yaw (rudder): 100%

Initial gain pot values is 50%. Increase until it starts to oscillate rapidly, then back of until it is stable again. Fast forward flight needs lower gain.

Too low gain is recognized by hard to control and/or always want to tip over.

ESC throttle range:

-Turn yaw pot to zero.

-Turn on transmitter.

-Throttle stick to full.

-Turn on flight controller.

-Wait until the ESC’s beeps twice after the initial beeps. (Plush and SS ESC’s)

-Throttle stick to off. ESC’s beep.

-Turn off flight controller.

-Restore the yaw pot.

Checking transmitter channels:

-Take off the propellers.

-Turn on transmitter and flight controller.

-Set throttle to about 1/4. Motors should start.

-Move pitch (elevator) stick forward. Back motor should speed up. If not, reverse pitch (elevator) channel.

-Move roll (aileron) stick to the left. Right motor should speed up. If not, reverse roll (aileron) channel.

-Move yaw (rudder) stick to the left. Front and back motor should speed up. If not, reverse yaw (rudder) channel.

Checking gyro directions:

-Take off the propellers.

-Turn on transmitter and flight controller.

-Set throttle to about 1/4. Motors should start.

-Tilt quad forward. Forward motor should speed up. If not, reverse pitch gyro.

-Tilt quad to the left. Left motor should speed up. If not, reverse roll gyro.

-turn quad CW. Front and back motor should speed up. If not, reverse yaw gyro.

Reversing gyros:

1: Set roll gain pot to zero.

2: Turn on flight controller.

3: LED flashes rapidly 10 times.

4: Move the stick for the gyro you want to reverse.

5: LED will blink continually.

6: Turn off flight controller.

7: If there is more gyros to be reversed, goto step 2, else set roll gain pot back.

Final check:

Hold the quadrocopter firmly over our head, give about 1/2 throttle slowly. Hold it steady when you start increasing the throttle, becouse it calibrates its gyros when throttle leaves zero, and then the gyros need to be at rest.

If it tries to twist away, check propeller and motor directions, gyro placement and trim settings. A slight twist is OK.

If not, try to twist the quadrocopter. It should resist your movements. And also more gain gives more resistance. If it starts to oscillate, reduce the gain. If you

need to reduce the gain below 40%, something might be wrong.

Note: the correct procedure for taking off from the ground is as following:

1: The quadrocopter and its propellers needs to be motionless.

2: Increase the throttle (collective). Just as the throttle leaves zero, gyro calibration is performed.

3: Enjoy! And remember to close the throttle if you lose control. Much less damage.

NOTES:

- Do not use bigger propellers than you need. Light propellers gives faster response and more stability.

- Try to get it to hover at about midstick (1/3 to 2/3 throttle). Use smaller/bigger propeller, different motor Kv or more/less cells to achieve that.

Why can I not activate programming mode when using a Spektrum RX?

June 20, 2011   

    The KK multicontroller requires a signal from the RX before it will enter programming mode. This needs to be within the first two seconds after powering up. Some Spektrum RX units take a little longer to start up and so in this case the RX must be turned on before the KK multicontroller.

Why can’t I programme my v6 board using the ISP?

June 20, 2011   

    Quadrocopters

    The v6 board can be programmed using the ISP header if the C10 cap is removed. This capacitor is included in the design to prevent accidental resets during flight caused by voltage spikes, but it also prevents the programming signals from the ISP header from reaching the chip. To remedy this you can just remove this capacitor during programming, or else take your chip out and programme it on a dedicated programming target Quadrocopter board.