Hello,

 I have ArduPilot Mega (red PCB) with blank Atmega 328p MCU and can't make PPM encoder work.

1. Got latest sources from GIT
2. Build firmware
3. got ardupilot_mega\ardupilot-mega\Tools\ArduPPM\ATMega328p\Encoder-PPM.hex file
4. flashed this firmware using command avrdude -e -c stk500v2 -p m328p -P com4  -U flash:w:Encoder-PPM.hex  -U efuse:w:0xF4:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m  -U lock:w:0x0F:m)
5. I have 16MHz signal on oscillator, and blue LED is slowly blinking (So MCU works and fuses seem to be OK)
6. I have connected RX to all 8 input lines
7. Connected to PC using FTDI cable (power comes from this cable) - Sensor board is disconnected.
8. Checked signal on Input lines - 5V. Looks good to me.

Problem is - ArdupilotMegaPlanner connects to board, but reads no signal from RC receiver.

Any ideas?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Today with fresh head, I found solution. There is confusion with programming fuses.

    avrdude -e -c stk500v2 -p m328p -P com4 -U lock:w:0xFF:m
    avrdude -e -c stk500v2 -p m328p -P com4 -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0xFE:m
    avrdude -e -c stk500v2 -p m328p -P com4 -U flash:w:Encoder-PPM.hex  -- started to work!
    avrdude -e -c stk500v2 -p m328p -P com4 -U lock:w:0xCF:m -- after this line MCU stops responding (flashing)

This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…