Not a C fan either... I grew up on a mainframe using PL/I, Fortran and COBOL...
The main working components of your program need to be either within the braces of setup, or within the braces of loop. In this case...
LOL, of course, the Teensy is the problem...
Nope :)
Think twice: why is x a constant in your program?
Then, a bracket "}" is on the wrong position.
(No worry, just yesterday I did not think too and posted...
good catch, ya that looks like the best one at the cheapest price that's around I think i might go for that one. I've seen some of the big pc logic analyzers from Agilent on ebay:...
I hate C. It gives me nothing but problems. Where is a nice straightforward command such as FOR X= 1 to 3 (BASIC).
I have tried many variations of this program and nothing works PLUS the error description means...
@mjs513 re : "That was first question here "
I meant that was my first question on seeing post#101 ... thought there might be something useful of import ... all that occurred to me was the 'unique blink on power only...
It was the setting called useCenterBasedPositions
Because of the bug in #28 caused it to be stored as null
An then when the setting is compared against the def value I use to string() and that cannot take null as...
Its saying the control voltage can be 3V to 10VDC. What can that mean other than input 4 can be upto 10V more positive than input 3?
If that's the case, you don't have to worry.
Yes I think so, the risetime of the signal is not instantaneous, and the thresholding will likely be different for each microphone
due to signal level variation. Cross-correlation uses all the information in the...
This is the correct link, https://www.ap.com/blog/fft-spectrum-and-spectral-densities-same-data-different-scaling/
The basic insight is that a discrete spectrum is measured differently from a continuous spectrum...
So I have a solid-state relay I'm looking to control with a Teensy 3.2. Here's the datasheet:
http://www.farnell.com/datasheets/3157355.pdf
I chose it specifically because it can be triggered w/ 3V. However it's...
In case anyone is interested, here is a readable paper on the difference between PSD (power spectral density) and FFT, and why FFT is not suitable for noise floor measurements.
Paul
Yeah, that would require defining CAN2, CAN3, asserts should work as is:
typedef enum CAN_DEV_TABLE {
#if defined(__IMXRT1062__)
CAN0 = (uint32_t)0x0, <------------- This was added to support the...
Opened up the PeakMeterMono sketch and uploaded it to a Teensy 4.0 and got the same "adc2_cfg = 00000637" message in the serial monitor.
Mind you, I don't have a MAX9814 electret microphone so pin A2(16) is open.
I...
It works as expected! Both on Teensy 3.2 and 3.5.
Compiler throws:
Only CAN0 works on Teensy 3.2/3.5
static_assert(_bus == CAN0, "Only CAN0 works on Teensy 3.2/3.5");
^
*** Error 1
By the way, trying...
When I do that, I no longer receive messages on the Teensy. I think being able to receive messages implies that I have the Rx hooked up correctly....therefore I believe my pins are correct.
Indeed, it compiled in the arduino IDE as well I see, I just don't wanna add much code bloat. Going ahead after compilation should result in undefined behaviour though should the wrong one be used. I suppose a cleaner...
At least for me, with Paltformio if I declare
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> Can0;
it compiles for Teensy 3.2 and 3.5 but it obviously does not do anything.
Thank you very much for the...
This logic analyzer may (just) work for you.
You need 14 channels for this flash chip: IO0-IO7, CLE, ALE, CE, WE, RE, WP.
The U3Pro16 can sample 16 channels @ 500 MHz in Buffer mode or @ 125 MHz in Stream mode. Buffer...
for the define, thats just a pointer, _CAN1 wont compile on T3.2 anyways
FIFO allows ordered receptions, mailboxes can receive in any order as long as a slot is empty. you can have FIFO and mailboxes combined for...
Think this may help you out: https://www.pjrc.com/teensy/td_libs_Encoder.html in understanding how the encoder library works.
If all you are getting in 0s and 1s it sounds like you are only registering on 1 of the...
I have had a background project like this for a while now (ie, lots of thinking, not much doing). One question that comes up, why use ADC at all? Why not a simple envelope detector (like here) for each microphone into...
Hi guys,
I am having some difficulty getting an XBee project to work. I am trying to get my 2 XBee PRO 900HP 10K XBees to offer 2 way communication using the XBee library (API mode stuff).
I have several settings...
First of all thank you very much for you willingness to help! I can confirm that this works in a Teensy 3.5 with a Kvaser generating random CAN data. I have another Teensy 3.2 board with me but the transceiver on it is...
Oh dear. I just went to your design tool to make some edits to my project and started as I always do by trying to upload the .json from the last .zip file I downloaded and the design tools just sits infinitely showing...
Hello all,
I recently bought a teensy4.0 for an audio-reactive display project.
I have connected the MAX9814 electret microphone to pin 16(A2) of teensy 4.0, along with the recommended audio input circuitry. But...
Hey Paul thank you for replying. Sounds like a fairly daunting task. What would be the simplest solution to generate a BFSK signal at 600 BPS from the Teensy 3.6 considering that I am willing add some cheap single...
***************************************
Update:
i´ve used another LapTop and now I can compile the scetch.
I will do a new installation asap. ;-)
But on the serial monitor I only see "0" and "1", not a counting...
Ok.
I don't know for sure, I'm just guessing.
Between the serial ports and the strips there's a single 8-port level converter (74HCT245) followed by a 100ohm resistor for each port.
What makes me think of the...
I measured mine (cheap but good) - it uses 0.13V
In "diode measure" mode it uses 3.8V
Note, the i.mx.rt uses much less than 3.3V internally. I *think* absolute max is 1.6V (only when overclocking)
You can't use a function that takes inputs with IntervalTimer.
Well, yes, you can if you use that approach to rewrite IntervalTimer. It is indeed possible to create something like IntervalTimer, but more...
Looking here : pjrc.com/teensy/td_timing_IntervalTimer.html
The called function takes no parameters: myTimer.begin(blinkLED, 150000); // blinkLED to run every 0.15 seconds
to call :: void blinkLED() {
That is...
Not finding a 'Single RP2040' purchase item.
But I do see the REAL cost of buying bulk PI ZERO's - versus the buy one only loss leader purchase of $5 or $10:
Except for the harmless case of trying to access the IMXRT chip too early and just retrying moments later, every problem has been a case of the bootloader was relying on the many things the Teensy 4.0 & 4.1 test...
Hey all,
I'm currently working on porting a pretty sizable Atmel AVR project over to Teensy 4.1.
The First main issue I've run into, is the OLED Screen I'm working with. The AVR Chip I was working with was only...
@mjs513 That was first question here ... seems so as there was to have been a RED LED indication powered with or without USB Connect when charge only cable is present. I could never trigger it as expected from Beta...
SNR is measured in dB. And it was observation / comment / remark (hence "approx" word), not measurement. PT8211 is so bad, not only with regards to noise but mainly to distortion that I wonder why would anyone use it....
In theory, you could connect resistors in a R-2R ladder or just binary weighted to several pins and write 8 bit numbers to a native port. You'd probably set up a timer to trigger a DMA channel to copy bytes from a...
3V is possibly not safe on low voltage CMOS chips. Many standard multimeters use 0.2V full-scale except on diode mode.
The 56k you see on the powered down chip is because you are back-driving the power through the...
Hi Frank,
that are not so much words.
I´ve read a post from Paul Stoffregen to create a portable Arduino folder, with
- deleting the old arduino instance
- loading the arduino.zip file
- remembering, where the...
I've not played with the T3.6, but I wouldn't be surprized if you can generate suitable square waves from the PWM units in it?
This thread seems relevant. ...
After uploading, the bootloader chip uses the hardware reset signal to fully reset the main processor. The serial port hardware is supposed to be fully reset.
Let me answer now with another question. How could you...
Can you try this patch? Originally it only supported 31 mailboxes max, as Teensy 3.x had 16 mailboxes, bit 31 was used for the global handler. Now it should support up to 64 mailboxes with a general handler.
Also if...
Update: Changed R17 to 20kOhm, Added 1kOhm Voltage Divider to mic preamp output, completed assembly and tested.
Some photos:
Uploaded a simple bypass effect which mixes the microphone and guitar pedal and...
I think you mean correlation, not convolution (very different things), and secondly its cross-correlation,
an autocorrelation cannot be between two signals!
Let me say it again, FFT plots of signal spectrum are not useful for measuring noise floor, you need a PSD plot for that.
Noise is measured in W/Hz, or V/√Hz, and an FFT bin is typically not exactly 1Hz wide...
Audio is an ac signal, typically I2S audio ADCs have a DC-removal filter built in so the result is strictly zero-centred.
Oddly typical audio DACs are not DC-blocking, which is a problem (if the code crashes and your...
It happened again, after many hours.
Right now all my LED strips, connected to Teensy 4.1 Serial 1, 3, 4 and 7 and frozen, but the program is running.
I can use the serial monitor or the infrared remote to interact...
Hmm, perhaps that level shifter isn't able to drive the opto-coupler LEDs properly - can't see any
datasheet for it. Opto coupled inputs probably want 15mA or so, which is more than some logic
devices can output.
...
I was wondering if we should build that capability into the mtp object?
That is do like we do in the USB Host cases or the !Serial type cases...
That is maybe add a member to MTPD:
Sort of like at the...
Oh, great. I am on my way to create a ring buffer myself, but will try out your code first on Monday when i access the studio. Your help is highly appreciated!
Sounds like a job for a DDS module, not a microcontroller. Cheap AD9833 module perhaps?
Or you could use square wave output and a high-order low-pass filter on the output to kill the harmonics.
Here is a ring buffer variant to test also
/* Control a set of solenoids with MIDI
* Note on messages trigger solenoids, and they will be turned off after a certain amount of ms has passed
*/
int...
Thanks al lot, kd5rxt-mark! I am not that familiar with shift registers, so will definitely look into it. I may actually end up with 100 solenoids at the end so important to take that into consideration at an early...
Hi, and thanks for testing. That's a bit strange. The code isn't that fast at all when i have tested the code at my computer. But good to know. Then i need to find out if there's some external conditions with my...
Its not my project, but I agree that this a could be a good way to handle something like 100 solenoids, a number to big for the Teensy pincounts. In this case there would be a solenoid array, or bitmap, on/off for the...
@mlu:
Sounds like a fun project !! Would it be of any benefit to drive the solenoids from shift registers (74HC595 - I used these very nicely in my <TeensyMIDIPolySynth> project to drive 40 LEDs plus 2 x 7-segment...
What if I want that function to be part of my own C++ class so that I can do an Object Oriented Callback Interface? Is there any possibility to do so with this library?