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

Search:

Type: Posts; User: bloodline

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    398

    Hi defragster, I guess I could write my own...

    Hi defragster,

    I guess I could write my own elapsednano() fucntion, which would check if the counter is less than the previous read value and handles the delta accordingly... But that is more...
  2. Replies
    12
    Views
    398

    Is it possible to reset the ARM DWT Cycle counter...

    Is it possible to reset the ARM DWT Cycle counter after reading it, so you donít suffer an overflow?
  3. Replies
    0
    Views
    279

    ISA -> SPI adaptor

    Hi all,

    Has anyone used a Teeny 3.x GPIO to interface with an ISA bus?

    I want to be able to communicate with a RaspberryPI via SPI, but the only spare bus on the Amiga A1200 I want to use is...
  4. A more useful idea might be for the Teensy to...

    A more useful idea might be for the Teensy to identify itself as more than one type of USB device at the same time... not sure how possible that is though...
  5. Replies
    6
    Views
    3,315

    Hi Steve, sounds like you come from the Carl...

    Hi Steve, sounds like you come from the Carl Sassenrath school of RTOS design! I'd love to have a look :)
  6. Replies
    77
    Views
    40,517

    Looking forward to seeing this as standard in the...

    Looking forward to seeing this as standard in the Teensy 3.1 Audio library :-)

    Fantastic work!
  7. Replies
    23
    Views
    16,010

    Hi Eduardo, Let me know which part of the Mbed...

    Hi Eduardo,

    Let me know which part of the Mbed API you depend on and I will prioritise my free time to work on it. Right now, basic mbed stuff should be usable... I have already used it to assist...
  8. This is a good question, the USB keyboard...

    This is a good question, the USB keyboard emulation appears to be one way.
  9. Hi Josh, As David wishes to purchase the code,...

    Hi Josh,

    As David wishes to purchase the code, it would be up to him to make it publicly available. :)
  10. Replies
    110
    Views
    54,630

    I grew up on 68k asm with my Amiga 500. You...

    I grew up on 68k asm with my Amiga 500. You should be able to do this with a single timer :)

    Also, believe me, C is vastly superior to ASM :)
  11. Replies
    110
    Views
    54,630

    Excellent, should be simple enough to sample the...

    Excellent, should be simple enough to sample the input streams with an interrupt on each pin, and then use a timer to generate the new stream on a third :)
  12. Replies
    110
    Views
    54,630

    Are the PPM streams actually PPM, have you scoped...

    Are the PPM streams actually PPM, have you scoped them to check. The RC world seems to get very confused between PPM and PWM, because the old analog radio transmitters used PPM multiplexing with PWM...
  13. Replies
    110
    Views
    54,630

    Sounds quite simple, are you able to give more...

    Sounds quite simple, are you able to give more details of the actual problem?
  14. I would agree that the hardware approach is more...

    I would agree that the hardware approach is more deterministic, but understanding David's specification a bit more, I can see why he would prefer a software approach for at least this phase of the...
  15. I sent you an Email, reply if it works. ...

    I sent you an Email, reply if it works.




    Matt
  16. Should do, I originally wrote the code to run at...

    Should do, I originally wrote the code to run at 15Hz for another project... I've not tested it any faster...



    I would recommend using the Teensy 3.1 as your base platform, it has far more I/O,...
  17. I've written some code than does what you want,...

    I've written some code than does what you want, it does eat up an interrupt though?

    I had a bit of free time, so I have written a complete "Complimentary PWM" class. It accepts the Frequency in Hz...
  18. Replies
    13
    Views
    4,793

    One of my favourite quotes (I forget where it's...

    One of my favourite quotes (I forget where it's from): In C you write solutions, in C++ you model problems :)
  19. Replies
    13
    Views
    4,793

    You can't go wrong with the free "Thinking in...

    You can't go wrong with the free "Thinking in C++":

    http://www.lib.ru.ac.th/download/e-books/TIC2Vone.pdf

    Personally I would start with C to begin with, as I'm an Objective-C coder most of the...
  20. Replies
    10
    Views
    6,508

    Just a thought, perhaps on a future Teensy (if...

    Just a thought, perhaps on a future Teensy (if the form factor is to remain), the pins on the short edge could be replaced with an expansion "Edge connector", then Paul could sell an inexpensive...
  21. Thread: VGA output

    by bloodline
    Replies
    5
    Views
    3,696

    I would have the Vsync interrupt happen only once...

    I would have the Vsync interrupt happen only once per frame, and your HSync only once per line. You are running the interrupt far too often for the teensy :) then generate your picture in the main...
  22. Thread: VGA output

    by bloodline
    Replies
    5
    Views
    3,696

    I think you should move your VSync/HSync code to...

    I think you should move your VSync/HSync code to its own IntervalTimer... Then read the line counters variables in your main loop to know when set the colour pins.

    I might buy a VGA converter...
  23. Replies
    15
    Views
    7,258

    Here is a video of my poor abused Teensy 3.1 set...

    Here is a video of my poor abused Teensy 3.1 set up for audio playback :)

    http://youtu.be/jKQbtNxmpF4

    -edit- I have added another method to the code here, to to allow playback at different...
  24. Replies
    15
    Views
    7,258

    Certainly! I could post a video too if you like,...

    Certainly! I could post a video too if you like, that will show the audio :)
  25. Replies
    7
    Views
    2,353

    My audio code is asynchronous, there is no delay...

    My audio code is asynchronous, there is no delay playing an audio sample from the Flash, you can have a large or as small a gap between the samples as you like.
  26. Replies
    7
    Views
    2,353

    Check out my PWM audio playback code in this...

    Check out my PWM audio playback code in this thread: http://forum.pjrc.com/threads/25032-Multiple-Audio-outputs

    There is plenty of space to store the audio in the Flash as 15,625Hz 8bit audio...
  27. Replies
    7
    Views
    2,507

    I have been abusing a single Teensy 3.1 for a...

    I have been abusing a single Teensy 3.1 for a couple of month now, without taking more than sensible precautions (as I want to see how hard I can push it before it breaks). I might just be lucky, but...
  28. Replies
    15
    Views
    7,258

    Here is the Code, it should be pretty self...

    Here is the Code, it should be pretty self explanatory... but let me know if you have problems. Happy for anyone to use code, but I would like some credit in the final product :)

    I hope to improve...
  29. Replies
    16
    Views
    10,755

    Sorry to hijack thread, but is it possible to go...

    Sorry to hijack thread, but is it possible to go higher on the overclock? Would this affect the PWM peripheral hardware, or is that locked to a separate clock? I'm keen to get the resolution of the...
  30. Replies
    4
    Views
    4,134

    Yeah, the transistor will be cheaper, simpler,...

    Yeah, the transistor will be cheaper, simpler, smaller and able to carry a larger current.
  31. Replies
    15
    Views
    7,258

    I have rewritten the playback code to use the...

    I have rewritten the playback code to use the IntervalTimer, which alllows for non blocking audio :) I'll write a complete audio class for you when I get the time :)
  32. Replies
    15
    Views
    7,258

    If you need help converting the audio files to...

    If you need help converting the audio files to data, let me know.
  33. Replies
    15
    Views
    7,258

    I made a quick sketch last night to play 8bit...

    I made a quick sketch last night to play 8bit 15626Hz audio via pin 3 PWM... I have tested it and you can use all the PWM pins at the same time. Works a treat:



    /*
    "Ergonomically Terrific"
    ...
  34. Replies
    4
    Views
    4,134

    A simple NPN transistor will do.

    A simple NPN transistor will do.
  35. Replies
    1
    Views
    1,386

    https://www.pjrc.com/teensy/td_timing_elaspedMilli...

    https://www.pjrc.com/teensy/td_timing_elaspedMillis.html
  36. Replies
    7
    Views
    2,752

    Ran a Teensy 3.1 at 96Mhz for nearly half an hour...

    Ran a Teensy 3.1 at 96Mhz for nearly half an hour with a few LEDs on a Duracell CR2032 via the 3.3v pin, it was still running fine but that was all I needed. :)
  37. Replies
    7
    Views
    2,752

    Apparently it can go quite low: 1.71 V

    Apparently it can go quite low: 1.71 V
  38. Replies
    7
    Views
    2,752

    It doesn't need to run for long, it just need to...

    It doesn't need to run for long, it just need to be small ;)

    My concern is just to make sure there is nothing on the 3.3v line that would be damaged (like the mini54 or some on-chip peripheral) by...
  39. Replies
    7
    Views
    2,752

    3.3v pin as a board supply

    Before I kill my Teensy 3.1, I want to run my board from a CR2032 battery.

    From the schematic, it looks like the board should be able to handle the 3.7v feed from the battery on the 3.3v pin... I...
  40. Replies
    9
    Views
    4,489

    How does one identify a "mis-note" in real time?...

    How does one identify a "mis-note" in real time? Perhaps somehow you could inform the Teensy of the song key, and then have it ignore off key notes, but other than that, there isn't much you can do.
  41. Replies
    15
    Views
    9,520

    I've had a little look at the NXP LPC800 series...

    I've had a little look at the NXP LPC800 series of chips, ARM M0 based... The seem to be available in huge same DIP format as the ATMega328, which makes them ideal for the hobby user... No idea about...
  42. Replies
    15
    Views
    7,258

    +1 on all of this please :)

    +1 on all of this please :)
  43. Replies
    15
    Views
    7,258

    Paul beat me to it, but you can output samples by...

    Paul beat me to it, but you can output samples by varying the PWM output duty at a high frequency. I used to do this on the Atmega328 to output audio, the cheap speaker I used acted as a low pass...
  44. Replies
    15
    Views
    7,258

    If the sounds just need to be tones, then simply...

    If the sounds just need to be tones, then simply put a speaker on the PWM outputs with a frequency of about 1khz. A duty cycle of 0 will shut the speaker up... And somewhere around 50% will make some...
  45. By packet I mean the data is always sent as a...

    By packet I mean the data is always sent as a discrete well formed unit.

    For example, a really simple packet:

    typedef struct {
    int magicNumber; // identifier code for your packets,...
  46. Hi David, I think you might be making this a...

    Hi David,

    I think you might be making this a little more complex than it needs to be :) I would build something similar to a UDP packet, thought nothing so heavy weight for your needs, but you...
  47. Replies
    8
    Views
    3,883

    Well, the 9150 I use has a compass so probably...

    Well, the 9150 I use has a compass so probably overkill for your project.

    The 3050 might be suitable for you, cheap and small :)

    All the 3050s could be strung on a single I2C bus (I think the...
  48. Replies
    8
    Views
    3,883

    Here is the data sheet for the gyro I use in my...

    Here is the data sheet for the gyro I use in my UAV designs...

    http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/IMU/PS-MPU-9150A.pdf

    The unit gives the offset from its normal position, no...
  49. You need a sentinel, a marker in the data stream...

    You need a sentinel, a marker in the data stream that tells you where your data starts. I prefer to use a packet based system, so the device will check that the packet is valid and then accept the...
  50. Replies
    8
    Views
    3,883

    Most gyros use either an I2C or SPI interface,...

    Most gyros use either an I2C or SPI interface, these support multiple devices so you can pretty much have as many as you need... Not trying to pry, but you only really need one, more will only give...
Results 1 to 50 of 78
Page 1 of 2 1 2