haha I have been looking for like 20 mins to find these files haha Only found SD.
Ok I will look to download Teensyduino-1-54-Beta and look for the example files there.
Thanks again defragster, Going to try my...
I can't say whether it will solve all the problems you're seeing. But generally speaking, yes, if you want the relay coil to switch off at approximately the same speed as it turns on, you do need to add a zener diode. ...
Hi. I am trying to get the heart rate measurements with the following hardware plugged into the Teensy 4.1:
Ant+ usb dongle
Heart rate belt
The sketch is pretty simple:
#include <USBHost_t36.h>
USBHost...
OPPS - TYPO on my part See :: pjrc.com/threads/66357-Teensyduino-1-54-Beta-7
1.54 is in beta and the SdFat library and examples are in that release.
All of that code will work with SD.h - just have to use the...
Hello defragster,
I have to say thank you right off the bat for writing all of this for me. Atm I'm using Teensy Loader 1.52 which is higher then what you stated above. I would assume this would also use SdFat. I...
oohhh, an old 2x20 vacuum flourescent dot-matrix display. I would have killed for one of these as a design engineer in the 70's ;-)
Yes, I'm using the t3n version of the library. Don't know what you are asking...
Interesting project.
Since you aren't going to be able to control all 500 motors directly from a processor, you will need some sort of distributed control. I assume you've already figured that out but it leads to...
I don't think I have posted this.. here s a link to a site in german language: https://elektronikbasteln.pl7.de/dvb-t-usb-sticks-als-scanner-von-9-khz-bis-ueber-1-ghz
( a very good translator is www.deepl.com)
Scroll...
You'll need the ground wire, only the power should be cut. Otherwise you can cut the trace on Teensy to separate VIN from VUSB and use a standard USB cable.
Hi Jim,
(1) SPI always uses push-pull pins.
(4) I don't see a problem, the chip can be used for SPI, see this product.
(5) the chip is bi-directional, it just "voltage-translates" signals from one side to the other,...
Think you broke the code though.
I keep lowering down to 2.048Msps probably could go lower, tested it all the way down to the lowest setting but you don't see much of the waveform in the display.
Hi all! Could use some help here. I would like to read the serial data coming off a teensy 4.0. Issue is that the teensy is powered via a power source that is different than the device being used for the serial monitor...
What version of TeensyDuino is in use? If using the TD 1.47 Beta 7 the SD code actually uses installed SdFat. Though SdFat is included - but uses different functions and methods.
Not sure if this help to answer -...
Thanks :)
There are still ~60% to do, for the library/USB communication only.
I'm not that sure that it will work. The samplerate is incredible high. I think default is 2.4Msps?
SDR# offers lower (and even higher)...
Nice job @Frank B !. Just got back on line and saw your post. Feels good to see that its alive finally. When dreams become a reality. You know if you make this work on a Teensy I think it will be the first time...
Hey luni, thanks for the help yet again! You're correct, I am using your library. Always happy to be able to present the problem to your solution :D
Wow, thanks a ton I will be able to test this shortly and let you...
From one of the documents referenced in the "support resources" section of the TXS0108E data sheet, I found the answer to #2 and #3: "If the application does not require output enable control then the OE pin should be...
Hello,
i have a Teensy 4.0 and a nextion display with the io adapter. I use some of the nextion io pins as output (3.3v), which are directly wired to the inputs of the teensy. when i press a button on the display an...
I've read the many other (Teensy) threads about Logic Level Conversion (and looked at many of the products referenced). I need bi-directional Logic Level Conversion from/to the Teensy 4.0 SPI ports; I am driving the...
Ok I can see what I think is happening and your right @Paul the compiler is picking up the wrong version of SD.h.
Problem is within the Arduino / VSMicro IDE (Tried both!) SD isn't showing as a Lib for Teensy in fact...
There is no layer below the Resampler class. There are no further classes or blocks or a processing pipeline inside the Resampler. The Resampler has a resampling function that implements the bandlimited interpolation by...
Arduino is using a non-Teensy copy of the SD library.
First, check that Teensy is selected in Tools > Boards.
Next, scroll up from the error message and look for info about duplicate libraries. If you've got a...
Hi Cliff, where do you declare chipSelect? It should be declared in the first part of your program before anything that needs it. If that is not it, post a more complete example of your code so that we can better...
Hello everyone I'm going to do my best to explain the issue I'm having.
Currently I'm building a chess board that will allows the user to import a new chess puzzle in a .csv file format. which looks like this
...
Teensy Loader 1.54-beta7 was also updated to use GTK3. Previously we linked to GTK2.
Ubuntu 20.04.2 has a broken GTK2 system (but oddly, 20.04.1 and original 20.04 work fine) which cause a 25-30 delay in startup of...
Might be worth mentioning the udev rules were updated (for upcoming 1.54) to address multiple issues seen on newer Linux distros.
This is the latest. The number in the filename also changed from "49" to "00", which...
Many thanks! I'll stay in touch for your findings...
These low frequency "plops" make me think of an aliasing issue (I think you used the term "component discontinuity") which might (?) happen during the envelope...
I believe that the version number it's displaying is obtained from
.platformio/packages/framework-arduinoteensy/.piopm
which hasn't changed, but you've replaced the code in the cores directory, so it should be...
If you need even more I/O pins then are broken out on the TGA Pro, you can solder wires to directly to any unused pins on the TGA pro socket (the solder joints that are on the opposite side that the socket is installed...
Success :)
Finally, I wrote this:
//This is a callback that gets called after control transfers:
void RTL2832::control(const Transfer_t *transfer)
{
memcpy((void*)&controlTransferResult, (void*)transfer,...
Tried an experiment with a bare teensy LC that shows some promise.
Using touchRead() you can tell the difference between the following
Teensy held its USB cable plugged into the PC
Teensy held against its...
Hi All,
I am trying to read a file from the onboard SD card reader and I am struggling to get it working, I notice on this forum many posts saying that using the SD.h and SPI.h and then having a const like so:
...
Hello everybody,
I'm new to this forum and new to PlatformIO as well.
I installed it on my Ubuntu 20.04 machine aside of Arduino and it works very well.
The only issue I have is the installation of the Teensyduino...
I am looking to build a Kinetic Sculpture where 500 (or so) motors which raise and lower weights(such as Christmas tree decorations), using thread and reels to visually mimic waves, 3D patterns etc. See an example at...
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...