Hi,
I am just starting with the Teensy 3 board but I have a couple of problem. The board seems to work correctly as really simple programs are working (reading and writing digital pins value, controlling servos with the Servo library).
However I am incapable of using any advanced capability of the board like the Hardware serial or the I2C bus.
For example, I am trying to interface with an URM37 V3.2 range sensor. It is correctly set for TTL mode and I am using the arduino library provided on this page (dfrobot.com). I adapted the library to use the HardwareSerial rather than an instance of SoftwareSerial and the rest of the code is very generic and should not pose any problem on the ARM processor of the Teensy. And I am just running the example program provided with the library.
However I am not able to get any measurement (that is I never get any input on the serial interface, whatever I am sending as output). The sensor is working correctly (I tested it on an arduino uno board with the same code) and I tested a lot of different set-up, like direct connexion of the RX and TX lines, connexion through a level converter to get the 3V of the board being 5V on the sensor (although the sensor is supposed to work at 3V), powering the sensor with 3V or with 5V, trying on every serial interface of the board, etc. and I am running low on other ideas.
Does someone have an idea on what could I be doing wrong or what should I try to do ?
I also have the same problem with the I2C bus where I try to communicate with an IIC LCD1602 but the display does not react to any command (it works though with an arduino board). But this is less important than the serial interface for now.
Thanks for your help!
I am just starting with the Teensy 3 board but I have a couple of problem. The board seems to work correctly as really simple programs are working (reading and writing digital pins value, controlling servos with the Servo library).
However I am incapable of using any advanced capability of the board like the Hardware serial or the I2C bus.
For example, I am trying to interface with an URM37 V3.2 range sensor. It is correctly set for TTL mode and I am using the arduino library provided on this page (dfrobot.com). I adapted the library to use the HardwareSerial rather than an instance of SoftwareSerial and the rest of the code is very generic and should not pose any problem on the ARM processor of the Teensy. And I am just running the example program provided with the library.
However I am not able to get any measurement (that is I never get any input on the serial interface, whatever I am sending as output). The sensor is working correctly (I tested it on an arduino uno board with the same code) and I tested a lot of different set-up, like direct connexion of the RX and TX lines, connexion through a level converter to get the 3V of the board being 5V on the sensor (although the sensor is supposed to work at 3V), powering the sensor with 3V or with 5V, trying on every serial interface of the board, etc. and I am running low on other ideas.
Does someone have an idea on what could I be doing wrong or what should I try to do ?
I also have the same problem with the I2C bus where I try to communicate with an IIC LCD1602 but the display does not react to any command (it works though with an arduino board). But this is less important than the serial interface for now.
Thanks for your help!