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

Search:

Type: Posts; User: jacko91

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    288

    Awesome, thank you. Also concerning the sampling...

    Awesome, thank you.
    Also concerning the sampling periode I mentioned earlier works great. I checked it with writing a digital pin high every ISR and reading that pin with an digital analyser.
    Thx
  2. Replies
    10
    Views
    288

    Undestood, thanks. One more question to your...

    Undestood, thanks.
    One more question to your lib: In the source of the algorithm https://www.mikrocontroller.net/articles/Drehgeber#Solide_L.C3.B6sung:_Beispielcode_in_C it is shown that when...
  3. Replies
    10
    Views
    288

    Ah sorry, I just saw that the algorithm for...

    Ah sorry, I just saw that the algorithm for decoding is from https://www.mikrocontroller.net/articles/Drehgeber
  4. Replies
    10
    Views
    288

    Thanks, I still have some spikes in the encoder...

    Thanks,
    I still have some spikes in the encoder signal messing up my counting.
    17023
    This is the signal in the logic analyzer.
    I am wondering if I could filter those spikes with software, not...
  5. Replies
    10
    Views
    288

    Thanks. I have tested it on one motor. Looking...

    Thanks. I have tested it on one motor. Looking good so far.
    One question: You use the IntervalTimer Library. As far as I understand, the lib uses not FTM Timer but the PIT modules. Are the PIT...
  6. Replies
    10
    Views
    288

    Okay, To figure out the problem I minimized the...

    Okay,
    To figure out the problem I minimized the project to just one brushed dc motor. I have a logic analyser hocked up to the encoder lines to measure the true count.
    After reading more about...
  7. Replies
    10
    Views
    288

    Teensy missing Encoder Ticks?

    Good day,
    I have 8 motors, each with 2 channel encoders connected to the t3.5 using interrupts. Leading to a total of 68k ticks in a second. I am using the encoder lib from paul. Sometimes I have...
  8. Replies
    51
    Views
    13,846

    Hey, very interesting thread so far. Has there...

    Hey,
    very interesting thread so far.
    Has there been any successful updates on the workarounds for ota for the teensy family?

    Thx
  9. Hey, thanks, I tried that. But same issue. In...

    Hey,
    thanks, I tried that. But same issue. In the Oszi image above, when the pwm stops and before the yellow line gets pulled up, in this intersection a pullup wont change the states of the pins. So...
  10. Motor Driver problem when uploading new sketch

    Hey,
    I have a T3.5 with an motor driver (MC33926). The interface is with two pwms. The problem: when uploading a new sketch while driving the motor, the motor spins full speed for couple of ms. ...
  11. Replies
    4
    Views
    342

    Hey, sorry for the late reply. I took two 10k...

    Hey,
    sorry for the late reply.
    I took two 10k resistors. Then measured the voltage of the resistor between GND and a ADC pin with analogRead(). If the voltage is below 2.5V I call my saving...
  12. Replies
    4
    Views
    342

    Hey, just as an update: I did a voltage divider...

    Hey,
    just as an update: I did a voltage divider on the Vin line so that I can read it with an analog pin. Now I am detecting with this analog read if the 5V drops below a certain level, if so, the...
  13. Replies
    2
    Views
    176

    Alright, thanks

    Alright, thanks
  14. Replies
    2
    Views
    176

    Reset status register

    Hey,
    I am using a T3.5. I am having an endstop which will pull the reset pin low to reset the teensy. Why? I use this as a last endstop for safety reasons. So in normal mode the endstop will never...
  15. Replies
    13
    Views
    484

    good point, thx

    good point, thx
  16. Replies
    13
    Views
    484

    Hey I use opened=true, so the file only gets...

    Hey I use opened=true, so the file only gets opended once.
    Yes I write 512 bytes every 5ms.
  17. Replies
    13
    Views
    484

    Alright, stupid me. So I want to make a...

    Alright,
    stupid me. So I want to make a datalogger which writes every 5ms data to sd card. But in the last attempt I always wrote as fast as possible. Now I have include that I only write every 5ms...
  18. Replies
    13
    Views
    484

    Hey, I removed truncate and closing. ...

    Hey,
    I removed truncate and closing.

    if(opened==false){
    if (!file.open("bench.dat", O_RDWR | O_CREAT | O_TRUNC)) {
    error("open failed");
    file.close();
    }
    opened=true;
    }
  19. Replies
    13
    Views
    484

    Thanks, when I do the bench test I get: write...

    Thanks,
    when I do the bench test I get:

    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    13088.17,13039,32,37
    12952.54,12960,33,38
  20. Replies
    13
    Views
    484

    I am still a bit confused about the SD and SDFAT...

    I am still a bit confused about the SD and SDFAT libraries. The SDFAT one is the faster one, and it even enables DMA. The SD library works since Paul has modified it. Does the SDFAT work with the...
  21. Replies
    4
    Views
    342

    safe shutdown when power loss

    Hey,
    my plan: working with an T3.5, which is powered on VIN with 5V. When power is lost, I want to save data to eeprom. Idea: feed the 5V into a GPIO and measure. Put an extra Cap on the 3.3V line,...
  22. Replies
    13
    Views
    484

    Alright, thanks. first hint already increased...

    Alright, thanks.
    first hint already increased speed.
    now checking second one.
  23. Replies
    13
    Views
    484

    SD library - speed

    Hey
    I am using the datalogger example from the sd library with the teensy 3.5:


    /*
    SD card datalogger

    This example shows how to log data from three analog sensors
    to an SD card using...
  24. Replies
    1
    Views
    191

    Teensy for long term job

    Good day,
    I have been developing a system with several motors and some sensors. Prototype is now working good and solid.
    My concern is now the long term application of the system. It will be use...
  25. Replies
    8
    Views
    426

    Alright, thanks. I will try the mpu9250 with spi.

    Alright, thanks. I will try the mpu9250 with spi.
  26. Replies
    8
    Views
    426

    Hey , thanks for your replies. Sorry the...

    Hey , thanks for your replies. Sorry the wire.setclock got lost in the copy to the forum, so i am already using 400khz. The wire.requestfrom() function needs 1.4ms to be executed. Where does the...
  27. Replies
    8
    Views
    426

    mpu6050, reading time of data

    Good day,
    I am using a teensy 3.5 and a mpu6050.

    I am using the standard code to get raw data:



    #include <i2c_t3.h>
    const int MPU_ADDR = 0x68;
    int16_t accelerometer_x, accelerometer_y,...
  28. Replies
    1
    Views
    119

    I2C_t3 library, changing frequency

    Hey,
    looking at the i2c_t3.h file, it looks like it is possible to change the i2c frequency, but I dont understand fully how.
    I am using a teensy 3.5. How exactly can I change the frequency using...
  29. Hey thanks for the input. So the szenario is...

    Hey
    thanks for the input.
    So the szenario is that the power is fully turned off, and I want to detect this. I have been reading about the Vref. As far as I understand it, the data people gather for...
  30. Detect low voltage (VIN) and save data to eeprom

    Hey,
    I am using a Teensy 3.5 to drive a motor with encoder. As the encoder is not absolute I am saving the current position to the eeprom every time I completed a movement. If the teensy is powerded...
  31. Replies
    6
    Views
    447

    Thank you both very much, awesome and quick reply

    Thank you both very much, awesome and quick reply
  32. Replies
    6
    Views
    447

    Hey, thanks for the reply. So my problem is,...

    Hey,
    thanks for the reply. So my problem is, that I have a motor driver connected to the teensy. The motor is driven with pwm. High means the motor is driving. If I now reset the teensy the motor...
  33. Replies
    6
    Views
    447

    Uploading sketch, what happens to pins

    Hey,
    just wondering, while uploading a new sketch. Are all the pins pulled low or high. Or what havens to them?

    Thanks
  34. Replies
    1
    Views
    256

    ADC Resolution for single PINs

    Good day,

    in all examples the analogReadResolution() is called in the setup() and chaning the Resolution for all ADC Pins. Is there a way to only change Resolution for specific pins? The same for...
  35. Replies
    2
    Views
    441

    One addition: So I think the part with the 3...

    One addition: So I think the part with the 3 legs, and the label 'AN w72' is the source of the heat.
    But I cant find it on the schematics. Is this a diode?

    Thanks
  36. Replies
    2
    Views
    441

    Teensy 3.5 stopped working and gets hot.

    Good day,
    I think I had a little voltage spike somewhere in my setup. The led of the teensy lid up for a sec.
    After it the teensy is not recognized anymore by the pc. It gets quite hot in the area...
  37. Replies
    3
    Views
    697

    Thank you guys very much and sorry for the...

    Thank you guys very much and sorry for the missing code.
    And yes the pinMode solved the problem.
    Thanks for the quick and great support.

    Greetings
  38. Replies
    3
    Views
    697

    teensy 3.5 port mapping

    Good day,

    I am fairly new to the teensy. So I tried the port mapping from

    https://forum.pjrc.com/threads/34808-K66-Beta-Test?p=106291&viewfull=1#post106291

    I hooked pin 26 to 3.3V.
    As pin...
  39. Replies
    68
    Views
    39,288

    Hey, thanks for the reply. So u use the SPI...

    Hey,
    thanks for the reply. So u use the SPI Transactions that only one client at a time is used, right? The SPI library is compatible with the Nodemcu. So i will try the Transactions.

    My code:
    ...
  40. Replies
    68
    Views
    39,288

    But if each of the spi slave works for itself,...

    But if each of the spi slave works for itself, then i would asume the software is alright?
  41. Replies
    68
    Views
    39,288

    both positiv. Tested every digital pin for both.

    both positiv. Tested every digital pin for both.
  42. Replies
    68
    Views
    39,288

    well i already did. But the community isnt that...

    well i already did. But the community isnt that big yet. Reading this threath, i assumend you guys have quite the experience with the ili9341, regardless of what microcontroller
  43. Replies
    68
    Views
    39,288

    sd and screen not working together

    hey dudes,

    i know this post is quite old, but maybe somebody of you can still help.
    The Screen of the ili9341 works fine for it self. Same with the sd card. But both dont work together. As soon...
Results 1 to 43 of 43