Show Posts
Pages: [1] 2 3 ... 5
1  Forum 2005-2010 (read only) / Bugs & Suggestions / updated eagle files for new ethernet shield on: August 27, 2010, 08:32:04 pm
one the official ethernet shield page the  eagle files and schematic are out of date and show the original version.

http://arduino.cc/en/Main/ArduinoEthernetShield

how can we get the new eagle files?
2  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Boolean Broken 015? Illuminato on: May 15, 2009, 02:27:00 pm
I bought a Illuminato
http://www.liquidware.com/shop/show/ILL/Illuminato
set it up as instructed to
tried to run this code as a test
http://arduino.cc/en/Reference/BooleanVariables
and i got that error
error: 'boolean' does not name a type In function 'void loop()':

is there something missing in the core files?
3  Forum 2005-2010 (read only) / Bugs & Suggestions / Boolean Broken 015? Illuminato on: May 14, 2009, 12:11:25 pm
I tried to run the code here http://arduino.cc/en/Reference/BooleanVariables

but im getting
Quote
error: 'boolean' does not name a type In function 'void loop()':

when I try to run it??

Boolean broken with the Illuminato core?
4  Forum 2005-2010 (read only) / Development / Re: MIDI Library on: May 16, 2009, 06:00:10 pm
Im working on some thing similar only different lol
Arduino based midi mixing board that can control Reason and Virtual DJ
far from releasing any code yet
5  Forum 2005-2010 (read only) / Development / Re: Newbie question - webcam on: May 19, 2009, 09:08:27 am
what about using some thing like this?
http://www.ifirobotics.com/camera.shtml#Specifications

I was part of my local robotics team smiley
6  Forum 2005-2010 (read only) / Development / for loops take forever :-D on: July 03, 2009, 11:41:40 am
So i was playing around with the multiple led code found here http://www.thebox.myzen.co.uk/Workshop/LED_Sensing.html
when I realized this could be done so much better with direct port manipulation smiley
http://pastebin.com/fd778fb5


only thing that I am having trouble with is figuring out how to measure how long it takes for each led to discharge.

