Now that /dev/ttyACM0 is back, I can select it in the Arduino IDE Port menu and things are back to working.
Well, working with a workaround. I don't think the Arduino IDE serial monitor should have failed the way it...
Thanks, Kurt. I think you're probably right.
My first symptom was that the Arduino Serial Monitor failed to open with an error. Unfortunately, I didn't write down the error at the time.
When multiple projects...
That's great. I was afraid that the std::function interface is quite expensive which it obviously isn't :-)
This is weird. The TMR has a combined IRQ for all 4 channels, therefore it needs to cycle through all 4...
I made some more measurements. I increased the logic analyzer to 120 MHz and removed all of the dsb's, so the measurements are more consistent now. Note that clock cycles are more precise at lower CPU speeds, since the...
You need to take into account that you can utilize the time needed for syncing the interrupt flag. Here an example using the code from LAtimes and replacing the callback by this:
void callback()
{
for...
Looks good. Yea at about 5ukp for a TFT I could accept the odd dud amongst the Chinese ones . I think your comment re the rejects is correct, particularly from some ebay vendors. Are you using the t3n version of the...
It is certainly above my pay grade:)
That would seem to be the easiest. And is very close to using 'uint8_t fat32FSInfoSector;'.
Now to do some more testing with your latest updates.
I could be wrong, but my guess is your USB option you built with may not include Serial?
That is looks like you are using Product ID 0x482 Which I think is the USB Type: Keyboard + Mouse + Joystick
This one I do...
Progress! I tried a different Teensy that hadn't been updated lately and that uses USB Serial. /dev/ttyACM0 appeared as usual.
I'm guessing that somehow the Arduino IDE settings got confused between two projects and...
I don't quite understand the application here but do the relays have the same make and break times? If not, it is likely that when you go from, say, 0110000 to 0001000 there is a period of 0111000 or 0000000? It makes...
Thanks, I had not looked at the info sector as, you mentioned it is not used in SDFat... Not sure how hard it would be to use it.
There is optional code in Fat code that if enabled when you ask for the count of free...
The teensy still functions as a keyboard device, but USB-serial still isn't working. Still no /dev/ttyACM0. Tried various things.
sudo modprobe cdc-acm
sudo modprobe usbcore
sudo modprobe ohci-hcd
sudo modprobe...
By the way, the latest main repository version in conjunction with ioSender has a new grbl settings report. It is far superior to the old bit-field approach and organizes the settings by area rather than the seemingly...
I got my replacement Audio board running and reran my tests. I reconfirmed that Paul's observations are accurate in my test setup as well. The ADC transmits 24bits regardless of the CHIP_I2S_CTRL register data length...
Thank you all for working on this!
I've been experimenting with timer interrupts and a scope as well. The above posts help me understand what I've been seeing. luni and LAtimes information is especially enlightening....
hy markT thanks for your replay.
every 2 relays commend buy 1 resistor and 1 transistor and 1 snubber/suppression diode like in schem i added.
im using isolated TRACO 220v AC DC convertor to 12v -->isolated DC DC 12v...
Sorry for the delay, I finally found some time trying your code. I can not reproduce the problem. It generates nice 10ms calls here. Do you still have this problem?
Ok, it uses a flaglike I mentioned before - so this works after claim(), obviously.
So, it means I can call a initialize() after claim is ready - perhaps in Task(). Thank you.
I'll try that :)
Not sure what you are saying. No one has gotten what to work on 1060? Several of us have played some. I have a sketch that we used every hardware Serial port plus a lot of other Serial ports created by FlexIO, that...
@KurtE - I finally found the information about FAT16/FAT32 FS Information Sector here:
https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system.
I am not sure if you knew about it. Unfortunately SdFat does not...
Yes, in my local branches I commented out some of the printing... FatPartition.cpp
in SDFat code...
int32_t FatPartition::freeClusterCount() {
#if MAINTAIN_FREE_CLUSTER_COUNT
if (m_freeClusterCount >= 0) {
...
Again you might take a look at the MSC stuff (MassStorageDriver.cpp) as it runs more or less in lock step...
Again it may not do as much with control but for sending and receiving messages:
look at the function...
I got a cracked one also, and one of the two I got from PJRC was DOA, so I suspect that what we are getting when we buy these cheap displays is the rejects from the quality control process. I remember as a young...
I could actually do that in the DMA interrupt and stop it once the all the data as been pushed out.. I'll look into it.
I would love to try FlexIO as it can run at a much faster speed, but from reading on the NXP...
Why not use a 40 pin IDC cable/socket/plug wired as shown below.
This will result in every other wire being gnd. Also makes it easy making the cable using DIL IDC plugs and sockets.
Good news. Such is the nature of electronics :). I've checked my board a zillion times. Decided to just build another and see what gives. First supplier sent me a cracked ILI9341, waiting on a bunch from China now, at...
Huh. I wouldn't have thought of using GPIOs as extra grounds. My current ground is just running from the voltage regulator.
What exactly would using the GPIO's ground accomplish? In general is it better to bias...
@Frank B - @KurtE
Been looking at librtlsdr.c as well as USBHost_t36 and libusb on and off most of the morning.
Think what going to have to happen is that you are going to have to write a new class for...
Assuming I downloaded the correct branches looks like the changes are working. Not going to add the dumps but here is just the results for no VolumeName with debug prints turned off in USBHost_t36:
Waiting up to 5...
I was afraid of something like this....
So to read a register from RTL2832 you need about 10 times as many lines as in sdrlib.
That would not be such a problem, but there are many register accesses there.
I think...
Sorry, not sure if there is some specific way to tell a tell a timer like that how many pulses to do... You can probably have an interrupt or the like turn it on or off...
Another possibility for you might be with...
An output low isn't a hard ground, might even be better due to the small output resistance reducing reflections,
I can see that would make pinouts simpler.
It allows for future expansion of function too...
The "150 MHz" is actually F_BUS for the GPT. I printed out F_BUS_ACTUAL and it is 75.6 for 150, 150 for 450 and 600, and 204 for 816. So that should make the points in the graph more linear.
My logic analyzer (a...
Every relay coil must have a snubber diode - otherwise you risk blowing up a transistor. Can you share your
circuit for the relay driving? Perhaps you have commoned up the relays in pairs? That would allow a single...
I just pushed up a updated version of it that has a lot less changes to the print stuff.
I did a git rebase -i ...
Update as to not have it show that I changed them all back to old and then all back to new...
...
@KurtE thanks,
After going through many source codes repo's and reading the documentation, finally things are making much sense to me and I understand how the flow works.
My biggest dilemma now is which timer to...
No, because "resampler" is still an opaque black box. I'd just like a map of the processing (sample rates,
bit widths, individual steps like "downsample", "LPF (fir N taps, halfband)" etc) and how it relates to actual...
I tried updating SdFat to 2.0.5 and now my other MTP.h sketch works, so I guess something in the latest update or in the latest core has fixed it. Anyway with SdFat 2.0.5, my sketch still has a few slow writes. The...
As you can see most of the time we do it asynch. Note the MSC stuff does a lot of this stuff Sync...
Note: on doing new stuff I am a bit rusty: I will show some of the stuff from USBSerialBase as it does some of...
maybe Paul can answer this?
How would i translate:
uint16_t rtlsdr_demod_read_reg(rtlsdr_dev_t *dev, uint8_t page, uint16_t addr, uint8_t len)
{
int r;
unsigned char data;
uint16_t index = page;
Again I am not as experienced with the FAT system in SDFat and the like, although I understand a lot more of it than I used to. And I am pretty good at using a global search function in sublime text.
In the old...
Thanks for the reply, Phil. I didn't know about the $14=78, I did know about $14=7 but didn't realize I could/should make it 78.
On another note. After not finding on line a solution I did what I should have done...
Ok, I added a block diagram of the most important blocks of the AsyncAudioInput class. Does this help at understanding how the class works?
Independently of the description that I wrote, I should make more clear what...
No beta, I'm using Teensyduino 1.53 with the latest core from github. I looked at the beta thread and there seemed to be lots of issues still so I've not risked it.
I confess I really don't understand the different...
May have been a false alarm. Went back very carefully through wiring setup, and reseated everything. Seems to be working much better now. I've had it running now for 2 days straight with no problems. YMMV ;-)
...
Instead of calling your sequencer from loop I'd use an interval timer to generate the calls. You can then simply change the timer period when the encoder value changes. IIRC you are using the EncoderTool for your...
@sw_hunt: Is the current Beta TD 1.54 Beta 7 in use?
It has changed the SD code to defer to the SdFat code that seems to benchmark some 5 or more times faster on writes. Benchmark as seen showed 10MB /sec - depending...
Thank you for clearifying that!
Seems like I have to improve the design of the enclosure of the remote - currently a section of the 3D printed body is triggering the program button...
Is there a better way to pre-allocate disk space than this? Some writes (prints) still take over 50ms. Something quicker (this takes 10 seconds) or something that guarantees quick prints of 512 bytes by reducing the...
Ok, seems that the Teensy library is async.
for this project, it would be more convienient to have it synchronous.
the other way, a state machine is too much work here and not easy to read the code later...
So:...
Thanks Mark,
The DC offset of pulse and square waveforms is probably one part of the explanation. However as you can see (hear) in the examples provided, this issue occurs with either the BAND_LIMIT waveforms or the...
As Kurt mentioned, you can use the TeensyTimerTool if you need to access more timers with a high level interface. For the T4 you can use it with
2x GPT 32bit
16x TMR 16bit
4x PIT 32bit
20x TCK 32bit (Software)...
It is progressing ..
The 3D model of the motherboard. The board is roughly the size of a laboratory card in euro format (160 x 100).
The Fx module is simply plugged onto the back.
each usb has it's own registey entry in windows. just because 1.... maybe 100 work, and 1 doesn't may or may not be hardware, but it could be a corrupted registry entry for that specific device in windows. Try to...
Thank's Paul for you insight. The pins on the back were not shorted to the SPI pins and EN and EN7 were indeed doing exactly as expected. But I had deviated on the bread board layout from my circuit diagram and driven...
hy im working on kind of complicate project that drives 28 relays of R2R net witch is 2 balanced audio channels.
7 relay for each phase for 128 binary steps like an adc.
im using teensy 3.5 to control them and im...
Nice measurement. Fits well with my experiences. A few remarks:
I might be wrong, but, I think that the "150MHz" timer clock speed is not fixed but actually F_CPU / 4.
You do not need to sprinkle asm("dsb") in...
I decided to get the logic analyzer out and measure how long the timer interrupts take in the TeensyTimerTool library with a Teensy 4.0. I varied both CPU speed and Timer clock speed (I used the GPT timer). As...
Hi, sorry I missed this earlier. bCNC on a RPi works well with grblHAL though you should have the latest bCNC version as there have been some fixes along the way. I've tested on a RPi3 and RPi4.
Part of the problem...
Yes I just woke up for a little while.
Anyway that makes sense. I looked at the my 4th partition before I reformatted. Windows showed it as a "Logical" partition. All the other partitions were identified as...
Thanks, Mark.
OK, so perhaps I just need to intersperse ground signals and logic signals and all will be good.
I don't think the signals will be particularly fast. I'll probably poll the MUXs about 4x/sec.
...
Oh, I konw your feeling. A few years I was blocked by this shield for weeks. And it made me so angry.
I think you can get a full size shield, it should always work well. And after that, you can confirm which version...
Oh perfect, adding an AudioOutputI2S worked for both the simple sine script as well as the WavFilePlayerUSB example, thanks!
Wonder why the WavFilePlayerUSB example doesn't have that in there if it's apparently...
For high speed logic you normally make every 2nd or 3rd wire ground, so that every signal is next to a ground return.
But how fast are the signals involved? You can probably just distribute the ground and supply...
Hey all,
I’m starting to lay out PCBs for a Teensy synth and I wanted to see if I have a fundamental flaw in my design before I get too far. Any advice would be greatly appreciated. Here are the details:
The...
The Teensy LC has enough pins to look at 2 pots and 13 buttons without any multiplexer unless you want to add other hardware.
The example Many_Button_Knobs can easily be tweaked to suit. Are you planning to use...
Okay, now I see where the confusion was! The 24 steps in my code are meant to represent 24 parts per quarter note. I should have mentioned that before, whoops! My intention is that the LEDs advance a single step for...
Hi All, I'm trying to get started with using a Teensy 4.1 as a USB audio input on Mac and haven't been able to get any output. I see 'Teensy Audio' as an input device, but recording with Audacity shows no signal.
...
I happened to be listening to the Desk of Ladyada where among other things she talks about bringing up the future feather version of the RP2040. She said that normally she likes to make test jigs from Teensy (unless...
Hi! I've just registered to the forum but i've been experimenting with Teensy for over a month now.
This week I finished a project in the breadboard, and decided to move it to a more permanent casing. After many...
Hi Florian, good to hear you're enjoying the filter. On my system, I get 7% for POLY_FIR, and 5% for LINEAR. To reduce it further I suggest going to 2x oversampling. However, that requires a different set of FIR...