-
Older Activity
-
Today, 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.
318 replies | 19038 view(s)
-
Today, 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...
101 replies | 1144 view(s)
-
Yesterday, 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...
101 replies | 1144 view(s)
-
Yesterday, 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...
101 replies | 1144 view(s)
-
Yesterday, 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 | 56 view(s)
-
12-11-2019, 06:41 PM
You might try: tft.fillTriangle...
10 replies | 210 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 | 102 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 | 102 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...
101 replies | 1144 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 | 44 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...
10 replies | 210 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...
101 replies | 1144 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();
}
101 replies | 1144 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 | 102 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... ...
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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 | 1031 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 | 1031 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 | 1031 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 | 1031 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 | 141 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...
101 replies | 1144 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 | 141 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 | 117 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...
101 replies | 1144 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>
//...
101 replies | 1144 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 | 40 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 | 40 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...
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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 | 1468 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 | 207 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
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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
101 replies | 1144 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...
101 replies | 1144 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...
101 replies | 1144 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 | 101 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
101 replies | 1144 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...
...
101 replies | 1144 view(s)
-
12-05-2019, 03:02 PM
Worked on my machine...
63 replies | 2796 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 | 378 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...
15 replies | 495 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...
15 replies | 495 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...
63 replies | 2796 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...
101 replies | 1144 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...
101 replies | 1144 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 | 77 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 | 77 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 | 255 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 | 140 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 | 140 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...
101 replies | 1144 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 | 1406 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...
101 replies | 1144 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...
101 replies | 1144 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 |...
101 replies | 1144 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 | 1406 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 | 41 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 | 193 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...
101 replies | 1144 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 |...
101 replies | 1144 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...
101 replies | 1144 view(s)
-
12-03-2019, 05:01 AM
Yes it is a bug in the analogReadAveraging
1(000006b7 00000000)> 7 507 10 : 19 507 10 : 1 507 5 : 2 507 5
2(000006b7 00000000)> 1 507 10 : 19 507 10 : 1 514 5 : 1 507 5
4(000006b7 00000020)> 8 515 36 : 12 515 36 :...
101 replies | 1144 view(s)
-
12-03-2019, 03:17 AM
Yep does sort of look like maybe a bug? Will take a look later
101 replies | 1144 view(s)
-
12-02-2019, 11:27 PM
@mjs513 I went ahead and hacked in the function I mentioned...
Also put in loop calls to set the averaging... Although I just used the default one so far..
usbHost - Something new and shiny to play with?
101 replies | 1144 view(s)
-
12-02-2019, 09:45 PM
My quick look through the functions, analogResolution and analogReadAveraging, I thought they were both already handling both ADC1 and ADC2
Example analogReadRes:
void analogReadRes(unsigned int bits)
{
uint32_t...
101 replies | 1144 view(s)
-
12-02-2019, 06:01 PM
@tasha @mjs513 - I hacked up a version of AnalogRead that allowed me to choose a channel 1 or 2 to do conversion.
Also did a version where I broke it into two parts. First starts conversion, second checks or waits...
101 replies | 1144 view(s)
-
12-02-2019, 03:44 PM
Works for me...
I modified your code slightly as to remove the overhead of calling main:
#define MCLK 9
byte pulse = 0;
void setup() {
pinMode(MCLK, OUTPUT);
}
7 replies | 119 view(s)
-
12-02-2019, 02:47 PM
Still playing with it...
With my own board, which I hopefully fixed some of the issues I was having running the Servos. Like wrong resistors, maybe cold solder...
And what may be a bad AX servo, I plugged in an...
15 replies | 495 view(s)
-
12-02-2019, 02:33 PM
@tsaha - As I have mentioned I do most things in digital, so others maybe can help more.
It would be great if the library ADC was ported over to the T4. But it looks like the owner (pedvide) of it, has not been up...
101 replies | 1144 view(s)
-
12-02-2019, 02:05 PM
@wwatson - Wondering how much different is this than the RA8875 boards? i.e. wondering if it makes sense to add support for this board into the RA8875 library code that we forked from Sumotoy?
As you mentioned...
10 replies | 255 view(s)
-
12-02-2019, 01:57 PM
@Paul - great to see the USB stuff being updated! Trying to decide if there are enough people beating up on this and wait...
For now I may simple install fresh copy of Arduino 1.8.10 into new directory and do an...
30 replies | 1031 view(s)
-
12-01-2019, 11:14 PM
Thanks @KG5NII - understand.
Compatibility is an interesting thing.
Yes - we did play around with the buttons, as to make them to be compatible with the more current Adafruit GFX code, which originally the...
8 replies | 154 view(s)
-
12-01-2019, 08:49 PM
Quick update, I am running your sketch, and I am seeing CR and LF...
That is: Some output:
this loop(): 11 µs
dmaRXisr: dest=0x20000D3C
prev loop(): 67391 µs...
18 replies | 397 view(s)
-
12-01-2019, 08:39 PM
I will try to take a quick look.
I did pull out an Adafruit Ultimate GPS unit out of my displays and sensors box...
I wired it up to T4 to Serial2. Did a quick and dirty sketch:
void setup()
{
while(!Serial...
18 replies | 397 view(s)
-
12-01-2019, 06:10 PM
I know there have been a few different conversations about this in different threads, but as I testing out some stuff on T4 again, and ran into the issues, I thought I would mention it again, and see how much if any...
0 replies | 73 view(s)
-
12-01-2019, 04:33 PM
Good luck.
When you mention switching to different library and causing more trouble than it is worth... Would be interesting to know what the issue may be.
That is in theory the code base should be compatible...
8 replies | 154 view(s)
-
12-01-2019, 02:52 PM
Works for me...
However make you are editing the version of the library being used...
That is when I edited it, I changed it in my <documents>/Arduino/libraries/wire directory as I have a private version (github...
9 replies | 690 view(s)
-
12-01-2019, 12:59 AM
Quick update: I thought I would try some of it out with the recent T4 board I assembled...
Found out I screwed up on the board and when I did a copy and paste of a couple of resistors, I forget to edit the values so...
15 replies | 495 view(s)
-
11-30-2019, 03:31 PM
As I mentioned ILI9341_t3 does not support Opaque text drawing when you set a font, such as: tft.setFont(Arial_24_Bold);
However as I mentioned: ili9341_t3n does...
https://github.com/KurtE/ILI9341_t3n
Which...
8 replies | 154 view(s)
-
11-30-2019, 02:30 PM
@PaulStoffregen - That will be great!
@Gadget999 - In the mean time, you might be able to play around to see if you can avoid the issue...
And again I don't know if it would work for you or not. At different...
48 replies | 1468 view(s)