Brute Force PWM Input and Output

OK, so I finished the code for my Munny project. It seems to work, but it’s too slow. That is, it doesn’t quite respond appropriately and I think it’s because things are happening too slowly. And forget about an IIR filter on the accelerometer values.

Take a look at my Pastebin if you want to see the code.

Well, I shouldn’t totally forget about the IIR filter, but I would need to study all the speed tricks in implementing such a thing before it will work (I tried).

So what now? I guess I’ll just use a proper Arduino with enough PWMs to do the task to begin with. Unless I’m really stuck on the ATtiny, in which case I can probably keep the BlinkM and talk to it from an ATtiny over I2C or whatever. Sounds like unnecessary work.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s