Documentation

/Requirements

/PartLists

/Construction

/Tests

/Flashing

/Initialization

Next Chapter

Testing

Check the ARM7 CPU

After putting everything together you first need to test your new NG. If that succeeds you can start flashing firmwares for the different processors on-board.

Do a quick check of your LPC 2148 board. Connect it to a USB port on your computer. Both LEDs should glow, the red one for power indication and the yellow one for USB indication. Also, your mouse might move in a square path - this is because often the board comes pre-installed with their USB mouse demo. This will go away once you have flashed our firmware onto the LPC.

lpcQuickTest.jpg

First Powerup

For a first powerup of the FC board you should have a power source with current limiter, e.g. a lab power supply. That way you can make sure that your hardware will not burn up if you have a short-circuit somewhere. Make sure to unplug as much as you can (bl-controller, rc-receiver, sensors, LPC headerboard) and just power up the bare FC with 10V to 12V at the battery input and the current limit set to 300mA. That way you can make sure that no sensitive parts get damaged.

powerSupply.jpg

Your board should not use much current. To be true, with everything unplugged it should use practically none (maybe 1-2mA). If it draws more than a few mA or if the limiter of the power supply triggers, then something is amiss and you should check the board for short-circuits. Measure the 5V supply voltage and make sure the ON/OFF switch circuitry works. Keep in mind: without the LPC2148 you can not measure the 3.3V.

measure5v.jpg

If everything looks fine, power it down again and start to plug in all the stuff you unplugged before except for the BL controllers. Then repeat the powerup test and check the current. A fully equipped FC and SB connected should draw less than 250mA at 12V.

If all looks fine, then reattach the BL controllers. You are ready now to start flashing the different on-board processors as described in the next sections.

Checking the BLCs using the BLC HAL

To check the BLCs you need a special HAL. Otherwise you would have to attach exactly the right amount of BLCs as the currently configured HAL needs. To overcome this the BLC HAL was invented. It needs 0 BLC but can use up to 16 BLCs essentially meaning that you may attach any number of BLCs up to 16.

To test you BLCs, first attach the BLC(s) using power and I2C to your NG. When you boot your NGOS, you should see the attached number of BLCs in the Actor Bus-Scan:

If this number does not match the number of attached BLCs, then you have a I2C problem and you should first debug your I2C1 Actor Bus. If the number matches, you will also see the BLC(s) in "show devices".

To use the BLC HAL, choose a sensible controller and activate the HAL:

Next you can check the current HAL using the following command:

As you can see, this HAL has 16 HAL parameters called "BLC1" to "BLC16". "BLC1" represents the BLC with the first address. "BLC2" represents the BLC with the second address.

Next, we will activate the actors and then set the output to one of the BLCs to something non-zero. This will activate the actor and let the motor spinup, if everything is fine...

/!\ Please take care: The above will activate the actor and the motor should spinup!

If anything is wrong (Debugging Checklist)

The LPC doesn't boot (after flashing!)

The LPC hangs after a Bus-Scan

Mini is starting up after connecting battery

Mini flashing problems

Documentation/Tests (last edited 2011-06-09 19:12:42 by Andreas Berger)