Thanks a lot for your support.
I try all your right advise but nothing changed.
Maybe i find problem: in the arduino ide, "Tools > USB Type" i enable the option "Triple" an i used SerialUSB1 instead of Serial and now...
Hi MLU,
Thanks for the quick response, and thanks for confirming!
Now I have stopped looking for the reasons in the underlying libraries, and focused on my own code again (lol) I spotted that time servers (NTP)...
@Frank B - @KurtE
Yea - wireshark is pretty neat. A lot of stuff I don't know how to use but it does help.
Anyway found I had USBview on my Win10 machine and decided to give it a try on the SDR dongle. Here is the...
Wishes for a new Teensy with i.mx rt1170:
- DIP-64 format, this gives extra pins and more space on the PCB
- USB C connector
- Ethernet (100Mb) and USB Host on standard pins (like on the first Mbed boards)
- The...
I have 4x5 Matrix keypad and teensy 4.1.
When i have connected teensy 4.1 pin connected to row 6, 5, 4, 3, 2 and column 10, 9, 8, 7 all of my keypad is working properly. But when i change the pin and wiring connection...
Is there any chance these chips might have been pre-programmed with someone else's firmware?
Even if they're not blank, even if security is locked, the bootloader should still manage to erase and use the chip. The...
I am an enthusiastic newcomer to the complexities of modern 32-bit microcontroller technology. What better way to understand this new world than try and follow Paul Stoffregen's Teensy 4.0 Bare-metal Example code. Thank...
Time libraries are supposed to be able to handle times before 1970, so the times can be represented as negative numbers.
If you are sure that your use of time is after 1970 you can convert/copy/typecast time values...
That's even more mysterious! A virgin MK20 chip is supposed to be pulsing its reset line low, as it will be repeatedly watchdog rebooting. Normally a DC voltmeter will read about 0.2 to 0.3 volts, because it goes high...
I'm very certain it's not a soldering issue. I have multiple boards and several virgin chips.
I took the bootloader out of the board, and I'm still getting 3.2 volts on the RESET line. The MCU is not happy and I...
Well, that's quite a mystery. Every Teensy 3.2 is built with a virgin MK20 chip and works fine.
Is there any chance this might have been just a soldering issue with 1 chip? Do you have more than 1 board doing this...
That file exists because I've been planning to add this to Teensy's core library for a very long time. But the FS.h in 1.53's teensy3 folder isn't functional. It's more of a placeholder or experiment than actual...
The distance (9*160mm with connectors) is quite high.
Yes, using lower resitance pullups is a good idea. You could go even lower - mabe 1k?
If that still does not work, I'd try a lower I2C speed.
Hi,
First of all thanks to everyone for such a great platform - I have only been working on it for a few months but its great fun and so flexible and easy to use!
I guess this is a simple (probably a NOOB)...
Went for a MMod RP2040 with stuff in my SFun cart since I'll have to get carrier boards to see the Teensy4.MMod.
There was a note once about making an rPi breakout for Teensy to work with Pi Hats?
There is this...
Dear Group, after so many tests, I replaced this new screen with similar one, apparently the first MSP2807 has intermittent damage. By replacing it, everything was working without errors. Thanks anyway for the support.
Sparkfun now has a MicroMod version of the Pico: https://www.sparkfun.com/products/17720. Looks like the MicroMod form factor is getting traction. Looking forward to the first MM T4 :-) (I already prepared the first...
OK, the penny has finally dropped! This clears up the mystery for me. I understood what you put in your original post but it didn't fully register. I certainly don't need microsecond timing for this, I just thought...
Per default the TimerTool runs the GPT and PIT timers at 24MHz. You can easily switch them to 150MHz in the config file. Configuration is described here https://github.com/luni64/TeensyTimerTool/wiki/Configuration.
...
So the 10 i2c devices are all Teensys? Are they on multiple i2c busses? They have unique addresses for their bus?
Typical pullup values noted for the 3.3V Teensy is 2.2K?
What does i2c SCANNER example show from...
1. We use a magnetic encoder, its purpose was to read the angle between different vertebrae.
2. Yes it I2C , and Im wrong the master and slaves are all teesny3.2.
3.The master has 2 external pullups, each 4.7K Ohm one...
Not sure what sketch is Teensy main? But suspect it is possibly entering setup() and passing those first Serial.println("SETUP"); before the computer completes the connect to the Teensy?
Starting setup() like this...
Hello,
So here is what I'm doing. I have six printer carriages that each have an encoder strip, quadrature encoder and DC motor. For each of these, I have an arduino uno serving as a position decoder and motor...
My custom T3.2 device is unable to boot / get programmed using a virgin MK20DX256VLH. If I swap out the MK20 for a preprogramed one, then there are no issues. The device boots perfectly fine, and the program button...
Looking back, I did provide my version of Teensyduino lol Look -->> Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"
The Arduino IDE spits out Teensyduino version when...
Good the signal pins were found.
The digitalPinToInterrupt() isn't needed on Teensy, but yes, it needs to see every CHANGE not just RISING.
Better probably would be using the encoder library as linked in p#2:...
I FIGURED IT OUT! :-)
The problem was in these lines:
attachInterrupt(0,PinA,RISING); // set an interrupt on PinA, looking for a rising edge signal and executing the "PinA" Interrupt Service Routine (below)
...
It was probably getting out of step because some interrupts were dropped as they came in while the previous one
was still being handled, like I said. You don't get indefinite length queues for interrupts, and each...
Thanks everyone for the replies. I’m somewhat familiar with counting clock pulses, comparing the count to a known threshold. But, I’m much more comfortable with timed interrupts, and getting other work done either...
The first thing to do is check the pinout of the encoder by buzzing it out with a multimeter or
continuity tester. You need to start by being certain which pin is which and connect to A, B, gnd.
Randomly guessing and...
Trevor:
Yes, what you describe (4 addr pins common to all five MUXs & 1 I/O pin per each mux for a total of 9 pins) is the most straightforward way to connect your MUXs. I think you will find that reading all of...
If you see this...am I correct in planning to use 4 pins in common to all 5 MUX, and one analog pin each, for a total of 9 pins used (5 analog and 4 digital)? Crazy how many pins I ended up using...
Also note that the Arduino timelib has no concept of timezone so you need to make allowances in your code. As a rule I ALWAYS set the RTC to UTC time and apply the appropriate adjustment for timezone when getting /...
Here is a simple piece of code to set the RTC to 05:30:00 on 05 Mar 2021. Provided the RTC battery is connected, that time will be maintained even while the teensy is not powered.
tmElements_t tmElements;
//...
This PJRC page might help? : pjrc.com/teensy/td_libs_Encoder.html
Amazon page doesn't show the pins by function among the 5 - hopefully it is marked or you found notes?
Thanks for all the responses. Some useful pointers but maybe I should clarify a couple of things. First the title of my post might be misleading, it obviously isn't a performance issue but perhaps an implementation...
Hi,
I'm currently using these boards for a project, and I'm running into an issue where I hear the audio output when the board boots up via programming; however, when I unplug and replug power to the teensy it fails...
Hello all!
I am trying to use one of these "Anmbest" brand rotary encoders: https://www.amazon.com/gp/product/B07MW7D4FD/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
...with the tutorial from:...
I used output compares back in the early 90's on old Motorola (NXP used to be Freescale and before that, Motorola) HC11s, creating one shot and PWM outputs, but they can be configured for pretty much any pulse output...
@mjs513, that is sort of what I figured.
@all - Keep wondering about how SLOW the getting free space is
I can imagine that it could probably be sped up a lot, but not sure how doable it is without major surgery...
Looks like they are clamping VCCIO to ground until VM is present. Could be nasty to some power supplies. I like my p-fet switch much better. Especially considering I'm also turning on the VS motor supply via an IO line...
Awesome. My total needs are something like 15 analog knobs, 71 switches and 3 LEDs and I am not yet sure how that will all work.
I don't really know if there are any performance advantages to leaving some analog...
I have spent the day working on this and think I am close to incorporating the second microphone, but I am getting a bunch of errors for "redefining" pretty much everything. I believe its because all of the Audio Design...
When we work on TFT's that do not have a dedicated graphics processor, we must "mask actions so that they appear immediate" on the screen. We can achieve this by duplicating screens, whose difference is subtle between...
@trevorbryden (Trevor):
Yes, for your 21 inputs, 2 x 74HC4067s would cover your need, leaving some additional expansion if/as needed. You'll need to assign 4 pins for the addressing (common to both MUXs) & 1...
Yes, this is normal designed behavior of the Program Button.
That Button as Program Button - the bootloader chip halts the Teensy and prepares it for programming whenever it has power.
To wake using snooze library...
Hi,
I'm currently building a remote controll using a Teensy 3.2 and a xbee.
The remote is battery powered so in order to extend battery life I'm putting the Teensy into hibernation using the snooze library.
The...
Yes So far I have only put in code for formatting of LittleFS stuff, have not dealt yet with FAT file systems... So far no API or methods that I know of for it, only the sketches in the SDFat library.
Maybe sometime...
MicroMod Teensy <--> Teensy MicroMod
So, these are two different versions.
I have a Micromod board... didn't bother unboxing.. :) It's for the MicoMod Teensy 3.2 Luni board I didn't solder...
John: Go and find...
The datasheet at least draws the schematic the right way round(!) And it has a PCB layout which you would
do well to follow verbatim.
Maybe add schottky protection diodes on the audio lines. Stops someone blowing...
The board I linked to also has 2 voltage regulators on board. I assume to generate a 3V3 analog and a 3V3 digital power supply.
If you want an easier-to-use board, go for this one. Check out the wiring here.
To be...
Hi
I'm doing my first Teensy project in VSC.
I have tested the 1-Wire Protocol lib together with the Dallas temperature lib, and it works stand-alone.
Combining it with other time-sensitive real-time stuff...
Sometimes I find users call flush/sync since they do not properly close a file. close() just calls sync() then marks the file closed.
bool ExFatFile::close() {
bool rtn = sync();
m_attributes = FILE_ATTR_CLOSED;...
Its indeed the same schematic as in the datashhet.
Note the datasheet says, for lower frequencies (as we have) you can omit the output filters.. (but hey, it's just a resistor+cap) - adding them allows you to play with...
Yeah I read in other forums that calling flush() that often would slow down my code, I just couldn't find a way around it. Thanks for providing that solution, I'll be sure to check it out! Do I just copy the set up code...
Here is a schematic:
taken from here:
https://electronics.stackexchange.com/questions/419171/pcm5102a-analog-output-level-not-what-i-expected.
I'd just use the breakout and solder it to yours...
Edit: Here is...
OK, great! Thanks for weighing in, Paul.
I guess I'm just confused on what's going on with a breakout board like the one that PaulS linked. (The other PaulS.). If I can connect the PCM1502A with just I2S and three...
Thank you! I couldn't figure out what I was doing wrong. I bricked 4 teensy 3.2 this way and only 1 of them came back when I bridged the cut with solder. On that one, the solder must have wicked down to layer 3. Time...
The good news is chips like PCM1502A are really simple. To interface with Teensy, you just connect the I2S data and 3 clock signals. Some chips use different names so you need to figure out which is which. But on...
You need AudioMemory() in setup(). See any of the examples in File > Examples > Audio.
To get a ADSR or AD style control signal, you would feed the DC output through an envelope effect. For only attack-decay...
Hey folks, check out the picture upper top right in this link: https://www.digikey.com/en/maker/blogs/2020/sparkfuns-open-source-micromod-ecosystem-accelerates-prototyping (screenshot Attached). We need software like in...
Hi, since there is no envelope to control waveform frequency modulation or filter frequency modulation I tried to use the "DC" output.
When I press the MIDI keys I want the Serial monitor to show values going up to...
I think it would be useful to see if you can leverage use of the SPI hardware built in to the Teensy. Looking at wikipedia, it seems that FM encoding could be done by encoding two bits for each bit and run the clock at...
Thanks! So for 21 analog inputs (just beyond the 4.1 availability, esp with audio shield) you'd recommend one or two of those 74HC4067s as the easiest path forward. Thanks!
Can i maybe include your calliope as an SD...
Thanks BriComp. I hadn't actually thought about this as a logic level issue, but that could also work. I know a MOSFET or even an npn transistor will work, I was just looking for something more creative. I just tested a...