Show Posts
Pages: [1] 2 3 ... 6
1  Using Arduino / Audio / PCM audio with a Attiny85? on: November 24, 2013, 10:47:21 pm
My question is nearly the same as this thread, which has gone quiet:
http://forum.arduino.cc/index.php?topic=187068.msg1384698#msg1384698

I'm wondering if the Attiny85 can be made to output PCM audio using PWM and the right timer interrupts. The Attiny85 seems capable of this, as shown at this link:
http://elm-chan.org/works/sd8p/report.html

But the code is unfamiliar to me, so I'm not sure how to make use of it.

I'm wondering instead if this PCM audio example can be tweaked to work on the Attiny85:
http://playground.arduino.cc/Code/PCMAudio

I think that someone with a better understanding of timer interrupts than me might have no trouble adapting that code for the Attiny85. Any takers? Or any tips?
2  Community / Bar Sport / Re: Ban Fritzing on: June 02, 2013, 09:03:38 am
It seems to me the reasonable thing to do when someone posts a breadboard image that you find unsatisfactory, is to request a schematic image. Do this enough, and people will realize that the schematic images (or both schematics and breadboard images) are preferred, and somewhat necessary if you are to get more help. Same as when people post one-sentence bug reports, and people ask for detailed steps to replicate the bug before trying to help.

Personally, I think it would be great if people posted both. Those who don't understand schematics yet would get exposed to them with the breadboard side-by-side.
3  Using Arduino / Installation & Troubleshooting / Re: error that makes pin 13 blink rapidly? on: May 19, 2012, 02:04:55 pm
That makes sense. I managed to recover the chip by popping it into a different board and programming it. It even works in the original board now.

I'm mainly rambling now, in case this is useful for anyone who comes across this problem. (You may not have bricked the Atmega after all.) It seems related to this: http://arduinology.blogspot.com/2012/02/repeated-resets-on-webtime.html

I may have taken up too much memory at some point with an earlier draft of the code. Or maybe the motors created some kind of electrical noise.

Anyway, thanks!
4  Using Arduino / Installation & Troubleshooting / Re: error that makes pin 13 blink rapidly? on: May 19, 2012, 01:31:53 pm
I know. I thought the ULN2803's would be isolation enough, but they apparently weren't. They worked fine for quite a while, then started acting up. I've ordered some optocoupler arrays to give it another go.

But back to the topic at hand. With no motors or anything attached, pin 13 is blinking when nobody told it to. Pin 13 is never mentioned in the code. Does anyone know what that's all about? Atmega death rattle?
5  Using Arduino / Installation & Troubleshooting / Re: error that makes pin 13 blink rapidly? on: May 19, 2012, 01:24:26 pm
Yes, with Vin though, not the 5V.
6  Using Arduino / Installation & Troubleshooting / Re: error that makes pin 13 blink rapidly? on: May 19, 2012, 01:16:50 pm
Loopback test was successful. Code is attached.

I take it this isn't some known way for the Arduino or ATmega to scream for help or something?
7  Using Arduino / Installation & Troubleshooting / error that makes pin 13 blink rapidly? on: May 19, 2012, 11:45:43 am
To be clear, this is NOT about running the Blink example.

I've had an issue with a Duemilanove. The ATmega is apparently fried, or half-fried, or something. It has stopped running the code I've loaded onto it, and instead just blinks pin 13 pretty quickly, and I can't upload new code. If I try, I get "avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding".

I'm not really asking for a fix, I'm just wondering what the blinking is caused by. Is it an error message of some kind? Whatever it is, it wasn't in the code I uploaded to the board.

