|
|
|
|
|||
|
|
I did the first test flight with the panel powered. It measured only the current, voltage and consumption. It looked well, amperage and voltage were correctly indicated. The panel indicated 1610mAh after five flights, and the battery was used before only shortly at bench test (arround 50mAh). After charging the charger indicated 1690mAh, so the panel is pretty accurate
This is the video I recorded at the first test flight:
Watch it from youtube to be able to see in high quality
|
||
|
|||
|
|
|
|
|
Schemes and firmware of the instrument panel:
1. Some informations: The main components of the panel are the ATmega8 with TQFP package (DIP doesn't have the ADC6 and ADC7 pins); a 2x16 chr alphanumeric LCD display with the standard 14pin interface; two small sized servos. I recommend to use a reset generator device in place of R1 resistor. The EEPROM memory can be corrupted when power supply for the microcontroller is unstable - in this case the default parameters from the firmware will be enforced. There is no need to respect the PCB layout I did. Anybody can design his own layout, the only thing is to take care of the analog routes, and design a ground plane underneath them to eliminate noise. Same precaution needed for AVCC/L1/C12 net. The values of the sound output's resistors and capacitors are not mandatory, it is important only to have 1Vpp (pulse to pulse voltage) and to obtain some kind of sinus or triangle signal, can be tuned with an oscilloscope. (Board need to be functional for this phase, vario can be simulated by an adjustable input signal between 0 - 5V). Servo1 is the airspeed gauge servo and Servo2 is the altitude gauge servo. For LEDs D1, D2, D3 use some high luminosity narrow angle low power LEDs. D1 is "vario down", D2 is "vario up" and D3 is the "alert" LED. Do not connect LED D3 until uploading the bootloader (first programming) - it disturbs the PonyProg's interface. The jumpers J6-J9 are testpoint like pads on PCB for first programming (uploading the bootloader) using the ISP feature of the microcontroller. I used PhonyProg to do that. Easy to do programmer schemes can be found on PonyProg's webpage. At the Display connect the R/W pin and the D0-D3 pins to ground (I left D0-D3 in air - it is working this way also). 2. First programming: ( In case of PonyProg ) After the PCB is completed, components mounted, carefully check each connection, make connection from J6-J9 with the Ponyprog's interface (Mosi, Miso, SC, Reset pins) and power up the board from the same power source that Ponyprog's interface has (5V). !! Do not connect the power for servos !! NOTE: PonyProg serial interface isn't working with USB-Serial adapters. a. Fuse bits (Security and Configuration bits) need to be set to: - Internal RC oscillator with 8MHz: configuration on CKSEL = 0100 which means CKSEL3(on) CKSEL2(off) CKSEL1(on) CKSEL0(on) - Bootloader activated: BOOTRST(on) - Bootloader size: 512word which means: BOOTSZ1(on), BOOTSZ0(off) Write these configurations in the microcontroller b. Download the bootloader from http://www.dl5neg.de/bootloader/bootloader.html and modify in the Bootloader_Mega8.asm the line 219 from .equ UBR = 23 to .equ UBR = 25 - this is the communication speed 19.2kbps on 8MHz needed for serial programming. Rebuild the .asm file in AVRstudio and write the newly generated .hex binary in the microcontroller using the PonyProg. c. Disconnect the J6-J9, power up the board (do not power the servos). If everything was done ok then the "vario down" led need to flash 10 times. d. Connect the LED D3; if the bootloader was properly uploaded and fuse bits configured then there is no more need for PonyProg interface. The serial interface (UART port J4) of this board is with 5V TTL levels. For connecting it with PC need to do an adapter circuit with a MAX232 chip. Various schemes can be found on Internet. You can get power for this circuit on J4 port. 3. Uploading the firmware using the serial interface: Check if the bootloader is working properly: Start a serial terminal program (Hyperterminal or minicom ), set to 19.2kbps 8N1; connect the board to the PC, power it up, and when the "vario down" LED flashes press "ESC" immediately - a message should appear from the bootloader. Close the serial terminal program, start AVRProg from AVRStudio and write the provided firmware binary file. If everything is ok then it should be done in ~30sec. NOTE: AVRprog can use only COM1 to COM4 ports. USB-Serial adapters can have bigger values, try other USB ports. I have on my PC two USB ports which are working as COM3 and COM4 - the AVRProg can be used only with those. Restart the board, the LED flashes 10 times (~8sec) then it should start up (values displayed on the LCD screen). Because servos can be different, if they are doing noise then disconnect their power immediately to prevent burning out. Default values in the firmware are for the servos I use. Comming: Set up parameters from servo limits, list of parameters. |
|
|
|
|
|||
|
Manila, Philippines
Joined Jul 2004
1,175 Posts
|
Nagyizee, Very Impressive works.....plan to make one for my Gasser Helicopter.
Here is another Panel but using cheaper material, its not mine, but I am amazed its creativity:
|
||
|
|||
|
|
||
|
|
Quote:
Yes, I have seen that one a couple of mounts ago, and that inspired me to build an instrument panel
|
|
|
||
|
|
|
|
Romania, Dolj, Craiova
Joined Sep 2007
12,308 Posts
|
"OSDs are formidable devices, but they are expensive to buy"
Did you seen the BlackStork OSD, what they offer for 120 Euro? |
|
Latest blog entry: JRSky - birth of a dream radio
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tigermoth sem-scale instrument panel rear | sky guy | Parkflyers | 22 | Dec 13, 2005 05:14 PM |
| Switchback Instrument Panel | Steven9026 | Parkflyers | 6 | Dec 29, 2002 07:53 PM |
| Tm Instrument Panel | SKY HIGH | Parkflyers | 2 | Oct 21, 2002 07:25 PM |
| Switchback clear canopy? = instrument panel | Wright Flyer | Parkflyers | 3 | Oct 11, 2002 01:14 PM |
| My Cessna 180 Panel | KeithLuneau | Parkflyers | 5 | Oct 02, 2002 12:41 PM |