-
Older Activity
-
Yesterday, 10:17 PM
Again pardon that I am not an expert in this, but maybe if you explain your setup, including the example sketch you are using, it might help to understand what may be happening.
That is you mention the ws2812Serial...
15 replies | 75 view(s)
-
Yesterday, 07:37 PM
@mjs513 - Yep but issue is IntervalTimer is PIT timer, so could do similar code to try to grab one of them.
I might be missing something, but I see we have GPT, PIT, and Quad Timer as three different timers... Not...
128 replies | 1465 view(s)
-
Yesterday, 04:55 PM
T3.x adc.startPDB converting to T4 and shared resources:
@mjs513, @defragster, @manitou and @Paul - and others...
Will soon look at merging the ADCL_t4 stuff into ADC library... But first want to play some with...
128 replies | 1465 view(s)
-
Yesterday, 02:14 PM
Sometimes hard to debug some of these types of issues, without hardware help... That is the first thing I would do, would be to hook up a logic analyzer and see if any signals are going out and if so if anything is...
17 replies | 540 view(s)
-
Yesterday, 01:13 PM
It has been a long time since I played with some of these LED strips, but if I remember correctly these strips have an input side and an output side (the side that can connect to the input of the next set of LEDS...)
...
15 replies | 75 view(s)
-
Yesterday, 03:09 AM
Same here as well
333 replies | 19768 view(s)
-
12-14-2019, 09:25 PM
@mjs513 - We posted/edited at same time - See my updated comment above
128 replies | 1465 view(s)
-
12-14-2019, 08:54 PM
Warning I have not done anything with the T4_ADC_ringBufferDMA sketch yet... Maybe I should make at least a partial fix to this one...
I have/had my own example: Tr_ADC_DMA_RMS, which I extracted my own buffer...
128 replies | 1465 view(s)
-
12-14-2019, 08:46 PM
Updated T4_ADC_Compare.
Will retry the DMA one to see what is happening?
128 replies | 1465 view(s)
-
12-14-2019, 08:00 PM
@mjs513 - Updated (\n)
I did a quick check back to your WIP branch and as far as I can tell everything in master is up to date with changes there?
Sounds good!
128 replies | 1465 view(s)
-
12-14-2019, 05:59 PM
@mjs513, @defragster...- I updated the test program, to give option to output binary or CSV files.
Also allows you to type in name of file...
If first character of line is a , the file will output CSV.
If first...
128 replies | 1465 view(s)
-
12-14-2019, 02:53 PM
@mjs513 - Yep I am hacking up my example sketch to allow it to either output CSV or raw...
Would make it easier to look at...
128 replies | 1465 view(s)
-
12-14-2019, 01:58 PM
With things like, this it would be beneficial if you might provide some additional information,
Like pointers to the actual hardware you are using, and likewise library: Is it this one?...
22 replies | 200 view(s)
-
12-14-2019, 01:28 PM
@nominal animal - DMA examples - There is sort of an example for doing DMA with both ADCs that is part of the ADC library
There are issues, with the ringBufferDMA as part of that project... I had my own code for...
128 replies | 1465 view(s)
-
12-14-2019, 01:01 PM
Yep - Thanks, I forgot to put the close in...
Yep - Currently a binary format, 2 bytes per sample.
Obviously we could hack this up more to have something like a CSV file. Would add a little complexity of not...
128 replies | 1465 view(s)
-
12-13-2019, 09:54 PM
@mjs513, @defragster... I extracted my DMA processing out of my example sketch and into some external files.
I think the example app is still working OK... let me know what you think.
Kurt
128 replies | 1465 view(s)
-
12-13-2019, 07:32 PM
FYI - I changed over to SDFat Beta...
/*
This example shows how to use the IntervalTimer library and the ADC library in the Teensy 4.
It uses the SD library to try to write the data to disk.
*/...
128 replies | 1465 view(s)
-
12-13-2019, 03:18 PM
Yep - I have a hacked up version now, that is reasonably KISS... It compiles, but I have not tried it yet:
/*
This example shows how to use the IntervalTimer library and the ADC library in the Teensy 4.
It...
128 replies | 1465 view(s)
-
12-13-2019, 01:21 PM
@paulStoffregen and @mjs513 - Yes the Wire change fixed an issue where for BN0055 we cleared the fifos if we entered a new start condition and the fifo had data in it...
This busted some devices/libraries that rely...
44 replies | 1100 view(s)
-
12-13-2019, 03:02 AM
Mine arrived to our PMB in town today. So far it looks like I should wait to do anything with it, until this is resolved.
333 replies | 19768 view(s)
-
12-13-2019, 03:01 AM
@defragster - yep it would make sense to add. I mainly put in the else stuff including the is Complete as a quick and dirty test to make sure my settings were not screwed up, such that the conversion/collection time...
128 replies | 1465 view(s)
-
12-12-2019, 11:06 PM
I have started playing with an IntervalTimer based sketch, that reads in 2 different analog pins for both ADCs. Currently I just stuff them into one array inside the interval timer interrupt handler... I deviated...
128 replies | 1465 view(s)
-
12-12-2019, 03:32 PM
@mjs513 will cleanup...
Also may try an intervalTimer example and see if it works.
Probably won’t be the same as the main ADC library one, but simpler...
128 replies | 1465 view(s)
-
12-12-2019, 02:37 PM
Sorry not at my desk right now,
But as mentioned, there may be solutions, but other than @PaulStoffregen we are all just users like you.
There are many of us who like to help. Suggestion, you might show you have...
4 replies | 80 view(s)
-
12-11-2019, 06:41 PM
You might try: tft.fillTriangle...
11 replies | 254 view(s)
-
12-11-2019, 06:36 PM
Sorry, hopefully someone else up here can give you more definitive stuff...
But I personally have had better luck with +5v to the display an in one case I actually retrofitted their display to use +5v, which required...
10 replies | 133 view(s)
-
12-11-2019, 03:47 PM
Good luck... When it arrives and or if you have additional questions, it might help to put a link in to the exact one you ordered...
More details about some other experiences with these dsiplays up in the thread:...
10 replies | 133 view(s)
-
12-11-2019, 02:57 PM
The question is, do I extract the simple class I put into the sketch and make it a reasonable library class object. If so should probably clean up, probably remove direct access to variables, but instead have helper...
128 replies | 1465 view(s)
-
12-11-2019, 02:36 PM
It has been a long time since I played in this library.
But the first thing I would do is to turn on DEBUG stuff. Go into USBHost_tt36.h and uncomment the line:
//#define USBHOST_PRINT_DEBUG
I would plug in...
1 replies | 51 view(s)
-
12-11-2019, 02:11 PM
Or with a Teensy with more memory like T3.6/3.5 or T4, you can use the ILI9341_t3n library and turn on using frame buffer.
With this you can write the code pretty sloppy and for example each time you wish to update...
11 replies | 254 view(s)
-
12-11-2019, 02:01 PM
@manitou - Thanks for the links. I cloned your Teensy4 test project, as to make it easy to find...
I saw that you had a few of these sketches.. Will look some more.
What I am/was curious about, is suppose I...
128 replies | 1465 view(s)
-
12-11-2019, 01:47 PM
@mjs513 - Make sure you picked up the bug fix to enableDMA in adcl_t4.cpp
void ADCL::enableDMA(int8_t adc_num)
{
if (adc_num == 1)
adc1->enableDMA();
else
adc0->enableDMA();
}
128 replies | 1465 view(s)
-
12-11-2019, 01:21 PM
Hard to say with just the datasheet, as there are lots of configurations of that board, so a lot depends on what options/version did you buy?
Like: What type of Interface did you choose? And in this case what type...
10 replies | 133 view(s)
-
12-11-2019, 01:38 AM
@mjs513 - I just updated both sketches ;)
Now have some of the DMA stuff in a class as part of the sketch, where I then created two instances of it, Where I setup two dma operations, one on ADC1 and other on ADC2... ...
128 replies | 1465 view(s)
-
12-10-2019, 09:34 PM
Quick update:
I updated the above sketch not to use the DestinationCircular and interrupt on half way to instead be a setup of two different buffers, each pointed to by a dmaSetting object and then one dmaChannel...
128 replies | 1465 view(s)
-
12-10-2019, 07:56 PM
@mjs513...
Yep coming along.
I am doing a little playing with DMA. So far not updating any of the ADCL class. But here is the start of an example that is continuously doing DMA read operations, and I have it...
128 replies | 1465 view(s)
-
12-10-2019, 01:39 AM
@mjs513 - Hopefully next up figure out what we should do with the DMA cod with ADC..
Currently there is code in ADC library called class RingBufferDMA which I am sure started from his RingBuffer code, which you could...
128 replies | 1465 view(s)
-
12-10-2019, 01:17 AM
Ok I edited it like you mentioned...
You might want to take a look, to make sure I did not screw up something.
https://github.com/PaulStoffregen/cores/pull/406
30 replies | 1143 view(s)
-
12-10-2019, 12:25 AM
Will do.
I for sure would not delete the old defines. Have two choices, both ways are in imxrt.h.
That is could redefine all them as reflecting the new structure: like with I2C...
} IMXRT_LPI2C_t;...
30 replies | 1143 view(s)
-
12-09-2019, 11:55 PM
@Paul was wondering about possible additions to IMXRT.h. That I have run into as part of the ADC port to T4 Things like:
ADC structure definition:
Which I currently have in the ADCL_t4 library:...
30 replies | 1143 view(s)
-
12-09-2019, 10:47 PM
@PaulStoffregen... :D Sounds great.
There were a few other PR's out in special thread, like fixing some issues for Wire. @mjs513 has a nice version of the ST7735_t3 code base...
Wondering about things like ADC...
30 replies | 1143 view(s)
-
12-09-2019, 10:08 PM
Again others can answer better than I can...
I do very little Analog stuff, and rarely do I need to write stuff to SDCards...
Usually just enough to help other fix problems or testing out new Teensy boards...
...
10 replies | 151 view(s)
-
12-09-2019, 08:33 PM
@mjs513...
I hacked up my test program on T3.5 to generate the sine wave where I use one pot to change the amplitude...
Again not the cleanest setup, but:
#include <Audio.h>
#define POT_PIN 14
int last_pot_val...
128 replies | 1465 view(s)
-
12-09-2019, 02:08 PM
You can use the ADC library on T3.x (and LC), and use DMA operations to collect.
As how fast you can write out to SD Cards... There are several threads and other places on web to find information. For example look...
10 replies | 151 view(s)
-
12-09-2019, 12:44 AM
Assuming you are using the Teensy version of the Wire library.
Wire.h and Wire.cpp I believe are only used for AVR boards like Teensy 2.
WireKinetis.h/.cpp - Are used for Teeny 3.x and LC
WireIMXRT.h/.cpp - are...
8 replies | 129 view(s)
-
12-08-2019, 11:16 PM
@defragster - Will have to remember that later. Luckily not building too much with it here...
@mjs513 - Pushed up a few more changes/fixes - Playing with the continuous update example. Having issues with enable...
128 replies | 1465 view(s)
-
12-08-2019, 09:10 PM
I know there are probably easier ways and maybe I will play around some more with it, but as for test sketch, can always use Audio library. Example one I just setup to run on T3.5 (or 6)...
#include <Audio.h>
//...
128 replies | 1465 view(s)
-
12-08-2019, 05:49 PM
In this case they are uint8_t...
As if you look at the start of the T3.2 manual 47.3 it says: Only byte accesses are supported.
3 replies | 46 view(s)
-
12-08-2019, 03:59 PM
Simple question is why not just uses the values in kinetis.h ...
But Lets look at S1...
#define UART2_S1 (KINETISK_UART2.S1) // UART Status Register 1
It is based off of the address of UART2:
#define...
3 replies | 46 view(s)
-
12-08-2019, 03:43 PM
@mjs513 - fixed (I hope) the problems I mentioned in the last message, like adc->analogRead(pin);
Will now check to see if valid pin on any ADC if so it will use the first valid one (i.e. if in my table does not have...
128 replies | 1465 view(s)
-
12-08-2019, 02:31 PM
@mjs513 - Hopefully I did not screw up everything, but I merged in the DMA branch...
Still not totally functional yet, but it also has a lot changes for housecleaning.
That is I moved most of the functionality out...
128 replies | 1465 view(s)
-
12-08-2019, 01:51 PM
@mjs513 - I will merge in some of my stuff soon, to master. It has some of the stuff for adc->adc0 (or 1) but so far I have not added in all of the error stuff.
Made some progress on the DMA stuff, The DMA ISR...
128 replies | 1465 view(s)
-
12-07-2019, 11:35 PM
@mjs513 - Hope you are doing well.
As for new branch/master/DMA.. hard to say, I started new branch as there are at least the two of us, and did not want to break everything yet.
I am trying to decide for...
128 replies | 1465 view(s)
-
12-07-2019, 07:28 PM
@mjs513 - I see that you added some stuff...
Note: I just pushed up a new branch DMA_SUPPORT -
Where I am trying get some of the examples to be able to build and then hopefully work like the ringBufferDMA test...
128 replies | 1465 view(s)
-
12-07-2019, 03:01 PM
@mjs513 - Still totally distracted :D Hopefully later today I will maybe have the opportunity to concentrate a little.
I probably should start off hacking something up, but I find myself wanting to generalize...
128 replies | 1465 view(s)
-
12-07-2019, 02:00 PM
From what I have seen, I think the USB Serial is working well, and it makes sense to start including some of the non-serial USB types.
48 replies | 1572 view(s)
-
12-07-2019, 12:50 AM
Again hard to say what all you need or don't need. Or what your plans are.
I personally just use the Arduino setup, which is fine for the things I wish to do.
Understanding the board. I assume you found the...
12 replies | 217 view(s)
-
12-07-2019, 12:39 AM
@mjs513 - Not a problem, I have been distracted with other stuff today... Did not get much more done yet. Right now busy with three dog circus
128 replies | 1465 view(s)
-
12-06-2019, 07:13 PM
@mjs513 - will take a look..
Here is a sublimetext mucked with table for XBar1...
Wonder this would be valid/reasonable addition for imxrt.h? And if so do I need to do XBAR2...
// XBAR1 Inputs and Outputs...
128 replies | 1465 view(s)
-
12-06-2019, 06:36 PM
@mjs513, @PaulStoffregen @manitou, ...
Thought I would see how hard it is to do ADC using DMA at some specific sampling rate, Example for trying to guess if an power is running to a well pump, so with T3.6 I setup...
128 replies | 1465 view(s)
-
12-06-2019, 04:46 PM
Hi @mjs513 - Yep more coffee (Feel free to PR it)! You probably know more about all of this than I do!
@jonr - DMA does not look too hard to add here... Again @manitou has example app, which I will try out soon
128 replies | 1465 view(s)
-
12-06-2019, 02:40 PM
@mjs513 @manitou... Yep I did clone that project down to my disk as well and I am curious about how one sets up to do DMA from the ADC at a specific input rate.
That is with my always never completed well monitor...
128 replies | 1465 view(s)
-
12-06-2019, 02:16 PM
@mjs513 - Me too, but when I did not find it in RM, decided to look.
Just pushed up a quick and dirty ReadMe.md file which is a copy of pedvide's Readme with a warning at top that this is a WIP and who knows what...
128 replies | 1465 view(s)
-
12-06-2019, 02:00 PM
Others can maybe give you more exact answers to this...
But void* just means it is a pointer to something... So often times with functions like this, I will then cast it to something like uint8_t* to process.
...
3 replies | 104 view(s)
-
12-06-2019, 01:43 PM
I believe from the IMXRT1060CEC.. pdf Page 62 (at least in the one I have)
ADC Asynchronous
Clock Source
So 10 or 20 mhz
128 replies | 1465 view(s)
-
12-05-2019, 10:38 PM
@mjs513...
I have been playing around with a semi stripped down version of ADC, which for now I put up on github... I am not sure if it will stay or not...
But if you want a laugh...
...
128 replies | 1465 view(s)
-
12-05-2019, 03:02 PM
Worked on my machine...
67 replies | 2997 view(s)
-
12-05-2019, 01:59 PM
@someteen (@PaulSoffregen) -
As has been mentioned several times before, I have absolutely no idea how they or who might try to encode the 9 logical bits of data if it is begin sent back and forth over USB...
...
36 replies | 402 view(s)
-
12-05-2019, 01:26 PM
I believe the AVRC5S is simply another level of protection. For EMI and ESD... I have not used them yet on my own boards... http://www.1688eric.com/upload/pdf/2012-9-11/AVRC5S05Q050100R.pdf
My guess if the circuit...
17 replies | 540 view(s)
-
12-04-2019, 08:42 PM
Hi and welcome @Fikri - Might help to know which Teensy... For now I will assume T3.x, TLC, or T4... (ie. not T2), and also which servos. i.e. some libraries only support Protocol 1, so if your servos use protocol...
17 replies | 540 view(s)
-
12-04-2019, 06:05 PM
I just updated my Early 2013(or 14) MacBook Pro to Catalina.
Then downloaded your package. I tried running, and it did not want to run... So Ctrl+click and run and then it appeared to work fine after. I...
67 replies | 2997 view(s)
-
12-04-2019, 03:56 PM
@mjs513 - Thanks, I thought I remembered seeing something during beta..
Wondering with our hacking if we should repackage the test stuff to be more like: ADC Light?
That is to convert the stuff into an object...
128 replies | 1465 view(s)
-
12-04-2019, 02:22 PM
@mjs513 Good Morning,
Good question? Especially if the goal might be to get this functionality into core?
Or should we aim to be semi-aligned with the ADC library? The only place that I have played much with...
128 replies | 1465 view(s)
-
12-04-2019, 02:03 PM
Quick update: Did you look at the FAQ page for the device? https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/faqs
10 replies | 79 view(s)
-
12-04-2019, 01:38 PM
Since it does the same thing on an Arduino Uno, if you have not already done so, you might try asking about this up on the Adafruit forum...
You might also mention things like, what version of Arduino you are using...
10 replies | 79 view(s)
-
12-04-2019, 06:00 AM
You might look at the thread https://forum.pjrc.com/threads/57280-RA8875-from-Buydisplay?p=215792&viewfull=1#post215792
10 replies | 272 view(s)
-
12-03-2019, 08:40 PM
Have you looked at the keypad library?
Not sure which is best example, but examples->keypad->EventKeypad is one...
WHich takes care of rows and columns...
More information up on google searches, like:...
7 replies | 150 view(s)
-
12-03-2019, 07:33 PM
Not sure what you have tried or looked at?
Have you looked at the PJRC pages like:
https://www.pjrc.com/teensy/td_joystick.html
as part of this, have you looked at the example sketches like:...
7 replies | 150 view(s)
-
12-03-2019, 07:17 PM
@mjs513 - Yep I just copied the 8 bit setup to a special 8 bit setup..
As I noticed that already the 8 bit mode did not turn on the ADLSMP bit, like 10 and 12 do...
void T4AnalogReadRes(unsigned int bits, uint8_t...
128 replies | 1465 view(s)
-
12-03-2019, 05:44 PM
@jonr - we have a T4 that is small and inexpensive. But Paul asked what pins we might want in a T3.6 form factor as per post #1
Edit: I meant to mention, that I am not in full disagreement, just that thread is...
38 replies | 1457 view(s)
-
12-03-2019, 05:28 PM
@mjs513 I hacked up my version of code to add in a mode to set the resolution to 0x88 and if so it is 8 fast...
Quick and dirty T4 Analog Read stuff
8:2(000007a3 00000000)> 3 127 6 : 10 127 7 : 1 126 3 : 1 127 4...
128 replies | 1465 view(s)
-
12-03-2019, 05:20 PM
@mjs513 - Quick update: If you look at my previous post, with the updated test sketch that sets both the resolution and averaging.
And you look at the output line: 8:2(000007a3 00000000)> 0 127 7 : 10 127 6 : 1 127...
128 replies | 1465 view(s)
-
12-03-2019, 04:28 PM
@mjs513 - Will probably leave init and the wait for calibrating alone (if it aint broken... )
In Your previous post, this line just feels wrong:
mode = ADC_CFG_MODE(1) | ADC_CFG_ADSTS(0) | ~ADC_CFG_ADLSMP |...
128 replies | 1465 view(s)
-
12-03-2019, 04:22 PM
@Paul - any updates?
Some things I am very curious about, is how compatible will the T4.? be with the T3.6 layout?
Example can I drop in one of these instead of a T4 and use the USB host pins? That is will the...
38 replies | 1457 view(s)
-
12-03-2019, 03:45 PM
My guess is that it by default in high powered mode, as I don't see anywhere in the code base that sets: DAC_C0_LPEN
You did not give any reference on how you are using it? Are you using external library....
But...
1 replies | 44 view(s)
-
12-03-2019, 03:18 PM
@meo - Maybe on buffer1 but for sure in your original program, the global variable i. That is your code has(d):
void setFlagandReadBuf() {
i = 0; //to be repeated that we measured for...
17 replies | 198 view(s)
-
12-03-2019, 03:03 PM
@mjs513 - I think it, is either a hold over from T3.x analog code or, we ran into some issue, added code to init and...
That is I think we can either get rid of the line: if (calibrating) wait_for_cal();
AND the...
128 replies | 1465 view(s)
-
12-03-2019, 02:04 PM
@mjs513 - Yep, my problem is, when is calibrating ever not 0?
The only places I see it ever set, is in the init function:
...
//ADC1
ADC1_CFG = mode | ADC_HC_AIEN | ADC_CFG_ADHSC;
ADC1_GC = avg |...
128 replies | 1465 view(s)
-
12-03-2019, 01:39 PM
@mjs513, @PaulStoffregen - I updated my changes that I pushed to include the above.
Good catch on the init function looking at the wrong one.
I did update the wait_for_cal, sort of like you mentioned, except, I...
128 replies | 1465 view(s)