My e-bird

user warning: Unknown column 'i18n.language' in 'where clause' query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta LEFT JOIN i18n_blocks i18n ON (b.module = i18n.module AND b.delta = i18n.delta) WHERE (i18n.language ='en' OR i18n.language ='' OR i18n.language IS NULL) AND ( b.theme = 'garland' AND b.status = 1 AND (r.rid IN (1) OR r.rid IS NULL) )ORDER BY b.region, b.weight, b.module in /var/alternc/html/o/orangeseeds/usr/drupal-6/modules/block/block.module on line 456.

Trying to cope up (somehow) with Sam's hyperactive work of the past few weeks, I started working on my own O/I-SO module. The plan is to build a small module with the following features:

  • Solar cell
  • ATMEGA8L
  • Speaker
  • Photoresistor
  • Generative audio library

I decided to use this as a way to get my hands dirty in doing some soldering. Plus, I started working on a small audio library inspired by dataflow systems like Pd and Drone. It currently features the following operations:

  • Wave generators: square, sine, triangle (+sawtooth)
  • Operators: + and *
  • Player (output)
  • AnalogRead

In the first experiment with the module, I was able to get it working in sunlight conditions with a pretty good noise. The major issues for now are:

  1. There is some kind of "reset" (I guess it has to do with "brown out" detection or something) on the chip such that when the sun is cut (and thus the power supply) the module won't restart even if the sun comes back
  2. The photoresistor is supposed to control amplitude but we can't really hear the different, probably because the tone is already kind of low. Maybe we can try out with something different (e.g. changing the frequency)

You can get the code in attachment to this post.

AttachmentSize
audio.pde8.71 KB