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

Search:

Type: Posts; User: laptophead

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. all the Arduino examples write servo values...

    all the Arduino examples write servo values continuously in the loop.

    Isnt that normal?

    However your solution works, I made a non blocking timer and it does not drop out anymore.

    I made a...
  2. Is the Servo write function timing out on its own?

    Using the segvo.h library, and to my surprise after about 5 min the PWM I write on any pin just stops.

    Drove me crazy, so I monitor it with the scope, yes it drops to flat from 50Hz.

    Sketch is...
  3. Great advice, I used a natural port from Teensy...

    Great advice, I used a natural port from Teensy for TX.

    On the Nano side I could not make AltSoft work so I tried the NeoSWSerial library and it works. Not saying that Alt Soft is not good......
  4. Also I am trying to use this library on a Arduino...

    Also I am trying to use this library on a Arduino Nano,

    Using the same processor like the UNO , thought I could use pins 8RX and 9(TX).

    But it does not receive anything most the time. If I...
  5. AltSoftSerial on Teensy 4.1 - What pins should I use?

    believe it or not I ran out of Ser ports and need a soft serial.

    I heard great things about AltSoftSerial. but there are not specs for T 4.1.
    Does it work on it?
    Thanks
  6. Great, thanks everyone, I got some other bugs...

    Great, thanks everyone,
    I got some other bugs at the moment, but I will try this soon and let you know.
    Mitch
  7. I will work on it and let you know. Thanks

    I will work on it and let you know. Thanks
  8. Te above library applies to steppers not hobby...

    Te above library applies to steppers not hobby servos.

    Servo control is achieved by sending a servo a PWM (pulse-width modulation) signal, a series of repeating pulses of variable width where...
  9. got the Teensy 4.1! Can I drive servos at 125 Hz?

    Using right now the ol <Servo.h> library and servos are ran at 50hz.
    But new fancy servos will also work at 125hz making them more responsive. Can we do that?
    I plan to use 5 servos at the...
  10. I get 'class HardwareSerial4' has no member named...

    I get 'class HardwareSerial4' has no member named 'addMemoryForWrite'
  11. Teensy 3.5. Can I ad memory to the TX buffer?

    I'm sending a pretty long string on the TX4, blocking the run of the other processes.

    I tried
    uint8_t Serial5_buffer[128];

    In the setup

    Serial4.begin(115200); // Bluetooth HC05 to Win 10...
  12. Replies
    7
    Views
    314

    Never mind, found it , its from the lidar, Sorry

    Never mind, found it , its from the lidar,
    Sorry
  13. Replies
    7
    Views
    314

    Maybe I spoke too soon. Occasionally I get...

    Maybe I spoke too soon.
    Occasionally I get this in the Serial monitor

    > nack
    > nack
    > nack
    > nack
    > nack
    > nack
    > nack
  14. Replies
    7
    Views
    314

    Yes, That worked uint8_t Serial5_buffer[128];...

    Yes, That worked
    uint8_t Serial5_buffer[128];
    ...

    Serial5.begin(...);
    Serial5.addMemoryForWrite(Serial5_buffer, sizeof(Serial5_buffer));

    The signal is clean and regular. Paul , thanks for...
  15. Replies
    7
    Views
    314

    Thanks Kurt, I am on Teensy 4.1, went through...

    Thanks Kurt,

    I am on Teensy 4.1, went through all the ports and only Ser1 is 63 , rest are 39.
    Are these bytes?

    My longest string is like this (sending)
    E33.2, 6.8, 17.9, 8.0, -7.3, -17.2,...
  16. Replies
    7
    Views
    314

    printf is blocking my sketch, Help!

    I have a pretty complex robot with 8 motors , I read encoders every 10ms.

    I also transmit a lot of data to my Mac where I have a display and control center for the robot (Processing)

    I am...
  17. Trouble with the Serial Plotter. Using a Mac, Arduino 1.8.5 , TeensyDuino 1.53

    Serial monitor works fine, but the Serial plotter is looking for another port,
    Why would that be?
    Thanks a lot
    Mitch

    Mitch2224222243
  18. Thanks a lot Kurt, That worked

    Thanks a lot Kurt,

    That worked
  19. How to use various IC2 busses? Teensy 4.1

    I am using an IMU and a Lidar on the same bus and they play nice for most of the time.
    But sometimes the Lidar is showing zero for the readings.... The problem is so intermittent is hard to...
  20. Pete, I moved it to Com 8 and I get the same......

    Pete,
    I moved it to Com 8 and I get the same...
    I appreciate your help, but I decided to move to another IMU the Adafruit_BNO055. Works great, and there is support.

    Thanks again
  21. Tried all the way to the 112500, still getting...

    Tried all the way to the 112500, still getting garbage

    There is some software from the manufacturer that I can set up the Baud.
    Got to go now, travel on business. Will mess with it on fri
    ...
  22. Pete, thats a smart way to see whats coming, ...

    Pete, thats a smart way to see whats coming,

    Im out of my knowledge by now,
    Tried it and I get

    �Waiting for Serial1 response ... �ɼ������0�@�LM��i� �!��um ������|������9�|����Waiting for...
  23. Good observation, I moved the power to the 3.3...

    Good observation, I moved the power to the 3.3 and now the signal is at 3.3V

    Still no reading,
    I wonder if I formulated the read from Ser 1 correctly...

    #include <JY901.h>
    /*
    Test on Uno R3....
  24. Tried your recommended

    Thanks a lot, Pete
    I installed your library, but unfortunately I don't have a Ardu UNO

    So I tried to make it work on Serial1 on my teensy 4.1


    #include <JY901.h>
    /*
    Test on Uno R3.
    JY901 ...
  25. Said and done, I did replace it only in the .h...

    Said and done,
    I did replace it only in the .h file , could not find it in the .cpp. (BAUD does not appear)

    It did compile, and I uploaded.

    However it returns no data. So the IMU does not...
  26. First time install of the http://wit-motion.com IMU on Teensy 4.1

    This IMU is serial interfaced, and does a lot of calculations and corrections internally, so I was attracted to it.

    The manufacturer provides a small library that compiles fine for Ardu mega, but...
  27. Great observations Kurt, I moved the mode of...

    Great observations Kurt,

    I moved the mode of the lidar to IC2, no more interference,

    running at 400KHZ

    For the teensy community , here is the library
    ...
  28. I integrated the Lidar read in my robot general...

    I integrated the Lidar read in my robot general sketch and each reading is blocking it horribly.
    Whether I read at 10 hz or 100, all my processes stop at each read.
    The library author says
    "The...
  29. Great that worked, So for everyone else in...

    Great that worked,

    So for everyone else in the teensy family this should go like


    #include <TFMPlus.h> // Include TFMini Plus Library v1.4.1
    TFMPlus tfmP; // Create a TFMini Plus...
  30. Is #include "printf.h" compatible with T 3.5?

    I got this lidar, TF Mini Plus and found a library for it.

    https://github.com/budryerson/TFMini-Plus


    I have been using Serial.printf for a long time and it required no library, but this...
  31. Using the MPU9250 with a complex sketch running 8 motors via UART. Compatibility

    I developed this huge sketch for running a walking robot. 8 motors interfaced by 4 Serial ports.
    Everything refreshes at 10 mS. Reading encoders, sending commands.

    The time came to ad an IMU,...
  32. Where is Teensy Loader on my Mac? OS X 10.12

    I start using the new Teensy 4.1 and I downloaded the Teensyduino.
    Since then I have only problems with the USB connections. Serial monitor drops out, and I get upload errors every other time....
  33. When it glitches I get: ...

    When it glitches I get:

    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
    at...
  34. Trying to organize 4 serial commands in 10 mS with machine State, but....

    Overview
    I run a robot with 8 motors connected to UARTs and RS485 convertors.
    I devoted 4 serial channels, 2 motors each.

    When I send a serial command, I need to wait about 2-3ms for the...
  35. Trouble with the uploads

    Every third time I upload, I get:

    An error occurred while uploading the sketch

    No other explanations, but the sketch is loading, and teensy reboots.

    I would ignore it, but My serial monitor...
  36. More trouble with the 4.1

    Every third time I upload, I get:

    An error occurred while uploading the sketch

    No other explanations, but the sketch is loading, and teensy reboots.

    I would ignore it, but My serial monitor...
  37. OK I will run it at 600 MHz, I got the power. I...

    OK
    I will run it at 600 MHz, I got the power. I never seen an Arduino compatible take that much,

    I thought it was bad, shorted inside...

    Thanks a lot.
  38. Upgrading from the 3.6 to 4.1 Power issues

    When I power the 4.1 from USB it is drawing 6 mA, thats reasonable.

    Then I put it in the socket I build, where the 3.6 was, I apply 5 v at Vin and Gnd and :
    It takes 106mA. I disconnected it...
  39. Trying to get rid of Delay in a for loop. Weird consequences :

    Better start with the code:


    static unsigned long _ETimer;
    unsigned long Period;
    #include "Keyboard.h"
    int StepNo;
    static unsigned int i;

    String Kbd_Str; // from keyboard string via...
  40. Actually I discovered that I can use float arrays...

    Actually I discovered that I can use float arrays as function arguments

    Problem solved, forget structs

    Thanks for your help.

    Mitch
  41. Ok I tried this typedef struct Way_Pt { ...

    Ok I tried this



    typedef struct Way_Pt {

    float M1;
    float M2;
    float M3;
    float M11;
  42. Trying to use a struct to simplify a function, please help

    Pardon my inexperience...

    I got this robot consisting of 8 motors and I am able to send commands to each of them by this function:


    void Ev_GoTo_Pos (float M1, float M2, float M3, float...
  43. Thanks a lot , that worked

    Thanks a lot , that worked
  44. How do I software reset the Teensy 3.6?

    I found the commands that supposedly work on the 4.0 but they do nothing for the 3.6.

    I am triggering the reset by a serial command



    if (Serial5.available()) { // Read intstructions from...
  45. I got the library from Sparkfun to work and give...

    I got the library from Sparkfun to work and give me the Yaw, Pitch, Roll:

    If you need it here it is, nice and stable .


    /* MPU9250 Basic Example Code
    by: Kris Winer
    date: April 1, 2014
    ...
  46. Sebastian Thanks a lot, I will explore the...

    Sebastian

    Thanks a lot, I will explore the IntervalTimer.h

    Here
  47. My longest string looks like this 94 lenght...

    My longest string looks like this
    94 lenght
    M.Curr: M1:1.6A 0.7A 0.5A 0.0A B: M11:1.8A 0.2A 0.2A 0.0A, Volts:15.8A 4.9A Total,

    so you're right Sebastian, it is longer than 40.

    So I...
  48. never mind , I figured it. Silly me. I had a...

    never mind , I figured it. Silly me. I had a long day, sorry.

    for everyone:

    Serial5.printf( "%s Step: %d Compl A: %d Compl B: %d Send Once:%d First: %c Show Gaps:%d \n",
    ...
  49. Dear defragster The ISR is rarely used, it is...

    Dear defragster

    The ISR is rarely used, it is a switch that I flip sometimes. The blocking happens regardless...

    Kurt

    I tried Serial5.printf but it won't print out on ser 5 . it works for...
  50. It seems that sprinf is a blocking function? what to do?

    I am building a robot with 8 motors and I am sending to a PC where I have a GUI all kind of data. 112500 baud,

    8 encoders, 8 current readings and some other variables. I was counting on my 3.6 to...
Results 1 to 50 of 129
Page 1 of 3 1 2 3