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

Search:

Type: Posts; User: laptophead

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Kurt Thanks a lot. About Serial4 writing out, I...

    Kurt
    Thanks a lot. About Serial4 writing out, I reduced the size of the string I am sending, and I think is not blocking anymore.
    I don't see the blockage on the scope like before.
    However, it...
  2. Thank you everyone, Me writing a new library...

    Thank you everyone,

    Me writing a new library for Roboclaw? Way beyond my abilities.
    I will have to live with it. Would implementing the new teensy 4.0 help? Probably not.


    Second issue:...
  3. Kurt, Thanks for the detailed explanation. ...

    Kurt,
    Thanks for the detailed explanation.
    I think this is as good as it gets. I can call the read every 10 ms and that means I refresh 100 times a sec.
    I heard that a guided mislle...
  4. Thanks for the reply, Yes the roboclaw is now...

    Thanks for the reply,

    Yes the roboclaw is now basic micro
    https://www.basicmicro.com/downloads

    Yes, I am sending commands to be finished by the controller, but I have to know when they are...
  5. Is Teensy Blocking during Serial communication?

    I am using a 3.5 to run a robotic arm, 6 points of inflection, controlled by 3 DC motor controller with Quadrature encoders.

    It is essential to read the encoders all the time, so I know my XYZ...
  6. Replies
    2
    Views
    81

    Yes, that worked easily Thanks a lot Mitch

    Yes, that worked easily

    Thanks a lot
    Mitch
  7. Replies
    2
    Views
    81

    Can my Teensy 3.5 come back to life?

    I unplugged the USB in the middle of a long sketch upload. I had to.
    The teensy is running a robot arm and it went berserk...

    After recovery, the Teensy USB port is not even seen on my Mac

    On...
  8. Thanks a lot, I wish the Arduino website was...

    Thanks a lot, I wish the Arduino website was correct,

    The show:
    Example Code
    int a = 50;
    int b = 10;
    int c = 0;
    c = a / b; // the variable 'c' gets a value of 5 after this statement is...
  9. This is embarrassing, but I can't do division ?!?!

    according to Arduino website 2 integers can be divided.

    So I tried

    int a =33;
    int b =55;


    void setup() {
  10. Replies
    5
    Views
    107

    Thanks everyone fmod worked really nice ...

    Thanks everyone
    fmod worked really nice

    new_Th= fmod (new_Th,90); // first is the Number and second is the Factor

    I did not have to ad any library, just added

    #include "math.h". at the...
  11. Replies
    5
    Views
    107

    I defined them as doubles, but was impossible to...

    I defined them as doubles, but was impossible to convert from string.

    I also tried define them as Floats, but the modulo operand did not work.

    TNKS
  12. Replies
    5
    Views
    107

    String toDouble not working on Teensy?

    Is that true?

    I tried newX = newX_St.toDouble(); and I got a "No class member toDouble"

    Too bad I need the precision,

    I tried the next best thing, ToFloat and it works.
    BUT:

    I can...
  13. Replies
    9
    Views
    1,907

    Paul, Please I still need your help

    While using the TimeLib, I built a equation to transform the current time in elapsed seconds.

    ElapsedSeconds = (hour() * 3600) + (minute() * 60) + (second());

    I never get past 24 hrs. The...
  14. Replies
    9
    Views
    1,907

    is working on any arduino, I was...

    <TimeLib.h> is working on any arduino, I was hoping to get some help here.
    I am a fan of Teensy and I use it any time I can, but this TFT requires Mega.
    This forum generally provides much...
  15. Replies
    9
    Views
    1,907

    Monseur Ingineur, Merci beaucoup, However I...

    Monseur Ingineur,

    Merci beaucoup,

    However I am running all this on a Mega . The TFT plugs easily on a mega.

    IntervalTimer myTick; does not compile. Any ideas?

    to tell you more of...
  16. Replies
    9
    Views
    1,907

    Trying to customise

    I am putting together a downtime tracking device for an industrial application.

    THe time is arbitrary and it starts with the reset button or powering up. TimeLib.h does a nice job to avoid...
  17. It is me again. After re-booting a couple of...

    It is me again.
    After re-booting a couple of times and using a different USB cable, the problem went away.

    The correct port shows, and it uploads and Serial Prints fine...

    Go figure

    Thanks
  18. Sierra10.12.6 and Arduino IDE 1.8.4 do not alow for teensy USB port connection

    I just upgraded to sierra, but I am an experienced teensy user. I installed the Teensyduino 1.4 and it went well.

    on the bottom of the IDE screen it sees the Teensy, on COM 1, that is weird (This...
  19. Replies
    2
    Views
    548

    Yes, that worked, thank you.

    I was keeping that if for later, never realized it hang the system.
  20. Replies
    2
    Views
    548

    Java out of memory error, please help

    Here is the whole message;
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space...
  21. Never mind, we got results

    I figured my PIDs were backwards in relation to the encoder output... etc
    I got it to work and is still rough, but it looks great, the difference between them is small -about 150 pulses, you can...
  22. Getting no Output from the PIDs

    I adapted the code to my controllers, but something is wrong.

    I attached the sketch.

    This is what I get on the serial:

    micros E_master E_slave Sp_master Sp_slave
    612968 0 0 0 0...
  23. Hope you get an arm too

    To buy an an arm like that look on ebay for Movemaster rm-501. They come maybe 3-4 a year, a complete system with controller in working order costs about 4000 USD. A broken arm "as is" can be found...
  24. The graphs look really good, can you post the new...

    The graphs look really good, can you post the new code?
    You talk a lot about speed settings but we never done this before.
    We always shot for the target number of pulses and the speed was decided...
  25. This looks very promising, I will try it on Mon. ...

    This looks very promising, I will try it on Mon. Thanks for the nice work, it's better than synchronizing the speed, I think.

    I see is not perfect, but I think the original Mitsubishi is not...
  26. Luni, I played with it yesterday, tried that...

    Luni,
    I played with it yesterday, tried that too. Yes I could come closer to the desired effect, but I dont see it as a long term solution.
    The middle gear will be connected to a grip, small hand,...
  27. I made a little film of how the gears work

    https://youtu.be/Os7oF7q0fG8

    Thanks
  28. Help with the code!

    Regarding
    Do you really need to REGULATE the speed? Couldn't you simply disable the PIDs, set the speed of both motors to the desired value, and enable the PIDs if you reached the target position? ...
  29. Can I measure 2 frequencies at the same time? (On 2 pins?) Teensy 3.5

    I have to control 2 DC motors with quadrature encoders. I must maintain similar speed on both for number of pulses in order for my application to work. For pulse count I used Encoder.h and worked...
  30. Luni, thanks for the help,

    I attached the file I am using. I still get jumpy readings, but the PIDs seem to respond well. I think is the serial monitor that is not keeping up, or is slowing the processor.

    I think your...
  31. Signal is good

    The signal from the encoders is fine. If the PIDs are not working and I move the arm by hand, all readings are there. I used the scope. The reason that some encoders are acurate is because they...
  32. The Zero procedure worked, but I still have bad readings when 4 PIDs are working

    Here is a sample, see how the numbers skip?

    This does not happen if I just run your reading sketch and I just move the arm by hand...

    You can see the PIDs in the original sketch, they dont...
  33. Luni, So nice of you to write the code, it...

    Luni,

    So nice of you to write the code, it works for all encoders. Viellen Danke ( I lived in Osterreich for a year.)
    However we got a problem. I need to Zero the encoders at startup. The old...
  34. Thanks for the advice, the highest count rate is...

    Thanks for the advice, the highest count rate is 42000, not too big. I tried the AltEncoder.h library from you -(luni) but I have a hard time with the conversion of his encoder values to integers....
  35. Can a teensy 3.5 handle 5 encoders and 5 PIDs?

    I am powering a robotic arm with 5 points of inflections, all feed back by encoders.
    Moving 2 axis at the same time still works good, but when I ad the 3rd and fourth, the PIDs overshoot.

    I...
  36. Sorry, but this is just too hard. I got an HC-06...

    Sorry, but this is just too hard. I got an HC-06 bluetooth module and connected it to Serial1 on the Teensy and the laptop, it works!

    Love this article here:...
  37. Paul , thanks for the reply. On the receiver...

    Paul , thanks for the reply.

    On the receiver Teensy that runs the USBtoSerial I get all zeros.
    I tried a Serial.println (n); and I got a line of zeros.
    Actually I dont get the data.

    What to...
  38. Great, I am trying. On the sender (teensy1)...

    Great, I am trying.

    On the sender (teensy1) side I got:
    In setup I got,

    Serial5.begin(19200); // trying to match the receiver code.

    In the loop I got
    Serial5.print(OutputExport); //...
  39. Paul, I would love to use USBtoSerial but I have...

    Paul, I would love to use USBtoSerial but I have no code for the sender teensy? Do I use Serial.write?
    I need to send 4 integers, 5 digits each. This sketch gets one char. What to do?
  40. You know, I will use a second Teensy to...

    You know, I will use a second Teensy to communicate to Serial5, and then output to the USB to my laptop. It is just temporary. Do you think Serial5 to Serial5 would communicate nice from one...
  41. Thanks a lot, can you point me to an USB adaptor...

    Thanks a lot, can you point me to an USB adaptor that would work in this case?
  42. Trying to use Serial5 to my laptop USB port.

    The usual "Serial" works fine on my desktop, however I am using it to send data to the teensy by Serial Monitor.

    So I need to monitor the behavior of my motors and encoders through SerialPlotter...
  43. Replies
    2
    Views
    1,517

    Thanks a lot, I soldered a couple of pins on the...

    Thanks a lot, I soldered a couple of pins on the D spaces and it worked.
  44. Replies
    2
    Views
    1,517

    where is the Rx Tx on teensy 3.5?

    I have a very small place ( dont have room for the USB cable) and I would like to connect the USB from the computer to the pins directly. I assumed it would be the RX1 and TX1 but they dont connect....
  45. Encoder.h - trying to reset encoders to 0 from keyboard

    I used your TwoKnobs example and it works great. I will try to control 6 DC motors with 6 Quad encoders through 6 PIDs.
    Do you think it will overwhelm the Teensy? Will they move without jerk in...
  46. Replies
    14
    Views
    2,934

    Paul, thank you. Yes I did re-named the Arduino...

    Paul, thank you. Yes I did re-named the Arduino to Arduino 1.6.12 , and then I renamed it back to just "Arduino". The installation went fine.
    Please can someone help with the other issue? On the...
  47. Replies
    14
    Views
    2,934

    I have 1.6.12 , and the arduino IDE is in the...

    I have 1.6.12 , and the arduino IDE is in the "applications" directory as usual.
  48. Replies
    14
    Views
    2,934

    Thanks a lot , Understood. I tried to load...

    Thanks a lot , Understood. I tried to load Teensyduino 1.36 on my mac OSX 10.7 and I cant get past the screen that is asking for a installation location. Whatever I choose, the "next" is grayed...
  49. Replies
    14
    Views
    2,934

    Pixy likes Teensy

    Yes, it worked. Thank you friends.
    I opted for the IC2 and connected the PIXY ribbon cable wire 5 and 9 to the Teensy 19 and 18 pins.
    Then I went in Pixy Setup program and selected IC2 for...
  50. Replies
    14
    Views
    2,934

    Great, I will work on it and let you know. I am...

    Great, I will work on it and let you know. I am inclined to use the IC2 option that the pixy offers. They say I could connect 2 or more pixies to one processor; How would I wire that? I am familiar...
Results 1 to 50 of 63
Page 1 of 2 1 2