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

Search:

Type: Posts; User: OhioJim

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    736

    Thanks, Kurt. But I am not talking about the...

    Thanks, Kurt. But I am not talking about the smallest interval, but the resolution.

    For example, if I want something like 376967.792 microseconds, will it get rounded to 376968 or 376967.8 or...
  2. Replies
    8
    Views
    736

    T4.0 IntervalTimer question

    I need to generate a precisely timed pulse train. For example, a 10uS pulse every 0.376467 +/- seconds.

    It looks like this could be done with the IntervalTimer functionality. I see that this...
  3. Replies
    7
    Views
    765

    Thank you! Thank you! Thank you! I'll play...

    Thank you! Thank you! Thank you!

    I'll play around with it and see what colors I like.

    It is not so much the white on black (although the font could be larger), but the red letters on black for...
  4. Replies
    7
    Views
    765

    How???? If it was easy I would have figured it...

    How???? If it was easy I would have figured it out by now.

    I am, as I type this on my laptop, looking at the Preferences window on my desktop.

    There is NOTHING about font size and color. ...
  5. Replies
    13
    Views
    595

    ...which allows the L6470 sufficient time to...

    ...which allows the L6470 sufficient time to process the data before the next time CS is asserted.

    All I can say is that it now works when the original code did not. Maybe some day I will try...
  6. Replies
    13
    Views
    595

    I feel that they are needed. The delay values are...

    I feel that they are needed. The delay values are what I found to work in the "straight line" code that bypassed getParam() (and consequently SPIXfer()).

    There needs to be a delay between...
  7. Replies
    13
    Views
    595

    Here is the modified SPIXfer function, which is...

    Here is the modified SPIXfer function, which is located in SparkFunAutoDriverSupport.cpp.
  8. Replies
    13
    Views
    595

    It appears that there is a problem with using the...

    It appears that there is a problem with using the SparkFun AutoDriver Library on a T4.0. Assuming that it works correctly on other slower processors.

    My conclusion is that the T4.0 is too fast,...
  9. Replies
    13
    Views
    595

    Sorry about that. I don't know how I missed it in...

    Sorry about that. I don't know how I missed it in SparkFunAutoDriverSupport.cpp.

    So why do all the tutorials talk about setting the SPI speed using SPISettings, when deep inside the library it is...
  10. Replies
    13
    Views
    595

    I started another thread because I have "solved"...

    I started another thread because I have "solved" my first problem, which was caused by having the wrong SPI clock.

    Now the problem is how to set the clock.


    The getParam() function is part...
  11. Replies
    13
    Views
    595

    I have looked into all the examples and can't...

    I have looked into all the examples and can't make much sense out of them.

    and why does this...

    ... not work, but but doing it the hard way like this...

    ....does work when both use the same...
  12. Replies
    13
    Views
    595

    Setting SPI clock on T4.0

    This is a sub-question from my other active thread. I am putting it here so it would be more likely to be noticed.

    How do I set the SPI clock rate on a T4.0?

    If you look at the attached...
  13. Replies
    25
    Views
    1,152

    Progress! Attached is my latest test sketch. ...

    Progress!

    Attached is my latest test sketch. In the main loop you will see a commented-out section. That is my original code that has problems.

    It appears that the problem has something to do...
  14. Replies
    25
    Views
    1,152

    That is on my list of things to try. And thanks...

    That is on my list of things to try. And thanks for the link. I will check it out. And don't forget the SCK line. It looks like the L6470 is missing a clock transition. Remember the S100 buss...
  15. Replies
    25
    Views
    1,152

    I found where the problem is coming from. Now to...

    I found where the problem is coming from. Now to figure out what causes it, and what to do about it.

    My scope is barely able to see the signals, but I wrote a minimalist sketch to initialize the...
  16. Analog and digital ground should be tied together...

    Analog and digital ground should be tied together someplace, but the capacitors should go between the ADC input and analog ground for best effect.
  17. Replies
    25
    Views
    1,152

    It made no difference.

    It made no difference.
  18. Replies
    25
    Views
    1,152

    Here is the stripped down code. Lots of things...

    Here is the stripped down code. Lots of things commented out, so I hope you can follow it.


    #include <SparkFunAutoDriver.h>
    #include <SparkFundSPINConstants.h>

    #include <SPI.h>

    // Create...
  19. Replies
    25
    Views
    1,152

    Yes, I did. No response from Sparkfun. Their...

    Yes, I did. No response from Sparkfun. Their forum doesn't seem to be very active.
  20. What is the bandwidth of the signals you are...

    What is the bandwidth of the signals you are looking at?

    You could try a simple RC filter at the output of your sensors. Or maybe just a capacitor.

    You might also try some capacitors on the...
  21. I am not too familiar with the Teensy 3.5 ADC,...

    I am not too familiar with the Teensy 3.5 ADC, but how many bits resolution does it have? Is it 12bits?

    When you get much above 10 bits you have to be very picky about your layout and grounding...
  22. Replies
    25
    Views
    1,152

    I stripped the sketch downs so all it does is...

    I stripped the sketch downs so all it does is reset the Autodriver and initialize the SPI.

    Then in the main loop it reads the configuration register over and over and sends it back up the Serial...
  23. Replies
    25
    Views
    1,152

    I will look into that. My feeling is that the...

    I will look into that.

    My feeling is that the problem has something to do with clocking the data. There is a parameter in the library that has something to do with a SPI clock divider. Not sure...
  24. Replies
    25
    Views
    1,152

    That is what I meant by "display". Send the...

    That is what I meant by "display". Send the configure register values over the Serial link and display on my desktop.

    There is a 20x4 display in my project but I am not using it for this motor...
  25. Replies
    25
    Views
    1,152

    I took the last remaining good Autodriver and...

    I took the last remaining good Autodriver and rewired for a single board.

    I also stripped down the sketch so all it does is read and display the configuration register once per second.

    It...
  26. Replies
    25
    Views
    1,152

    Yes. Verified I found a page in the...

    Yes. Verified


    I found a page in the datasheet for the L6470, which is the chip used on the Autodriver. It appears that there is only one CS, the SPI MOSI pin goes to the first chip SDI pin. ...
  27. Replies
    25
    Views
    1,152

    I don't have any datasheets, but I will see if I...

    I don't have any datasheets, but I will see if I can find them. All I know is the NEMA designation, which indicates it is a NEMA 14 with 4 wires, and a current rating of 0.4 amps. It was purchased...
  28. Replies
    25
    Views
    1,152

    Which means there is only one CS pin for both...

    Which means there is only one CS pin for both boards!
  29. Replies
    25
    Views
    1,152

    Ribbon cables between the Autodriver and the t4.0...

    Ribbon cables between the Autodriver and the t4.0 are about 5 inches. Between the autodrivers and the motors themselves there is a 5 foot coiled microphone type cable. The motors are on the...
  30. Replies
    25
    Views
    1,152

    Some further information on this.... Added...

    Some further information on this....

    Added some statements to my code to read the autodriver status register and send it up the serial port.

    It indicates that occasionally it misses a step. ...
  31. Replies
    25
    Views
    1,152

    Sparkfun Autodriver and Teensy 4.0

    My telescope project is nearing completion. The last step is to get the stepper motors working.

    I have 2 Sparkfun L6470 Autodrivers connected to SPI port #2 on the t4.0 and have been trying to...
  32. Replies
    5
    Views
    416

    Yes, that was what I was looking at. What you...

    Yes, that was what I was looking at. What you linked to.

    I am currently using the "LCD library for SparkFun RGB3.3v SerialOpen LCD display with attached Qwiic adapter", by Gaston R. Williams. It...
  33. Replies
    5
    Views
    416

    Thanks, KurtE. That is the problem I am having. ...

    Thanks, KurtE. That is the problem I am having. The capability certainly looks like it was there, but there are no examples showing what is needed to make it work.

    I will have to look into it...
  34. Replies
    5
    Views
    416

    SPI on Sparkfun SerLCD

    Does anyone know of an example on how to do this?

    All the examples I see are for I2C. I am finding that it is a bit slow in my application. I am getting an annoying flicker of the display as it...
  35. Replies
    1
    Views
    310

    I found one error in the conversion from the raw...

    I found one error in the conversion from the raw numbers to voltage. The voltages I am getting are now only half of what they should be.

    There is still a factor of 2 error somewhere. I am sure...
  36. What happens if you change the time per division?...

    What happens if you change the time per division?

    It looks like you are getting some aliasing of the signal, as MarkT suggested.
  37. Replies
    1
    Views
    310

    ADS1256 and ADXL337

    Does anyone here have any experience with these?

    I have a pair of the ADX337 3-axis accelerometers hooked up to an ADS1256, which communicates with a T4.0 via SPI.

    Everything seems to be...
  38. Replies
    3
    Views
    290

    @KurtE I tried using SPI1 as you suggested! ...

    @KurtE

    I tried using SPI1 as you suggested!

    I have a pair of 3 axis analog output accelerometers connected to an ADS1256. I made the changes to my test sketch and it is now happily spitting...
  39. Replies
    3
    Views
    290

    Thanks, KurtE. I will give that a try. I did...

    Thanks, KurtE. I will give that a try.

    I did not see anything about SPI1.begin() or SPI2.begin() in any of the examples or tutorials. And the header file has so many parameters and options that...
  40. Replies
    3
    Views
    290

    Teensy 4.0 SPI questions.

    Is it possible to use more than one of the SPI ports at the same time?

    Although the info here on PJRC shows how to select alternate ports, I have not found an example of that. All the examples...
  41. Replies
    3
    Views
    358

    Some more interesting problems. The pushbutton...

    Some more interesting problems.

    The pushbutton is on a X-Box style thumb control and is mounted in a pendant box on a 5 foot coiled cable. There are also 2 toggle switches in the box. The cable...
  42. Replies
    3
    Views
    358

    But I do not see how to do that with an interrupt...

    But I do not see how to do that with an interrupt input.
  43. Replies
    3
    Views
    358

    T4.0 debouncing interrupts?

    I have a pushbutton connected to a digital input, and have it configured as an interrupt.

    The interrupt is working but it looks like I am getting some switch bounce. The interrupt service routine...
  44. Replies
    7
    Views
    611

    This usually happens when there is a short...

    This usually happens when there is a short circuit on the 5v output. Probably because the Teensy was already dead at that time.

    I think I see why the teensy fried. You are trying to drive the...
  45. Replies
    5
    Views
    554

    This is all academic at this time anyway. I...

    This is all academic at this time anyway.

    I have switched to using the NeoGPS library. It does the capture of the GPS sentences and extraction of the data fields for you, and stores them in a...
  46. Replies
    5
    Views
    554

    Thanks, MarkT. I was wondering about why they...

    Thanks, MarkT. I was wondering about why they used a "while" there, when I first looked at the provided examples. It made me wonder if it was supposed to be stuck there.

    One thought though.
    ...
  47. Replies
    5
    Views
    554

    Questions: TinyGPS on Teensy 4.0

    This really isn't a bug problem. I just want to understand something about TinyGPS.

    I have a GPS receiver connected to a hardware serial port on my T4.0.

    This is a snippet of the code:

    ...
  48. Thanks to both of you. That fixed the problems....

    Thanks to both of you. That fixed the problems.

    The problem was that 'minutes' as an angle is supposed to be a double, but 'minutes' as a time is an int. I had overlooked that.
  49. I had the same problem with a Teensy 4.0. I do...

    I had the same problem with a Teensy 4.0. I do not know if the 4.1 is the same, but in my project the 4.0 will be inside a box with a USB panel mounted jack. As someone else mentioned in another...
  50. Problem passing values thru nested functions

    I am getting these errors:


    The errors occur in the function displayModeA.

    It has been several decades since I did any C++ programming, and my brain is quite rusty on this. What I am trying...
Results 1 to 50 of 67
Page 1 of 2 1 2