Getting code off an Arduino

Preamble

A friend asked:

is it possible to upload source code from chip to the computer?

Continue reading Getting code off an Arduino

Advertisements

ByteBeat on Arduino

Preamble

Following on from Can an Arduino function as a DSP?, it is possible for the Arduino to make music – take Bytebeat, for example.

What is byte beat?

Bytebeat is a music synthesis technique that was discovered by Ville-Matias Heikkilä (viznut/pwp). Kragen Javier Sitaker has a good writeup on the subject. The way it works is that you generate a stream of 8-bit audio with the samples calculated by a function of sample index. This means that the song is defined by the function. In pure-form bytebeat, the function corresponds to a computer program that employs bit-wise and basic arithmetic operators, meaning that a small-sized formula would also have a small-sized implementation if realized in machine language or something like that. It may have been vital to Viznut’s discovery that he experimented with a low 8 kHz sampling frequency. With high sampling frequencies, the flat spectral envelope arising from bit-wise operations and numerical wrapping makes the sound thin and harsh. I regretfully admit that initially I had doubts that the methodology would be able to produce anything else than glitch-y noise, but it turns out that some formulas produce songs suitable for a wider audience.

Olli Niemitalo on 2012-02-25

Continue reading ByteBeat on Arduino

Can an Arduino function as a DSP?

Preamble

A friend of mine asked if an Arduino could perform certain digital signal processing (DSP) tasks, such as the FV1 chip, see Spin Semiconductor FV-1. However the ATmega328, nor the ATmega2560 can do this, as they are 8-bit processors, and a faster chipset would be required (i.e. FPGA).

The ATmega chips struggle to control 3D printers at times and 32 bit microcontollers are becoming more and more popular. The Arduino Mega 2560 (i.e. ArduMega) was dropped from ArduPilot/ArduPlane/ArduCopter, due to its limitations, a while back, with v3.2.1 being the last release that supported the ATmega2560.

I also remembered that I saw a similar question on Arduino stack exchange the other day. Continue reading Can an Arduino function as a DSP?

How do I get a .hex file on to my Arduino?

Preamble

So you have been given a .hex file, and you need to get it onto the Arduino. How is that possible. Maybe you are used to jst dealing with .ino files, compiling them in the Arduino IDE and then letting it do the rest?

This post was inspired by Recalibrating Home-position.

Continue reading How do I get a .hex file on to my Arduino?