-
Older Activity
-
Yesterday, 09:19 PM
Yeah. The analogbufferdma works no issue. The RingbufferDMA is the one that I can’t seem to get to work. Probably something simple .
124 replies | 1368 view(s)
-
Yesterday, 08:33 PM
Well lets start with this. The MahonyIMU.ino sketch uses the PRJC MahonyAHRS library. Do not believe this is the same as the one you download with library manager, just a guess here.
However, the MahonyAHRS lib can...
3 replies | 23 view(s)
-
Yesterday, 08:23 PM
I agree - all compare stuff is in there from what I can except for the example: T4_ADC_Compare:
this line:
value = adc->analogReadCmp(pin_cmp, 0); needs to change to
value = adc->analogRead(pin_cmp, 0);
EDIT: ...
124 replies | 1368 view(s)
-
Yesterday, 07:43 PM
@KurtE
Download and ran updated sketch - no issues. Compiled out of the box. Used ",datalog.csv" to create a csv.
Configure ADC 1 and 2Press any key to run test
If line starts with , -> CSV file, # -> binary...
124 replies | 1368 view(s)
-
Yesterday, 01:46 PM
Probably need to hack it up to write it as a CSV file, would be easier to the read the data from the file. The other possibility is that I started hacking up Bill G's code to read a binary file and the write a csv or...
124 replies | 1368 view(s)
-
Yesterday, 12:04 PM
@KurtE - @defragster
I copied the sketch in post #106 and downloaded the latest core files as well as the latest SDFat lib. Compiled with out issue I did have to make one change;
} else if (samples_completed) {...
124 replies | 1368 view(s)
-
Yesterday, 11:24 AM
I have one of these displays as well. Just a quick thought did you remember to use "Adafruit_800x480" instead of "RA8875_800x480"? Had to ask.
The Sumotoy library is a bit out dated and i don't really really use...
3 replies | 55 view(s)
-
Yesterday, 02:10 AM
@KurtE
Been playing with the updated lib. Tried everything but the logger sketch:
1. Compare sketch works but there is an error I had to fix. Looks like you have the outdated sketch: analogReadCmp -> analogRead
2....
124 replies | 1368 view(s)
-
12-13-2019, 04:51 PM
@KurtE
Gave it test spin. Having a problem with the SD card believe it or not. Card gets initialized but comes back that it can't create the file. So I ran the datalogger example from the SD card library and it...
124 replies | 1368 view(s)
-
12-13-2019, 01:16 PM
Morning all
Mine arrived yesterday late in the day. As @KurtE said - think going to wait on the assembly until the issue is resolved.
327 replies | 19481 view(s)
-
12-13-2019, 01:11 PM
Thanks Paul. Glad the list helped. As for SPI #55 (was just going through the major pieces to check what was still open for you on the T4 that maybe should get into 1.49), doesn't seem to be affecting anything with...
35 replies | 941 view(s)
-
12-12-2019, 03:24 PM
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: PR #55 is still open....
35 replies | 941 view(s)
-
12-12-2019, 03:06 PM
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 that it actually...
35 replies | 941 view(s)
-
12-11-2019, 04:04 PM
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 display - think that may...
124 replies | 1368 view(s)
-
12-11-2019, 02:11 PM
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 to link to ADC module...
124 replies | 1368 view(s)
-
12-11-2019, 02:04 PM
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 its working fine. ...
124 replies | 1368 view(s)
-
12-11-2019, 01:36 PM
@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 :)
124 replies | 1368 view(s)
-
12-11-2019, 01:16 PM
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 the gyro might be...
4 replies | 47 view(s)
-
12-11-2019, 01:03 PM
@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 ISR1 fires and data...
124 replies | 1368 view(s)
-
12-11-2019, 12:43 PM
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 90deg clockwise and the...
4 replies | 47 view(s)
-
12-10-2019, 11:50 PM
@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 settings yet. Getting...
124 replies | 1368 view(s)
-
12-10-2019, 04:32 PM
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 Tindie. Reason - it was...
35 replies | 941 view(s)
-
12-10-2019, 01:25 PM
@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 having issues with...
35 replies | 941 view(s)
-
12-10-2019, 12:53 PM
Thanks not a problem should have mentioned it sooner. That's what I get for taking a nap. :)
30 replies | 1105 view(s)
-
12-10-2019, 12:30 PM
@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?
30 replies | 1105 view(s)
-
12-10-2019, 02:26 AM
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 little work on the lib...
30 replies | 1105 view(s)
-
12-10-2019, 02:21 AM
@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 merge for the timeout...
124 replies | 1368 view(s)
-
12-09-2019, 05:48 PM
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
2 replies | 61 view(s)
-
12-09-2019, 01:29 PM
@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 function calls match...
124 replies | 1368 view(s)
-
12-09-2019, 03:48 AM
@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)) when the compare is...
124 replies | 1368 view(s)
-
12-08-2019, 04:36 PM
@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:
analogWriteFrequency(14, 60;
...
124 replies | 1368 view(s)
-
12-08-2019, 01:43 PM
@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 resolution you are using...
124 replies | 1368 view(s)
-
12-08-2019, 12:52 AM
@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 is correct or will...
124 replies | 1368 view(s)
-
12-07-2019, 11:58 PM
@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 will stick to the...
124 replies | 1368 view(s)
-
12-07-2019, 11:09 PM
@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 offsets. Ran out of...
124 replies | 1368 view(s)
-
12-07-2019, 02:34 PM
@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. Need a break - been...
124 replies | 1368 view(s)
-
12-07-2019, 02:31 PM
I will second that sentiment @KurtE.
48 replies | 1540 view(s)
-
12-07-2019, 01:08 AM
@KurtE - I can only imagine :). Enjoy. Getting back to looking at CMP again. So probably will work on it tomorrow - getting late now.
124 replies | 1368 view(s)
-
12-06-2019, 10:41 PM
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.
13 replies | 186 view(s)
-
12-06-2019, 10:39 PM
@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. So far haven't had...
124 replies | 1368 view(s)
-
12-06-2019, 06:50 PM
@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: https://github.com/mjs513/Teensy-4.x-Quad-Encoder-Library.
As for...
124 replies | 1368 view(s)
-
12-06-2019, 04:52 PM
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.
Cheers.
124 replies | 1368 view(s)
-
12-06-2019, 04:00 PM
@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 ADICLK to get current...
124 replies | 1368 view(s)
-
12-06-2019, 02:20 PM
@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 since the DAC out are...
124 replies | 1368 view(s)
-
12-06-2019, 02:00 PM
@KurtE
Thanks. Didn't look in that doc - thought that would have been in the RM as well.
124 replies | 1368 view(s)
-
12-06-2019, 01:02 PM
@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 ADACK is a internal...
124 replies | 1368 view(s)
-
12-06-2019, 06:04 AM
@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 1 4 : 255 1 4...
124 replies | 1368 view(s)
-
12-06-2019, 02:29 AM
@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.
124 replies | 1368 view(s)
-
12-05-2019, 11:18 PM
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 expected. Not very fast...
13 replies | 186 view(s)
-
12-05-2019, 08:11 PM
@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 lately.
I did make...
14 replies | 361 view(s)
-
12-05-2019, 04:40 PM
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 the accelerometers...
1 replies | 52 view(s)
-
12-05-2019, 12:32 PM
ok - thanks - Reason I asked is that I ordered one of the sparkfun boards and should have it today.
13 replies | 186 view(s)
-
12-05-2019, 12:18 PM
@Sam_in
Quick question did you still use the Sparkfun library?
13 replies | 186 view(s)
-
12-04-2019, 07:22 PM
@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.
124 replies | 1368 view(s)
-
12-04-2019, 07:19 PM
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 the BNO055 after...
10 replies | 79 view(s)
-
12-04-2019, 02:40 PM
@KurtE - Good Morning as well.
As for ADC DMA think @manitou was playing with that in the beta thread: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=195136&viewfull=1#post195136 if interested. ...
124 replies | 1368 view(s)
-
12-04-2019, 02:27 PM
Just tried the restore_offset sketch on the Teensy 4.0.
On initial calibration when calibration is completed I see this:
Fully calibrated!
--------------------------------
Calibration Results:
...
10 replies | 79 view(s)
-
12-04-2019, 02:05 PM
@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 sample time duration to 2...
124 replies | 1368 view(s)
-
12-04-2019, 11:28 AM
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 the "noisy-random"...
10 replies | 79 view(s)
-
12-04-2019, 09:47 AM
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 it. Good place to...
10 replies | 79 view(s)
-
12-03-2019, 06:33 PM
@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 the ADC chapter, pg...
124 replies | 1368 view(s)
-
12-03-2019, 03:51 PM
@KurtE
Think you need to leave in the while(….) for doing the calibration. As for the wait_for_cal function we can probably get rid of it of just put the same lines of code in for calibration as in the init function...
124 replies | 1368 view(s)
-
12-03-2019, 02:18 PM
@KurtE
To be honest was wondering myself. Since you are testing ADCx_GC & ADC_GC_CAL to see if cal is completed in a while loop calibration is completed when it comes out of the loop. Would think then calibration...
124 replies | 1368 view(s)
-
12-03-2019, 01:48 PM
@KurtE
Yeah that's probably better change in wait_for_cal - couldn't sleep so jump on line while Theraflu was working :) That function is only used once in the analogRead function:
if (calibrating) wait_for_cal();
...
124 replies | 1368 view(s)
-
12-03-2019, 06:38 AM
@KurtE
Nice catch and thanks for correcting. Checked Analog Resolution function to make sure that didn't have the same problem, but that was set up a bit differently so its ok.
Think there is a minor error in the...
124 replies | 1368 view(s)
-
12-02-2019, 10:07 PM
@KurtE
Yep it handles them but it setups up the same resolution and averaging for both channels (ADC1 and ADC2). At least I think that is how it is currently working. Changing it this way allows you to change them...
124 replies | 1368 view(s)
-
12-02-2019, 09:26 PM
@KurtE - @tasha
Ok tried the other route and adds too much complexity to the situation. So I just added T4AnalogReadRes(pin, adc) as well as T4AnalogReadAveraging(pin, adc) .
124 replies | 1368 view(s)
-
12-02-2019, 08:38 PM
@KurtE - @Paul
Was going through analog.c again and was thinking since this is a lite version in order support the second ADC would it be better just to update analog.c to support the second adc?
124 replies | 1368 view(s)
-
12-02-2019, 07:24 PM
@KurtE
Thanks. Going to have to update a couple of other functions as well. AnanlogResolution and analogreadaveragering. Just as a note may have to use that other function on reinitialiaztion of changes. Have a...
124 replies | 1368 view(s)
-
12-02-2019, 06:16 PM
As @tonton81 suggested not sure if you have your connections correct but another sure way to test is to run a I2C scanner. If it comes back with the I2C address of the device you know you have it hooked up correctly.
13 replies | 186 view(s)
-
12-02-2019, 04:07 PM
@tasha
Just to let you know the default settings on initialization is to do a 32 point average using 10bit ADC. You might reduce the time by setting analogReadAveraging. Allowable averages are 4, 8, 16 and 32 point...
124 replies | 1368 view(s)
-
12-02-2019, 12:23 PM
Installed on Windows10x64 with no problems.
Ran a couple simple usb serial tests.
Test 1 dumped three floats to the sermon with no delays in loop and it kept up with no issue.
Test 2: Used SerialPlotter to...
30 replies | 1105 view(s)
-
12-01-2019, 02:41 PM
The "imxrt.h" file is part of the teensy cores files which is installed when you install Teensyduino.
For me the path looks like "F:\arduino-1.8.10\hardware\teensy\avr\cores\teensy4". So essentially navigate to...
14 replies | 361 view(s)
-
11-30-2019, 05:10 PM
Recently have been getting back into robotics and started playing again with using LIDAR for obstacle avoidance and 3d Room Scanning. Experimented with using the Neato XV-11 and LidarLite v4LED but finally settled on...
0 replies | 91 view(s)
-
11-30-2019, 01:15 PM
@defragster - @PaulStoffregen
Ran the code in Post 2 as well with the test string "1234567890123456789012345678901234567890123456789 01234567890abc" 63 chars plus NewLine :: Total 64". Got the same results as...
17 replies | 476 view(s)
-
11-29-2019, 06:42 PM
I would tend to agree with @defragster. In going through the various commits for the Talkie library there doesn't seem be voice.end() command available even in the original commit of the library so I am not sure what...
108 replies | 23504 view(s)
-
11-27-2019, 03:01 PM
@KurtE
Went ahead and closed PR#17 since you incorporated the clock changes into your PR. No sense I having duplicate PRs.
47 replies | 882 view(s)
-
11-27-2019, 02:31 PM
@KurtE
Great work on getting it working. Would never of thought about making that change to the pin configurations - was looking a more complicated change.
47 replies | 882 view(s)
-
11-27-2019, 01:40 PM
Here save you the time:
Have to get some coffee and the on to the other BNO once I find it :)
EDIT: Ok found it - tested a few of the sketches and they seem to be working. One funny thing seem to have to...
47 replies | 882 view(s)
-
11-27-2019, 01:18 PM
@KurtE
I just incorporated my setclock changes to get 3Mhz along with using the 60Mhz clock instead of the 24 Mhz clock and retested with your changes.
BNO080 - ran the rawReadings, timestamp and rotationVector...
47 replies | 882 view(s)
-
11-27-2019, 12:45 PM
@KurtE
Re: SETHOLD for MCCRO: Did you look at Table 46-9 pg 2879.
If you remember I have a PR changing that section so we can get up to 3Mhz:https://github.com/PaulStoffregen/Wire/pull/17. Here it is for your...
47 replies | 882 view(s)
-
11-26-2019, 09:43 PM
See this for how they handle clock stretching with timeout: https://github.com/jps2000/BNO080.
47 replies | 882 view(s)
-
11-26-2019, 09:31 PM
@defragster - @KurtE
Thanks for the post - never saw that one. 8 more to go. Probably missing something somewhere but when I go through wireIMXRT.cpp I don't see anything associated with timeout that is not commented...
47 replies | 882 view(s)
-
11-26-2019, 05:56 PM
@KurtE
Just as a quick and dirty test I reverted the T4 wire library to prior to the BNO055 change with the "hack checked if MFSR&7.." and retested with Lidar Lite V3 getDistance sketch and it worked with no problem. ...
47 replies | 882 view(s)
-
11-26-2019, 05:41 PM
@KurtE - as you already know neither I am but I do agree with you - the delays are just addressing the symptons not the issues. Just guessing at what could actually be wrong. Wonder if it would work if we revert the...
47 replies | 882 view(s)
-
11-26-2019, 03:03 PM
With the delays added seems to put things in synch. So the question is if with delays would seem to say it needs more time to get the all the data? Did you try with a increased buffer size?
EDIT:
Did you notice...
47 replies | 882 view(s)
-
11-26-2019, 11:43 AM
Yep odd indeed. Checked ground and power, even had it running off a ext 5v source with same results. Added 4.7k pullups to 3.3v on SDA/SCL. Note - it runs on 5v but has a builtin 3.3v level shifter for SDA/SCL. At a...
47 replies | 882 view(s)
-
11-26-2019, 12:22 AM
Well - not sure which library you are using or sketch on the above but something strange is definitely going on.
On another front, similar to this lib, the Teensy 4 is having problems with Garmin's lidar Lite V3...
47 replies | 882 view(s)