Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 04:01 AM
    Mystery solved. The radiohead driver for the RF69 seems to be written for the lowest common denominator - no chip specific code included - seems that is left up to the user. Based on the notes for the interrupts...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    Today, 03:44 AM
    Assuming you are talking about your test case in post#1029 - will give it a try - fun watching what happens to the temperature as things change - at some point need to really stress the chip and see what the temp does
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    Yesterday, 09:17 PM
    RADIOHEAD LIBRARY AND ADAFRUIT RF69 MODULE When I tested the radiohead library using one of the supplier examples the module failed on initialization for the module. Looking at he Adafruit example for the module...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    Yesterday, 03:53 PM
    @KurtE - PR#43 submitted.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    Yesterday, 01:21 PM
    @Frank - that's quite a performance boost over previous comparisons! :)
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    Yesterday, 01:17 PM
    @KurtE SPI error and Radiohead Library Morning. Just tried to compile the Radiohead Library and it returned an undefined reference to SPIClass::end(). Resolved it by adding this to the RT10x2 section of SPI.cpp:...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 11:31 PM
    Well at least we got two more libraries tested working :)
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 11:09 PM
    Interesting, I just tested the rotary encoder I have (http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/keyes-ky-040-arduino-rotary-encoder-user-manual/), it has a push button capability as well. ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 11:01 PM
    Hi @Frank. Did you try bounce2 as a comparison? Don't have any switches I can test with yet. Unless I use the rotary encoder?
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 10:32 PM
    T4 QUADRATURE ENCODER MODULE As a fast test I copied over enough of the encoder driver from the SDK to test both the encoder functionality and the method I am using for assigning alternate pins. I got it working...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 01:31 AM
    manitou poste a link a while ago to his GITHUB: https://github.com/manitou48/teensy4. Pretty sure it would be there. Ok now I know what you mean by ghost pin, I think. oops forgot he rest. The answer I believe is...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 01:11 AM
    Hi Tim, not sure what you mean by ghost pins? If you mean redefine existing pins with alternate pins, supposedly you can, if you look at say the IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_04 register you will see that you have alt...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-18-2019, 01:00 AM
    Just for reference you can also try teensythreads library by fritas.
    7 replies | 267 view(s)
  • mjs513's Avatar
    01-18-2019, 12:45 AM
    XBARA1 pin reassign to pins 2 and 3. Ok back at this, got tired of not being able to get something else working so took a break and came back to this. Not sure if I am using the port assignment macros correctly so...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-17-2019, 08:38 PM
    Hey Tim, Yeah - I did that test to (liquid cooling :) ) when I was playing with the standalone sketch - couldn't resist - I should have put the heat sink on it to see what would happen :)
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-17-2019, 07:25 PM
    Funny = its degrees C. You need to do you own conversion :) Mine typically starts out at about 36C and climbs and stabilizes around 48C under minimal load.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-17-2019, 06:46 PM
    Temperature Monitoring With everything else going on, forgot to tell you all that since the incorporation of tempmon function in the core/startup that if you want to monitor the chip temp all you have to do is print...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-17-2019, 12:51 AM
    Default settings used for all PDOF(6) except for the column marked PDOF(2) was curious what kind of performance improvement we would see if it was changed.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 09:20 PM
    Hope he feels better soon - just got over a something that kick my you know what - tell him get lots of rest and drink lots of fluids. And feel better soon.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 08:42 PM
    ADAFTUIT MOTOR SHIELD V2 LIBRARY Ok. I picked up another Adafruit v2 motorshield that I modified for 3.3v and hooked up a stepper motor. The shield is unique in that it uses I2C for the control of the motors so I...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 05:19 PM
    @KurtE Ok that got it - used wrong branch the ding bat that i am. Anyway now it works like a charm. Just for comparisons at this point i updated the benchmark table that i generated earlier, post #827. Big...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 04:41 PM
    @KurtE Ok just downloaded latest updates to SPIN and ILI9341 WIP libraries as well as redownloading your SPI fork just in case. I am still getting that pin 10 is not a valid CS pin and I changed to your pin...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 04:08 PM
    @manitou Nope. You are right the Quadrature encoder in the SDK uses the XBAR pins so the I pins have to be redefined, XBAR is an alternate pin configure. That's why I was asking about reconfiguring the pins.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 02:53 PM
    Morning Kurt Tried that pin configuration as well - will put it back just as a double check. Funny thing is when I used the adafruit version the follow construct would work: Adafruit_ILI9341 tft =...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 01:34 PM
    Question No takers on this question or did it get lost with all the other messages :)
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 01:02 PM
    @KurtE Downloaded the lastest (as of tues 07:30 EST) and ran problems. But first - to get the rest of the tests delete you wait for input code then the rest of the code works. Ok. Nothing gets displayed but looks...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 02:28 AM
    Tim Not sure why tempmon_init would break your build. I see the function table in interval timer but it not throwing any errors when I run a intervaltimer example sketch that I have.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-16-2019, 12:09 AM
    Tim u got that right: @KurtE - just downloaded your forked version of SPI so I could get you t3n_WIP running. Put a scope on the CS and DC pins running the GraphicsTest sketch. DC is firing constantly - have to...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-15-2019, 09:41 PM
    Tim, Meant to say it last night, but, great work on the microsecond timer, hope it gets incorporated. @Frank. There are so many different clocks that can get affected by the arm clock. Tim may be right about USB...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-15-2019, 04:34 PM
    Thanks = will work on this, this afternoon. Just picked up a stepper motor and Adafruits breakout motor controller board to test their library. Have their shield but that's a pain to work with. So have a bunch of...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-15-2019, 04:31 PM
    USING ALTERNATE DEFINITIONS OF PINS - HOW TO? Getting myself really confused on this one, trying to read the manual and testing. Looking at PINs 0 and 1 for instance the default is Serial1 (LPUART6). Now if I want...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-15-2019, 03:23 PM
    @KurtE I started this so I willing to play along :) You might want to check out TXCOUNT and maybe tx watermark? Maybe one of these will help. Working another problem I am having, really just don't understand how...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-15-2019, 01:57 PM
    CORE_PINS.H Think minor error on pin assignment: // pad config registers control pullup/pulldown/keeper, drive strength, etc #define CORE_PIN0_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_02 #define...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-15-2019, 12:24 AM
    Ok will do. FreqMeasure I got as FlexPWM4, it was obvious at that one. Will relook at the other IntervalTimer again. Will keep in mind that in mind as I go through them.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 10:48 PM
    Just went through it again - just to verify. Like you said, just enables and reads. Doesn't modify from what I can see.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 08:43 PM
    Started with some of the libraries I touched so far: Comments - suggestions?
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 08:40 PM
    Tim, just curious why would you want to use elapsed micros to count to 7.2 seconds? Do you have a use case? Mike
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 08:07 PM
    I started looking at the different timers now and was going to play around with them and threw what I did to start the conversation. I can start going through the libraries and see what they are using if I can sort it...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 07:23 PM
    I did a little reading (always dangerous in my case) and tried this sketch:void setup() { pinMode(3, OUTPUT); } void loop() { digitalWrite(3, HIGH); delayUS_DWT(1000000); digitalWrite(3, LOW); ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 02:12 PM
    @manitou Yep you are right - it uses pulseIN and microseconds. Unfortunately, I only have a 4 pin sensor vs a PING (3pin sensor) so data coming out is unreliable - I am using the trig and echo pin on the single PING...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 12:25 PM
    @Paul NEWPING and STREAMING and PING Libraries NEWPING => simple modification to get T4 working - simple now after you all taught me a few things :) STREAMING => worked out of the box Can't find my PING...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-14-2019, 02:40 AM
    @Frank B Remember family comes first, always, hope everything will ok. I incorporated you change but got some strange stuff going on. First, I used a scope to look at the signals: input 30Mhz = 29.41Mhz on...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 08:50 PM
    Before I spend the next couple of hours search for the answer to this question, is there a way to enable std::threads (I am on a windows machined)?
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 05:56 PM
    @manitou / @KurtE Getting same error with serialFlash on my machine and I am pretty sure I pulled everything in.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 05:09 PM
    @Paul Post #1 UPDATE SUMMARY for libraries tested so far: works Adafruit_GFX Teensyduino library version needs to be updated to latest from Adafruit works Adafruit_ILI9341 ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 04:19 PM
    CAPACITIVE SENSOR LIBRARY See post https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=195401&viewfull=1#post195401 Took a break from the ILI9341 for a bit to re-test the capacitive sensor library. ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 03:37 PM
    @manitou Did something better than check the register. Put a scope on the sck line: pdof(6) = 7.547 Mhz pdof(2) = 8.000 Mhz SPI setting in the lib is 8Mhz.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 03:16 PM
    @KurtE Looks like our posts are crossing somehow. That's actually further than I got with the T4 SPI so far. So you are ahead of me - at least I got the right registers :)
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 02:57 PM
    @KurtE and @maniou I updated the performance numbers for the Adafruit ILI9341 library in post #827. In the ILI9341_t3 lib there are a lot of pushr and popr's, it looks like there is no direct equivalent in the...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 02:53 PM
    Morning Kurt Had drywalling and spackling!!!! Yep I pulled it in but still got those errors I mentioned. Seems to be overtaken by events, since once I updated the adafruit libraries really became a non-issue...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 02:14 PM
    Was just getting the link he posted for his SPI lib to load it up. Was looking at the ili9341_t3 as well this morning and most of changes involve the T3.x functions pushr and popr. I will posted updated numbers after...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 01:27 PM
    @manitou. Nice work Tom on SPI FIFO.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 01:23 PM
    ADAFRUIT ILI9341 Libraries Was back at this morning, fresh with the ILI9341. As a test i benchmarked it against a T3.5. T3.5(120) T4 Benchmark ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-13-2019, 03:19 AM
    ADAFRUIT ILI9341 and GFX Libraries Well, can no longer update my previous post on testing the libraries, but I just tried to load a bitmap example and the image did not load. As you all probably know it uses...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 11:59 PM
    @Paul ADAFRUIT ILI9341 and GFX Libraries Just visited the Adafruit GitHub pages for those two libraries. Looks like there was a update a couple-three months ago that add 32-bit reg support. Essentially they...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 09:53 PM
    CAPACITIVE SENSOR LIBRARY Initial testing: 1. Doesn't work on a T3.2, tried as a test 2. On the T4, it does work sort of. By this I mean the values changes as I touch the copper foil, and change depending on how...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 09:47 PM
    Actually other than setting up the pins not sure they are doing anything else with them in terms of graphics. The display commands and writes link back to Adafruit GFX library. Taking a quick look have to sort it out...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 08:23 PM
    Adafruit_ILI9341 Starting looking at the adafruit library and was wondering if someone could explain to me what the advantages are of doing this instead of setting the pins. Guessing its faster: clkport =...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 06:27 PM
    Hey Frank. Just made your change changed PDOF to 1 and the divider to 2 in spi settings. Th measured clk freq is 29.41Mhz vs 25.41mhz at current settings. Ok, missed your post. EDIT: just checked with 3. No...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 04:19 PM
    Thanks Tom, and for the explanation, getting tired of looking at that manual. Too many posts, think I agree with Frank - need sub-forums. Noticed I ran a test sketch and put in various clock frequencies just to see.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 04:14 PM
    @KurtE Finally learning details about SPI that I never got into before. I had downloaded your changes in the Pull request awhile ago and changing the clock in SPIsettings is working perfectly. Put together a test...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 12:50 PM
    BME280 and SPI @manitou Looking at SPI.cpp looks like it is on the todo list, setClock, How for the good news, I added the delayMicros to the library and now its working. So that seemed to do the trick :) ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 12:09 PM
    Maybe this is what you are talking about Frank: https://forum.pjrc.com/threads/45823-SdFs-a-New-SD-Library-for-FAT16-FAT32-exFAT?highlight=benchmarks
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 01:26 AM
    Will play with the BME280 more tomorrow - getting tired and getting late.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-12-2019, 01:21 AM
    Kurt -- Tim Since SD.h is working decided to hook up my EMIC2 text-2-speech board to the T4 and put a file on the sd card to be played by the EMIC2, figure good verification for both. Anyway, it worked, it found the...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 11:41 PM
    I tried 12.5mhz but that didn't work. Will try 4 and 8Mhz as a test then play with delay. May have to dig deeper into what they are doing with SPI in their library. Now to rehook up the BME280 chip. EDIT: Kind of...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 11:20 PM
    @Frank B You wish is my command. Hooked up a sainsmart sd card adapter and ran through all the examples. Everyone of them worked like a charm. No issues what so ever. Not sure why you said it was slow originally....
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 10:15 PM
    Kurt - just got my board, wow, as I was playing with SPI. I checked RX/TX/GND and they look like they ring out not sure about the other. EDIT: BME280 on SPI not working. Did a couple of sanity checks, yes it works...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 06:31 PM
    @KurtE Just tried the SPI mods with a BME280 sensor and getting some very strange results - using pins 10, 11, 12, 13. Tell me that I am at 6000meters. Going to put a scope on it and see if I can sort it out - is...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 04:59 PM
    Paul. Speaking from experience no matter whether you have a HR group or not its never easy. When I was in management I had to counsel, suspend, reprimand etc, and you always get that feeling when you have to do that,...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 04:54 PM
    @KurtE Just tried you sketch in post #742 and it worked fine for me, just seeing the loop message on the T2 and my debug_printf is not commented out. Was also able to transmit messages from T3.2 to the T4. Modified...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 02:26 PM
    @KurtE and @xxxajk: Yep - that fixed it. Had to try it, used pin2 :). Have to learn to scroll further down the page.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 02:07 PM
    @manitou Going to attach a SPI device and try out some of the SPI changes to see what happens later today. Have some things to take care of today.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 01:02 PM
    @xxxajk DigitalReadFast is still on the list to test. Tried your code it didn't work, with tst as a variable, but changing it to hardcode the pin number does work, i.e., have you tried putting a LED on another pin...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 12:52 PM
    Tim Just order those and a couple other things as well as long as I was ordering. Not sure what to test next hmm....
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-11-2019, 02:28 AM
    Since going where never gone before - which ones do you have? I will pick some up
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 11:36 PM
    Tim: Glad you found the problem. My ground line runs are as long as yours I don't think. Don't use the T3.2 for debug any more unless I am testing something specific. Everything goes to serial. My GND connections...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 09:28 PM
    Frank: Yep - no argument here. Typically I power them from separate 5v, if I have a bunch of them. For one its never been on issue when I am on my desktop.:) Tim: could be the timers, check irrecv.cpp around...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 09:06 PM
    Yeah had servo on 3.3v :). Probably pulled too much power. Anyway: 1. No yellow lite flashing while servo moving for me. Using 11 for IR sensor and 9 for servo. 2. Still seeing a lot of FF's but at least the code...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 08:43 PM
    Setting it up now - will update this post when done. Have bad cold my mind is in a fog - may take a little while :) UPDATE: Ok, just tested it and yeah, am seeing strange things. The servo movement seems a little...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 07:16 PM
    I would say its just about the same.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 06:49 PM
    Since I was on line, gave the change a try, it worked. same set up, his test sketch except with the change to startup, getting between 2545 and 2575 ticks.
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 06:40 PM
    @KurtE Just picked up a SSD1306 128X64 (blue and yellow) from amazon. Downloaded you PR changes and it worked like a charm with Adafruit_SSD1306/GFX libraries. At least now I have an excuse to get a whole bunch of...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 03:19 PM
    @manitou Was looking through the sketch and couldn't see anything. But I noticed it looks like it reads once on startup - not continuously. For instance, if I jumper pin 14 to 3.3v it will read 1023 when I plug the...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 02:34 PM
    You are right that the sketch doesn't change - just checked it. Ok - just reloaded with DMAchannel(false) and it ran - not sure that happened the first time. Have to go back and read the ADC chapter. It almost looks...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 01:53 PM
    Just for fun I did the same thing just now and ran KurtE's sketch and worked exactly the same way. A question, I also noticed that stream.cpp wasn't in the T4 core. Shouldn't that be copied over as well?
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 01:22 PM
    Tom, Is this what you were expecting: 7.11 us 1 ADC1_GC 0x42 ADC1_HC0 0x7 ADC1_CFG 0x6B7 0 9 2539
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 12:47 PM
    TALKIE LIBRARY Just tested the Talkie library with the changes I made with a Propshield and confirms it works with a T3.5. Will submit a PR later today. EDIT: Talkie: PR Submitted. Only Toms Diner updated. ...
    1041 replies | 22842 view(s)
  • mjs513's Avatar
    01-10-2019, 03:04 AM
    XBEE LIBRARY Working for Series 1 XBEE modules. Had T4 Tx'ing and Rx'ing from a T3.5 running the equivalent sketch. The problem I was having in my earlier post was due to me forgetting how to get things set up the...
    1041 replies | 22842 view(s)
More Activity
About mjs513

Basic Information

About mjs513
Location:
New York
Interests:
Robotics, Image Processing
Occupation:
Aerospace Eng (Retired)

Statistics


Total Posts
Total Posts
2,193
Posts Per Day
1.32
Last Post
Teensy 4.0 First Beta Test Today 04:01 AM
General Information
Last Activity
Today 12:44 PM
Join Date
07-01-2014