Search results

  1. M

    Compile error in PulsePositionIMXRT library

    Yeah I think we are rapidly approaching the point of diminishing returns. I was hoping to avoid pulling the veroboard out of my tranny and completely rewiring it to use a different chip (something a bit more recent perhaps?...) as it will be a right royal PITA, but it may be the only viable...
  2. M

    Compile error in PulsePositionIMXRT library

    Hi Paul, You are correct, it does work correctly, on a Teensy 4.1 (with a couple of caveats, as I mentioned in my previous post). However I get completely different results running it on the LC. The screenshot I tried to post in my last post of the results from the LC seems to have disappeared...
  3. M

    Compile error in PulsePositionIMXRT library

    Hi Paul, and thanks again for you help. This is what I get when I run it using PulsePosition. To try to make things a bit easier to see, I changed the pulse lengths so they alternated between 1000 and 2000 (i.e. channels 1, 3, 5, and 7 were 1000, 2, 4, 6, 8 were 2000). My results don't seem to...
  4. M

    Compile error in PulsePositionIMXRT library

    Thanks for the reply. I appreciate the effort to support old hardware. :-) I'm using pin 6, which is one of the allowed pins. Here's the code. #define __IMXRT1062__ #include "PulsePositionIMXRT.h" PulsePositionOutput ppm; void setup() { // put your setup code here, to run once...
  5. M

    Compile error in PulsePositionIMXRT library

    Hi All, I am using a Teensy LC (Yes I know it's old and no longer supported, but thought I'd ask anyway) for a project using the PulsePosition library. I got some odd results, and after a bit of research I found there is another version for the LC (and others) called PulsePositionIMXRT. I tried...
  6. M

    micropython on teensy-lc?

    Yeah, fair enough. I've had the LC in a transmitter for a number of years now, but haven't used it for a long time. Tried it a couple of days ago and it wouldn't work, so I thought, reflash the firmware, maybe that'll fix something. Of course I've long since lost the original source, so had to...
  7. M

    micropython on teensy-lc?

    @KurtE Thanks for the reply. I see the pinouts are very similar, at least for what I'm doing. I only use the analog inputs, a couple of digital inputs and one digital output, so pretty basic. (it's an encoder for a R/C transmitter, read some stick and switch positions, generate a ppm output...
  8. M

    micropython on teensy-lc?

    Probably a dumb question, but would micropython for teensy 4.0 work on teensy lc as well? Thanks.
  9. M

    Micropython for Teensy 3.5?

    Is there anywhere I can download a micropython build for Teensy 3.5? I know it's an old board, it's been in my box of bits for years and I've never used it, but now I'd like to try micropython on Teensy for a possible future project. But I can't find a download for it. I tried building it...
  10. M

    Access to Teensy pins through Blackaddr audio board

    Hi All, I have been playing with the audio board from Blackaddr and very impressive it is. However I have a problem. I have a Teensy 3.6 installed in mine, and I know not all the pins are used, so my question is, how do I physically access the other pins? I have the expansion board as well with...
  11. M

    My Teensy LC keeps hanging, then disappearing...

    @KurtE you got it in one! I put in the delay and it now works fine. Thank you, I thought I was going to have to buy a new Teensy! ;-)
  12. M

    My Teensy LC keeps hanging, then disappearing...

    Hi All, I am building a project around a Teensy LC. It reads lots of analog inputs (pots) then outputs a PPM stream. I am using VS Code with PlatformIO plugin, running under Linux Mint 19.3. In my testing I have put lots of Serial.print statements in the code to see what the analog values being...
  13. M

    Where can I find the .json file for Arduino pluggable discovery feature?

    BTW here's a post in the XOD forum about this issue. https://forum.xod.io/t/adapting-xod-to-new-hw-platforms/289. Looks like Teensy may be on their agenda. ;-) Ian
  14. M

    Where can I find the .json file for Arduino pluggable discovery feature?

    Hi @PaulStoffregen, thanks for the quick response. You clearly have worked out that I don't really know what I'm talking about. But I think I *am* talking about the package index json. I have one for stm32 boards, and it doesn't look a lot like the output from the teensy_ports command. It starts...
  15. M

    Where can I find the .json file for Arduino pluggable discovery feature?

    I would like to use XOD (fun ide) to program my Teensy. It supports a board discovery function like Arduino, but needs a .json file set up like some of the examples I've seen in some of the Teensy pages. But I have not been able to discover where to download the full .json file from, if indeed...
  16. M

    Pulseposition inaccuracies?

    Thanks manitou you were right. Again. I'm using CodeBlocks and PlatformIO. I installed PulsePosition from the PlatformIO library. However I've found that it seems to be installed in two places according to CodeBlocks. One it compiles with, the other it opens when you click on the #include...
  17. M

    Pulseposition inaccuracies?

    On a completely different note, I think I've found a typo in kinetis.h. #define FTM_CONF_NUMTOF (((n) & 31) << 0) // ratio of counter overflows to TOF bit set It looks to me like it should be #define FTM_CONF_NUMTOF(n) (((n) & 31) << 0) // ratio of counter overflows to TOF bit set Same...
  18. M

    Pulseposition inaccuracies?

    Thanks for you advice gentlemen. I tried putting the reads into setup but got the same result. Tried running the loopback program and it worked perfectly, so clearly the problem lies with xoscope or with me. Turned out to be the latter. Thanks to manitou whose comment naggled around the back of...
  19. M

    Pulseposition inaccuracies?

    Hi All, I have been trying Pulseposition on my Teensy35, and I have found it seems to be producing inaccurate pulse sizes. Myoutput.write(1, 1000) produces a pulse between 800us and 850us and a Myoutput.write(1, 2000) produces a pulse between about 1750us and 1850us. The "separator" pulse...
  20. M

    Pulse Position Library Questions.

    Here it is. Note that my original post has been modified slightly to be even simpler, as per my post to this thread. https://www.rcgroups.com/forums/showthread.php?1808432-Arduino-ppm-signal-reader-and-generator/page11
  21. M

    Pulse Position Library Questions.

    KISS principle Hi, I have been having similar problems understanding PPM solutions, and eventually came up with my own, which has had some discussion on RCGroups. It works very well, and is very simple. This is the AVR (Arduino) code for it. /* * Use Timer 1 and fast PWM mode to generate a...
Back
Top