Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Surely there's an easy fix: on: April 27, 2014, 02:04:30 pm
One more suggestion for the tone tutorial page- I found that the audio hardware works fine with a simple piezo disc connected to pin 8 and ground instead of the 8 ohm speaker + the correct resistor.  Is the piezo a valid alternative and a safer circuit from Arduino's standpoint because there is no inductive whiplash from the speaker coil?
2  Using Arduino / Programming Questions / Re: Surely there's an easy fix: on: April 27, 2014, 01:53:19 pm
Also a tiny typo on that page. "The" should be "Then" :
 "The paste in the following code:

/*************************************************
 * Public Constants
 *************************************************/

#define NOTE_B0  31
#define NOTE_C1  33
3  Using Arduino / Programming Questions / Re: Surely there's an easy fix: Tone tutorial on: April 27, 2014, 01:34:50 pm
I struggled with this until I figured out that when adding a tab with the table of tones pasted in, the tab MUST BE NAMED (or renamed) as:      pitches.h      That way Arduino knows where to look when the sketch code says:
#include "pitches.h"

So, can we get help from an editor to clarify the portion of the tutorial regarding adding a tab and renaming it?
Also the add a tab arrow points straight downward on my screen- not to the right as shown in tutorial. 
http://arduino.cc/en/Tutorial/Tone
Help us Obi-Wan ( Tom Igoe  )

Best regards,
Michael Flynn

4  Development / Suggestions for the Arduino Project / typo in code on this page: http://arduino.cc/en/Reference/SoftwareSerialPrintln on: January 26, 2014, 08:31:08 pm
See this page:   http://arduino.cc/en/Reference/SoftwareSerialPrintln

I think there is a problem but I could be wrong. I think the example code posted on the Arduino site needs a capital letter S at the beginning of each Serial.print command....

Here is the problematic code.
Code:
SoftwareSerial serial(10,11);
int analogValue;

void setup()
{
  serial.begin(9600);
}

void loop()
{
  // read the analog input on pin 0:
  analogValue = analogRead(A0);

  // print it out in many formats:
  serial.print(analogValue);         // print as an ASCII-encoded decimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, DEC);    // print as an ASCII-encoded decimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, HEX);    // print as an ASCII-encoded hexadecimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, OCT);    // print as an ASCII-encoded octal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, BIN);    // print as an ASCII-encoded binary
  serial.print("\t");                // print a tab character
  serial.print(analogValue/4, BYTE); // print as a raw byte value (divide the
                                     // value by 4 because analogRead() returns numbers
                                     // from 0 to 1023, but a byte can only hold values
                                     // up to 255)
  serial.print("\t");                // print a tab character   
  serial.println();                  // print a linefeed character

  // delay 10 milliseconds before the next reading:
  delay(10);
}
5  Development / Other Software Development / simple typo needs fix on: October 03, 2012, 10:13:00 pm
Need an editor to jump in and fix this please.
I found a simple typo on the read AnalogReadSerial Tutorial page:
http://arduino.cc/en/Tutorial/AnalogReadSerial

Here is the broken sentence.....

"Finally, you need to print this information to your serial window as. You can do this with the command Serial.println() in your last line of code:"


Cheers, Mic
Pages: [1]