Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 22, 2013, 06:29:00 am
Quote
Just to rule out the piezo itself, since you have it already connected on one of the ATTiny PWM pins, can you get a sound from it using analogWrite
AnalogWrite does not produce a sound.
Quote
it's time to check whether the buzzer polarity might be a factor
It's a non polar buzzer, which works no problem with the arduino itself.

Despite these not being the problem, I found the solution: there was an older ATTiny core that I never removed. It was overriding the new core with the tone() function. Once I removed the older core, the new one took effect and now the project works fine.
Thanks to everyone for their help!
2  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 10:09:10 pm
Well, I'm going to go to bed. Maybe tomorrow I'll think of another variable we can test. If so, I'll post here about it. In the mean time, thanks for all the help.
3  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 10:04:30 pm
The core I'm downloading is called "arduino-tiny-0100-0015" if that makes a difference. (Found it from the second link at the beginning of this post)
4  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:53:52 pm
A quiet click every 200ms.
5  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:48:46 pm
Yes.
6  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:46:07 pm
No, it's a buzzer. I think it's called a piezzo buzzer. And I know it works with the tone() function on the arduino.
7  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:40:56 pm
The speaker (which I know works) connected to ground.
8  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:33:14 pm
I doubt it's actually the code, seeing as how it's just a simple test:
Code:
void setup() {
}
void loop() {
  tone(3, 2000, 500);
  delay(500);
  tone(3, 3500, 500);
  delay(500);
}
I'm thinking something is different about the core, but I followed the readme.txt exactly... :/
9  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:20:07 pm
So I re-installed arduino as 1.0.3. Also re-installed the core you used. Built the circuit correctly. Made sure that a normal LED sketch works. (It does.) The tone() still won't work.
10  Using Arduino / Microcontrollers / Re: ATTiny85 tone() core? on: January 21, 2013, 09:09:59 pm
The entire ATTiny works fine. I can blink an LED. But when I use tone() with a speaker, nothing happens. I'll try it with 1.0.3 now and see if that makes a difference. (I've been using 1.0.1 up until now)
11  Using Arduino / Microcontrollers / ATTiny85 tone() core? on: January 21, 2013, 09:02:11 pm
This
http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0022-0008.zip&can=2&q=
doesn't seem to work. Nor does this: http://code.google.com/p/arduino-tiny/
Are they just outdated, and if so can I just revert back to an older version of arduino IDE?
Pages: [1]