I found one other thread where a couple people reported something similar. They found a work around (that hasn't work for me), but they never explained why the blinking happens. Does anyone know?
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248528012/6#6
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248528012/14#14

One clue: On the troubleshooting page it points out that the bootloader blinks pin 13 once on startup. (3 times for NG board, and apparently 3 for the Uno as well.) Maybe it's stuck repeating that startup sequence for some reason?
8  Using Arduino / Microcontrollers / Re: Standalone Atmega8u2 gotchas? on: May 08, 2012, 11:16:55 am
Quick note: Obviously the IC in that diagram isn't an atmega8u2, but a breakout board I made. I've attached what that looks like.
9  Using Arduino / Microcontrollers / Re: Standalone Atmega8u2 gotchas? on: May 08, 2012, 10:52:59 am
I know this is an old thread, but if you're still struggling with this, maybe this will help. I managed to pull this off yesterday. I was able to program an atmega8u2 on a breadboard (with a breakout PCB) using an AVR ISP mkII programmer. I tested it by loading the Blink example onto an atmega326-PU that had the Uno bootloader on it.

My circuit is a bit different from yours. I'm using USB bus power and I think the reset pins are handled a little differently. I've attached a pdf of the Fritzing breadboard. I should be documenting this better sometime soon.
10  Community / Website and Forum / Re: Update http://arduino.cc/en/Tutorial/ArduinoISP on: April 26, 2012, 01:12:57 pm
I would also love to see this page updated. I've been going around in circles trying to pull this off, finding lots of different (undated) tutorials with slightly different advice, slightly different hardware libraries, etc, none of which seems to work.

It tutorials had publish dates, or existed on a wiki, this would be less of an issue. The people in the small crew that actually can update this page, I'm sure are terribly busy.
11  Using Arduino / Audio / Using v-usb for arduino to make a MIDI device? on: April 06, 2012, 02:43:30 pm
I'd like to get some help with this library to make an Arduino appear as a HID MIDI device: http://code.google.com/p/vusb-for-arduino/

I've successfully used this library to make an arduino act like a keyboard. How would I go about making it appear as a MIDI device instead? I assume I would need to copy the library, rename it, and then change something in usbconfig.h, but I'm not sure what to change. Any tips?
12  Using Arduino / Microcontrollers / Re: Programming an ATtiny85 w/ Arduino 1.0 on: February 21, 2012, 05:48:37 pm
Ah! found it. It's working beautifully now, thank you!
13  Using Arduino / Microcontrollers / Re: Programming an ATtiny85 w/ Arduino 1.0 on: February 21, 2012, 05:20:24 pm
Those changes are made to avrdude.conf, or dealing with WinAVR. It seems like these are specific to the Windows platform, correct? Is there a similar file on Mac OS X systems to edit?
14  Using Arduino / Microcontrollers / Re: Programming an ATtiny85 w/ Arduino 1.0 on: February 20, 2012, 11:47:51 am
Well, I'm not out of the woods yet. It looks like I haven't been able to change the clock frequency or something. Instead of running at 8MHz, it seems to be running at 1MHz, but still running the program as if it was running at 8MHz. For example, delay(1000) takes 8 seconds, instead of 1.

Like I said, there is an error when I try to Burn the Bootloader in Arduino-0022. Here's the verbose output of that error: http://pastebin.com/7D9GYimW

Incidentally, if I select "ATtiny85 at 1MHz (internal oscillator; BOD disabled)", then delay(1000) takes 1 second, as it should. I would try burning the 16MHz bootloader with an external oscillator, but I'm not sure how to connect the oscillator to the ATtiny.

Programming ATtiny's at 1MHz is cool, but it would be nice to have a faster clock for serial support, etc. If I can just get that clock frequency changed, I'm good to go.
15  Using Arduino / Microcontrollers / Re: Programming an ATtiny85 w/ Arduino 1.0 on: February 20, 2012, 11:16:46 am
Like ateller, I also had success with Arduino 0022 and the MIT/HLT library. I did get an error when loading the Bootloader, but if I ignore it I can still load the Blink example. I tried with some ATtiny85's that I haven't used yet just to be sure. Other details:
  • 119 ohms (from combined resistors) between 5V and RESET
  • 10uF capacitor between GND and reset
  • Mac OSX 10.6.8;/li]
Not sure if the capacitor s necessary since ateller had success without it. I also tried Arduino 1.0 with the other library ( http://code.google.com/p/arduino-tiny/ ), but still no luck there. It's totally worth keeping 2 versions around to make this possible. If I can help debug the 1.0 version, I'd be happy to provide more info or try other things.

(w00t!)
Pages: [1] 2 3 ... 6