Eagle PCB CAD BMP import

Confused how to make your BMP correct sized when converting it with import-bmp?

First of all:
– Make your image 2 colored BMP, great tool for Windows, Linux and OS X is the old classic XnView – For colored images I suggest dithering the image to 2 colored image
Make your graphics as library package (in Eagle), trust me, it’s worth it (you can make changes easily and don’t mess up your board since the graphic is a package)
– Use layer 25 (tNames) for your graphics. When you have added the package to your board, you can change it’s side by mirroring it.

Then the secret formula:

Scale factor for pixel = wanted graphic size / image size in pixels

For example if you want 204 pixel wide image to be 10mm, you enter 0.0490196078 as the scale. (10 / 204 = 0,0490196078).

Set uBlox baud rate to 115200


static const uint8_t ubloxInit[] =
{
0xB5,0x62, 0x06, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0xC2, 0x01, 0x00, 0x07, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x7E
};

for (int i=0; i {
Serial.write(ubloxInit[i]);
}

Rate to 2Hz:

0xB5, 0x62, 0x06, 0x08, 0x06, 0x00,0xF4,0x01,0x01,0x00,0x01,0x00,0x0B,0x77

Building cleanflight on OS X

Install toolchain using this brew recipe: https://github.com/miyaki/homebrew-misc/blob/master/gcc-arm-embedded.rb

Got this kind of messages:

“HardFault_Handler’ referenced in section.isr_vector’ of obj/main/NAZE/startup
stm32f10x_md_gcc.o: defined in discarded section .text’ of obj/main/NAZE/main. o (symbol from plugin) SysTick_Handler’ referenced in section .isr_vector’ of obj/main/NAZE/startup_s tm32f10x_md_gcc.o: defined in discarded section.text’ of obj/main/NAZE/drivers
/system.o (symbol from plugin)”

This helped me and got it linking:

https://github.com/cleanflight/cleanflight/issues/107#issuecomment-60536855

Technology snippets