A quick question on Teensy code functionality concerning when the buttons are tested for a rising or falling edge.
If the user lifts the handset then the function buttonRecord.update(); that's at the top of the loop...
Hello all... (please !!)
here is the problem that I meet all of a sudden on my two W10 PC simultaneously !
"Could not run teensy_reboot.exe (CreateProcess error)"
it therefore only concerns my teensy cards...
The Teensy 4 PWM can generate a square-wave (without CPU intervention). The PWM frequencies are discrete divisors of 150 mhz. so you can't get exactly 24mhz. Try this in setup()
analogWriteFrequency(23,24000000);
...
As I said earlier if you use write you are sending 4 BYTES of BINARY data. If you used print that binary data is converted into MANY MORE BYTES is ASCII text.
uint32_t num;
num = 1094795585; // = 0xAAAA
...
Yes, you are right, I want to send float values. If I use your code, I can see on my mobile just "971310a"
With this code I can see floats on my mobile but seem quite slow.
String data;
#define BUFFER_SIZE ...
Not sure what you are expecting with 100 String objects.
Note I typically never use String objects, but...
Try:
String data;
#define BUFFER_SIZE (100)
char buf;
int cch = 0;
I think your connections are correct, it is the tip and sleeve for audio playback.
I'm working on this today; have you increased the volume of the greeting playback - the level for the tones are set separately I...
Sorry I am not sure, exactly what is going on. So far you show code that you are rolling your own RS485 support, which should be fine.
But don't see any of the information, like your setup code, or what pins are used...
Hello,
I have a device that needs a square wave signal at 24MHz, for now I am using a 12MHz IC oscillator for my testing. But I would like to simplify by using one of the unused outputs of my Teensy 4.1. I've tried...
Hi!
I trying to migrate with my project from 3.5 to 4.1. I have RS485 transmitter, that is connected to Serial5 on T3.5 and to Serial8 on T4.1. So afrer tranfer a message i read answer from line. With T3.5 it works...
WOW Bricomp I honestly never knew Lora went that far and thought it was just another bluetooth type. 5.5 Klm is quite far as is the ZBee and Zbee pro at like 4000 ft.
The Lora dongle is by far the cheapest that I have...
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...