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

Search:

Type: Posts; User: mjs513

Page 1 of 10 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    25
    Views
    569

    Just off the top of the head think there were a...

    Just off the top of the head think there were a few open PRs in the Core for T4: #385, 395 and 397.
    For Wire: PR #18 still open

    See you merged in the ST7735_t3 PR - Thank you :)

    For SPI: ...
  2. Replies
    25
    Views
    569

    Just downloaded and copied the changed files and...

    Just downloaded and copied the changed files and gave the "simple.ino" keyboard sketch a try on my Windows10x64 desktop. Looks like the solved the issue with all "hell" breaks loose. Did confirm...
  3. Replies
    97
    Views
    1,103

    Morning @KurtE This cold is kicking my you know...

    Morning @KurtE
    This cold is kicking my you know what. Had to crash for a while. But before more coffee.


    Think you should - it would make life easier to use DMA with ADC. As for using a...
  4. Replies
    97
    Views
    1,103

    Was looking at "I could get ADC and PIT/XBAR to...

    Was looking at "I could get ADC and PIT/XBAR to work together https://github.com/manitou48/teensy4...pitxbaradc.ino" and what it is doing is chaining A0 and A1 and then the PIT triggers using XBARA...
  5. Replies
    97
    Views
    1,103

    Yep. Didn't pick up the bug fix in adcl_t4.cpp. ...

    Yep. Didn't pick up the bug fix in adcl_t4.cpp. When i copied the example forgot to copy the updates to the lib. Oh I already changed the && to ||. Like you said other wise nothing prints.

    Now...
  6. Replies
    97
    Views
    1,103

    @manitou Thanks for the references. Was poking...

    @manitou
    Thanks for the references. Was poking around your repository yesterday looking what to get ADC and PIT/XBAR to work together. Kept going back to the beta thread to get your links :)
  7. You can try: filter.update(gx, gy, gz, ay,...

    You can try:

    filter.update(gx, gy, gz, ay, -ax, -az, my, -mx, -mz); to be honest not sure about magnetometer may have to change the sign on that as well to maintain a right hand rule. changing...
  8. Replies
    97
    Views
    1,103

    @KurtE I gave your new DMA sketch a test last...

    @KurtE

    I gave your new DMA sketch a test last night and this morning. Looks like only adc fires if 2 adc's are used. In other words if I use adc_0 for pin 15 and adc_1 for pin 14 only adc_0 DMA...
  9. The axes are match because of the orientation of...

    The axes are match because of the orientation of the of FXOS8700CQ. In otherwords it rotated on the prop shield so that the axes are aligned. In your picture the 8700CQ would have to be rotated...
  10. Replies
    97
    Views
    1,103

    @KurtE Dug out a pot and hooked into the T3.6...

    @KurtE

    Dug out a pot and hooked into the T3.6 and then ran you updated DMA example. Bottom line up front it works great. Also works no problem with compare. Haven't tried playing with other...
  11. Replies
    25
    Views
    569

    Morning again. Anyway, ran the Simple USB...

    Morning again.

    Anyway, ran the Simple USB Keyboard Example, simple.ino, under keyboard examples. Nothing else was hooked up to the T4. Was using a the Ultimate T4 breakout board I got off...
  12. Replies
    25
    Views
    569

    @Paul Downloaded and installed Beta2 with no...

    @Paul

    Downloaded and installed Beta2 with no issues whatsoever. Did see all the new USB stuff in the IDE dropdowns.

    Out of curiosity I tried to run the keyboard simple example but my PC is...
  13. Replies
    30
    Views
    1,027

    Thanks not a problem should have mentioned it...

    Thanks not a problem should have mentioned it sooner. That's what I get for taking a nap. :)
  14. Replies
    30
    Views
    1,027

    @PaulStoffregen PR has already been issued for...

    @PaulStoffregen
    PR has already been issued for the updated ST7735_t3 lib.

    Do you think you can get the PR incorporated for Wire library in the 1.49-beta2 release or is it too late?
  15. Replies
    30
    Views
    1,027

    Paul I think you are referring to the PR I did...

    Paul I think you are referring to the PR I did for the Encoder registers. Based on your preference I will redo the structure and ensure it retains the original register names. May have to do a...
  16. Replies
    97
    Views
    1,103

    @KurtE Library taking shape. Instead of the...

    @KurtE
    Library taking shape. Instead of the ringbuffer @tonton81 has his circular buffer library not sure which is better. Will look at ring buffer tomorrow but wanted to let you know that I did...
  17. Replies
    2
    Views
    53

    As a quick suggestion try adding...

    As a quick suggestion try adding Wire.setClock(100000); after temp.begin(). The other possibility is that the pullups should be reduced to 2.2K's
  18. Replies
    97
    Views
    1,103

    @KurtE Just as a FYI I pushed some addition...

    @KurtE
    Just as a FYI I pushed some addition changes to the Compare WIP branch. I did test out the compare and compare range and they seem to be working. The only other change is that I made the...
  19. Replies
    97
    Views
    1,103

    @KurtE Figured out what was happening with...

    @KurtE

    Figured out what was happening with analogRead when doing implementing compare with the T4. The current analogRead gets stuck in in infinite loop on:

    while (!(_padc.HS & ADC_HS_COCO0))...
  20. Replies
    97
    Views
    1,103

    @KurtE Sorry for the delay. I downloaded the...

    @KurtE

    Sorry for the delay. I downloaded the latest and greatest and going to have to change the enabling of the compare function. Decided to add this to the code as a test:

    ...
  21. Replies
    97
    Views
    1,103

    @KurtE Interesting thing I just found out during...

    @KurtE
    Interesting thing I just found out during testing using on the CMP function.

    Since ACMP is on pins 26 and 27 you have to change the resolution on the adc1 (ADC4) to match the what...
  22. Replies
    97
    Views
    1,103

    @KurtE Just added the last of the basic ADC...

    @KurtE

    Just added the last of the basic ADC functions, setOffset, to the base class.

    Started looking at using the ADC_test sketch for some of this. But lost on checking errors. Not sure this...
  23. Replies
    97
    Views
    1,103

    @KurtE Though I had a problem with the compare...

    @KurtE
    Though I had a problem with the compare code the after an hour or so realized I forgot to make a change in to use ACMP4 for the results. So code seems to be working.

    As for the branches I...
  24. Replies
    97
    Views
    1,103

    @KurtE Yep added some stuff - basically the...

    @KurtE
    Yep added some stuff - basically the equivalent Compare functions for ACMP3 and ACMP4. Only tested a small piece of it. Think there is only one more easy piece to put in and that for adc...
  25. Replies
    97
    Views
    1,103

    @KurtE et.al. Added the ADC compare piece of...

    @KurtE et.al.

    Added the ADC compare piece of the puzzle. Only tested on case for comparing on one value. Still needs some work - since I think I messed upped what pins are on what adc in code. ...
  26. I will second that sentiment @KurtE.

    I will second that sentiment @KurtE.
  27. Replies
    97
    Views
    1,103

    @KurtE - I can only imagine :). Enjoy. Getting...

    @KurtE - I can only imagine :). Enjoy. Getting back to looking at CMP again. So probably will work on it tomorrow - getting late now.
  28. Replies
    13
    Views
    184

    Just a quick status. Left it on for 4 hours last...

    Just a quick status. Left it on for 4 hours last know. PC went to sleep. When I woke it up it was still running and spewing data. The processing sketch picked up as well.
  29. Replies
    97
    Views
    1,103

    @KurtE Sorry for the delay but its probably...

    @KurtE

    Sorry for the delay but its probably not a bad idea. As we get more into the pins configs it will save from having to copy it in the libs all the time.

    Glad you added xbara2 and xbara3....
  30. Replies
    97
    Views
    1,103

    @KurtE, @manitou, ... For xbara1 stuff you...

    @KurtE, @manitou, ...

    For xbara1 stuff you can check out how I did I set it up for the encoder library. Made it pretty general or maybe not:...
  31. Replies
    97
    Views
    1,103

    Good Morning @KurtE - days are all beginning to...

    Good Morning @KurtE - days are all beginning to merge into one.

    Solved my issue to get the current bits for adiv and clk and incorporated into the function. I also just pushed it to GitHub.
    ...
  32. Replies
    97
    Views
    1,103

    @KurtE Got the hack working, now you have more...

    @KurtE
    Got the hack working, now you have more options than you can shake a stick for adc clock speed. Only thing I need to fix is:

    //ADC1
    //NOTE: Only works once - have to change ADIV and...
  33. Replies
    97
    Views
    1,103

    @KurtE Working on the clock module now - not...

    @KurtE
    Working on the clock module now - not sure I am doing it right I will post when I get done. Trying to understand as I go then next up I think is the Compare which is a bit more complicated...
  34. Replies
    97
    Views
    1,103

    @KurtE Thanks. Didn't look in that doc -...

    @KurtE
    Thanks. Didn't look in that doc - thought that would have been in the RM as well.
  35. Replies
    97
    Views
    1,103

    @KurtE et.al. Trying to understand a bit more...

    @KurtE et.al.

    Trying to understand a bit more about the ADC clocks. Understand about using the IPG clock (also more noisy) but a bit confused on the Async Clock (ADACK). According to RM the...
  36. Replies
    97
    Views
    1,103

    @jonr - @KurtE To test my theory of the...

    @jonr - @KurtE

    To test my theory of the changing the ADC clock i first ran the sketch in @KurtE's new version of the library for a baseline:

    8:2:2:2(000005b3 00000000)> 255 6 7 : 255 0 8 : 255...
  37. Replies
    97
    Views
    1,103

    @jonr - might be possible to get better. Right...

    @jonr - might be possible to get better. Right now the adc clock defaults to 20mhz. Not sure but if you change it to 40mhz it should be faster.
  38. Replies
    13
    Views
    184

    Just received my MLX90640 110FOV from sparkfun. ...

    Just received my MLX90640 110FOV from sparkfun. Hooked it up to a Teensy 4.0 and a Teensy 3.5. In both cases it showed temp data and using the processing sketch it showed the thermal image as...
  39. Replies
    14
    Views
    346

    @luni Thank for testing and glad its working. I...

    @luni
    Thank for testing and glad its working. I forget to post that I did play around with your test sketch and seemed to be working. Got side tracked on other diversions which is way too common...
  40. Sorry I missed this earlier. MotionCal only...

    Sorry I missed this earlier. MotionCal only calibrates the magnetometer and I believe when you run the examples sketches using the motionsense library it does do a quick calibration for the gyro but...
  41. Replies
    13
    Views
    184

    ok - thanks - Reason I asked is that I ordered...

    ok - thanks - Reason I asked is that I ordered one of the sparkfun boards and should have it today.
  42. Replies
    13
    Views
    184

    @Sam_in Quick question did you still use the...

    @Sam_in

    Quick question did you still use the Sparkfun library?
  43. Replies
    97
    Views
    1,103

    @KurtE Good morning again :) Think you are...

    @KurtE
    Good morning again :)

    Think you are right about repackaging the test stuff. Make it look more like how the ADC.lib is organized in terms of function names.
  44. What I posted showed that all its doing is...

    What I posted showed that all its doing is recalibrating the magnetometer when you power up. Which is just moving the sensor slightly on power up.

    As for your other question on stability data of...
  45. Replies
    97
    Views
    1,103

    @KurtE - Good Morning as well. As for ADC DMA...

    @KurtE - Good Morning as well.

    As for ADC DMA think @manitou was playing with that in the beta thread:...
  46. Just tried the restore_offset sketch on the...

    Just tried the restore_offset sketch on the Teensy 4.0.

    On initial calibration when calibration is completed I see this:

    Fully calibrated!

    --------------------------------

    Calibration...
  47. Replies
    97
    Views
    1,103

    @KurtE Did a quick and dirty test with the...

    @KurtE

    Did a quick and dirty test with the following 2 functions added to the sketch:

    void setShortConvTime(uint8_t adc_num){
    uint32_t tmp32, mode;

    tmp32 = ADC_CFG_ADSTS(0); //set...
  48. Well can you give me a bit more information. ...

    Well can you give me a bit more information. What Teensy are you using? You know it might not be the calibration but the environment you are in. Also not sure what you mean by noisy and random? Is...
  49. Take a look at the example sketch...

    Take a look at the example sketch "restore_offsets.ino".

    That example sketch stores the calibration data in the Teensy EEPROM if the calibration data is not already stored and if it is will reload...
  50. Replies
    97
    Views
    1,103

    @KurtE Head is still in a fog but it looks...

    @KurtE

    Head is still in a fog but it looks like all you did was
    ADC_CFG_ADSTS(3) to
    ADC_CFG_ADSTS(0),i.e., sample time duration from 17 to 2 clocks? Understand that part but then when I read...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4