Another thing I meant to mention was wondering why are you including SoftwareSerial here?
You should simply use Serial1 instead... It has been awhile since I looked at SoftwareSerial on T4.x, but I think it may...
Is it possible to render objects directly from SD card or only internal/soldered flash to save ram?
Wish to know while I wait for my Teensy to arrive in the mail. :)
Also, what kind of performance boost do you see...
Sorry it may be obvious to others who use Audio library more often then I do.
But might help to know what specifically is not working and/or implemented.
That is I see, that in February Paul did a delta to...
I use Teensy 4.0.
On the other side will be Python - but I am working on code now. So I am testing with mobile.
I will use https://github.com/pybluez/pybluez
Sorry I don't fully understand your setup and/or expectations... For example what Teensy are you using?
Also your above code does not build for T4.1 at least with IDE2...
I am not sure about link error I am...
Lora is Synonymous with long range. If you only want to send data it should be fine.
I use these which communicate with the Teensy using the Serial interface.
There are other Lora/Uart modules in their range.
Search...
Hi,
I have a strange problem with Teensy 4.1. I am supplying the power from external source (not USB powered).
Everything is working fine and program inside is working. But when I unplug the usb cable the program...
I am working with this basic code. For testing I am trying terminal on my mobile but I see only nonsense letters. Tomorrow I will have bluetooth adapter for my PC.
#include <SoftwareSerial.h>
SoftwareSerial...
There isn't a dedicated show off category so ill just post here.
I have been using teensys fo a while now, heres my graveyard to prove it:)
Anyway, I wanted to show the last two projects I did with them.
...
Hi, after solving the code to generate the amplitude modulation in a radio transmitter (thanks again Bob!), Now I ask for help to solve the problem of the harmonic generated by the 11025Khz oscillator visible in the...
>Once I get a #1 or #2 result, the result doesn't change without a reboot.
>USB <-> VIN is definitely cut.
>I'm not familiar with it, but I'll try to debug it following your advice.
Yes I agree. Perhaps...
>Thank you very much for your thoughtful advice.
Honest be Couldn't figure out what's going on with result #2.
Unfortunately I'm not very familiar with how to debugging on Teensy.
I'll try it again follow your...
Another possibility for those knobs would be Hall-based magnetic encoders, like AMS AS5600: a 12-bit (4096 positions per revolution), readable via I²C (fixed slave address 0x36) at max. 1 MHz clock. Each encoder can be...
Thank you for your reply. But I have another question, normal fiber cable has plastic cladding too, doesn't it? What's the difference between a common optical fiber and a plastic optical fiber?
The PCM5102A on small PCBs are ubiquitous and very good quality if you only require output.
Get rid of AudioControlSGTL5000 sgtl5000; and the objects, and it should work without further modification.
I am looking for some advice on long range communication to a cell or tablet using Teensy4.0 or 4.1. I was wondering if a XBee or Pro with other adapters would do the trick or do I need it to connect to a router. This...
I know this is an old thread but it helped me also and I thank you to KirtE. I though got it working fine with a baud rate of 115200 just fine with no suck problems powering a robo cooler.
I connected my speaker to the audio board at the side of the jack. Negative wire soldered to the metal leg at the front corner of the jack and the positive wire goes in the first small hole right beside the metal leg. ...
30000 floats x 4 bytes/float / 0.5 sec = 240000 bytes/sec = 2.4Mbps
Teensy 4.x can go a lot faster than that. Based on a long thread I've seen on the forum, the issue is probably that your PC is not keeping up on the...
Out of curiosity I purchased a very similar rotary encoder from Amazon.
Hooked it up to a Teensy 3.2 with two 1k pullups from 3V3 to pins 5 & 6. The encoder itsself was powered from the 5V pin.
With this code,...
Hello forum,
I plan to realize a drum machine with Teensy 4.1.To display the BPM I want to use following micro dot LED matrix: https://connornishijima.github.io/Pixie/extras/datasheet.html
Similar to the tiny...
Do you have any tips on what I would need to modify to continue to use the mixer as shown below?
//////////////////////// Audio Setup ///////////////////////////
AudioPlaySdRaw raw4; //channel 4...
Virtually all I2S chips work, as we're using the most common I2S format. You just need to make sure the chip is configured for slave mode, where it expects Teensy to transmit all the clocks.
If you only need output,...
Most encoders are open-collector, so try changing
pinMode(ChannelA_LEFT, INPUT);
pinMode(ChannelB_LEFT, INPUT);
pinMode(ChannelA_RIGHT, INPUT);
pinMode(ChannelB_RIGHT, INPUT);
to
...
Thanks a lot, unfortunately has not solved the issue.
For anyone who has bright ideas, here is where I am at.
Audio output on the audio shield is outputting fine. Can plug ear buds or ear phones into and it plays...
This chip is not available ANYWHERE in the world in our searches anymore, 80+ weeks out. Do you think an alternate official i2s codec can be coded using this library? The TLV320 from Texas Instruments seems available...
You don't want sharp edges with a graphic equalizer normally, you want smooth transitions. The Q of the individual stages needs to match their geometric spacing. Sounds like you have one control per octave, and a Q of...
Hey,
I want to send data (array of 30000 floats) to PC. Now I have it via USB. I found some examples with Serial.write but it seems too slow.
What is important for me is to transfer data under 0.5 second.
Does anyone...
Sorry,
Sort of hard to see/know what is going on... Note I am software guy so probably disregard, but will throw a few darts in case one helps.
For example are you sure the software is running? In cases like...
Well it appears to be a variable low pass filter and a power amp output. The LM386 hasn't been made for years, doubt you'll find one that's not a fake, perhaps a small class-D chip would be a suitable replacement?
...
The fast I2S signals (especially MCLK) might not be reliable with long jumpers like this, especially with all that loop area - bundle them all together if you can to improve signal quality. A large loop is an antenna,...
Sounds familiar: I did something similar about 9-10 years ago, to talk to RPI, then BBBK, ODroid, UP...
The code in the library was never cleaned up, but simply different things I played with:
But some of the...
Hey Don,
I wrote some software many years ago that wraps around a Linux UART to give a HardwareSerial interface so that I could run the same code on both a Teensy and a BeagleBone Black. It's attached, below. It's...
Indications are it is running especially seeing this note again:
That makes it seem like 'adding GND' helps.
Since the VIN<>VUSB trace is cut the USB cable may or may not be connected even with external power.
...
KurtE,
Yes, I'm on Ubuntu 20.04, running on x86 PC. The C program is the interface for an SDR comms link (TX side). So I'm wanting to get sensor data from the Nicla via Teensy to the C code in real time.
I've been...
/**
* Audio Guestbook, Copyright (c) 2022 Playful Technology
*
* Tested using a Teensy 4.0 with Teensy Audio Shield, although should work
* with minor modifications on other similar hardware
*
* When...
What Teensy are you trying to use? What is the C program running on ? I am assuming some form of Linux from your TTYUSB0
But for example lets assume Teensy 4.1 (and most all others). It typically does not show up...
Sorry, I am not much of the Audio user, but I believe it is already supported.
At least it looks like the code is there.
The problem is I think that a lot of the documentation has not yet been updated.
Paul...
From one Rick to another Rik, thanks a lot. I cannot open the ino file without the other data, but if you select the code in the file and copy, paste the code here that would work. Thanks again for your help.
What's the easiest way to pull in sensor data from the Arduino/Teensy environment into a separate C program?
My application is that I'm reading real-time data from a Nicla Sense ME, and I want to pass that data over...
Hi, I'm working on an LED project with a Teensy 3.2 because right now the ADC for the Audio library doesn't work on the Teensy 4.0.
Given the shortage of Teensy 3.2s, I'm wondering if sometime soon I'll be able to...
Selection of communication medium is so dependent on one's application that there is effectively no "correct" way to respond to your question.
Armored optical fiber (what I call traditional high speed fiber) is...
I thought I would post an update on the IDE2/CLI issues with the Pluggable Serial Monitor support and the issue I ran into:
More ore the details are up in the IDE issues. ...
> Yes, when running T4 alone I got a result of #1 or #2 depending on the power source.
>I think so, it's not Teensy's fault. It's a source code issue I guess.
>I already cuted the USB to Vin. I would...
Meant to ask about: "And testing with only the T4 without the HM-10 connection will not make any difference."
- so the code fails even with just the T_4.0 and no HM-10 or other devices connected?
- doesn't seem to...
> When the result is #2(<80 mA), obviously seral 5 doesn't seem to work.
> I supplied separate 3.3v through the ams1117 to HM-10.
I also tried the 3.3v inside the T4. But the result is the same.
Even if the...
T_4 only stays in the hardware required boot speed 396 MHz for a short few ms (<20 expected) time and goes to build requested speed ( 600 MHz >> set_arm_clock(F_CPU); ) many ms before entering setup() at 300+ ms.
>...
I seem to have forgotten the purpose of this question. I want to get the "result 1" with T4 frome a 7.4v battery power source.
I don't know what kind of regulator to use to board.
How can I get result 1 with battery?
Can you check the output voltage of the smartphone charger with no load and then when it is connected to the T4? It may be producing more than 5V. Chargers aren't power supplies.
Pete
I met the BLE pairing problem on T4 with HM-10 to an Android APP.
If I input +5v to T4's vin and measure the power consumption, I get the following two results.
Result 1. Maintain more than 100mah continuously....
On Teensy 4.x, you can use MCP3208 via 24-byte transfers (or multiples thereof), with SPI clock at 1 MHz, giving you the state of all 8 MCP3208 analog inputs in 0.2 milliseconds (more specifically, 192 µs plus setup...
Hello,
Any new updates to this? I currently have followed all the steps listed but instead of using the breakout board im just using a breadboard. I am using the latest code provided but i still am getting that it...
I see a lot of talk about MIDI, but can't tell whether you're talking about serial MIDI (eg, 5 pin DIN connector) or USB MIDI device (typically used for transmitting) or USB MIDI host (typically used for receiving).
...
Yes some/most of that may have been mentioning about The teensy was plugged into one of these. But I mentioned it because maybe Paul had one around... Or maybe more information in the thread about the hub that might...
A further note on the BFSK data transmission, is that I used the BFSK_random.ino, referenced in the last #70 post, to generate byte error statistics. These are shown in this graph:
This is for 1200 bit/sec 8N1 and the...
If you go to the "Memory" description on the main T4.1 product page (<here>), you'll see that there are 4284 bytes of emulated EEPROM, which is accessed using the EEPROM Library (documented <here>).
Hope that helps ....
Hello, My project requires storing a decent amount of variables between resets as a sort of "settings" configuration. I saw the EEPROM library and know that usually, it would write to the rather limited (in terms of...
I looked through that thread and it’s talking about using the USB Hub to connect the Teensy to a PC. I’m trying to use mine standalone, not connected to PC. Sorry if I’m not understanding what’s being discussed in that...
Yes, it's reliable.
If a pulse rising edge occurs right at end of the gate interval, that pulse will be properly counted. It's unpredictable whether that last count will be in the just-ended interval or whether it...
New additions to the F32 Audio library support Binary Frequency Shift Keying (BFSK) which is used in many radio systems, going way back. The classes are radioBFSKmodulator_F32, RadioFMDiscriminator_F32 and UART_F32. ...
In init_priv you need to change Wire.begin() to Wire2.begin().
Also, remove Wire2.begin(0x27) from the setup function - it will be done by init_priv.
Pete
Hello,
I am trying to read analog signals form a arcade stick.
The joystick I use is the:
MAGENTA Programmable Analog to Digital Joystick
This Joystick uses a Magnet and probably Hallsensors to detect the values...
Attached modified .ino file by request.
I am new to posting so I hope I am doing this right.
I am not a programmer so the mods I made can for sure be done better.
I set the speaker and mic levels for my device.
I...
Hey Mark, sorry to re-open this, but I was wondering if you might be able to help me. I'm currently having issues with getting audio from the audio shield (outputs fine through the jack) across to a sparkfun breakout...
I think you can assume that you can reliably count edges of your 10 MHz external clock. If your TXCO is 10 MHz, and you set your match value in the range 1000 to 10000, you will get interrupts that are nominally 100 us...
Thank you el_supremo. The i2c_scanner I had only scans for SCL/SDA not SCL/SDA2.
My test uses:
Teensy 4.1, SCL2 at I0-24, SDA2 at IO-25.
No external pullup resistors. Also works with 2.2k pullups to 3.3V on...
yep. I looked at the FRAM earlier, but it is very small. I would have to do a lot of refactoring and slow my data rates down. I am spoiled with 64Mb of logging now. I used to used actual SD cards, but those are only...
thanks neutron7 I think I will implement this on my teensy 4.1 (I will buy nearly). Your example use ADC0 and ADC1 of teensy 4 that is only 10bit.
I need 12bit and I think I will use MCP3208 via SPI to get pots and...
I'm trying to use a Teensy 4.1 to relay CAN bus messages to my car's speedometer, while modifying certain specific messages for speedometer calibration.
I wanted to start off with a very simple setup of just plain...
I got it fixed up and working! Turns out it was just a bad solder point on the ground pin between the two boards, so it was only grounding the audio shield through the Line Out when I had it plugged in. Touched it with...