Show Posts
Pages: 1 [2]
16  Using Arduino / Programming Questions / Re: Arduino Leonardo troubles reading from Serial1 on: February 25, 2013, 06:31:15 pm
Just connected 5V, doesn't help any way... which is expected.
17  Using Arduino / Programming Questions / Re: Arduino Leonardo troubles reading from Serial1 on: February 25, 2013, 06:19:00 pm
I use Putty, settings are 57600, 8, 1, N
Local echo turned on.
FTDI has 5 pins:
3.3V GND RX TX 5V

FTDI RX goes to PIN1 (TX)
FTDI TX goes to PIN0 (RX)

Can someone post me an example where I can read data from Serial1 and print it in Serial, Read data from Serial and print it in Serial1 ? This essentially what I need, just need to run some logic in between....
18  Using Arduino / Programming Questions / Re: Arduino Leonardo troubles reading from Serial1 on: February 25, 2013, 01:04:44 pm
Alright, here is the setup - super simple:

https://www.dropbox.com/s/bogzbc2v3j91rvl/IMG_00000002.jpg

FTDI breakout on picture connected to PC... it has 2 light green, yellow. and acts as  serial port. PC is just for debugging, it will be connected to some other devices via SERIALUSB.
19  Using Arduino / Programming Questions / Arduino Leonardo troubles reading from Serial1 on: February 25, 2013, 02:29:43 am
I having troubles with Arduino Leonardo when reading from Serial1

Here is my super simple code:

Code:
int incomingByte = 0;

void setup(){
  Serial1.begin(57600);
}

void loop()
{
    // send data only when you receive data:
    while (Serial1.available()) {
      Serial.print("Available");
      if (Serial1.available() > 0) {
              // read the incoming byte:
              incomingByte = Serial1.read();
  
              // say what you got:
              Serial.print("I received: ");
              Serial.println(incomingByte, DEC);
      }
    }
}

When I write from PC I dont see any activity on FTDI LEDs (green, yellow)

Interesting thing is: when I skip Serial1.begin(57600); I see blinking light (yellow) on FTDI board conected to PIN 0/1, when I send data from PC

But when I run:

Code:
int incomingByte = 0;

void setup(){
  Serial1.begin(57600);
}

void loop()
{
  Serial1.println(100,DEC);
    // send data only when you receive data:
    while (Serial1.available()) {
      Serial.print("Available");
      if (Serial1.available() > 0) {
              // read the incoming byte:
              incomingByte = Serial1.read();
  
              // say what you got:
              Serial.print("I received: ");
              Serial.println(incomingByte, DEC);
      }
    }
}

I see green light on FTDI working all the time, and when I write on other side  (PC) yellow LED on FTDI blinks, but I receive some messy data, even if I write same thing all the time....

Please advise.

I just want to read and write completely independently.
20  Using Arduino / Programming Questions / IS it possible to use KINECT directly with ARDUINO DUE ? on: January 20, 2013, 10:46:31 pm
IS it possible to use KINECT directly with ARDUINO DUE ? I'm curious if it have enough processing power and if anyone already done that ?
21  Topics / Robotics / Re: Dagu Rover 5 chassis robot demo on: January 19, 2013, 11:56:54 am
I would like to know if this Motor driver board will work with Arduino Due ?  ( 3.3V  Due)
22  General Category / General Discussion / How to make Arduino IDE work with STM32 stamp module like ET-ARM STAMP ? on: January 19, 2013, 01:15:49 am
How to make Arduino IDE work with STM32 stamp module like ET-ARM STAMP ?

Tried 1.5.1, No device found on COM8.

Is it even possible?

Pages: 1 [2]