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

Search:

Type: Posts; User: RRdae

Search: Search took 0.00 seconds.

  1. I contacted RLS and their response to my query as...

    I contacted RLS and their response to my query as to why the encoder is NACK for all possible EEPROM or Register addresses was "I do not know. Our programmer connects fine."

    I have checked every...
  2. Sorry. Yes, I had to make a minor change to the...

    Sorry. Yes, I had to make a minor change to the Scanner, changing the For loop to start from 0 instead of 1 so that it would pick up the default address of the encoder.

    Right now there are no...
  3. I put my scope on the SDA & SCL lines. It looks...

    I put my scope on the SDA & SCL lines. It looks like the second ACK is failing for some reason. This is with the following code:


    Wire.beginTransmission(0);
    Wire.write(2);

    ...
  4. The scanner says that a device was found at...

    The scanner says that a device was found at address 0, which is the correct default address for that encoder. Could the address being 0 be causing issues?
  5. Thank you for responding Paul! I added...

    Thank you for responding Paul!

    I added Wire.available() after the requestFrom and it shows that 2 bytes are available, but all it returns is 11111111 11111111. The problem seems to be when I try...
  6. I2C between Teensy 3.6 and AM4096 encoder: I cannot find the right packet format!

    I am trying to create a library to enable communication between a Teensy 3.6 (master) and an AM4096 encoder (slave). The encoder requires interfacing over I2C to adjust settings before it can be...
  7. What would cause code to execute perfectly with wire.h, but malfunction with i2c_t3.h

    I have a library for the AMS as5048b encoder that works perfectly on Wire1 when used with the original wire library wire.h, but when I change to i2c_t3, the enhanced i2c library, it refuses to...
  8. The Teensy appears to have been reading true. The...

    The Teensy appears to have been reading true. The error is in the hardware, somewhere. The consensus from a question on my hardware on stack xchange is that the design is flawed (did not use a 4 pin...
  9. Please consider this thread closed. The solution...

    Please consider this thread closed. The solution was obvious once I realized what the issue was.

    Basically, I was using settings (hardware triggering) for PWM sychronized ADC that disabled...
  10. How to preserve custom ADC settings during analogRead on Teensy 3.6

    I have made several posts on topics relating to my project. I am essentially working on a BLDC motor controller that I designed and built. This particular part pertains to measuring the current...
  11. Your point was not missed. The line: ...

    Your point was not missed.

    The line:

    ADC0_CFG1 = ADC_CFG1_16BIT + ADC_CFG1_MODE(3); //*****

    Uses the same defines specified by Paul in the Teensy core code for the basic analogRead function...
  12. Interestingly enough, I disabled...

    Interestingly enough, I disabled analogReadAveraging and analogReference, suddenly the values are reading right where they should be for the level of current being measured (2000-4000 out of 65536)....
  13. Honestly, I would love to be able to use the...

    Honestly, I would love to be able to use the library code, I would be done with this part by now, but neither the core libraries or any of the addon libraries have the functionality to sychronize the...
  14. Question: How do ADC measurements act when Vmeas exceeds Vref?

    If your using the ADC on a teensy 3.6 to measure a voltage, with Vref set to either the 3.3v or 1.2v onboard supplies and the measured voltage exceeds the selected Vref voltage, but not by enough to...
  15. For ADIV, I have 00 selected: "The divide ratio...

    For ADIV, I have 00 selected: "The divide ratio is 1 and the clock rate is input clock".

    So ADCK is set to the same as the hardware clock. I am new to this low level stuff, so can I ask where you...
  16. Teensy 3.6 16bit ADC returning impossible values, please help!

    Issue: Teensy 3.6 ADC is returning incorrect values with 3.3v reference and impossible values with internal 1.2v reference (returned values greater than 16 bit). I have built a BLDC motor controller...
  17. What effect does changing ADC0 Reference have on ADC measurement resolution?

    I have a few questions about the ADC reference voltage as it pertains to use on the K66 (Teensy 3.6). Specifically, I am trying to read the amplified output of a 50 amp current sense resistor and...
  18. DMA - ADC measurement sychronized via FTM -> PDB

    I am trying to measure current through a BLDC motor via a high side current sense resistor. To do this, I have to synchronize the ADC measurement of the current sense hardware to the section of the...
  19. @grease_lighting I looked over the ADC...

    @grease_lighting

    I looked over the ADC library, but I did have not seen any provisions to sync ADC measurements to an FTM clock. Have you used the ADC in this manner? I would greatly appreciate...
  20. Thank you. I spent most of yesterday browsing NXP...

    Thank you. I spent most of yesterday browsing NXP and with the help of some better keywords for searching, I found a similar thread on the forum from a few years back. The main difference there is...
  21. BLDC High side current measurment w.r.t PWM control on 3.6

    I am constructing a controller/driver to do position and current control of a hobby grade brushless DC motor. I have everything prototyped and assembled, but I am having some issues reliably...
  22. High speed serial communications between multiple Teensies

    Background
    I am close to finalizing the design for a robotic platform that consists of individual 3 phase motor drivers directed by a central control module, each using it's own Teensy 3.6. Each...
  23. I've never worked with the MAX3390E, myself, but...

    I've never worked with the MAX3390E, myself, but the datasheet says that the TRISTATE function is a feature meant to improve use with multi-drop networks, where a high impedance state would be...
  24. Replies
    4
    Views
    517

    Thank you for your extension, it's very helpful!...

    Thank you for your extension, it's very helpful!

    I have created a short library to simplify the use of the AS5048 magnetic encoder via the PWM output. I am attaching it here in case anyone...
  25. Replies
    4
    Views
    517

    Thank you! I don't know how I missed that...

    Thank you!

    I don't know how I missed that package, but FREQMEASUREMULTI_MARK_ONLY is exactly what I need. I will continue learning about the low level functions of the Teensy, but the purpose of...
  26. Replies
    4
    Views
    517

    Duty cycle measurement via Teensy 3.6

    I am working with a magnetic encoder that outputs a PWM waveform with the duty cycle proportional to the position for one rotation. The PWM frequency is 1khz and the minimum "ON" period before...
  27. Replies
    1
    Views
    231

    Does changing FTM clock affect UART?

    I am fairly certain I know the answer, but I would appreciate confirmation before spending money to prototype.

    If the PWM timer is changed for pins 21, 22, 23 on a Teensy 3.6, will it impact...
  28. Update: I reformatted a few if statements and now...

    Update: I reformatted a few if statements and now the outputs are turning off almost simultaneously.
  29. 3 Phase Motor Driver and Fast Port Manipulation

    I am working on building the program for a 3 phase motor driver that I constructed, but I am noticing some timing discrepancies arising from small delays in digital write commands. Specifically,...
  30. Replies
    7
    Views
    537

    Thank you for your response. I will look into...

    Thank you for your response. I will look into USBHost_t36 when I get a spare moment. Do you know if a single Teensy can communicate with several other Teensys in a hub/spoke pattern via a USB hub?
    ...
  31. Replies
    7
    Views
    537

    Teensy to teensy USB

    Is communication between two or more Teensy 3.6 controllers on either USB port possible? If so, has anyone made any libraries for this purpose?

    Thanks,
    Dae
  32. Replies
    4
    Views
    528

    @tonton81 For Teensy to Teensy, I use external...

    @tonton81
    For Teensy to Teensy, I use external pull up resistors (1kohm was doing ok). I did the same with the STM32, but when I probed just the I2C (with the pull up disconnected), it was holding...
  33. Replies
    4
    Views
    528

    I2C between Teensy 3.6 slave and ARM master

    I need to interface an ARM based microcontroller (STM32F446ZETx) with a Teensy 3.6 via I2C. The ARM controller is to serve as the master, while the Teensy will act as a slave, unifying multiple...
Results 1 to 33 of 33