Search results

  1. N

    How to properly wire a power supply to a Teensy to control Servos/LEDs

    Hi Everyone, thanks for the input, it is greatly appreciated. I was under the impression that if Mac M2 computers get too much voltage in the USB port, they dispaly a warning. And to fix the problem all you need to do is restart the computer. For now I won't cut the trace on the Teensy and see...
  2. N

    How to properly wire a power supply to a Teensy to control Servos/LEDs

    Hi, I plugged everything in and it seems to work and everything is powered ok. The LEDs were fluctuating in brightness so I put a 1000uF capacitor after the buck converter that is powering the LEDs. It did help a little but they LEDs, if all lit up, do fluctuate in brightness a little. It's...
  3. N

    How to properly wire a power supply to a Teensy to control Servos/LEDs

    Hi Shawn, Actually I don't know how to draw a schematic. I understand, it's kind of confusing to look at the photo of wires.
  4. N

    How to properly wire a power supply to a Teensy to control Servos/LEDs

    HI, Ok I connected everything and took a photo, but it's not powered or plugged into a computer yet. It might not help much, as it's a lot of wires. The breadboard on the right is powering the servos. The breadboard on the left is powering the LEDs, and has the Teensy 4.1 Another...
  5. N

    How to properly wire a power supply to a Teensy to control Servos/LEDs

    Hi, I am consulting with the forum as a precaution before I connect everything, just so I don't damage my servos, LEDs, computer or Teensy. I have a Teensy 4.1 and I have 2 servos that require 7.4-6 volts. I also have 4 LED displays and 9 LEDs that require 5 volts. I have a variable...
  6. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi defragster. Thanks for this bit of code. It seems to make sense to me. I'll try it out and see what happens. Thank you again.
  7. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi I wanted to give an update. Defragster I tried to incorporate your bit of code, but the midi controller on that number would only output a 0, zero, so I went back to the code I put in #14. I could get the new, problematic Teensy 4.1 to mount and I uploaded the code the that. It worked for a...
  8. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi Defragster, thanks for the code. What I was trying to achieve in my code was to only send a new midi value if it changed, and if the value is below 3 it sends a 0. I won't be using the sensor in that low range, and that was just a safeguard to make sure it sends a 0 when the sensor is not...
  9. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi everyone. I hope I am not posting too much in this forum, but I do want to share my thoughts and progress on this issue in case anyone can offer feedback. So the 2 Teensy 4.1s I have don't mount and are not seen by Arduino software, nor by my computer. I have high speed cables and I...
  10. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi Everyone. Ok I want to share some more information regarding my issue. I was doing another project with a Teensy 4.1 earlier this year, and have never had any issues with that board. I just plugged it in and it mounted right away. I plugged it into all the same USB hubs and cables I tried...
  11. N

    Weird problem getting Teensy to appear in ports in Arduino software

    OK thank you PaulStoffergen. I will try and clean my Teensy and see if that works. Is the crystal on the opposite side of the pins? I didn't solder anything to the pins, I am using some headers that plug into the pins and all my connections are soldered to that. Here is some additional info. I...
  12. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Ok, I purchased several high speed USB cables. I am getting the same result. The 4.1 isn't mounting. I have two of them and tried both of them with several cables. The 3.6 I have mounts immediately. Another thing that I think is interesting is that when I plug either 4.1 in, the red LED blinks...
  13. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi defragster. Ok great. Thank you I am ordering some cables now. I'll report back
  14. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi defragster. Ok this might be what the problem is. I plug my old 3.6 in and it immediately mounts, I plug the 4.1 in and it doesn't mount at all any more. Ultimately I need to run two Teensy 4.1 through a hub and into another hub and into my Mac. I hope those hubs will go the correct speed as...
  15. N

    Weird problem getting Teensy to appear in ports in Arduino software

    OK I am having the same issue now. I am trying to upload a sketch. The Teensy is not appearing in the available ports. I am pressing the button on the Teensy, then pressing upload on the software, but it's not working. I get the same error message that says to press the button. I will keep...
  16. N

    Weird problem getting Teensy to appear in ports in Arduino software

    When I pressed the button on the teensy it didn't seem to change anything. I also pressed it in the Teensy software. My impression of what was going on was that the Teensy couldn't mount or be recognized by my computer, but I don't know. Then all of a sudden it was recognized and appeared as an...
  17. N

    Weird problem getting Teensy to appear in ports in Arduino software

    Hi, Wow something unusual just happened. I've been trying for an hour to upload a sketch to my Teensy 4.1. After trying over and over again, and google searching, I opened the Forum homepage, and magically the Teensy appeared in the port options and I was able to upload my sketch. Here is a...
  18. N

    Trouble shooting fluctuating readings from Analog sensors.

    Hi @MarkT Thanks for your input. I think you are correct in suggesting the cap near the Teensy is between signal and to ground. Definitely something else is the problem that I can't discover. I have a feeling there is a bad connection somewhere. I am trying to find it, and am resoldering any...
  19. N

    Trouble shooting fluctuating readings from Analog sensors.

    Hi thanks for your reply. The sensors are Spectra Symbol Thinpot, 500mm https://www.spectrasymbol.com/linear-position-sensors/thin-form-linear-pots-thinpot Ok I will try your suggestion. Do you think it might be helpful to put an additional 100nF cap near where the power and ground are...
  20. N

    Trouble shooting fluctuating readings from Analog sensors.

    Hi, I have a Teensy project that has been working really well since I finished it in 2018. Recently I am having some issues with it and I am having a really hard time diagnosing the issue. This project uses 2 Teensy 3.6 microcontrollers. One of them is connected to around 13 analog sensors...
  21. N

    Midi To Servo

    Hey @thebigg. Your solution worked!!! I had a feeling it was something super simple like that. I would have never guessed that, but it totally makes sense to map the value to the position. Thank you so much for spotting that.
  22. N

    Midi To Servo

    Hi everyone, Thank you for looking at the code and offering suggestions. I removed the semicolon after the "if" statement, and I added usbMIDI.read(); into the loop. I also changed the mapping of value to: map(value, 0, 127, 0, 179); , since MIDI is from 0 to 127 I am still not getting...
  23. N

    Midi To Servo

    Hi joepasquariello. I think I intended it, but it looks like I don't need it. I'll try the code without the semicolon and see if that works. If that's all that was wrong I will be super amazed. Thank you for pointing that out.
  24. N

    Midi To Servo

    Hi I am just giving this post a bump. It seemed like I couldn't connect to the forum right after I posted this. If so maybe this post was overlooked. Any advice is appreciated. thanks, Nick
  25. N

    Midi To Servo

    Hi, I am trying to control a servo using MIDI output from a computer. Before I got to this part of my project, I tested out the Sweep example in the PWM library, and my servo worked with that. Then I tried the Knob example in the PWM library, where a potentiomenter controls a servo, and...
  26. N

    Installing Teensyduino in Arduino IDE 2.1.1

    Hey @Heavy_Metal . Thanks for your reply. Ok I was able to install Teensyduino. I went to settings. I put the link in the "Additional Boards Manager." Then in the Boards manager of the Arduino sketch page I put Teensy and there was an option to install Teensyduino and it seems to have worked...
  27. N

    Installing Teensyduino in Arduino IDE 2.1.1

    Hi, I am on a M2 Mac running OSX 13.2.1. I just installed Arduino IDE 2.1.1. I am trying to follow the instructions to install Teensyduino on this page: https://www.pjrc.com/teensy/td_download.html I clicked on the Boards Manager in Arduino software, selected "All" types of boards, and...
  28. N

    Best way to expand the number of Digital Outputs on Teensy 3.6

    I would connect Vin from the Teensy to the 5V and ground from Teensy to ground on the LED. I think you connect SCA and SDA from the Teensy to to two other pins. You can chain all of those LEDs together. I hope that helps, but that's the general gist of it.
  29. N

    I am having problem loading i2c_t3 library

    KurtE, Thanks for helping me diagnose this issue. I did find this library, that apparently works with Teensy 4.0 https://github.com/Richard-Gemmell/teensy4_i2c I am trying to see if it will work with a 4.1. If not I will try Wire.
  30. N

    I am having problem loading i2c_t3 library

    Hey KurtE, Yes you might be right. When I changed board type to Teensy 3.6 the code verified. Is there a way that I can update the library for use on a 4.1? It might be hard for me to switch at this point in my project.
  31. N

    I am having problem loading i2c_t3 library

    Hi everyone. I have some code using the i2c_t3 library. I tried running the code and got some error messages including "I2C_MASTER was not declared in this scope". Then, in Arduino software, I went to examples and tried a few of the i2c_t3 examples and none of them worked. I am on a Mac, OS...
  32. N

    turning keypad example into midi controller button matrix

    OK got it. Thanks for the guidance. take care. Nick
  33. N

    turning keypad example into midi controller button matrix

    Hey el_supremo, I had to put this project down for a week as I had a lot of work, but just got back on it. So I copied your if statement and put it into my code and it totally works! Thank you for your help. I do have a question however, as I want to understand what's happening here...
  34. N

    turning keypad example into midi controller button matrix

    Thank you el_supremo / Pete, I think I understand. At least the logic you explained makes sense. I'll try and express that in some code. My weaknesses in coding are arrays. And I just learned about switches, but that seems straight forward at least. I'll try and figure this out and post...
  35. N

    turning keypad example into midi controller button matrix

    Hi, OK I'm trying to modify the Multikey Keypad example. With the code I came up with, If I press the 1st button I get a result. But If I press the 2nd button I only get a result if the 1st button is also pressed. So it's not working as desired. I thought using if else statements in the...
  36. N

    turning keypad example into midi controller button matrix

    OK now I'm taking a look at the multi key example in Keypad. I think that will do what I need. I'll try and figure this out.
  37. N

    turning keypad example into midi controller button matrix

    OK now I know why you are named el_supremo. Your suggestions have totally worked. I added a function "void keypadEvent" from the EventKeypad example. It has a switch in it. I basically added my midi control change stuff in there. Now this code will let you know if someone presses, holds, or...
  38. N

    turning keypad example into midi controller button matrix

    I also tried this out. I thought this might work to get a 0 value when you are not pressing a key, but didn't work void loop() { char key = keypad.getKey(); if (key != NO_KEY) { if (key == '1') { usbMIDI.sendControlChange(controllerD20, 127, channel); } if (key !=...
  39. N

    turning keypad example into midi controller button matrix

    Hi @el_supremo Thank you for taking a look. Damn, I knew it was ==, just didn't check that. I corrected some of the things you pointed out and I am getting way better results. Now when I press a button I get a 127, but when I release it the value stays at 127. When I press another button...
  40. N

    turning keypad example into midi controller button matrix

    Hi everyone. So I have been at it making a serious midi controller for a few months. There will be a lot of button switches on this controller and for my prototyping I am using some simple button switches to figure this out. I am using a Teensy 3.6. I recently was informed about the keypad...
  41. N

    ignoring incoming value if it's same as previous incoming value. Or LED freaks out!

    Hey everyone, I sat down with a expert coding friend of mine for a few hours yesterday. He streamlined the code I have and we trouble shooted this situation for several hours yesterday. We couldn't figure it out. At this point I am on the verge of just giving up on this, I've spent weeks...
  42. N

    ignoring incoming value if it's same as previous incoming value. Or LED freaks out!

    Ok thanks @tonton81 I'll try and incorporate this into the code and post what I come up with.
  43. N

    ignoring incoming value if it's same as previous incoming value. Or LED freaks out!

    Hi @tonton81, Thank you for going over that code for me. I think all the SPI stuff is fine. I think my issue has to do with the way I am coding it. For example, in myControlChange() if I send a value of 50 the LED turns red. If I send a value of 70 it turns yellow. If I alternate between the...
  44. N

    ignoring incoming value if it's same as previous incoming value. Or LED freaks out!

    Hi @tonton81, I thought I would just post the part of the code relevant to my question so it would be less code to parse through. But I will post the whole thing since you have these questions. Please note that it's a work in progress and that all I am concerned with at the moment is...
  45. N

    ignoring incoming value if it's same as previous incoming value. Or LED freaks out!

    Hi everyone, I think it's mostly a coding question. I have had a lot of trouble figuring out how to send SPI hardware messages from a Teensy 3.6 to an Adafruit TLC5947 board to control RGB LEDs. But that got figured out in this thread...
  46. N

    Teensy 3.6 is very slow for some reason...

    Hi everyone, I finally, after tons of hours, am able to use the hardware SPI to control the LEDs using the TLC5947 board. Wow, that took awhile. I want to thank everyone for their input, advice and help. I really think this is one of the best forums for advice out there. And I am sure I will...
  47. N

    Need help on using SPI library

    Hi Po Ting, Thanks for the info. I got it to work! I'm having trouble controlling the LEDs, but I think I can figure that out, it's a coding issue.
  48. N

    Need help on using SPI library

    Hi Po Ting, Can you post the example code that worked for hardware SPI? I have been trying to figure out how to use the TLC5947 with hardware SPI and it is really difficult. Your post is giving me hope it is possible. Thank You.
  49. N

    Teensy 3.6 is very slow for some reason...

    @wcalvert, Thanks I will try the digitalWriteFast() thing. I would like to figure out the hardware SPI thing too. I just got a new Teensy and I'm going to start over with this and just try and figure it out (my other Teensy has a lot of things connected to it). I have hope in this thread...
  50. N

    Teensy 3.6 is very slow for some reason...

    @wcalvert it works easily with the Adafruit example code and software SPI. It's just slower. I hope I beat you to it, I've been at this for weeks now! lol
Back
Top