Speakjet and Arduino mega
hi, im using arduino mega , speakjet shield project, , wire speakjet tts256
http://www.sparkfun.com/tutorials/166
but cant make work code next
and when upload code says ready no it, put pins in vin gnd +5v +3v3 rst , rx tx 2 , 3, im doing wrong??
http://www.sparkfun.com/tutorials/166
but cant make work code next
quote
#include <softwareserial.h>
#define txpin 2
#define rxpin 3
// set softwareserial port connect speakjet
softwareserial speakjetserial = softwareserial(0, txpin);
void setup()
{
// define pin modes tx, rx pins:
pinmode(rxpin, input);
pinmode(txpin, output);
speakjetserial.begin(9600);
speakjetserial.println("say it"); // send speakjet
}
void loop()
{
}
and when upload code says ready no it, put pins in vin gnd +5v +3v3 rst , rx tx 2 , 3, im doing wrong??
why creating variables pins 2 , 3, create serial port 0 , 3?
also, don't use pinmode on pins you're setting software serial. begin() method you.
also, don't use pinmode on pins you're setting software serial. begin() method you.
Arduino Forum > Using Arduino > Project Guidance > Speakjet and Arduino mega
arduino
Comments
Post a Comment