Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: PC and 4 ARDUINO's in network on: October 25, 2012, 02:37:43 pm
How would you solve this problem?
Please see the picture: Example 1 or Example 2? Which is better?
2  Using Arduino / Interfacing w/ Software on the Computer / Re: PC and 4 ARDUINO's in network on: October 25, 2012, 02:23:18 pm
ARDUINO would have 16x2 LCD and 2 buttons.
Not require communication between the arduino's, just between the PC and Arduino.

I have WiFly shield from Sparkfun. Is it useful for this?

I have not expiriance vith visualisation. Is there a way to make a visualization on Excel, maybe with VBS.
Because the data is stored in Excel spreadsheets.

Thanks.
3  Using Arduino / Interfacing w/ Software on the Computer / Re: PC and 4 ARDUINO's in network on: October 25, 2012, 10:09:04 am
Thanks for your answer...
It is wood working machines, making parts for furniture. But it does not matter.
Distance from the PC to the machines is about 50m. (Like star)
Wire connections is difficult.
My question is:
what kind of visualization
what type of network (see pictures)

Thanks,
Predrag
4  Using Arduino / Interfacing w/ Software on the Computer / PC and 4 ARDUINO's in network on: October 25, 2012, 06:34:37 am
Hi all!
I need recomendation for my project. A document describing the project is attached.
I would be very grateful for your recommendation.
Whitch software can I use for visualization?
Thanks in advance.
5  Using Arduino / Programming Questions / Re: Compiling error with Time Library on: September 23, 2012, 04:54:13 pm
Thanks, but ...
How do I create a folder librarj when every time you start the Arduino to create a new folder in
C:\Users\Pedja\AppData\Local\Temp\?
1. start: C:\Users\Pedja\AppData\Local\Temp\untitled8972537458565446593.tmp\sketch_sep23a
2. start: C:\Users\Pedja\AppData\Local\Temp\untitled1196531651570556719.tmp\sketch_sep23a

I'm sorry, but I do not understand anything! Can you give me an example? In the following pictures you can see where the folder with arduino:
6  Using Arduino / Programming Questions / Re: Compiling error with Time Library on: September 23, 2012, 05:28:26 am
Thanks for not prompt reply.
I have read all the posts, and I have not managed to solve the problem.
I tried that example, "Time" to copy the folder Ekamples - I get the same error.
In one post, I found it necessary to replace BYTE with byte (0). After that there have been other errors:

In file included from D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:53:
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\/WiFlySerial.h:199: error: 'SoftwareSerial' does not name a type
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In constructor 'WiFlySerial::WiFlySerial(byte, byte)':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:329: error: class 'WiFlySerial' does not have any field named 'uart'
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:350: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'int WiFlySerial::ScanForPattern(char*, int, const char*, boolean, long unsigned int, boolean)':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:464: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'boolean WiFlySerial::StartCommandMode(char*, int)':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:549: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:575: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:581: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'boolean WiFlySerial::GetCmdPrompt()':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:622: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'boolean WiFlySerial::SendCommand(char*, char*, char*, int, boolean, long unsigned int, boolean, boolean)':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:695: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'virtual int WiFlySerial::peek()':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:1747: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'virtual size_t WiFlySerial::write(uint8_t)':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:1750: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'virtual int WiFlySerial::read()':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:1760: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'virtual int WiFlySerial::available()':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:1776: error: 'uart' was not declared in this scope
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp: In member function 'virtual void WiFlySerial::flush()':
D:\Downloads\Programs\arduino-1.0.1-windows\arduino-1.0.1\libraries\WiFlySerial\WiFlySerial.cpp:1779: error: 'uart' was not declared in this scope

I really do not know what to do?
7  Using Arduino / Programming Questions / Compiling error with Time Library on: September 23, 2012, 03:43:57 am
Hello all, and please help!
I downloaded Time library. But, I have compile error. Here is a code:
Code:
/*
 * TimeSerial.pde
 * example code illustrating Time library set through serial port messages.
 *
 * Messages consist of the letter T followed by ten digit time (as seconds since Jan 1 1970)
 * you can send the text on the next line using Serial Monitor to set the clock to noon Jan 1 2010
 T1262347200 
 *
 * A Processing example sketch to automatically send the messages is inclided in the download
 */
 
#include <Time.h> 

#define TIME_MSG_LEN  11   // time sync to PC is HEADER followed by unix time_t as ten ascii digits
#define TIME_HEADER  'T'   // Header tag for serial time sync message
#define TIME_REQUEST  7    // ASCII bell character requests a time sync message

void setup()  {
  Serial.begin(9600);
  setSyncProvider( requestSync);  //set function to call when sync required
  Serial.println("Waiting for sync message");
}

void loop(){   
  if(Serial.available() )
  {
    processSyncMessage();
  }
  if(timeStatus()!= timeNotSet)   
  {
    digitalWrite(13,timeStatus() == timeSet); // on if synced, off if needs refresh 
    digitalClockDisplay(); 
  }
  delay(1000);
}

void digitalClockDisplay(){
  // digital clock display of the time
  Serial.print(hour());
  printDigits(minute());
  printDigits(second());
  Serial.print(" ");
  Serial.print(day());
  Serial.print(" ");
  Serial.print(month());
  Serial.print(" ");
  Serial.print(year());
  Serial.println();
}

void printDigits(int digits){
  // utility function for digital clock display: prints preceding colon and leading 0
  Serial.print(":");
  if(digits < 10)
    Serial.print('0');
  Serial.print(digits);
}

void processSyncMessage() {
  // if time sync available from serial port, update time and return true
  while(Serial.available() >=  TIME_MSG_LEN ){  // time message consists of a header and ten ascii digits
    char c = Serial.read() ;
    Serial.print(c); 
    if( c == TIME_HEADER ) {       
      time_t pctime = 0;
      for(int i=0; i < TIME_MSG_LEN -1; i++){   
        c = Serial.read();         
        if( c >= '0' && c <= '9'){   
          pctime = (10 * pctime) + (c - '0') ; // convert digits to a number   
        }
      }   
      setTime(pctime);   // Sync Arduino clock to the time received on the serial port
    } 
  }
}

time_t requestSync()
{
  Serial.print(TIME_REQUEST,BYTE); 
  return 0; // the time will be sent later in response to serial mesg
}

and errors:
_____________________________________________________
TimeSerial.cpp: In function 'time_t requestSync()':
TimeSerial.pde:-1: error: 'BYTE' was not declared in this scope
As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.
_____________________________________________________

First, I change BYTE to byte. After that I have this error:
_____________________________________________________
TimeSerial.cpp: In function 'time_t requestSync()':
TimeSerial.pde:-1: error: expected primary-expression before ')' token
_____________________________________________________

Please, where is problem?
8  Using Arduino / Programming Questions / Re: Litle help! on: September 04, 2012, 02:51:06 am
Thanks for the quick reply!
I am interested in the process for any library, in which folder should stand to the library etc. ...
9  Using Arduino / Programming Questions / Litle help! on: September 04, 2012, 02:35:27 am
Hi!
I'm totaly new, and I need help:
Is there a manual on how to install and use the library?
Thanks in advantage
10  Forum 2005-2010 (read only) / Interfacing / Remote controling via Xbee and Arduino on: July 07, 2009, 06:50:15 am
Hi!
I'm new on forum!
What is necessary for remote controling for example car-model using
Xbee with Arduino over the internet? (hardware and software).
I would like to control model over web page.
I'm beginner on this, and I will wery gratefull for information.
Thanks for all!
Pages: [1]