Show Posts
Pages: 1 2 [3] 4 5 6
31  Using Arduino / Installation & Troubleshooting / Re: Removing a library from the IDE on: February 27, 2013, 11:44:57 am
I found were was my problem. I didn't noticed that all libraries are copied in the sketchbook folder. I removed it from there and it worked. smiley
32  Using Arduino / Installation & Troubleshooting / Re: Removing a library from the IDE on: February 27, 2013, 09:32:12 am
Nope, this doesn't work... by the way, maybe I should have tell that I use Arduino 1.5.2. Not the 1.0.3
33  Using Arduino / Installation & Troubleshooting / [SOLVED] Removing a library from the IDE on: February 27, 2013, 06:31:16 am
Hi, I would like to know how to remove a library that was added with the " add library". I tried to remove the files from the folder (even deleting the folder) but I still have the library name in the menu, and when I click on it nothing is included (because I deleted the files).
34  Products / Arduino Due / Re: Due I2C not working on: February 27, 2013, 03:19:39 am
yep sorry. here it goes: for the Due (master)
Code:
#include <Wire.h>
int old, now;
void setup() {
  // put your setup code here, to run once:
   Wire.begin();
   Serial.begin(115200);
   Serial.println("I2C test starting...");
   old=millis();now=millis();
}

void loop() {
  if(Serial.available())
  {
    Wire.beginTransmission(0x02);
    Wire.write(Serial.read());
    Wire.endTransmission();
  }
    old=now;
    Wire.requestFrom(0x02,1);
    //delay(1);
    while(Wire.available())
    {
      char c=Wire.read();
      if(c>31)Serial.println(c);
    }
  // put your main code here, to run repeatedly:
 
}
and for the Uno:
Code:
#include <Wire.h>
char buffer[256];
byte serialpos=0, wirepos=0;
void setup() {
  // put your setup code here, to run once:
   Wire.begin(0x02);
   Serial.begin(115200);
   Serial.println("I2C test Starting...");
   Wire.onRequest(handler);
   Wire.onReceive(receiver);
}

void loop() {  // put your main code here, to run repeatedly:
 
}
void handler()
{
  if(Serial.available())
  {
    char c=Serial.read();
    Wire.write(c);
  }
}
void receiver(int num)
{
  while(Wire.available())
  {
    char c=Wire.read();
    Serial.println(c);
  }
}
Hope this helps smiley
35  Products / Arduino Due / Re: Do not follow Simple Audio Player example - DAC0 now non-functional on DUE on: February 27, 2013, 12:25:21 am
Hi, before I destroy my DAC, there is something I don't understand, how can a board source a negative intensity? Is it because we are supposed to use our speaker tied to the DAC and 3.3V?
36  Products / Arduino Due / Re: Due I2C not working on: February 27, 2013, 12:00:23 am
Actually, it's my code which was bad, I modified it and all worked fine for me smiley Sorry for disturbing.
37  Products / Arduino Due / Re: Due I2C not working on: February 26, 2013, 12:44:39 pm
Hi, I also have some trouble with the I2C: I am very new to this communication protocol, So I was trying to see how it works, and I tried making my Due and my Uno talk to each other. It worked, but when I send charters from the Due to the Uno, half is lost.
Here are my codes:
for the Uno (slave):
Code:
#include <Wire.h>
char buffer[64];
byte serialpos=0, wirepos=0;
void setup() {
  // put your setup code here, to run once:
   Wire.begin(0x02);
   Serial.begin(115200);
   Serial.println("I2C test Starting...");
   Wire.onRequest(handler);
   Wire.onReceive(receiver);
}

void loop() {
  if(Serial.available())
  {
    buffer[serialpos]=Serial.read();
    serialpos++;if(serialpos>64)serialpos=0;
  }
  // put your main code here, to run repeatedly:
 
}
void handler()
{
  if(wirepos<serialpos)
  {
  Wire.write(buffer[wirepos]);
  wirepos++;if(wirepos>64)wirepos=0;
  }
}
void receiver(int num)
{
  while(Wire.available())
  {
    char c=Wire.read();
    Serial.println(c);
  }
}
and for the Due (master):
Code:
#include <Wire.h>
int old, now;
void setup() {
  // put your setup code here, to run once:
   Wire.begin();
   Serial.begin(115200);
   Serial.println("I2C test starting...");
   old=millis();now=millis();
}

void loop() {
  if(Serial.available())
  {
    Wire.beginTransmission(0x02);
    Wire.write(Serial.read());
    Wire.endTransmission();
  }
  now=millis();
  if(now-old>1001)
  {
    old=now;
    Wire.requestFrom(0x02,1);
    delay(10);
    while(Wire.available())
    {
      char c=Wire.read();
      if(c>31)Serial.println(c);
    }
  }
  // put your main code here, to run repeatedly:
 
}

Any help will be appreciated. Thanks.
38  Products / Arduino Due / Re: SoftwareSerial library on: February 20, 2013, 08:03:28 am
There is still no software serial library for the due, and anyway, the due has 4  hardware USARTs, you could use one of them.
Another thing, if you could include the software serial in your sketch, it means that you didn't selected the right board in the ide, that's why you can get compilation/uploading errors.
39  Using Arduino / Microcontrollers / Re: Programming a Fio with any other board on: February 18, 2013, 09:55:36 pm
Thanks a lot, that's all I needed to know. smiley
40  Using Arduino / Microcontrollers / Programming a Fio with any other board on: February 18, 2013, 04:20:11 am
Hi, I would like to know if it is possible to program an Arduino Fio with a Uno, or a Due, instead of using an FTDI to usb cable.
Thanks.
41  Products / Arduino Due / Re: I/O loading on Due on: February 13, 2013, 09:56:49 pm
There are internall pull-up resistors for all the io pin, you can enable them with
Code:
pinMode(a_pin,INPUT_PULLUP);
42  Products / Arduino Due / Re: Using the TX/RX leds on: February 04, 2013, 09:39:20 pm
nope, they are not, they work as digitalpins and are indepentend of everything else.
43  Products / Arduino Due / Using the TX/RX leds on: February 04, 2013, 11:42:28 am
Has anyone tried(or succeded) in making the TX/RX leds blink when using any communication protocol (Serial,SPI,I2C etc...) I've seen Stimmer's work, http://arduino.cc/forum/index.php/topic,143871.0.html inserting the lines that made the leds blink but it didn't worked...
Anyone has a clue?
44  Products / Arduino Due / Re: RX/TX pin not blinking on: January 31, 2013, 11:26:09 pm
Thanks for your answer smiley But what are the tx/rx led for if they do not blink when I use the serial (not the one on usb)?
45  Products / Arduino Due / RX/TX pin not blinking on: January 31, 2013, 12:02:57 pm
Hi, I just wanted to know if it is normal that my RX/TX leds (those between the two USB ports) are not bliking when I use Serial Communication?
Pages: 1 2 [3] 4 5 6