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

Search:

Type: Posts; User: Edward

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    99

    You've got two functions checkTouch() and...

    You've got two functions checkTouch() and checkTick()

    checkTouch() looks at the values from the touch pins and turns the note on if the value is high enough, and checkTick turns the note off after...
  2. Replies
    8
    Views
    144

    Those both seem like good resources. I'd start...

    Those both seem like good resources. I'd start with the 3- capacitor method in the second link, becuase it wont hurt. Inductors can also help, but if you get the tuning wrong you can make some...
  3. Replies
    8
    Views
    144

    Oh, I see on the controller side, I'd understand...

    Oh, I see on the controller side, I'd understand being worried a bit about noise from the battery, but not elsewhere. I don't think I've ever seen enough noise on a teensy's ADC inputs to actually...
  4. Replies
    8
    Views
    144

    Hi There, this is quite a general post, so...

    Hi There,

    this is quite a general post, so I'll throw some general pointers.

    When you use a voltage/pot combo like this, any noise present on the power supply will make it's way through to the...
  5. I'd ask about the power supply you're using, and...

    I'd ask about the power supply you're using, and what that has built into it. From the sounds of it, we're trying to protect against user error, where you (or someone else!) sets the power supply to...
  6. Replies
    17
    Views
    273

    You shouldn't really start a new thread in a...

    You shouldn't really start a new thread in a different category, presumably because you weren't happy with the previous thread. This definitely belongs in the project guidance section (and is very...
  7. Replies
    2
    Views
    239

    The issue could be with what kind of output your...

    The issue could be with what kind of output your sensor has, I'd note in the project linked the sensor output is connected to +5V with a pull-up indicating that it's an open-collector output. is your...
  8. In general, a big capacitor should be placed by...

    In general, a big capacitor should be placed by the source (regulator) and a smaller one(s) by the load(s) (ESP/Teensy).
    Read the regulator datasheet, and it should say if it needs any external...
  9. Replies
    4
    Views
    165

    Hey Rotario, I never got to the bottom of this...

    Hey Rotario,

    I never got to the bottom of this one sadly. I ended up spoofing the behaviour using another hardware timer to check a boolean value, and if it hadn't been reset it performed my ISR...
  10. Replies
    2
    Views
    813

    MIDI lighting messages!

    Hi All,

    I've built a midi controller using a teensy 3.6 and adafruit trellis modules. I've gotten everything working up to a point.
    I'm using the controller to interface with the DJ software...
  11. You can do it this way, but I don't think shift...

    You can do it this way, but I don't think shift registers are what you're really after.
    The questions you pose -
    If in doubt whack some holes/pads for a capacitor and mark as DNE - do not equip....
  12. Replies
    18
    Views
    2,954

    I accept that I have been lazy and omitted to...

    I accept that I have been lazy and omitted to address the ground!
    Actually, that was my first though, but simmetrix (the simulator I use) doesn't have a proper LED symbol.

    I do feel the schematic...
  13. Replies
    18
    Views
    2,954

    If you half wave rectify first, you'll need a...

    If you half wave rectify first, you'll need a lesser optoisolator (without said antiparallel), and you can smooth before the optoisolator - not after, meaning a constant DC signal to the teensy...
  14. Replies
    18
    Views
    2,954

    Use a half wave rectifier to drive an opto...

    Use a half wave rectifier to drive an opto isolator / relay of your choice. Then double check your isolation/grounds like GremlinWrangler suggests.
  15. Replies
    3
    Views
    835

    Nice! Yeah that's going to do the job just fine...

    Nice! Yeah that's going to do the job just fine thanks!
  16. Replies
    3
    Views
    835

    Lambda function not capturing by value

    Hi all,

    what I'm trying to do is create a lamba function to use as an interrupt, to create a class that will automatically generate it's interrupt functions. The end use is for an encoder class,...
  17. Replies
    5
    Views
    1,607

    Well pretty much any teensy can behave as a key...

    Well pretty much any teensy can behave as a key board, and 65 inputs is achievable with any of them - but with different circuits.
    Have a good think about what you need from the device :
    Fast...
  18. Thread: drum pad brain

    by Edward
    Replies
    6
    Views
    1,447

    It's a just a thought, but if you can spare both...

    It's a just a thought, but if you can spare both an analog and digital pin per velocity sensitive input : pass the signal to a comparator with a low threshold to trigger an interrupt when the pad it...
  19. Replies
    2
    Views
    731

    Oh of course that makes perfect sense, thanks for...

    Oh of course that makes perfect sense, thanks for this!
  20. Replies
    6
    Views
    1,240

    Ahh yes, oops. Come to think of it I'm sure I've...

    Ahh yes, oops. Come to think of it I'm sure I've seen a matching transformer with a centre tap used for the phantom power. The problem with those resistors is you'll get about 10mA from them and...
  21. Replies
    6
    Views
    1,240

    Yes you can definitely run from the phantom...

    Yes you can definitely run from the phantom power, but DONT use too much! it's only intended to run small pre amps and so on; so be sure to check your current usuage.

    Those resitors you dont need...
  22. Replies
    10
    Views
    1,615

    How good is your shielding and power supply...

    How good is your shielding and power supply decoupling?
    Can you send pictures/schematics/code?
  23. Sounds like you've done a fair bit of thinking!...

    Sounds like you've done a fair bit of thinking!
    I completely agree with the modular based approach, having some core functionality and building ontop of that as required makes a lot of sense.
    ...
  24. Replies
    10
    Views
    2,058

    You're not wrong, it would be non-trivial! I...

    You're not wrong, it would be non-trivial! I think you'd either end up with some b-e-a-u-tiful wiring, all loomed up and complete with diagrams - or something that looks like a dreadlock!
  25. Replies
    10
    Views
    2,058

    Totally possible! I think if I had a spare 6...

    Totally possible! I think if I had a spare 6 months (and I mean that at 37.5 hours a week) and about 4-5k I could get something done. The platters would be the really difficult bits of hardware,...
  26. Replies
    2
    Views
    642

    Please wrap your code in code tags. [ CODE ] ...

    Please wrap your code in code tags.
    [ CODE ] //your code here [ / CODE ]
    but without the spaces.

    Yes you can probably do that. My first thought is seeing as you're polling all the pins, simply...
  27. Replies
    3
    Views
    1,217

    That's a pretty broad post, and with a lot of...

    That's a pretty broad post, and with a lot of missing detail.
    Pushing buttons to make something happen? Can do
    Get teensy to run DMX? probably, teensy can imitate pretty much any interface you...
  28. Replies
    17
    Views
    2,337

    You need analog inputs to read the outputs of a...

    You need analog inputs to read the outputs of a potentiometer, unless you want the pot to act as a switch. If you look at the reference pictures, they colour code what pins can be used as what.
    ...
  29. Replies
    10
    Views
    2,058

    You could definitely rig a teensy to become a USB...

    You could definitely rig a teensy to become a USB CD player, stream the music from the PC and adjust volume, pause/play skip, even read mutlple tracks and mix them together. 3.x will do that just...
  30. Ah yes, my apologies, my answer is the wrong way...

    Ah yes, my apologies, my answer is the wrong way round!
    Only a single diode is needed if you're preferring an external power source applied to Vin
  31. Replies
    2
    Views
    731

    Initialise member array using const

    Hi All,

    I'm writing a class to handle storage in the EEPROM for my project. What I'd like to do is use arrays of pointers for the various different variables I'd like stored so that when I come to...
  32. Replies
    0
    Views
    309

    Initialise member array using const

    // deleted, wrong category sorry!
  33. I can confirm potatotron's idea. I've been using...

    I can confirm potatotron's idea.
    I've been using Schottky diodes with my teensy 3.2 within a power supply, to power the teensy either from the board or from the USB. It works great and you can...
  34. Replies
    3
    Views
    1,323

    So what you're saying is you tried writing the...

    So what you're saying is you tried writing the data to a file of 0's and 1's but it ended up being encoded as 2 bytes per 0 or 1?
    That would be exactly how I'd expect a text file to behave, though...
  35. Replies
    10
    Views
    2,365

    Yes. Depending on the frequency and accuracy you...

    Yes. Depending on the frequency and accuracy you need there would be different ways to do it.
    The Library interval timer gives you pretty robust access to up to 4 hardware timers.
    What...
  36. Replies
    4
    Views
    907

    What's the application? What's the level of...

    What's the application? What's the level of accuracy on the timings and why? How accurate do you need to read/write your signals? How often do you need to refresh the output?
    Using two audio...
  37. Replies
    13
    Views
    2,750

    So you're at the mercy of your computers USB...

    So you're at the mercy of your computers USB supply, I asume without any decoupling? Whack a big old capacitor across Vin - GND and that should fix it, couple microfarad.

    I can't actually tell,...
  38. Replies
    13
    Views
    2,750

    Are you using two different power supplies, or...

    Are you using two different power supplies, or are you using the same 5V to power the teensy and supply the pedal?
    In either case if you're seeing teensy reset when you connect the pedal it's...
  39. Replies
    10
    Views
    3,734

    You're one click away from the library page!...

    You're one click away from the library page!
    https://www.pjrc.com/teensy/td_libs.html
    is the main reference. Look under Device Control and Signal Output Libraries for a variety of PWM options....
  40. Replies
    10
    Views
    3,734

    The interval timer library allows you to use up...

    The interval timer library allows you to use up to four timers (assuming they're not being used elsewhere) to precisely control events, which would be where to start if you wanted to write all your...
  41. Replies
    5
    Views
    1,735

    Using a voltage divider is a pretty standard way...

    Using a voltage divider is a pretty standard way of scaling an analogue voltage to fit within the range of your ADC and should work fine.
  42. How much did you spend on the wall adaptor? The...

    How much did you spend on the wall adaptor? The tenma 72-10495 is ~150, if you swap it for a 15 wall adaptor you'll notice the difference!
    Particularly you've noticed that different supplies lead...
  43. Generally speaking, you can think of a teensy as...

    Generally speaking, you can think of a teensy as a smaller, more powerful, cheaper and easier to break Arduino!
    You could easily replace the Arduino in that instructable with a teensy, assuming you...
  44. Hey, sound like an epic project. Maybe you could...

    Hey, sound like an epic project. Maybe you could draw some diagrams? That's a big system to get my head around in just words (though maybe I'll be better post coffe)

    I can address the later...
  45. Replies
    10
    Views
    2,477

    If you're just reading from the port you can use...

    If you're just reading from the port you can use a program called "putty" to watch the port; It has an option to save the session data which might be what you need.
  46. Replies
    14
    Views
    3,476

    of course, here is the updated code #ifdef...

    of course, here is the updated code



    #ifdef __cplusplus // not going to pretend I 100% get this wrapper, it's just something I've seen done.
    extern "C" {
    #endif
    void startup_early_hook() {...
  47. Replies
    6
    Views
    2,509

    Fair enough, I mean - hard to do but good to try....

    Fair enough, I mean - hard to do but good to try. I usually pick up my teensy's when ordering PCBs from OSH park, they're about $20 and shipping included - if you're doing PCB design at any point...
  48. Replies
    14
    Views
    3,476

    I've tried those to no avail. I'm digging through...

    I've tried those to no avail. I'm digging through the data sheets and there's a bunch of registers for handling the ISR, but as far as I can tell those two macros should be all that's needed; they do...
  49. Replies
    14
    Views
    3,476

    Yes that's the register for AVR, the ARM version...

    Yes that's the register for AVR, the ARM version is teensy3/kinetis.h WDOG_STCTRLH. I've got the WDT running and resetting the board but I can't get it to trigger the interrupt; and by extention I...
  50. Replies
    14
    Views
    3,476

    I've been through the K20 data sheet a couple of...

    I've been through the K20 data sheet a couple of times and I'm pretty sure I get it. Setting the bit WDOG_STCTRLH_IRQSTEN enables the interrupt, which then appears on the MSB in the register...
Results 1 to 50 of 68
Page 1 of 2 1 2