Archive for Hardware

[Arduino] Burn JTAG Enabled Bootloader on Arduino Mega (ATmega2560)

To enable the JTAG Interface on an Arduino Mega the JTAGEN fuse bit must be set to zero.

A modified Arduino bootloader with JTAGEN fuse bit enabled can be programmed by using an Arduino Uno as ISP (In-circuit Serial Programmer).

The Arduino IDE can be used to burn the bootloader after making the following modifications to <Arduino IDE Path>\hardware\arduino\avr\boards.txt

"C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt"

The following calculator can be useful to calculate the correct value: Fusecalc

The mega.menu.cpu.atmega2560.bootloader.high_fuses value is modified from 0xD8 to 0x98

## Arduino Mega w/ ATmega2560
## -------------------------
mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560)

mega.menu.cpu.atmega2560.upload.protocol=wiring
mega.menu.cpu.atmega2560.upload.maximum_size=253952
mega.menu.cpu.atmega2560.upload.speed=115200

# mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8
mega.menu.cpu.atmega2560.bootloader.high_fuses=0x98

Connect the Arduino ISP (Arduino Uno) to the target (Arduino Mega).
Connect the Arduino ISP (Arduino Uno) to the PC with an USB cable.

ArduinoISP

Arduino Uno as ISP <-> Arduino Mega 2560

Read more

QNAP NAS: Fix the Seagate “chirp” sound

Some weeks ago I bought a NAS from QNAP, the 2-bay TS-212 version.

Along with this device I purchased a 3TB Seagate HDD, model ST3000DM001.
On the QNAP website, I read that this particular HDD needed a firmware update to work properly.
My Seagate drive was packed with firmware CC4B, which for some reason was not eligible for updating to CC4H.

I decided to stick the HDD into the QNAP NAS and see what happens.
Initially I installed firmware version 3.8.0 on the QNAP NAS, last week I did the update to version 3.8.1 which went far from flawless.

The update failed the first (live-update) and second (manual update) time, but for some reason after the third time trying to install the update manually, it succeeded.

Now, with version 3.8.1 installed, I noticed a big annoyance.

It’s the terrible sound that the Seagate ST3000DM001 is making. Almost every time the NAS is trying to access the HDD, it makes a very loud “chirp” sound. It drove me crazy, and went to search for solutions, because it didn’t sound very healthy.

Read more