@jonr
Yes indeed, those points are connected through pin6.
Now if I move that ground plane via 1mil(0.0254mm) up, it then passes DRC.
I suspect there might be some difference between Kicad versions, or different...
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...
So I'm trying to set up your code wcalvert and at first I noticed that the pot was only selecting between two waveforms, and it looked like you had it mapped that way so I changed the mapping to reflect 0 -3 and then...
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:...
Thanks for quick respons KurtE.
Of course I was a fool not to ask here before I ordered it but it is what it is...
Next time I would definatly follow your advice about the spec.
It looked like it could be...
I See it connected the same way as jonr with no errors in the DRC, plus can verify continuity on a PCB here. I'll add more GND vias, move the traces around the crystal, add decoupling to the MKL04 and then re-upload the...
You'll probably need to modify the source, since tx_state is declared static.
But regardless of how you go about things, hopefully this info about how the USB device code works will help.
Hi All,
Having an absolute blast using the audio designer. It's fantastic!
I'm working on a project that uses a bank of bandpass filters and I'm trying to figure out a good way to allow them to self-oscillate.
I'm...
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...
In my Kicad, those points are connected (through the pin 6 area) and it passes DRC. But you could check the gerbers to verify. Do add more ground vias - think small loops and short, low impedance connections, not...
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...
Yes, I'm using a function from usb_dev.c. But I have been trying not to modify anything. I just include the usb_dev.h and usb_desc.h.
The only thing I modified so far was the descriptor and major change there was to...
Thank you for this - it’s exactly my plan: draw the frame in the setup and update the needle position in the loop.
But, my maths has not been put to practice in many years and thats actually where I am stuck.
Ill...
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...
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...
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. ...
@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...
Look at the _VectorsFlash array in mk20dx128.c.
https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c#L268
Also, if you *really* want to learn how the processor works, consider getting Joseph...
@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();
}
Hi, I've just started to get into ARM programming. Up until now I've only used Arduino and some other tool chains / APIs that didn't require me to think too hard about what is going on under the hood.
My...
The main choke point in pretty pictures would be the display rather than the teensy because of the time taken to send one screen worth of pixels is fixed by the display interface. If you can live with the needle not...
@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 :)
Hope you'll confirm whether or not soldering a wire between those 2 points makes your board work. That sort of feedback can really help everyone else in the future when they're struggling to diagnose a custom board.
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...
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...
There is a "show/hide board ratsnest" button in the left toolbar.
The bottom left statusbar clearly shows "unrouted 1".
Performing a Design Rule Check will also reveal unconnected items.
From T4 beta testing, i had a proof-of-concept sketch for ADC with double-buffered DMA. I only count ticks in the half/complete ISR.
https://github.com/manitou48/teensy4/blob/master/adcdma.ino
and I could get ADC and...
@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...
Looks like you're calling the not-public API functions within usb_dev.c. That's fine... the code is open source and meant to be used. But since these aren't the normal public API, their precise functionality isn't...
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...
Wow, looks like a really interesting project. Hope you'll share some more info as it develops?
I'm really curious to hear if you see much of a difference in timing & latency with Teensy 4.0's USB MIDI, which is 480...
The pin13-PTC5 is intentionally not bought out, this board is purely to test a custom build. Strangely on my KiCAD it doesn't show a disconnect on the GND plane at that point.
Hello,
I posted about a year ago about an issue with my mice being stuck at 500 Hz using USBHost_t36. Back then I though it could be a hardware problem.
I unfortunatly reproduce the same issue on a teensy 4.0.
I...
Hi,
this question is about the achievable delay of a Teensy device.
From my measurements it seems that the minimum lag I can achieve is 1-2x the polling interval.
I am trying to reduce this to about 0-1x polling...
I modified an example of code to determine the approximate speed of Teensy 4's analogRead() at 600Mhz; then, I tested different clock speeds ranging from from 24Mhz to 816Mhz to see if changing frequency led to slower...
Hi
Due to my little knowledge about electronics I would really appreciate some guidance on how to connect the screen in the below link to my Teensy 3.6.
...
Theremin GUI on previous (abandoned project) version of teensy theremin - on Teensy 3.6
Teensy 3.6 performance is too low. E.g. 60MHz F_BUS gives too low precision for reference frequency.
Phase shift was...
It is not recomendet to use the internal diodes because the current in this diodes will disturbe the multiplexer so that OTHER INPUTS will produse false results! We use 6002 opamp with 3v3 supply.
Hi,
I've been working on an Ethernet transport layer for the Audio library which is now ready for beta testing.
https://github.com/palmerr23/EtherAudio - this repo only contains the added/changed files, not a full...
Yeah, the sample data is stored at the end of the file which takes bulk of the file, so you just cut some of that data out but memory past your buffer is still referred from the sample metadata. Lucky for you Teensy...
Yeah I was afraid of this.
I am actually loading a big music data file in 512k buffer now, plays beautiful if the file is not too large for the destination array buffer.
Funny part is it will play even if buffer is...
You could load the music data from SD card and store it in flash, but it must exists in the memory all at once. Unlike mp3 which can be streamed, the PMF data is randomly accessed based on the played music data. For...
One more noob question: are you loading the music data from the SD card?
The reason I'm asking is because I'm not sure if I can split the song data file and play it from let's say 126kb array buffer. :confused:
Well...
The format is actually documented in doc/file_format_pmf.xlsx file. The signature is "pmfx" .. don't remember why I added "x" there but the signature must be 4 bytes to make the rest of the file data properly aligned,...
@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... ...
Hi Jarkko.
If it's not too much to ask can you explain the first few bytes of the data structure created with PMF converter.
I'm not sure about the data marked in the red:
0x70 0x6d 0x66 0x78 - ASCII (p f m x<--? )...
No, it only supports stereo. You can use stereo input and stereo output simultaneously, but only 1 instance of each.
Yes, it is theoretically possible, if your programming skill and knowledge of USB is good.
You could do this with Teensy 3.2 by storing the background image in flash and updating the needle with triangle rasterization on top of it. Since you don't need to actually update other than previous and current frame...
drum pads work by using a piezo trigger which is essentially a piezo element with a 1 M resistor running across it. if you use a pre-made pad or roll your own, you will need to hook one branch of the circuit to any...
Opps, I messed up the MacOS Catalina build. Fixed it just now and uploaded a fresh file.
The new Teensyduino_MacOS_Catalina.zip has shasum e72ba892097e5f849f71706d8b14d2abaea14926.
The original...
Hi,
An idea has just crossed my mind.
Can I use multiple AudioInputUSB/AudioOutputUSB objects at the same time?
For example, if I will try to use four AudioInputUSB objects and three AudioOutputUSB objects (in an...
@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...
I just got the kit from Loglow/talldog. Thanks.
I suspect I may need to wait until the detailed instructions are done.
I was playing around with the PCB, and I dropped the coin cell battery holder. It took me...
I was slightly confused when the teensy didn't show up as a usb serial device and the Serial.print() still worked.
It all makes sense now. Thanks for the clarification.
I think OP has all that sorted and wants to know how to animate the needle and draw a background image to the display... (I can't help with this)
I did find this...
The culprit?
Lower the clearance value in the Copper Zone Properties.
Nothing that can't be fixed with a piece of wire and some solder fumes.
Don't know if it is intentional or not but pin13-PTC5(led) is not...
Thank you defragster. Didn't think of inserting the hyphen when searching for nonBlocking. PEBKAC error!
While I was in there, scrolled down the page and found the solution to the basis of another series of dirty...
That is by design, but it’s not Serial being that it won’t work with normal serial monitors since it’s a special HID serial emulation designed for the Teensy monitor. All previous Teensy devices have had the same...
I am assuming the gauges work using a voltage from a sensor
you need to output the voltage from your T3.2 to drive them
https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/
you need...
Thanks for the suggestions. Here's a link to the library used for the MK66, I went through the data sheet to check the pins against this and couldn't see any mistakes. I think I'll make a revision to the pcb to move the...
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...
Thanks wcalvert and neurofun! I think I get it now. And yes wcalvert myI'm using knob1(a16) for the first 16 waveforms and knob2(a17) for the last 16. Thanks again man, you are a lifesaver! I don't know why I...
All of the waveform definition and selection stuff needs to be moved out of the NoteOn function. The idea is you want to read your pots inside loop(), and if the selected waveform has changed, apply the change to the...
After installing MacOS-X 10.8 to 10.14 over the MacOS Catalina 10.15 app I can confirm the same bug with "Serial + MIDI", but after compiling with normal "MIDI" it seems to work as expected while doing a simple loopback...
MacOS 10.13.6
USB Type: "MIDI"
Works in both directions, IN/OUT.
USB Type: "Serial + MIDI"
Does not compile./Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4/usb_desc.c:683:13: error:...
I downloaded the beta, installed it on Catalina. Works like a charm (and solves a problem I had with Serial.available() ). I have a Mac with the touch bar, although I am not using it much with Arduino. Everything I...
Hey everyone. Here is the new version of my synth code. I am having some problems figuring out how to pass current potentiometer values to the onNoteOn() function. My solution to change the waveform types was to put the...
Well the Arduino window says beta 1, but launches beta 2.
Don't see anything but serial for T4 USB Type.
Installed no other problems on Catalina. I had previously deleted beta1 and cleared all the Arduino...
@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...