Address

Author Topic: February Hackathon - Team Grue - FamiCorder  (Read 1707 times)

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
February Hackathon - Team Grue - FamiCorder
« on: February 09, 2013, 10:47:29 PM »
This post is a little late, but here's where we are with the FamiCorder electronic, musical instrument hack. We're using the attiny4313 secret ingredient as the MCU for the project, along with a bunch of momentary buttons, a speaker, and an electret microphone. The idea is that you'll be able to blow into the recorder, just like it analog counterpart, and the microphone will trigger the device to play the note you are fingering at the time. :)


We made great progress the first night planning the project, and writing to the attiny4313 using a hacked Arduino IDE. To get it running code, I had to modify the cores from arduino-tiny and the avrdude.conf file in the Arduino IDE package. I basically changed the 2313 entry signature and memory limit and renamed it. It was... interesting.


Today we hit Skycraft and grabbed a bunch of momentary buttons, an electret microphone, piezo speaker, and other randomness. We also got the shell for our project from Sam Ash: a bright blue recorder. A short while later, we had a fancy microphone triggered LED up and running.


FamiCorder - Electret Test


We later discovered erratic PWM behaviour on the attiny4313. It took us awhile to track this down, building and tearing down several circuits and trying different chips. It turns out, if you don't burn the fuses properly, these things will not play nice. Here's the avrdude fuse line we used:


avrdude -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -c usbtiny -p t4313

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: February Hackathon - Team Grue - FamiCorder
« Reply #1 on: February 10, 2013, 12:01:07 AM »
Note to self: "Verify" in Arduino IDE, write with avrdude using:


avrdude -p t4313 -c usbtiny -U flash:w:/var/folders/f7/_b4vzx9d7mx1kh_jcwj070p80000gn/T/build6879111727056798658.tmp/famicorder_v1.cpp.hex:i

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: February Hackathon - Team Grue - FamiCorder
« Reply #3 on: February 10, 2013, 01:39:01 AM »

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: February Hackathon - Team Grue - FamiCorder
« Reply #4 on: February 10, 2013, 03:53:36 PM »

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: February Hackathon - Team Grue - FamiCorder
« Reply #5 on: February 10, 2013, 10:31:51 PM »

willasaywhat

  • Administrator
  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: February Hackathon - Team Grue - FamiCorder
« Reply #6 on: February 10, 2013, 10:36:27 PM »