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

Search:

Type: Posts; User: howiemnet

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,214

    The only potential issue I can see (from a very...

    The only potential issue I can see (from a very quick scan of your doc) is the lack of any over-voltage protection for the Teensy; the 3.1 and 3.2 are 3.3 volt compatible (man, that looks confusing)....
  2. @defragster - wow, TYQT looks useful - I'll have...

    @defragster - wow, TYQT looks useful - I'll have to give it a go. Can't count the number of times I've accidentally flashed the wrong Teensy by mistake. My current rig has 8 Teensys connected (which...
  3. So, to distil: closing the serial port hangs the...

    So, to distil: closing the serial port hangs the Teensy before it's had a chance to completely "disconnect", causing the host Mac to wait for a timeout. Opening the port again leaves you connected to...
  4. Replies
    6
    Views
    3,501

    (Speaking as a relative noob here, so others may...

    (Speaking as a relative noob here, so others may have better advice, but:)

    500Hz isn't that fast - you don't really need to use a PWM function for it. If you create your signal in code, you can...
  5. Thanks Paul - that makes things a lot clearer :)

    Thanks Paul - that makes things a lot clearer :)
  6. You still get the problem, whatever the software....

    You still get the problem, whatever the software. I've been using my own app to handle serial comms and assumed for some time that it was something I was doing wrong. And that's not off the table -...
  7. More information: This problem affects uploading...

    More information: This problem affects uploading sketches via the Arduino IDE -> Teensy Loader too. Every other time the Serial port is opened, the IDE/Loader will fail to upload automatically and...
  8. Anything I can do to help, let me know. My...

    Anything I can do to help, let me know. My current project is probably going to become my career (!) so I'm sitting here poised to kick Apple as soon as I can form a lucid and...
  9. Ahh, cool - thanks!

    Ahh, cool - thanks!
  10. The /dev/cu.usbmodem440323 port name Teensys appear with - how static is it?

    Mac OS X (but may be similar with Linux I'm guessing?):

    I've got this notion from way back - I'm sure when titting about with lots of simultaneously connected Arduinos and FTDI serial boards that...
  11. Yes, problem still there, but the flashing LED...

    Yes, problem still there, but the flashing LED may provide clues. Behaviour this time (pretty much as before):

    After flashing the output-only code to a Teensy 3.1:
    - plug into a Mac - the LED...
  12. You ask and I obey: here's a quick selection out...

    You ask and I obey: here's a quick selection out of the drawer:

    http://i.imgur.com/gNkKa5gh.jpg

    OK, I guess the tiny one gets by without any ferrite rings, but the bigger ones often have a ring...
  13. DC servos and ferrite rings: on the motor, on the encoder, or both?

    I've bought several little DC servos from eBay over the years, some have the motor wires wound once or twice through a ferrite ring, some arrive with nothing on the motor wires, but the encoder wires...
  14. ... in fact this can all be reduced to this: -...

    ... in fact this can all be reduced to this:

    - on a Mac running any version of El Capitan
    - upload the loopback code above (or write any code that uses the Serial port)
    - switch on and off the...
  15. Mac OS X El Capitan Serial port problems - need more info to raise issue with Apple

    I've been having ongoing issues with serial comms with Teensy 3.1/LCs, and have finally tracked it down to the El Capitan betas I've been running on my Macs. The behaviour is strange, and I'd like to...
  16. Hi Paul, I'm moving over to rawhid so this...

    Hi Paul,

    I'm moving over to rawhid so this will cease to be an issue for me. If you'd like I can create a minimal Xcode / Teensyduino project to illustrate the problem - but I suspect you won't be...
  17. Python not really viable for my needs - and I've...

    Python not really viable for my needs - and I've put too much time into this Swift app now :)

    I love using Python for general scripting (my day job involves Blender, which uses Python for much of...
  18. Using Swift (OS X) to communicate with Teensys - any experience here?

    I'm writing an app in Swift that communicates with multiple Teensys (3.1 & LCs) but I've hit a few issues. Any experience / pointers much appreciated.

    There's a number of ways to talk to a Teensy...
  19. Hehe - I've actually got 6 hooked up at the...

    Hehe - I've actually got 6 hooked up at the moment through a hub, but that number changes regularly. Which is why I'm sticking to one Teensy per motor / actuator / lens / light panel at the moment;...
  20. I'm writing my own Mac app in Swift. Got it...

    I'm writing my own Mac app in Swift. Got it working OK so far (despite some bloody weird Serial issues, hence moving over to USB).

    Trouble with using the serial numbers is that it overcomplicates...
  21. #defines & USB-HID - how to vary the RAWHID_USAGE value so I can identify Teensys?

    I think this is a kind of compiler question more than anything else: I've got several Teensys connected, and I've got them talking to my Mac by just using the RawHID function:


    RawHID.send(...
  22. Teensy powered multi-channel motion control

    Gotta take a break from this to earn some money, but this is where I'm at:


    https://youtu.be/YHAb0cVLG1k

    So far, I've got steppers, DC servos, RC servos, WS2812B LEDs, Canon EF lens modules...
  23. Thanks! (That post should be stickied or stuck in...

    Thanks! (That post should be stickied or stuck in the tips thread :)
  24. Teensy 3.1 - fastest digitalWrite? Is port manipulation still the way to go?

    On the Arduino, for fast I/O you write to the port directly, bypassing the friendly/safe/slow digitalWrite - does this still apply to the Teensy 3.1 / LC?

    I gather Paul's made the PORTn stuff work...
  25. Well - I've got a single stepper working, doing a...

    Well - I've got a single stepper working, doing a sine-wave motion (ie not just a plain ol' linear acceleration). The Teensy's spending between 12 and 16% of its time in the interrupt code, which is...
  26. Groovy, thanks :)

    Groovy, thanks :)
  27. Teensy LC/Encoder library won't compile. What do I need to add to direct_pin_read.h?

    Swapping a Teensy 3.1 for a Teensy LC in a working project, but the Encoder library won't compile, "IO_REG_TYPE doesn't name a type" etc.

    Tracked it down to "utility/direct_pin_read.h" - there are...
  28. Harry - thanks for the valuable intel. I've a...

    Harry - thanks for the valuable intel. I've a tendency to over-engineer and over-think things, so it's incredibly useful to know what has worked elsewhere.

    My move file (or equivalent) is only...
  29. Whelp - the longer story (make yourself...

    Whelp - the longer story (make yourself comfortable):

    Bought a controller-less robot arm a couple of months ago, with the idea I could stick a little camera on the end and use it for motion...
  30. 100KHz - cool, bobc, that gives me a ballpark to...

    100KHz - cool, bobc, that gives me a ballpark to think about.

    The application is motion-controlled filming, so accuracy isn't as critical as CNC, but the better the repeatability, the better, if...
  31. How to deal with timing during noInterrupts()?

    I'm titting about with a Canon EF lens, trying to control focus independently of the camera. Others have already done the hard lifting in terms of deciphering (most of) the protocol, and I'm able to...
  32. Teensy control of a stepper at high frequency, plus buffering and comms?

    Whelp - got my DC servo motion controller working OK, with thanks to several forum members for their advice.

    Interrupt driven at 2KHz, handles its own buffering, announces its capabilities (well,...
  33. Cool. I think there should be enough slack (at...

    Cool. I think there should be enough slack (at 96MHz) to do all I need to do in less than the 500us I've got, but I'll test the hell out of it.

    Am I likely to hit any issues with any of the...
  34. Is it a bad idea to run *everything* in a single interrupt (PID, serial handling etc)

    So: I've got a Teensy doing PID at 2KHz, triggered by an interrupt.

    I need to handle communications as well - reading new setpoints into one of my buffers, and sending out requests for more data...
  35. Thought I'd better have a go at doing my own PID...

    Thought I'd better have a go at doing my own PID with a Teensy, just to see what's involved, so I dug out an old servo motor, stuck it in a vice, and fed it with a sine wave: (No this is not an ad...
  36. Oops - yep, a naughty 'k' or two slipped in there...

    Oops - yep, a naughty 'k' or two slipped in there - I meant 500Hz update rate (given that 2ms between packets of USB data seems pretty reliable).

    Thanks for the heads-up on the Encoder library -...
  37. Robot arm - feasible to use Teensy (USB-RAW-HID) so host can do PID?

    I'm trying to revive an old Puma 200 robot arm:

    http://i.imgur.com/SBXuqgfl.jpg

    So far, I've hooked up 6 off-the-shelf motor controllers that each read one of the joints' encoders, and do some...
Results 1 to 37 of 37