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

Search:

Type: Posts; User: Manu

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    232

    Differents projects over past years

    Hello,

    First at all, I want to thank PJRC and all contributors to Teensy world. With this, I achieved many projects over the past years.

    Here are some of them :

    -A multi-information CAN...
  2. Thank you Joe

    Thank you Joe
  3. Replies
    913
    Views
    142,910

    Hello Tonton, May I point you to this post ?...

    Hello Tonton,

    May I point you to this post ?
    https://forum.pjrc.com/threads/69088-Best-way-to-send-data-over-CAN-in-little-endian-format

    Maybe there is already a function in your library that...
  4. Best way to send data over CAN in little endian format

    Hello,

    I'm currently working on a project that use CAN. I have to mimic an existing device to allow my project to dialogue with another device that I can't modify. For this purpose I have to send...
  5. Thread: TeensyTimerTool

    by Manu
    Replies
    302
    Views
    50,785

    thank you Luni for your fast response and yes,...

    thank you Luni for your fast response and yes, it's operate well when using std::isnan
  6. Thread: TeensyTimerTool

    by Manu
    Replies
    302
    Views
    50,785

    Hello Lutz, today I had some time to share and...

    Hello Lutz,

    today I had some time to share and I decided to update TeensyTimerTool library is some of my projects. For most of them I upgraded from 0.2.1 to 0.4.1.

    In one of them I had a...
  7. Replies
    9
    Views
    791

    Agree about code size. It's usefull when you are...

    Agree about code size. It's usefull when you are near the max flash or ram. But I like to know what I can do if I reach one of this limits one day.

    No, it's not faster with my current code. Loop...
  8. Replies
    9
    Views
    791

    A fast test. Optimisation is set to "faster": ...

    A fast test. Optimisation is set to "faster":

    With NEWLIB-STANDARD :



    With NEWLIB-NANO :


    Software seem to operate normaly. Have to test it more to be sure.
  9. Replies
    9
    Views
    791

    Thank you Luni. Will try it today.

    Thank you Luni. Will try it today.
  10. Replies
    9
    Views
    791

    Hello Luni, I'd like to see this in...

    Hello Luni,

    I'd like to see this in VisualTeensy too.

    Thank you,
    Manu
  11. Replies
    17
    Views
    1,031

    thank you both ;-)

    thank you both ;-)
  12. Replies
    17
    Views
    1,031

    I still have long to learn...

    I still have long to learn...
  13. Replies
    17
    Views
    1,031

    Well, thank to both of you. I was interested in...

    Well, thank to both of you. I was interested in code optimisation for a project in which I have 4 "big if". I was curious about the potential gain with pattern since I had read that it can save many...
  14. Replies
    17
    Views
    1,031

    @luni => thank you, I just NOW understand your...

    @luni => thank you, I just NOW understand your link. It this absolutely true with VScode and teensy ?
  15. Replies
    17
    Views
    1,031

    So, if I understand : if ((i == 1) || (i = 2)...

    So, if I understand :

    if ((i == 1) || (i = 2) || (i = 4) || (i == 6) || (i == 8) || (i = 9) || (i = 11))

    (1<<1) | (1<<2) | (1<<4) | (1<<6) | (1<<8) | (1<<9) | (1<<11) = 0b 101101010110 = 0000...
  16. Replies
    17
    Views
    1,031

    Thank you, but I still not understand the way to...

    Thank you, but I still not understand the way to build the mask. In your example you use 1 and shift it per the number, and then look at the bit position. Right

    (1<<1) | (1<<5) | (1<<13) =...
  17. Replies
    17
    Views
    1,031

    Binary Pattern for branch decision

    Hi,

    In "The definitive guide to arm cortex-m3 and cortex-m4 processors" by Joseph Yiu (third edition) there is a trick about branch decision (if then) and binary patterns that lead to smaller...
  18. Replies
    18
    Views
    1,724

    Hi Pete, Today I dig in the code because it...

    Hi Pete,

    Today I dig in the code because it didn't operate correctly, the week of the year was always week+1. I found that te.Wday will always return 0. So the week calculation would never take...
  19. Hi, I use to sold prototypes per hand "as I...

    Hi,

    I use to sold prototypes per hand "as I can, if I can". But I tend to use more and more my hot plate. The problem with the hot plate is when you have big PCB because it blend it...

    When I...
  20. Replies
    18
    Views
    1,724

    Hello Pete, Sorry for the long delay, I was...

    Hello Pete,

    Sorry for the long delay, I was busy up to now.
    Thank you for the code, I'll try it tomorrow and let you know how it behave. I had a quick look on it and, as I state in the first...
  21. Replies
    18
    Views
    1,724

    I tried it, but as I expected, it don't take in...

    I tried it, but as I expected, it don't take in account that the first week of the year often have less than 7 days. So today your code return week 12 while we are on week 11.

    And there is one...
  22. Replies
    18
    Views
    1,724

    Thank you Pete. I used another way while trying...

    Thank you Pete. I used another way while trying to figure if the first week of the year is not a full 7 days week :


    uint16_t findWeekOfTheYear()
    {
    int16_t currentWeek = 1;
    tmElements_t...
  23. Replies
    18
    Views
    1,724

    Well, I fell in the (53 weeks year) trap... Funny...

    Well, I fell in the (53 weeks year) trap... Funny that it was 2020 :o
  24. Replies
    18
    Views
    1,724

    Thank you Pete, This was exactly my problem...

    Thank you Pete,

    This was exactly my problem (and fault).
    Any help to calculate "WeekOfTheYear" ?

    I have an idea but need some time to make it real (Busy today). I'll use and count "nextsunday"...
  25. Replies
    18
    Views
    1,724

    Here is a simple code that demonstrate that...

    Here is a simple code that demonstrate that DayOfTheWeek does not operate :


    #include <TimeLib.h>

    void setup() {
    Serial.begin(115200);
    while ((!Serial) && (millis() < 500));

    ...
  26. Replies
    18
    Views
    1,724

    With the function above, if I set date to...

    With the function above, if I set date to 23/3/21, the dayOfWeek is 7. It should be 2.

    Ah, I forgot to say that I use Teensy 3.2 and this is with TimeLib.h Library provided by Paul.


    18:30:0 -...
  27. Replies
    18
    Views
    1,724

    The function with some debug : uint32_t...

    The function with some debug :


    uint32_t elapsedSecondsSinceSundayZero() // With TimeZone and DayLight Adjustment
    {
    tmElements_t te;

    /*
    te.Year = 21;
    te.Month = 3;
  28. Replies
    18
    Views
    1,724

    I think I have a function for elapsed seconds...

    I think I have a function for elapsed seconds since the beginning of the current week (start at midnight GMT on Saturday night) :


    uint32_t elapsedSecondsSinceSundayZero() // With TimeZone and...
  29. Replies
    18
    Views
    1,724

    GPS time and calculations

    Hello,

    In a project I use a GPS and need to make some calculations based on time and days of the week. I use an UBlox GPS and currently sync the Teensy RTC with the GPS with this :


    bool...
  30. Replies
    338
    Views
    42,919

    OK, not possible with current form factor as some...

    OK, not possible with current form factor as some required pins are already used for other purpose. I find this :
    ...
  31. Replies
    338
    Views
    42,919

    Thank you for this clarifications. I was afraid...

    Thank you for this clarifications. I was afraid about getting this king of answer, but I was sure to get it.

    I'll have a look at teensy 4.1 dedicated hardware and see if can be used with the...
  32. Replies
    338
    Views
    42,919

    Hello, I'm starting a new project : an...

    Hello,
    I'm starting a new project : an automotive race dashboard.
    My knowledge is all with engine control unit and I'm not familiar with LCD and GUI.

    So I'd like to get thoughts and advices...
  33. Replies
    203
    Views
    53,636

    I guess that if you populate JTAG pins, or any...

    I guess that if you populate JTAG pins, or any other variant that can flash the chip, you can program the MCU in the usual way ith the .hex generated per Arduino IDE.
    Correct ?
  34. Replies
    13
    Views
    1,693

    I do a test because I was thinking that it's...

    I do a test because I was thinking that it's useless to activate a pin if it's already done. But maybe I'm wrong ? I don't know...
    Anyway, thank you
  35. Replies
    13
    Views
    1,693

    Thank you Luni, this do exactly what I want. I...

    Thank you Luni, this do exactly what I want. I had 2 simple functions to LED.h :


    #ifndef LED_h
    #define LED_h

    class LED
    {
    public:
    LED(unsigned _pin)
  36. Thread: TeensyTimerTool

    by Manu
    Replies
    302
    Views
    50,785

    Thank you !

    Thank you !
  37. Thread: TeensyTimerTool

    by Manu
    Replies
    302
    Views
    50,785

    I choose to rename my variables ;-) But I have...

    I choose to rename my variables ;-)

    But I have another problem... TeensyTimerTool throw errors :



    Have to figure why..
  38. Thread: TeensyTimerTool

    by Manu
    Replies
    302
    Views
    50,785

    Hi Luni, I installed the last version of...

    Hi Luni,

    I installed the last version of TeensyTimerTool and use it with a project that already have the previous version working. In this project I use TeensytimerTool to drive a chronometre with...
  39. Replies
    13
    Views
    1,693

    Thank you Luni, I'll try this ASAP

    Thank you Luni,
    I'll try this ASAP
  40. Replies
    13
    Views
    1,693

    Hi, I have found the problem, but have hard...

    Hi,

    I have found the problem, but have hard time to figure how to solve it.
    In my setup function, I have this :


    for (int i = 0; i < 5; i++)
    {
    analogWrite(PIN_LED, LED_BRIGHTNESS);...
  41. Replies
    13
    Views
    1,693

    Last test I've done is to place button init at...

    Last test I've done is to place button init at the very beginning of the setup().

    Doing this highly reduce the pin pullup thing to 350ms. but the result is still the same
  42. Replies
    13
    Views
    1,693

    The last one for today : 22325 Yellow : the...

    The last one for today :

    22325

    Yellow : the main power (+12,5V)
    Magenta : Teensy 3v3 Regulator
    Blue : the voltage at digital pin at teensy side (pullup activated)
    Green : the voltage at the...
  43. Replies
    13
    Views
    1,693

    Here are scope trace of what I think do this : ...

    Here are scope trace of what I think do this :

    22319

    Yellow : the main power (+12,5V)
    Magenta : the voltage at button (0V when not pressed)
    Blue : the voltage at digital pin at teensy side...
  44. Replies
    13
    Views
    1,693

    This is the code : #include "Bounce2.h" ...

    This is the code :


    #include "Bounce2.h"

    #define PIN_BOUTON1 2
    #define PIN_BOUTON2 3
    #define PIN_BOUTON3 4
    #define DEBOUNCE_TIME 5
    #define SHORT_PRESS 500
  45. Replies
    13
    Views
    1,693

    Look like a code problem too. If I try to...

    Look like a code problem too.

    If I try to inverse the way I trigger the photocoupler (button before the led, and resistor after the LED), it's behave the same.
  46. Replies
    13
    Views
    1,693

    Digital Input Problem

    Hello,

    I currently test an hardware that use Digital Input (3 inputs). I try to use an photocoupler : Renesas PS2801-4

    I think I have make mistake with the way I use it because if I set :...
  47. Replies
    16
    Views
    2,335

    Autodesk which own Eagle today recommand to NOT...

    Autodesk which own Eagle today recommand to NOT use the autorouter. Instead, it recommand to use it to verify if your component placement is good :

    They say that if autorouter can't complete 85%...
  48. Replies
    258
    Views
    49,627

    Thank you.

    Thank you.
  49. Thread: uBlox Library

    by Manu
    Replies
    127
    Views
    49,788

    Hi, Added Teensy 4.0/4.1 to Chris O. fork. ...

    Hi,

    Added Teensy 4.0/4.1 to Chris O. fork.

    22123


    Edit : typo.
  50. Replies
    258
    Views
    49,627

    Luni, your MP box is full ;-)

    Luni, your MP box is full ;-)
Results 1 to 50 of 164
Page 1 of 4 1 2 3 4