It is a digital equivalent of a "potentiometer". The encoder library will tell you which direction and how many pulses (think clicks) it was turned. You get to do the rest. By the way, if you want impressive looking,...
I posted a new version of SdFat-beta with the drive strength mod. It also has two examples that demonstrate new features in the Teensy SDIO driver.
Try the TeensyDmaAdcLogger and TeensySdioLogger examples.
I posted SdFat-beta with the new Teensy SDIO driver and two examples that demonstrate fast data logging using the new driver.
Try the TeensyDmaAdcLogger and TeensySdioLogger examples.
Thank you, so I assume that this will do what I want, which is to be able to dial up a comm or nav frequency?
Not sure what the difference is between this and what would have electronics?
Were you able to also...
Great stuff! It works with my file 8120 lines x 16 bytes = 129920 bytes code size flashed with no problem.
Code seems to work as expected, will test and report.
Joe thanks for making this work. now we have a way to do...
Yet another update... doing more testing. This morning I found (and fixed) a timing issue with initializing the flash chip's non-volatile status2 register. This is another place where the Teensy test fixture...
just changed the 10k to 110R and now its working, gonna change my new boards to 5v but for now 3.3 works
regarding software controlled trs control, it would be awesome, i read in the stackechange post something about...
I have not updated UsbFat for six years. I have been meaning to add an example of USB storage to the current SdFat. This example shows how to use any block device with SdFat.
The driver uses a USB shield library...
Earlier posts on light-sensing with LED,
https://forum.pjrc.com/threads/40001-LED-as-a-light-sensor
https://forum.pjrc.com/threads/28407-Teensyduino-access-to-counting-cpu-cycles?p=116332&viewfull=1#post116332 LED RNG
Update
Ha! It happened with the WS2812Serial-only (no FastLED) version too.
That restricts the search quite a lot and probably exonerates FastLED.
Luca
Hi everyone,
I've developed a library for Teensy 4 + Audio Adapter board, based on FastLED + WS2812Serial and built a physical project on it.
Code, photos and detailed documentation is here:...
JayShoe, thanks! I just picked a free gpio near where I could route my greenwire to. For ease of routing I will use a pin on the other side of the I2C pins when I revise the board. I think the TLV320AIC3206 uses 21,...
Here is the calculator code if anyone is interested.
It can be imported by Import-JSON
(don't forget to uncheck the Replace Flow checkbox if you just want to import it into a existing design)
...
Looks like you may be wrong on this one ?
Tried that and all I get is "C:\Users\peter\.platformio\packages\framework-arduinoteensy\libraries\XPT2046_Touchscreen/XPT2046_Touchscreen.h:46:7: note: candidate expects 0...
Pretty sure the TLV320AIC3206 driver (and board) uses pin 22 for reset. I noticed that on your schematic when you posted earlier. I meant to check to see if the reset pin was required, so I could warn you, and I...
Any use of pinMode will do this. It completely reconfigures the pin, overwriting the previously set interrupt config.
Maybe pinMode should check for this case? I'm also considering adding a pinModeFast function,...
Snippets are usually a distraction - better to have the whole code posted if it can't be cut down to a smaller sketch that effectively shows the problem - that's why this :: Forum Rule: Always post complete source code...
Hi Paul,
Thanks a lot for the answer!
the code didn't compile because it is a snippet from a very long code... i didn't want to clutter the post.
I did found out what the problem was. I would be happy to...
Yes, my Siglent 1202X-E has issues in that area. That's what I emailed them about.
I'm expecting that when I keep the signal within screen limits, I'm not overdriving it. But the pictures below tell a different...
Hey Everyone,
Brand new Teensy user here, just getting to read over the examples. Looking to build a basic USB switch box with switches, and rotary encoders. A few questions:
I see the Teensy 4.1 board is 3.3v...
Flasher3c.zip is attached. This update accepts the as-built Teensy hex files and so avoids the need to pre-process to get 64-bit aligned hex records for T35/T36. The differences from Flasher3b are (a) flash and LMEM...
I've added a webserver to the code to make it easier to get data from the NTP server. /state.json from the teensy returns the following structure:
{
"ppsToGPS": 396, // milliseconds between PPS timestamp and...
Hi support,
How are you?
I am trying to identify a board that I can use for MDIO testing with external PHY.
Can anybody guide me if such board is available with 1.8V MDIO clause 22 and 45 driver support?
...
I made some more progress, thanks to the contributors who have already written Audio library code for the TLV320AIC3206. Many of the register names and sequences appear to be the same or have similarities with the...
I believe the that library supports changing which SPI on the begin method...
That is if you do something like:
XPT2046_Touchscreen ts(CS_PIN, TIRQ_PIN); // Param 2 - Touch IRQ Pin - interrupt enabled polling
......
Latest update includes:
* Settings tab categories can have individual colors
(hardcoded but easy to manipulate in code)
* Project Tree View is now functional (except it don't update when adding/moving a...
I copied your code into Arduino, but it doesn't compile. Stuff is missing. See below....
Since you already have the hardware wired up, try opening File > Examples > Encoder > Basic and just change the pin...
I would actually say that pretty much ALL current high quality sigma-delta audio DACs have oversampling built-in with multistage decimator and FIR filters that have quality way above what is offered by library and zero...
I want to use MQS and a ILI9341 Display so with the help of MichaelMeissner and KurtE I've managed to move to the SPI1 bus for the display , but found that my touch driver now doesn't work , which I think is still using...
Hello!
I'm working on a python script that generates header files that can be used
with the AudioSynthWaveformModulated / AudioSynthWaveform objects in the Teensy audio library.
The header files contains a 2-d...
PaulS, no that wouldn't work as I need to know the amount of signal coming back. That is essential and important data. It would not be either on or off.
I have a 20 Mega samples per second A/D Maxim 1425 but there are...
My digital meter is at home, however, with the analog one at the office, both the DC jack, and the 5v VIN so ~5v (wire from DC to Teensy disconnected)
EDIT: The ground plugged into the Hot row was moved back...
Not indicated how many RGB LED's are in use? A photo showing the connections might help.
Quick guess based on something observed here : that GND wire may be feeding large return current through Teensy to host USB...
For Teensy 3.1, 3.2, 3.5, and 3.6, there are a few others, but the pins overlap, so if you choose one pin in the pair for DC/CS, you can't use the other pin for the SPI pins:
Paul made this post that describe...
Hello everyone,
I'm having an issue with the Teensy LC.
I've connected an I2C accelerometer (MPU6050) and using teensy as a midi controller.
For debugging, I just compile in standard mode (usb serial) and it works...
Hello!
I am designing a new pcb and i really would like to use alternative pins for PINS CS & DC besides 9,10,15,21,22.
So, is there any way i could do that?
And, just for my information, why is this...
So the default pins for SPI1 to pass is pins 0/1/26/27 ?
are CS and DC any digital pin and my problem pin is just MISO pin 12 ?.
So need to use pin 1 , 26 , 27 and the CS pin is any ?
#define CS_PIN 8 // touch...
Hello Mark! Thank you for your reply! The problem was actually solved by initializing the wave1Values array at the beginning of the linearInterpolation function. If I understood you right, thats what you meant too.. :) ...
Hello Friends,
I'd like to introduce my Pro Audio Series ADC and DAC modules for the Teensy 4 and Teensy 4.1. These modules were designed to provide high quality audio within the Teensy ecosystem. They offer single...
Yes, the T4 and T4.1 actually have a few SPI buses.
They are shown on the released card as well as my excel document and photo made from it:
SPI1 has a few alternate pins for some of the features (on T4.1)...
I am a medium skilled arduino programmer who is migrating to teensy. I am working on a big art project and trying to create a MIDI instrument that uses a set of solenoids (will hopefully be between 50-100 at the end) to...
Thank you , So the ones mark with a 1 on the card are not alternates which can be used with the normal SPI library , but a second independent SPI bus SPI1 ?
I will look for the ILI9341_t3n library and see if I can use...
I was able to get it working. Flasher3b has no problem with 130k code size. uploaded and works.
Thanks for all the help!
Still some more to do, make code with the flasher and test.
I set the drive strength to 7 and looked at the SD CLK signal with a SD sniffer board. It is really being driven. The noise I made with scope probes only caused a data error once.
I suspect the error occurred when...
Hi,
I'm using 4 rotary encoders in my project on teensy 3.5, and i managed to get the first 2 encoders work great with interrupts. they are connected on pins 51,52,53,54.
I copied and pasted the same code to the...
Hi Deane, just thinking out loud here. How does the analog signal that you want to sample, look like? I assume it's pulse-like because that is what the laser sends out. In that case, could you use a high-speed...
Good luck, if you get a working example posting it may help others and show how to use this feature.
Had hope that AN would show the 'enable' KurtE mentions, even if for wrong processor - if it does it is not as...
10MSPS ADC needs a separate (presumably parallel) ADC chip and you need a datapath for it too, this is high speed acquisition.
FPGA's are often used once you get to these kinds of speeds as the hardware needed can be...
All pn junctions are photodiodes and LEDs, if the material is transparent at the relevant wavelength, since photons generate
electron-hole pairs and recombination can emit a photon (although the probability for this...
It looks like ILI9341_t3 does not have support for the second SPI bus in Teensy 4.0/4.1. Some display drivers have a method to access the second SPI bus, some do not.
Note, there are 2 concepts. The first is...
I think you'll need to do some low-pass filtering then. Try an RCRC to start with, that might have enough roll-off and
is very simple. For differential RC filter you have two resistors and one capacitor per stage,...
The logic doesn't look good in linearInterpolation... First you are not dealing with any edge cases, such as when X_old == pTS.x.
Second you are overwriting wave1Values the first time round the loop - you should only...
Can you measure the voltage there? (Without your wire connected)
Take a look at the Teensy schematic. Vin (on the board it's called "5V") is directly connected to USB. So you connect the PSU with your Dell, if you use...
The default volume is 0.3 and 4 x 0.3 > 1.0 so your mixer output is clipping I think. Try 0.25.
Ah, but I think your oscillators are at 0.3 already so that won't be it....
Ah, looked again, you are setting the...
Thank you Pauls
The AD is 1MSPS.
That was known back in january.
I've seen to late that you'd need 10MSPS.That is too much, I don't believe that you can overclock it that much.
As seen it stated in a lot of threads that the MQS uses pin 10 and pin 12 , which is used by the default SPI.
I've tried moving to the alternative SPI pins 26,27,38,39 , with the define the lot. ILI9341_t3 tft =...
Attachment is fixed. I can see your scope screen.
Here is what I see with the code of msg #8 and measured on pin 15 :
The long pulse measures 97.2 ns.
Paul
I was thinking the A/D could do it because the processor is 600 MHz and as of last January no one seemed to know the speed of the A/D.
Maybe more info has come out since then. The manual for the ARM chip is over 1000...
Another quick update - all the new code is in. On a virgin board, the fuses IMXRT fuses are set the first time the MKL02 talks to it. The initialization delivers a unique ethernet mac address as well. The flash chip...
remove EXT from setMBFilter (that function doesn't use that), remove events() from loop, and you enabled FIFO last in setup, which makes your filters not effective, also MB7 is a TX mailbox, so that function never runs...
@Pauls: Thank you - fixed, I hope?
@Deane: If you want the whole procedure exactly as shown in your picture, it gets a little more complicated.. I don't see that you can program that.. This is not meant in a derogatory...
Ok, the 2nd puls (code from Post #8) might be little too fast-.. maybe try it.
If it does not work, we'll see how to make it a little bit longer.
Edit: There is a gap between both pulses. Seeing Post#12, that gap...
Thanks for informing me about the tricks in getting max speed from the Teensy 4.
I would be happy to explain the goals. I am trying to build a specialized LIDAR system with a range up to 1km.
So the timing would look...
Is there a way to configure the Aurdino IDE to look for the teensy library source in a different place? I want to hack on usb_desc.h, usb_desc.c, and usb_dev.c and I'd like to put my changes under version control. I'd...
Thanks Luni and Jonr, I like the differential idea ADC but couldn't get the T3.6 to run at nearly the speed I needed, hence the move to the T4 and T4.1, only issue is that these are sans diff ADC :(
I did not really think, that you would jump onto this idea using "weird" Forth here. :-)
(( I have discovered, that if I use a simple way of local variables in Forth and if I use normal structured source text files...