title: Python Serial communication Arduino (Teensy) to Raspberry Pi
body: <p>I have managed it to write from my arduino (Uno) to my Raspberry Pi 3 via Serial.</p>
  
  <p>If I use the same python script on the pi side, and the same Sketch on arduino side, <strong>but using a Teensy</strong> instead, I cant read any output from my Arduino.</p>
  
  <p>Is there any difference between thes arduino Uno and the teensy depending on Serial communication?</p>
  
  <p>Arduino sketch:</p>
  
  <pre><code>void setup() {
    Serial.begin(115200);
  }
  
  void loop() {
    delay(1000);
    Serial.println("10.7;0.7;FFFF:FFFF:FFFF:FFFF:");
  }
  </code></pre>
  
  <p>Python script on my Pi:</p>
  
  <pre><code>import serial
  ser=serial.Serial("/dev/ttyACM0",115200)
  while True:
      print("Waiting for messages from arduino..");
      read_ser=ser.readline()
      print(read_ser)
  </code></pre>
  
  <p>This code works fine for my Arduino Uno, but not for my Teensy.
  <strong>ttyACM0</strong> is correct in both cases.</p>
  
  <p>OS on the Pi is ubuntu mate 16.04.
  I can see the output of both arduinos in the Arduino IDE.</p>
  
  <p>I tried this with 3 different Teensies, so the hardware should not be the problem.</p>
  
  <p>Any advices?</p>
  
  <p>** <code>ser.isOpen()</code> is true</p>
  
  <p><code>bytesToRead = ser.inWaiting() print(ser.read(bytesToRead))</code> makes no difference.</p>
  
  <p>Could there be a difference, because the teensy is connected with the pi with micro usb, and the UNO is connected with an <a href="http://www.skyviewelectronics.com/sites/skyviewelectronics.com/files/usb-a-to-b-cable.jpg" rel="nofollow noreferrer">A to B USB</a>?</p>