Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: alexandros

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    37

    I2C communication dropping bytes?

    I'm trying to have two Teensies talk to each other while doing other stuff.

    Here's two functions the master is using to communicate with the slave:


    void communicateWithSlave(int address, int...
  2. Replies
    15
    Views
    5,839

    I find this templated class very useful with...

    I find this templated class very useful with these kind of encoders, it works really well! I have one question though, as my C++ knowledge is next to nothing. Is there a way to create an array of...
  3. Replies
    7
    Views
    170

    30 feet is approximately 10 meters, right? I'm...

    30 feet is approximately 10 meters, right? I'm not even getting close to that length. I'm using pull-up resistors on the master and all slaves, so I guess there shouldn't be a problem there either....
  4. Replies
    7
    Views
    170

    What I understand from reading all the above is...

    What I understand from reading all the above is that one meter shouldn't be an issue. My setup though might be a little bit more problematic as I will probably use more than one slave, and I don't...
  5. Replies
    7
    Views
    170

    I2C over rather long wires, how to?

    I need to have I2C communication between some Teensies over rather long wires (don't know the exact length yet, it should be between half and one meter). I've been reading that I2C should happen at a...
  6. Coming back to this thread after quite some time....

    Coming back to this thread after quite some time. Eventually I changed my approach and used a serial communication through Teensy's hardware serial1. This works great and it's way faster than MIDI,...
  7. Then I'll order the 6N138 which you mention on...

    Then I'll order the 6N138 which you mention on your reference page and copy your circuit. I'll come back to report whether it worked or not.
    Thanks for the help!
  8. Your tests look persuasive, but I can't find any...

    Your tests look persuasive, but I can't find any short on my breadboard. Also, it troubles me that if I send a MIDI message before I open the serial monitor, I don't get the feedback into Pd.

    Does...
  9. I did unplug the MIDI cables, or removed either...

    I did unplug the MIDI cables, or removed either the receive or send jumper from the breadboard, and this loop doesn't happen (if I remove the Teensy there won't be any power in the MIDI circuit since...
  10. That's right, it's a mistake on the schematic,...

    That's right, it's a mistake on the schematic, not the actual circuit. I don't think the code has an issue, I just copied the code from Teensy's website and only added a "while (!Serial) {}". Here it...
  11. Incoming MIDI messages are shorted to output

    I'm testing a Teensy 3.2 as a MIDI device with a 5-pin DIN output. Outputting MIDI messages works fine, but when I send MIDI messages from my Raspberry Pi to the Teensy, I receive the same messages...
  12. Audio project not running unless I upload the code everytime

    I'm building an audio project with a Teensy 3.6 and the Audio Board. When I develop it and upload new code, the project runs fine. When I unplug and re-plug the Teensy, I get nothing from the...
  13. I did get the same tip quite some years ago for...

    I did get the same tip quite some years ago for something else, and I had completely forgotten about it. I just added the following line after Serial.begin(115200);

    while(!Serial) {};
    And now the...
  14. I have both installed the udev rules, as well as...

    I have both installed the udev rules, as well as added myself to the dialout group, so none of these should be the problem.
    Since I couldn't remember which Teensyduino I had installed, I installed...
  15. Tried it but it didn't help. I get the exact same...

    Tried it but it didn't help. I get the exact same behaviour. Tried a 115200 baud rate as well and still get the same behaviour.


    I'm on Linux Ubuntu studio 18.04 with Arduino 1.8.5 and...
  16. Reading softpots with Arduino works but not with Teensy

    I'm trying to read four soft pots like this one (https://grobotronics.com/softpot-membrane-potentiometer-200mm.html) with a Teensy 3.6 but I can't get it to work properly.
    Here's the code:

    ...
  17. Replies
    5
    Views
    404

    Fiddling a bit I realized that when the Teensy...

    Fiddling a bit I realized that when the Teensy boots up, pulses are sent through its pins, so the slave Teensy was receiving the address set pulse before the actual address was sent (it was an...
  18. Replies
    5
    Views
    404

    Well, this sketch scans all address and waits for...

    Well, this sketch scans all address and waits for a 0 error message. This means that the slaves connected to the master have fixed addresses. What I'd like to do is have the master set an address to...
  19. Replies
    5
    Views
    404

    Thanks for pointing it out. I got a bit confused...

    Thanks for pointing it out. I got a bit confused with how to treat incoming data with I2C, now it's clear.

    I've worked out a basic bi-directional communication between two Teensies. Now I'd like...
  20. Replies
    5
    Views
    404

    Two Teensy LC with I2C

    I'm trying to establish communication between two Teensy LC via I2C. I've connected 4.7k pull-up resistors on pins 18 and 19, and connected the ground pins. I tried both powering up the two Teensies...
  21. After quite some time of fiddling and testing, I...

    After quite some time of fiddling and testing, I changed the whole system and now the communication between the Teensy and Pd is being done with MIDI. A major change was that I applied some more...
  22. Ok, thanks for the info. There's quite some trial...

    Ok, thanks for the info. There's quite some trial and error I need to do. Will come back with results when done.
  23. It is a Pd patch indeed. I don't seem to have an...

    It is a Pd patch indeed. I don't seem to have an y issues with the data received in the patch, only with the data sent, and that only when some data are sent repeatedly at a rather high rate. I know...
  24. Instead of providing an over 600 lines of code...

    Instead of providing an over 600 lines of code sketch, I provided a link to GitHub where I have my project. I know my question was very broad, and eventually I'm going to give a try to using two...
  25. Thanks for the explanation. I was asking because...

    Thanks for the explanation. I was asking because in order to try I need to print a circuit board first (trying out on a breadboard or a perforated one will just be hell), so I was hoping to get some...
  26. I guess I wan't clear enough. I can use Serial1...

    I guess I wan't clear enough. I can use Serial1 with a serial to USB converter, so I can use both Serial and Serial1 with my computer as a test. I'm just wondering if this technique would help with...
  27. Ok, didn't know that. Will using Serial to send...

    Ok, didn't know that. Will using Serial to send data to a computer and Serial1 to receive data take off some load of the serial communication? Or will it be exactly the same as using one serial...
  28. Will using one serial interface for sending and one for receiving make any difference

    I'm building a project where I use a Teensy 3.2 and an Odroid-XU4 where there is data exchange between the two. I'm reading quite a lot of potentiometers (could sum up to more than 30 at times) plus...
  29. Replies
    12
    Views
    1,875

    Would it be possible to use a USB to PS2 adapter...

    Would it be possible to use a USB to PS2 adapter and use the PS2 keyboard library with a Teensy LC?
  30. Replies
    12
    Views
    1,875

    So it's not possible with Teensy LC? I guess USB...

    So it's not possible with Teensy LC? I guess USB keyboards work differently than PS2 then, right? I thought maybe they used the same sort of interface, like a data and a clock line.
  31. Replies
    12
    Views
    1,875

    USB keyboard input in Teensy

    I know it's possible to use a PS2 keyboard with Teensy https://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
    Is it possible to use a USB keyboard the same way?

    Just to make myself clear, I don't...
  32. Searching on the specific error I was sort of...

    Searching on the specific error I was sort of urged to use the original code on which the Sparkfun library was based, written by Kris Winer. It's this one https://github.com/kriswiner/MPU9250 and...
  33. But the code chunk that produces the error is...

    But the code chunk that produces the error is this:


    int16_t mag_max[3] = {0x8000, 0x8000, 0x8000};

    The data type is defined as an int16_t which, according to what you say should be...
  34. Just to get this right, int16_t forces a 16bit...

    Just to get this right, int16_t forces a 16bit int, so 32768 and in case a microcontroller is greater than 16bits (like the Teensy), it won't roll back to -32767 (or should it be -32768, int goes...
  35. So specifying an int16_t specifies an int of 16...

    So specifying an int16_t specifies an int of 16 bits, right? According to what you say, doesn't this make it microcontroller agnostic, and possible to work on different hardware?
    If I have to change...
  36. Ok, makes sense. But why does the same code...

    Ok, makes sense. But why does the same code compile with an Arduino and doesn't with a Teensy? An int16_t should be the same for both hardware, shouldn't it?
  37. Error compiling for board Teensy 3.2 / 3.1.

    I'm trying to use an MPU-9250 by Sparkfun (https://www.sparkfun.com/products/13762) with a Teensy 3.2, but I can'y upload the code. I'm using the I2C example sketch that comes with its library...
  38. Can't play more than one audio file simultaneously

    I'm using a Sandisk Ultra 16 GB SD card (which is class 10, but all Sandisk Ultra are class 10, so I guess these are the ones tested and reporter to work here...
  39. Replies
    3
    Views
    532

    I keep on forgetting the udev rules. Sorry and...

    I keep on forgetting the udev rules. Sorry and thanks!
  40. Replies
    3
    Views
    532

    Can't upload arduino sketch on Odroid

    I'm trying to program a Teensy LC with an Odroid-XU4 using Teensyduino 1.41 and Arduino 1.8.5 (both ARM versions), and even though I can program an Arduino UNO just fine, with the Teensy I get no...
  41. Replies
    5
    Views
    654

    Even though I found backspace to be 127, your...

    Even though I found backspace to be 127, your suggestion worked as well, thanks! It's more intuitive this way.
  42. Replies
    5
    Views
    654

    Didn't know of these macros. Well, it doesn't...

    Didn't know of these macros. Well, it doesn't work either. I checked the library's header file and tried all the macros after reading your post, but they're not doing what they're supposed to...
  43. Replies
    5
    Views
    654

    Keyboard.write() won't write backspace

    I'm trying to use a Teensy LC as a keyboard and a serial device at the same time, choosing USB Type -> Serial + Keyboard + Mouse + Joystick from the Tools menu, but uploading the code below will just...
  44. Can the audio board be used along with an I2C sensor?

    Well, what the title asks really. I want to use the audio board along with a gyroscope and the simplest way is to use an I2C sensor. In Teensy's website I saw that the audio board uses both the SDA...
  45. Didn't even see that it's noted in Teensyduino's...

    Didn't even see that it's noted in Teensyduino's page, sorry... it now works, thanks!
  46. Can't upload to Teensy LC on Raspberry Pi

    I installed Arduino-1.8.4 and Teensyduino 1.38 (and the udev rules) on a Raspberry Pi 3 Model B running Raspbian Jessie (haven't installed the latest image) and the Arduino IDE can't upload to the...
  47. Replies
    4
    Views
    989

    Thanks for your reply and sorry for my late...

    Thanks for your reply and sorry for my late reply. In the end the problem was in the hardware. One wire from a ribbon cable I use to connect modules (which wire was grounded), was scratched and its...
  48. Replies
    4
    Views
    989

    Strange behavior with multiplexers

    I'm building a modular synthesizer and I'm using Teensy 3.6 for the control interface. I'm using one 16-channel multiplexer which receives data from various 8-channel multiplexers. Each 8-channel...
  49. Thanks a lot!

    Thanks a lot!
  50. do analog pins when used as digital have interrupt capability on Teensy 3.6?

    It kind of sounds like obvious but I want to be sure about that. I'm using digital pin 34, which is also marked as analog pin 15 in the Teensy 3.6 pinout, and I want to attach it to an interrupt....
Results 1 to 50 of 84
Page 1 of 2 1 2