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...
If you are using teensy 4 you should be able to get low latency between ADC and MIDI send by using the ADC library in an ISR, you can set it up to read 1 pin per ISR with a counter that points to an array with the pin...
As @mjs513 notes the FRAM interface isn't as best case fast using standard SPI, though net throughput numbers not at hand just now.
And looking at the supported device table seems 1MB is the largest listed?:...
Thanks Nominal and members of this forum to answer to my questions.
My pots or fader have no jitter because I filter the analog signal with RC for each (1kohm + 100nf).
I tested a lot with 3 pots and 1 fader and I...
Many thanks for this answer : indeed, the latency of the triggering is not the main goal in my case.
The most important is that I must be sure that I don't miss any of the pulses of my TXCO of 10MHz and I don't know if...
Maybe the function "delay()" does not really sleeps but burns 100% processing power? That would explain why the execution time doubles when "doNothing()" is running.
Hi everyone,
I have a Teensy 4.1 on which I want to use TeensyThreads.
I found out that if a thread is active, even when it is doing nothing it slows down the rest of the system dramatically.
void doNothing(){
...
I don't see how the MCP4822 could interfere. Looks like your program only creates an instance but never actually uses it. I'm not familiar with this MCP48xx library, but if you give a link to its source code, maybe a...
The level of timing precision you're talking about is probably in the realm of custom digital logic like a FPGA or CPLD rather than using a microcontroller. But it does depend on what is meant by "trigger events".
...
Hello. For my current project I have a teensy 4 that needs to communicate with Arduino Nano via Serial1.
So i connected both modules and stream the data from Arduino to Teensy with success. . Unfortunately, when trying...
It is interesting that @defragster brought up using FRAM instead of FLASH. Right now you can't use a FRAM chip with QSPI as far as I remember only SPI. It is probably a bit slower but you can still use LFS with it. ...
First to answer your question:
No conflicts are known between digitalWrite() and Encoder. I can't answer regarding "EncoerButton" library, as I don't even know exactly which library that is. (but I do know...
Sounds like progress and you are having a lot of fun. Going to interesting when you get it completely integrated - then the fun begins to see about using it with MTP :)
Nice work on lext4 by the way. Didn't envy...
The board is designed by me based on Paul's schematic. You can see the layout, schematics and BOM on that github repository. I now have 11 MAX31855 running successfully on breadboards with an original T4.1. They will...
LFS stores a signature at the start. If that is missing then it will be created 'new'. So if upload format ( in the mandatory minimum area ) where code storage is not needed is used for LFS then losing those first bytes...
Yes, I noticed this as well with the cli version. It was not always like this as far as I recall.
Thanks for the information! I'm very much a beginner so this is new to me, appreciate it. But I have some...
In order to commit data on LFS it must finalize a write once block - then that block has to be reformatted. Any updates are done to a freshly formatted block.
Doing that 50 to 100 times per second the update to...
I do not know what LFS is doing under the covers with the directory structure when files are opened and appended, but my use case is pretty simple. I am opening, writing (appending) 150 bytes, and then closing a file...
As far as p#23 - doing the formatUnused process 'at some non time critical point' will prevent the format on use slowdown as the dirty blocks have to be used again.
Also if files are migrated off and deleted, that...
If I understand what you are hitting ...
LFS on FLASH does have drawbacks. Each committed update has to make an updated DIR entry - which leaves behind a dirty set of flash blocks from the prior DIR info.
So limiting...
@KurtE @mjs513 @Paul - Here is an update on the progress with integrating lwext and FS. I finally have the ground work done on mounting USB and SD drives. That includes partitions on USB drives. The hardest part was...
@defragster you can disregard the previous post. I got the LFS formatUnused to work. To work it has to be invoked after you start writing to flash. It does improve performance, but it is too (time) expensive for my...
@defragster how would you implement this in practice? I've reverted back to TD1.55, since the LittleFS performance is better than 1.56, but this switch in performance after writing about 2Mb to my QSPI flash is really...
You could try the font editor from this post: https://forum.pjrc.com/threads/54345-ILI9341_t3-font-editor?highlight=ili9341+fonts
To use it looks like you have to download the ttf files for BankGothic and copy them...
Even without DMA, a simple loop that reads a potentiometer and if its value has changed sends a suitable MIDI message to the USB host computer, takes much, much less than a millisecond per loop iteration on Teensy 4.x....
In case anybody is interested, here's some further info.
We are talking about devices using the USB Human Interface Device specification; the current being Device Class Definition for Human Interface Devices 1.11...
stefanodi, just to make it visible for those without your hardware, I built an AM generator only and used a Queue to output the final waveform to the Serial Plotter. As it sits, it runs 50% modulation. Oh, and I also...
You should double-check your wiring . . . it sounds like there's an incorrect connection somewhere. Also, where/how are you trying to measure the audio output with your o-scope ?? If you connect only the center pin of...
This is what I get now. Where it says handset lifted is when I pressed the hook switch. It never reads it as down, only as lifting it.
Button (pin 0) Release
Button (pin 1) Release
Handset lifted
Handset lifted...
Yeah debugging and troubleshooting, my all time favorite past time ;)
Breadcrumbs, sounds interesting, I'll look into it when it's a bit more documented, ok?
But here's an update.
Disclaimer: I'm just guessing...
This Wisamic encoder page] has NPN outputs so you need pullup resistors connected to both output pins.
Here is diagram of a similar OMRON encoder:
Those pullups can be connected to 3V3 and than the output signals...
By design with the new boot loader:
Some details are up on the page: https://www.pjrc.com/teensy/td_code_security.html in the section: Minimum Erase Size.
One hack you can do is to make your LittleFS FS be...
I'm sorry, I added the carrier onto the 15 kHz and not the modulating voltage. Correcting that:#include <Audio.h>
AudioSynthWaveformDc dc1; //xy=80,871
AudioInputI2S i2s2; ...
on the link that @nominal-animal shared there's some reference to change the interval - I changed mine to 2 : ( usb_desc.h at hardware\teensy\avr\cores\teensy4 )
#define JOYSTICK_INTERVAL 2
And apparently is...
I'm using the last eeprom version and it still hangs:
pi@raspberrypi:~ $ sudo rpi-eeprom-update
BOOTLOADER: up to date
CURRENT: Tue 26 Apr 2022 10:24:28 AM UTC (1650968668)
LATEST: Tue 26 Apr 2022 10:24:28 AM...
Thanks for the input:) I have not used the USBTimerDriver before but since it is available that would be a better option. When I get some time I will play with it. Still buried in Teensyext4 which is coming along...
I am porting a logging application from Teensy 3.5 to Teensy 4.1, and I have a question concering the implementation of the Serial class in the Teensy core in 4.1 that affects the behavior of my app.
The...
My concern was the opposite, that I wanted to keep the flash filesystem, but it was erased all the time. One thing I learned, that at certain time in the past, teensyduino would install a new bootloader to the board,...
I am experiencing similar issues with the flash memory seemingly not being fully erased. For some context, I am using Paul's littlefs wrapper to create a particular file in littlefs system if it does not exist on each...
Hi @wwatson - maybe at some point we should merge some of that functionality into USBHost_t36 library.
It would probably not use an IntervalTimer, but instead would probably use USBTimerDriver builtin to the USBHost...
I m not very clear excuse me for this.
My goal is to reduce the latency between the values are available from ADC until sending the midi message. All step between can be improved I think.
I know the delay to...
The answer to that question is it is Teensy Model dependent.
Teensy 4.0, 4.1, Micromod and Teensy 3.6 are not 5v tolerant so you would need a level shifter. For level shifters there are several options I typically...
Hi Bob,
I did some filtering listen to the results....
https://mega.nz/file/KnA1FaLa#-1FnML0Iw-2Uv3pg1dJ-Pyfsx5Lw2G6Nn2pMCvIQDjI
Thanks for your suggestion!
Best,
Johan
Hey Moo, one strange thing I found after posting this was that if I use playRaw instead of playWav, everything seems to work even though the files I'm loading are not raw files, they are wav files. I initially updated...
Did you have any joy tweaking this? I had everything working great. Was waiting on an audio breakout board to wire everything 'properly' and when I turned it on today having not touched it for 2 weeks the hook switch...
Thanks again Bob for your availability.
I tried the code and the Amplitude Modulation and it works. :)
However, it functions as a controlled carrier.
Only in the presence of an incoming audio signal, it generates...
@illera88 - A few years ago I created a small library to do repeating key strokes. See attached zip below. It uses elapsedMillis and IntervalTimer to create the repeat rate and delay before starting to repeat a...
Hi,
I bought this encoder https://www.amazon.fr/gp/product/B015GYY7XU.
The required Voltage is 5v. My question is Can I power with a 5v and directly connect A and B output to 5v tolerant pin ?
If not what can I...
I've noticed that the IC on the audio board becomes really Hot, I assume this is related to the fact that the board/IC is just non functioning correctly
If you're looking to optimize something, you need to be able measure it. Measuring MID latency is not trivial. Do you have a way to measure it?
Also, you need to decide what you mean by "latency". For example, you...