Dear Frank,
Thank you for the patched library. I will give it a try. On a other thread Chris sent my also modified version of the Audio library.
I have SdFat working now with the Audio library.
Unfortunately the...
Dear Chris,
Thank you for your solution. I have the Audio library working now with the SdFat library.
I didn't know you also needed to change some syntax when opening the file.
The long filenames is a very nice...
If you stick to one ADC then absolutely it will be limited across all pins. You can lower the resolution to get more samples per second I think the continuous read sample that comes with teensyduino has the speed...
If I'm reading the code correctly, at any one time the FFT1024 library can save up to 8 audio buffers without releasing them. This means that with two FFT1024 objects, you'd need to allocate at least 16 buffers with...
So based upon the reading of this thread and my own testing, I too get about 300,000 samples per second. However, the question remains does this mean that if we want to sample across multiple channels we are limited to...
Hi,
I am trying to use a Teensy 3.5 with a TI SN65HVD230 3.3V CAN transceiver for a Senior Design project at school.
I can not for the life of me get the regular, or any of the other sketches I've seen on the...
I am fairly new to the Teensy Audio library, so I hope this is a valid question.
I would like to use two instances of the FFT with 1024 samples for two separate ADC inputs. I am working off of the FFT example in the...
Some notes regarding analog - this seems like it's defined in analog.c, static const uint8_t pin2sc1a, which is an array where the index is the pin number and the stored value refers to the ADC channel number. For...
After hours of debugging I tracked down the issue.
I had a member to store the last written element of a 3d array like this in my header file
struct Location
{
uint8_t x;
uint8_t y;
...
@KurtE
Mine is hooked up the exact same way as shown in https://www.pjrc.com/teensy/td_libs_USBHostShield.html in terms of pin connections.
Did you remember to cut the trace and wire VUSB to 5v?
I'll hook mine...
Tecknet mouse is sort of working... That is we are now getting mouse events out. I pushed up some changes to the mouse.cpp file to handle the data.
When I try it without having to rebind... I get some debug output...
Hello,
I'm working on a project on a Teensy 3.2 and Arduino IDE and everything was working great. All of the sudden when I initialize my class object and call the constructor it enters a dead zone and control never...
TECKNET - that sounds fancy! They seem to have a number of devices and not as cheap as the name sounds. Speaking of Teck devices I found my Bt 'Microsoft Sculpt Touch Mouse' and it was found and connected with the...
Glad you are enjoying the new scope. Thought it was a good buy for my purposes as well. I did the hack just for the fun of it you might say. The triggering is good as well, that helps a lot.
I always just put the...
@mjs: Have not patched the scope so far - but what I can say is, it is far better than I had expected. One of my best buys / decisions. For my usage, it's perfect. I love the "autoset" and "measure" - buttons ( digital...
Ok so DMAMEM is OCRAM which is 256k makes sense now. I saw this comment on this thread just now that explains that Paul is using fixed memory sections in the linker script and will fix later. Ok I'm moving on to other...
Did'nt look at the sourcecode you provided in detail, but as a general rule, unused variables are optimized -out (removed) by the compiler. data gets filled, but not really used, so all that might be discarded.. (and...
The mouse registers, when I use the register new...) but errors out if I try with out the pin form... Need to investigate some...
But will hack in some code to handle the data now ...
=====================
BT...
For most of the old ROMS, so-called "ROM-LISTINGS" with dis-assembled code are available on internet. Nevertheless, it's a great project, esp. if you have a rare ROM version, or if it is not available for download.
For...
Once read, one might either use the code in emulators, or simply duplicate them to build clones. The high school is analyzing and modifying the code to add cheats.
@Paul:
I'm working on SPDIF, and I think I have hardware- SPDIF-OUT working tomorrow (just found a bug that took me 3 hours.. :-)
SPDIF-INPUT: How to handle sample-freqs != AUDIO_SAMPLERATE ? Discard data?
...
With beta9 I get the cryptic memory error (section `.bss' is not within region `DTCM') with this sketch:
#define BUF_SIZE 30066
uint32_t buffer;
void setup() {
memset(buffer, 0, BUF_SIZE * sizeof(uint32_t));...
Hi Mike and Tim,
Just got back, went to PMB and picked up a few more things like the replacement Host shield mini... Need to get out soldering Iron.
Also cheap bluetooth mouse (TECKNET)... Thought I would try it...
Hey Jacob,
That's much better, but it's weird that CPU usage is higher @96MHz than 72... I whole thing twice (i.e. changing the clock speed up and down) and got exactly the same values.
empty:
96MHz -> 0.8 %...
Hi Kurt
Ok = looked a little closer again, after your post, and yep I am seeing it = like you said its getting interspersed. I didn't notice it before. I pretty much tried everything so it has to be something else at...
If you had RFduino installed, it is still on your system. I made a document on how-to move it and to get it working on Windows.
I've attached the txt file.
Probably does not matter if we &0xff or not, as probably uint16_t value anyway getting assigned to a uint8_t... Probably just being anal...
The call back message, depends on debug settings. The one I showed in...
Is it possible to read Arinc 429 on the Teensy's RX and TX pins?
Even if there would be some sort of extra hardware involved I would like to know.
thanks
https://en.wikipedia.org/wiki/ARINC_429
I have installed the Arduino 1.8.8 in the Applications folder and I can open the Applications folder in the Finder, but it doesn't seem to want to run it, However, I just downloaded an older version of Arduino (1.8.5) ...
Apparently - yes... But I can't tell you without seeing your Mac... Did you install Arduino 1.8.8 in the Applications folder? Can you open the Applications folder in the Finder like this...
...and do a right click on...
I am using Teensy 3.2 generally.
Ah but I see that as I am not using a Teensy for this application, might be better to bring this to the Arduino Forums. My apologies.
@KurtE
Just noticed something strange. In BluetoothController::sendl2cap_ConnectionResponse you have l2capbuf = scid >> 8; but in sendl2cap_ConnectionRequest you have (scid >> 8) & 0xff.
Just want to make sure...
I know what you mean - I tried a few different channels as well but no luck. I even tried implement the sixaxis code like you did - but I put in a different spot without any luck.
Here is a data point for you...
you can try this. it is a compressed file from the staging directory on my linux machine ".arduino15/staging/packages/"
RFduino_606 from staging folder
I have a dual-boot machine and on the Linux environment I...
@mjs513 - Not sure, I did a little hacking yesterday, of trying different channels, like trying to use one directly out of the BT structure, like: control_scid_
Did not help. Wondering about the function on host...
that i've found, perfect. thanks. trying to get something like the 'flexible scan mode' working, we'll see. ... i've only had the thing for a couple of hours; still have to digest a lot (like is ADC1_HC0 equivalent to...
The T4 ADC is different from T3* and there is no PDB, so pedvide's lib will need some work. DMA is about the same. I have a simple adcdma example and and a PIT+XBAR+ADC example that clocks the ADC from PIT timer via...
@manitou
Just looked at the ADC lib that is part of the Teensyduino install - and you are right it has been ported yet that I could see, at least by looking in the example and a couple of the files. Probably should...
great, thanks. i can't seem to find the ADC library though, hence my question ... just the old repo https://github.com/pedvide/ADC
edit: ah, ok. hadn't seen manitou's reply, confusion cleared up! thanks
Does that mean that I generated the data too fast? Since I generate data as it comes in from the record-queue I had expected that there is alway enough space in the playQueue to cope with the incoming data. But it seems...
@KurtE: Used Tim's echoboth on the T3.2 and reset Serial1.begin to match. Now it works. No idea what I did yesterday. Anyway, retested this morning, the extra messages disappeared - the 3.2 just wasn't keeping up so...
playBuffer does not play :) it waits for free space in the queue and thus it may wait until the first qeue entry got played. when there is space, it returns pretty fast.
If you want to learn and have questions like...
In the following sketch I try to copy audio data from a record-queue to a play-queue in the c-main function.
(Later I will do a lot of signalprocessing between input and output).
The code works. I try to measure...
Posted this note on T4 thread for updated debug_tt:
Found the source of the funny print - Using the PJRC printf code it was hardcoded to Serial4 under 1052 ifdef that I left alone to focus on T_3.6 use - then...
Frank - please check edit as made for PaulStoffregen/cores/pull/358
I just pushed up a working github.com/Defragster/T4_demo/.../debug_tt. It allows checking code flow to a failure point etc, and Trace records -...
1: Maybe use an oscilloscope or logic analyzer to watch the SDA & SCL pins.
2: Perhaps use a Teensy 3.6 instead of that STM32 chip? They you'll have good software support. :)
Remove wasteSomeTime() function if you included it. It's only a dummy CPU load for testing. It could give the result you have.
Remove this line too:
// create some cpu load
itimer.begin( { wasteSomeTime(); },...
You can see the T4 pin assignment info in msg #3 on the beta test thread.
We're expecting to make a slight change before final release, since this doens't bring out the 2 CANFD pins. But it's pretty close to what...
Nope, but there are functions to tell you how much memory has been used. If AudioMemoryUsageMax() always gives a number less than you allocated, then all is well.
The idle cpu load at 72 Mhz is should be 0.8% due to systicks overhead or else something is wrong. If you comment out the itimer.begin i my example it shoud almost be zerro.
Of course, you should call FreeRam from the...
hi, got my beta board (thanks!) and trying to read/catch up ...
quick question, on p.1 it says "stuff confirmed working works ADC". that's re analog.c, right? or the "ADC" library? (in which case i can't seem to...
most of the time it was bad grounding and cheap pololu cabling that caused no outputs due to corrupt crc data it may look like it’s doing nothing because of the wiring but it’s discarding the corrupt data while firing...
When using Arduino 1.88, you need at least Teensyduino 1.45, earlier versions have no support for this recent Arduino release. The highest Arduino Version supported by Teensyduino 1.36 is 1.8.2.
Figured out why T_3.6 was losing Serial output! I had only ever tested on USB Serial before going to the Pointer code.
Embedded in PJRC's FAULT code register dump is this "UNNEEDED" Serial port setup!
With that...
I need to interface an ARM based microcontroller (STM32F446ZETx) with a Teensy 3.6 via I2C. The ARM controller is to serve as the master, while the Teensy will act as a slave, unifying multiple sensor inputs and passing...
One reason the Fault code went to lockup was I removed the one call to tickle the Serial. I'm working to enable that on T_3.6 and restoring that behavior to get back to where it was before the T$ hacking and I just got...
the T3.2/3.5/3.6 for most part are similar same chips with added features on the higher revision models. Like more pins which contain additional peripherals, faster cpu, and ram, etc. But the core of it is very much the...
Unless tonton81 evolved this to a broken point rather than improving it - this code was working almost a year ago after this thread started with two T_3.6's doing SPI to SPI transfers of some 50 to 100 bytes very...
Okay, using the examples files, again under SPI2WayExamples (master and slave).
The A_ConfigDefines.h files are set up to use 15 for CS and 14 for SCK, but nothing's happening between them; those examples, out of the...
I have not and did not find and good examples for using - EventResponder. I did play with KurtE's Serial work somewhere (T4?) in a quick sample - it was wired up then just like using serialEvent. Looking at the source...
I just updated Defragster/T4_demo/tree/master/EchoBoth
It has the 16x115200 baud of 1843200 and works for me on the two T_3.1's running against the T4. For the T_3.6 USB Host unit I am using a T_3.6 because it had...
First thanks all of you actually i am using USB serial for looking my result on serial monitor. And i want to interface AD5933 IC with teensy3.2. After getting frequency from serial monitor my teensy3.2 will send...
Good evening,
I have been having issues with the Teensyduino 1.36 firmware/libraries, though all versions appear to be listed as compatible versions.
I am using the Arduino 1.8.8 (on MacBook Pro), but for some odd...
I'm using a T3.2 on serial1 and tried boosting it up to like 1000000 but just got jibberish on the T3.2. Maybe its just the T3.2
Going to do a little more tomorrow with Serial and Serial1 and those messages.
Tim....