while ((PIND !=169)||(PINB!=43))
{
switch PIND
{
case B10101000:
break;

might end up with a huge case statement
7  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: July 03, 2009, 02:59:06 pm
nice work!

are you going to fix it so we can put multiple variables on one line
example:
int apples = 5;
int sold = 12;
Serial.Println("I have " << apples << " in my inventory, and sold " << sold << " apples today.");

8  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: June 11, 2009, 08:50:25 pm
Works great!! tyvm smiley

now to expand functionality and usefulness

Im probably making a very noob error here, who can spot it? (I keep thinking  vb.net X_x not c++)

Code:
#include <AdvancedSerial.h>

AdvancedSerial advser = AdvancedSerial();
char* recieved;
char* lastcommand;
void setup() {
  advser.begin(false,9600);
  Serial.println("AlphaBeta is King");
  Serial.println(advser.getString());
}

void loop(){
  advser.getSerial();
  recieved = advser.getString();
  if(recieved != lastcommand)
  {
    if(recieved == "error?")
    {
     Serial.println("there was not a error!");
     }
  lastcommand= recieved;
  }
  
}
9  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: May 23, 2009, 04:39:35 pm
no help yet?
10  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: May 17, 2009, 05:58:23 pm
CPP file
http://www.arduino.pastebin.com/f4741e33
.h file
http://www.arduino.pastebin.com/f4b75f402

Working sketch I'm trying to convert to a library
http://www.arduino.pastebin.com/fac58442

TY in advance smiley
11  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: May 17, 2009, 01:52:13 pm
O.o!!!

I ended up with 32 pages of errors then??

what did I do wrong?
Can someone Guide me?
12  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: May 16, 2009, 07:44:41 pm
ok i started working on the library and ran into a problem
In function `AdvancedSerial':
AdvancedSerial.cpp:14: undefined reference to `AdvancedSerial::invertLED()'
o: In function `loop':
Temporary_8586_9130.cpp:14: undefined reference to `AdvancedSerial::getSerial()'
Couldn't determine program size: \serialtest.hex': No such file


I cant figure out what i did wrong??

the AdvancedSerial.h
Code:
#ifndef AdvancedSerial_h
#define AdvancedSerial_h
#include "WProgram.h"
//Advanced Serial Input By Moogle

class AdvancedSerial
{
  public:
   AdvancedSerial(boolean Debug, int Speed);
   void getSerial();
   void DEBUGPrint();
   char* GetString();
  private:
  char incomingByte[];
  byte StringSize;
  boolean ledon;
  boolean DEBUG;
  int _speed;
  void invertLED();
};


#endif

the AdvancedSerial.cpp
Code:
#include "WConstants.h"

//Advanced Serial Input By Moogle
#include "AdvancedSerial.h"
#define LEDpin 13

AdvancedSerial::AdvancedSerial(boolean Debug, int Speed)
{
  _DEBUG=Debug;
  _speed = Speed;
  Serial.begin(_speed);
  Serial.flush(); // for good luck ?
  pinMode(LEDpin, OUTPUT);
  digitalWrite(LEDpin, ledon);
  StringSize = 10;
  ledon = false;
  incomingSTR[] = "test";
  invertLED();
  if(_DEBUG)
  {
    Serial.println("Advance Serial Input Debug Enabled");
  }
}
char* GetString()
{
  return incomingSTR;
}

void invertLED() {
  //Blink the led for visual reference
  digitalWrite(LEDpin,ledon);
  ledon =!ledon; //Invert current Led state
  delay(100); //Delay to give buffer a chance
}

void getSerial()
{
  if( Serial.available() > 0) {// was something typed?
    while (Serial.available() > 0) {
      //there is something in the buffer
      for( int i =0; i <StringSize; i++){
        //only loop 10 times dont over flow array
        // read the incoming byte:
       incomingSTR[i] = Serial.read();
       invertLED();
      }
    }
    DEBUGPrint();//Print the info typed
  }
}


void DEBUGPrint()
{
  if( _DEBUG) {//Will only print if the debug is enabled
      Serial.print("I received: ");
      for( int i =0; i <StringSize; i++){
       //only loop 10 times dont try to print outside the array
        if(incomingSTR[i]!=-1){
        //sometimes not all 10 characters are used
          Serial.print(char(incomingSTR[i]));
        }
        else{
        //dont print null kill the loop
          i=StringSize;
        }
      }
      Serial.println();
    }
}

any ideas?
13  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: May 15, 2009, 07:33:41 pm
Here is what I have working so far, I have the flu so I might have made some mistakes

Code:
//Advanced Serial Input By Moogle
//Max input length is 10, so "SetA 110000"
#define LEDpin 13
boolean ledon = false;
#define DEBUG true
// Variables:
char incomingByte[10] = "test";      // for incoming serial data
boolean printed = false;

void setup()
{
  Serial.begin(9600);
  Serial.flush(); // for good luck ?
  pinMode(LEDpin, OUTPUT);
  digitalWrite(LEDpin, ledon);
  invertLED();
  if(DEBUG)
  {
    Serial.println("Advance Serial Input Debug Enabled");
  }
}

void loop()
{
  getSerial();
  void invertLED();
}

void getSerial()
{
  if( Serial.available() > 0) {// was something typed?
    while (Serial.available() > 0) {
      //there is something in the buffer
      for( int i =0; i <10; i++){
        //only loop 10 times dont over flow array
        // read the incoming byte:
       incomingByte[i] = Serial.read();
       invertLED();
      }
    }
    DEBUGPrint();//Print the info typed
  }
}
void invertLED() {  
  //Blink the led for visual reference
  digitalWrite(LEDpin,ledon);
  ledon =!ledon; //Invert current Led state
  delay(100); //Delay to give buffer a chance
}
void DEBUGPrint()
{
  if( DEBUG) {//Will only print if the debug is enabled
      Serial.print("I received: ");
      for( int i =0; i <10; i++){
       //only loop 10 times dont try to print outside the array
        if(incomingByte[i]!=-1){
        //sometimes not all 10 characters are used
          Serial.print(char(incomingByte[i]));
        }
        else{
        //dont print null kill the loop
          i=10;
        }  
      }
      Serial.println();
    }
}

will read a word from the user.
TODO:
process the words
split words from numbers; example"Speed= 100"
convert to a re-usable library
14  Forum 2005-2010 (read only) / Development / Re: Advanced Serial input? on: May 15, 2009, 02:32:27 pm
anyone know how to use the serial interrupts on the arduino? im looking for a good serial tutorial but cant find anything decent?
15  Forum 2005-2010 (read only) / Development / Advanced Serial input? on: May 14, 2009, 12:53:31 pm
I couldn't help notice that no one has coded a advanced serial input library yet?
With current available code I'm finding it very hard to read strings of commands entered to the arduino via serial.

Ive made a terminal style input in asm before on the HCS12 how hard would it be on the Arduino?
I want to be able to communicate via serial different string commands
for example
If you typed
flush_Ser
the serial would be flushed
Set_midiCon1 7    
would set midi controller 1 to act as a main volume control
Pages: [1] 2 3 ... 5