Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Trying to use the Tone library, but getting compile errors on: January 16, 2012, 06:55:51 pm
Quote
Change "wiring.h" to "Arduino.h" to see if that's the only problem.

Doing this resolved all the compile errors.  Thank you very much for your help!
2  Using Arduino / Programming Questions / Trying to use the Tone library, but getting compile errors on: January 16, 2012, 03:41:23 pm
Hi folks, I'm trying to use the Tone library (found at http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation), but I get the following error messages when I try to compile the demos:

Quote
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:26:20: error: wiring.h: No such file or directory
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp: In member function 'void Tone::begin(uint8_t)':
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:121: error: 'bitWrite' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:123: error: 'digitalPinToPort' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:123: error: 'portOutputRegister' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:124: error: 'digitalPinToBitMask' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp: In member function 'void Tone::play(uint16_t, uint32_t)':
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:198: error: 'OUTPUT' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:198: error: 'pinMode' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:294: error: 'bitWrite' was not declared in this scope
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp: In member function 'void Tone::stop()':
C:\Users\yoshito\arduino-1.0\libraries\Tone\Tone.cpp:361: error: 'digitalWrite' was not declared in this scope

I'm pretty new to the entire coding thing, so could anybody help out with suggestions?  Very much obliged!
3  Using Arduino / Audio / Re: 3.5mm jack: resistors to use to avoid ear damage on: January 13, 2012, 05:51:41 pm
Awesome, thank you very much for these replies!  Time for a trip to Radio Shack!

Have a great weekend!
4  Using Arduino / Audio / 3.5mm jack: resistors to use to avoid ear damage on: January 12, 2012, 09:30:03 pm
Hi folks, I'm working on a white noise machine.  I'm having a hard time finding documentation on what resistor values to use with a 3.5mm jack in order to avoid ear damage due to excessive decibels.  I don't want the white noise to drive me deaf!  Any suggestions or references? 1000 Ohms seems to get the signal down to a reasonable volume, but I'm afraid to put it too close to my ear until I can find out some facts.  Thanks for any help!
5  Using Arduino / Motors, Mechanics, and Power / Using servos in a cat toy -- looking for advice on range of motion on: June 26, 2011, 08:31:14 pm
Hi folks,

I'm working on an Arduino-powered cat toy that makes a laser dot move in an attractive manner around a large area in a room. The idea is that this thing will be mounted onto a wall or ceiling, and I'll have controls that let you adjust speed and range of motion.  Links to videos of what I've got so far are at the end of this post.

The motor setup is just a couple of mini-servos, one mounted onto the other, so that I get a 90-degree range of motion in two dimensions. The sketch moves the servos around randomly--nothing fancy!

My question to you folks is whether there's a better, more compact, or more elegant way of getting that kind of range of motion. I'd like to solder all of this together and put it into a project box eventually.

I'm not very experienced with mechanisms or electronics--this is my first "big" project--so any advice or feedback would be appreciated!


Pages: [1]