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

Search:

Type: Posts; User: ohnoitsaninja

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thank you for all of your suggestions. I'm...

    Thank you for all of your suggestions. I'm curious how much faster SPI would work, it's unclear to me reading the datasheet if that 10us delay still applies. 30x30 is not that many pixels, but if I...
  2. Replies
    46
    Views
    6,751

    2048 has no significance, other than I thought it...

    2048 has no significance, other than I thought it looks about straight there, you could raise it much higher, it will just trend towards a straight line but never quite get there.

    I used a ti-89...
  3. Replies
    46
    Views
    6,751

    A couple cups of coffee later and I figured it...

    A couple cups of coffee later and I figured it out with the help of this page Finding the Center of a Circle from 2 Points and Radius

    I had wanted to do this myself a while ago and couldn't think...
  4. Replies
    46
    Views
    6,751

    >How can I soften a curve If you define soft...

    >How can I soften a curve

    If you define soft as the graph y = x, you could soften these curves by averaging it with y = x. You add x and divide by 2. But I see what you are saying about the curves...
  5. The ps3 camera code locates the center of a disk...

    The ps3 camera code locates the center of a disk and then scans arcs in a circle to find the angle of the disk, doing absolute rotary encoding. The disk is a 3" circle, half white, half black, I scan...
  6. Replies
    46
    Views
    6,751

    In the graphs you posted, 64 would be the middle...

    In the graphs you posted, 64 would be the middle on the x axis. Look at the Y value, does it bend from 64? It's higher and lower at 64 with different graphs, it bends with fixed points at 0,0 and...
  7. Replies
    46
    Views
    6,751

    Did you try using the slider? Paul's code boils...

    Did you try using the slider? Paul's code boils down to ((x/127)^t)*127 when you graph it and ignore the if limits, where t in his code is 1.2. 1.2 is almost a straight line, which is why you should...
  8. Replies
    46
    Views
    6,751

    There is a slider, it should let you easily pick...

    There is a slider, it should let you easily pick values that create the graphs you are looking for.. find the values you want and plug them into the code Paul gave you. From my function to his code,...
  9. Replies
    46
    Views
    6,751

    https://www.desmos.com/calculator/8xvcqyyqq2 ...

    https://www.desmos.com/calculator/8xvcqyyqq2

    desmos is a good in browser graphing calc that might help you figure this out, I graphed paul's code into a function and gave you a slider for the...
  10. Thank you for figuring out that math for me! One...

    Thank you for figuring out that math for me! One of the ways the commercial cameras I look at improve FPS is with a feature called region of interest where they just don't use the entire frame. Do...
  11. ADNS-3080 optical flow sensor, high speed camera

    I've been shopping for machine vision cameras, I need very high fps/low resolution/monochrome, and I'm finding everything that fits what I'm looking for is too expensive, typically $500 without a...
  12. We're just going to have to wait for actual...

    We're just going to have to wait for actual rotation(3) support. I ran into so many issues trying to convert the rest of my project via X/Y flipping I haven't used the text rotation hack or DMA lib...
  13. Replies
    4
    Views
    1,407

    Am I interpreting that correctly, that you can...

    Am I interpreting that correctly, that you can change from 240mhz to 120mhz and back during runtime with those simple functions?
  14. I hit that exact same problem doing the exact...

    I hit that exact same problem doing the exact same thing.

    Since then I switched to never using just int, always int16_t or uint16_t or however many bits I need, much less headaches and easier...
  15. Replies
    5
    Views
    3,205

    https://github.com/ohnoitsaninja/TeensyNes I...

    https://github.com/ohnoitsaninja/TeensyNes

    I wrote a library for interfacing nes controllers with teensy and specifically using them as a native USB joystick, I only tested it on Teensy-LC. I did...
  16. This is great news. I've been developing a neural...

    This is great news. I've been developing a neural network based synth, it works but I'm experimenting with a new structure to have an output neuron for each frequency bin of an FFT and use IFFT to...
  17. Here is my hack for a working rotated text with...

    Here is my hack for a working rotated text with transparent background, rotated the same as setRotation(3), horizontal with pins on the left, as it should be imho. It doesn't support extra fonts or...
  18. I wire mine on the 3.6 just like you would with a...

    I wire mine on the 3.6 just like you would with a 3.2. I even use the 3.3v, which is under the 3.6v the ili9341 is spec'd for but is safe and stable. The only component is a resistor for the...
  19. Replies
    2
    Views
    1,455

    Have you troubleshooted compiling any demo SPI...

    Have you troubleshooted compiling any demo SPI projects from examples?

    The error is that spi.h is missing. If you can verify that it's there my first thoughts would be to open the arduino ide...
  20. This is great! Only problem is I need text...

    This is great!

    Only problem is I need text going the other axis, how big of a challenge is fixing rotation, or perhaps I could wip up a rotated text hack? It would be easy enough for me to just...
  21. I've never really delved into reading datasheets...

    I've never really delved into reading datasheets to know what bits to flip for registers. The datasheet suggests a framerate of 119 FPS can be set.

    I think I did it, but without building a second...
  22. Replies
    3
    Views
    1,438

    Okay, I forgot about I also had the Teensy...

    Okay, I forgot about I also had the Teensy connected to the computer through an audio cable, that seems like an obvious problem now. I have the dac pin going into a 220uf cap and 1.2k resistor before...
  23. Replies
    3
    Views
    1,438

    usb sparking/shorting 3.6

    Sometimes if I upload bad code that crashes the teensy, to upload new code with teensyduino I occasionally have to unplug and plug in my Teensy 3.6, somewhat typical to my experience on 3.2 and LC....
  24. Replies
    3
    Views
    1,157

    Thanks, I didn't realize accessing the dac of...

    Thanks, I didn't realize accessing the dac of this dac shield would be so difficult.. I just watched the entirety of that video and dicked around in the design tool some more, it appears I want...
  25. Replies
    3
    Views
    1,157

    Audio adapter, direct analogWrite()?

    I've glanced over all the audio library and SGTL5000 headers. If I just want to use the two DAC channels without all of the audio library, is there an equivalent to analogWrite() broken out somewhere...
  26. Teensy_reboot.exe stacking, 100% CPU

    I'm on Win7-64 with a i7-4770k

    Yesterday I was programming a teensy-lc and maple mini through separate instances of the arduino IDE both open on the same machine at the same time, all was well and...
  27. Replies
    2
    Views
    1,026

    Hi, I just found this...

    Hi, I just found this https://github.com/duff2013/UartEvent uart dma for Teensy 3.1, says LC not supported, curious how big of a challenge that would be to take on.

    Also, how much uart could be...
  28. Replies
    2
    Views
    1,026

    Which communication protocol to use?

    I'm playing with adding a co-processor to my teensy projects (cheapo maple mini clones) to crunch artificial neural networks. Basically the teensy will send two 16-bit ints, and expect to get back...
  29. Replies
    6
    Views
    1,986

    I wasn't calling usbMIDI.read() fast enough...

    I wasn't calling usbMIDI.read() fast enough because of the execution time of my interrupts and loop code, messages were piling up. I moved while(usbMIDI.read()) to a 1 millis interrupt and adjusted...
  30. Replies
    6
    Views
    1,986

    I'm only using Serial.println((uint16_t)) once...

    I'm only using Serial.println((uint16_t)) once per second, so I respectfully have to insist that it's unlikely to be impacting the test. Non-midi Serial data is only 4 bytes sent once per second. ...
  31. Replies
    6
    Views
    1,986

    The midi clip was 1 second long, so OnNoteOff...

    The midi clip was 1 second long, so OnNoteOff get's called once per second, I think it's okay. It's OnControlChange messages that it's being bombarded with.
  32. Replies
    6
    Views
    1,986

    USB Midi overflow

    So I've uncovered that Ableton is wildly inconsistent with the volume and frequency of the midi data it sends out. Playing the same midi clip with a single linear control change modulation on loop...
  33. Sorry for the double post, but I put a bunch more...

    Sorry for the double post, but I put a bunch more time into programming this. Got the ANN code working even faster, fixed up some audio glitches, added 4 voice polyphony, better interpolation, preset...
  34. Replies
    6
    Views
    2,102

    I've had similar sounding issues from bad code on...

    I've had similar sounding issues from bad code on the teensy. Things like interrupt code that should be using volatile variables but isn't, basically memory issues. Sometimes in these cases pressing...
  35. Because it's the most minimal of neural network...

    Because it's the most minimal of neural network synth engines right now, it sounds very well behaved(too well?). This is mostly attributed to the waveIndex being driven by a saw wave at the desired...
  36. Teensy-LC, artificial neural network, usb midi synthesizer.

    https://www.youtube.com/watch?v=NxKl5cYeIv8

    I've been working on this for a while, but it's sat dormant for too long so I needed to get this out in the world before it's forgotten in the back of a...
  37. Replies
    13
    Views
    2,692

    To send data between teensy and a pi without USB...

    To send data between teensy and a pi without USB there are a bunch of protocols but serial and i2c jumps out as the obvious choices. I still think the teensy can handle all of your FFT, ESPECIALLY if...
  38. I know, it's just weird that it won't compile for...

    I know, it's just weird that it won't compile for LC now even though it used to.

    For anyone who finds themselves in the same spot looking for a solution user Laur posted a quick fix here...
  39. I don't know what I was doing wrong before but I...

    I don't know what I was doing wrong before but I tried it again and that fixed it for me, thanks!
  40. Laur I just had this same problem with my LC even...

    Laur I just had this same problem with my LC even though I know it used to work with LC; made a thread in support, thanks for posting a fix, I'm a little unclear with exactly where it goes or if it...
  41. Replies
    13
    Views
    2,692

    To make a drum machine you could use...

    To make a drum machine you could use piezoelectric knock sensors. With a fast enough adc and an array of sensors you could use the time and strength difference to "triangulate" a knock spot and...
  42. Replies
    13
    Views
    2,692

    Straight from the DIY link on Madrona's website...

    Straight from the DIY link on Madrona's website is a pdf with a lot of documentation on how it's done.
    http://madronalabs.com/DIY
    http://madronalabs.com/pdf/NIME09_k1_FINAL.pdf

    The teensy 3.2...
  43. Teensy-LC, 'DMAMUX_SOURCE_ADC1' was not declared

    Months ago I used the ADC library without problems with my LC, but on a new computer setup I'm having issues with the installation. I'm using Arduino IDE 1.6.5, Teensyduino 1.26, and I've tried...
  44. Thanks guys. I wasn't closing my serial...

    Thanks guys. I wasn't closing my serial connection properly in the processing sketch, it didn't seem to be the cause of the issue, but I threw void stop(){ mySerialPort.stop(); } in there just in...
  45. After beating my head against the wall for hours,...

    After beating my head against the wall for hours, upgrading to processing 3 and converting my sketches, more restarts, it seems to be fixed now. My guess is some java process was holding the COM port...
  46. Com port not found, even though it clearly is found

    I've tried multiple teensy-lc's and am having this problem on all of them. I've been using them for months with few to no issues, this just started out of nowhere last night. When using USB type -...
  47. I've dreamt of making one of these up for...

    I've dreamt of making one of these up for ableton's operator, but tals great too! I like the video. I'm also looking into your analog smoothing technique. I see you're using 7 bit control change...
  48. Normal control change messages are 0-127. Pitch...

    Normal control change messages are 0-127. Pitch bend messages are 0-16383. To scale your value, use map(value, lowBound, highBound, 0, 16383). As far as your garbage serial data, it could either an...
  49. If you send midi sync messages to ableton, it...

    If you send midi sync messages to ableton, it will only use that data to adjust your ableton tempo if the EXT button is visble and enabled in top left. The usb midi library doesn't seem to have tempo...
  50. Did you click sync in ableton's midi tab? I'm...

    Did you click sync in ableton's midi tab? I'm pretty sure midi sync messages are not sent if only set to track or remote. Also once sync is setup a new button with EXT pops up top left of the main...
Results 1 to 50 of 61
Page 1 of 2 1 2