Hello everyone,
My name is marc and just registered on this forum.
I need some help for my DIY robot arm (see below).
I replaced my arduino DUE with a teensy 4.1,
as I need a lot of floating point calculations...
Thanks everyone. AudioInputI2SQuad definitely did it. I've got all 4 working at once. So I'm trying to recreate this project that was on a 3.1 with a 4.1.
https://ruralhacker.blogspot.com/p/micloc.html?m=1
I've...
One thing you might want to play around with is "switching off" modules you're not using. For example, the waveform objects tend to use near-zero CPU when they're set to an amplitude of 0.0. Other objects behave...
I2S microphones (eg. INMP441) are made for stereo. Connect L/R to gnd on one microphone and to 3.3V on the other. connext SD to the same data port IN1 (pin 8).
For more than 2 microphones, repeat L/R connection but use...
See this post for how to use just one data input for two microphones. Note it's pretty ancient, a lot of the "future" stuff Paul mentions is now implemented!
Thank you sir but I have another question. I define in the setup to use INPUT_PULLUP, do I still need to add an external pull-up resistor to pin6 and GND?
If you have the reed switch connected between pin 6 and GND, you also need a pullup resistor between pin 6 and 3V3 to keep pin 6 pullup up to a defined level when the reed switch is in the open position. The reed...
Ok interesting. Yeah I was wondering the same thing, if it had anything to do with that. I'll explore a bit more on that front and let you know how it goes.
On another note, which software were you using to send...
As can be seen at <this> page, both are fully supported, so it comes down to whichever is your personal preference. You can view full instructions for a proper install of the Arduino IDE plus the Teensyduino support at...
@BriComp, I reviewed that data sheet (whew!)
I think the only I2C commands I need to figure out are:
- how to set and read the unix time
- disable the CLKOUT
Diagram 7.2 looks like a coin cell method to maintain...
hi sir Paul, for the button or in my case, a reed switch sensor, i connected one side to Pin6 and the other side to the GND pin of Teensy4.1.
And while testing, i noticed that the pin6 sometimes detects pin changes....
Not sure if this is of help for you:
I can confirm that a setup with 24 output pins running on each pin 720 LEDs is working fine on a Teensy 4.1 receiving data over ethernet.
I remember vaguely when trying out...
Thanks for that. So, I did indeed switch to QNEthernet, but the problems persist. Is there any Ethernet specific configurations that I need to make to boost performance?
On the T41 is that combination possible? I know it's not currently one of the options but checking
Would save me a lot of code to transfer files from my audio device's SD
Hi there,
I'm currently experiencing some major lag on my LED setup. My current project specifications:
Teensy 4.1
Ethernet kit for Teensy 4.1 (https://www.pjrc.com/store/ethernet_kit.html)
OctoWS2811 LED...
When the signal generator is off you have a floating input I think - don't do that, just turn the signal generator amplitude down to zero.
Be careful with this setup, the Teensy pins will absolutely not tolerate...
Pin 6 should be fine to use with the Bounce library.
How did you connect the button and the pullup/pulldown resistor?
OUT1D is an alternative use of pin 6 when you are using 8-channel I2S signals.
Paul
I don't know what that error means. But I can say with certainty you do not need Teensy hardware connected to download or use the software. Of course, without hardware all you can do is compile programs.
Maybe...
Tried install Teensy 1.58.1 with broad manager on arduino ide 2.2.1
Failed with message
Error: 2 UNKNOWN: unexpected EOF
Do i need teensy board plugged in to install? I was trying out before buying. Thank you
Each input pin feeds two channels. You need to use AudioInputI2SQuad to take input from two pins/devices, then one microphone will probably be channel 0 and the other channel 2.
I've just had another look at the "3028" Application Manual.
An example circuit below can be used as a system on/off switch
That is without battery back-up, below is a circuit with Rechargeable back-up.
In this...
This is all great stuff!
For my current go-around, Im using the Teensy4.1 for all its worth (including rtc and push-button on-off) and Ive switched to a CR 2450 battery to extend the inevitable battery drain on...
Hi, I have a question. I'm using the bounce library connected to Pin6 of Teensy 4.1, but I noticed that sometimes it detects pin changes (going from on to off and vice versa).
The program I'm testing is the provided...
Hi everyone,
I’m trying to get a teensy 4.1 to be used as a datalogger in place of different, physically larger micro-controller. I’m testing it out, and it seems that the code side of things is ok (it’s recording...
The same way I mentioned in post #2.
WireIMXRT.cpp, only Micromod brings it out:
#if defined(ARDUINO_TEENSY_MICROMOD)
PROGMEM
constexpr TwoWire::I2C_Hardware_t TwoWire::i2c2_hardware = {
CCM_CCGR2,...
I believe the processor has a 4th bus, just not brought out on the Teensy breakout boards. I am connected to pins GPIO_B0_04 for SCL and GPIO_B0_05 for SDA on the processor and trying to figure out how I can modify the...
Is it possible to tell me which processor pins the Teensy 4.1 uses for I2C comms on Wire3, and where in the libraries this is located? I am thinking it should be easier to modify this (if needed) rather than modify the...
Yea, if you go for the samples it takes 2-3 weeks to arrive.
t least to the UK.
I am not sure where you are located, but I assume the correct side of the Atlantic judging by the time of day that you are posting.
Difficult to say without seeing the full sketch source code.
You have this as pointer declaration
LogEntry *entry;
And then use this later on
logEntry->second = t.tm_sec;
logEntry->minute =...
Amazon INMP441
Hello everyone,
I'm currently working on a project that involves using two I2S microphones with a Teensy 4.1. I've connected the microphones as follows:
SD (Serial Data) pins connected to pins...
I use RV-3028-C7 rtc's.
They have a very low operating current of 45nA with an accuracy of 1ppm.
They also have trickle charge capability so with a rechargeable cell you never need worry about battery replacement....
But This was too implement only the miliseconds, my goal is to print into my file (in the SD card) the full timestamp: year,day,hour,minutes,seconds and miliseconds. I can't understand why my work doesn't work when I...
Hi,
I'm unable to use the mux WCMCU-4051 with the teensyLC (tried with 2 different board).
Works perfectly with a Teensy 4.0 or 4.1.
What am I missing ?
Thank you for your help.
nah I could not find anything. here is my debug dump from teensy 4.1 for that midi device. If someone can tell me how I can get the names for the cables in my midi device, that would be great. Otherwise, at least I...
This worked for me, writing a 42 bits atomic millisecond resolution timestamp to a string as 32 bit seconds part plus 10 bits millisecond:
void GetTimeDateNowAsString3 (char *st)
{
// read rtc (64bit, number of...
Attached library does Serial via DMA and lets you do RS485 with direction control.
Transmission is a bit more packet oriented. You first populate a buffer, then call trigger_tx () to start the actual...
The built in HardwareSerial code doesn't use this hardware feature, because control of the pin is based only on the hardware FIFO without any awareness of the transmit buffer implemented by the HardwareSerial.cpp.
It could be Midi Out and Midi In Jack descriptors. jack and cable might be completely different things but I'll check, I'll probe USBHost_t36 so see if I can get these names
Thanks Paul! Here is a follow up question, feel free to reply with "Read the specs!" if it's there.
I'm guessing when a midi device is connected to host it somehow broadcasts the cables it uses and the names for...
I put micropython on my Teensy 4.1 board (latest from a couple of weeks ago). Using Thonny I notice that the filesystem of the Teensy board starts at /flash. That is I can only download files and create directories from...
Hi All,
Is there any way to use Hardware Managed TxEnable on a Teensy 4.0? With the transmitterEnable(pin) lib function, I have a timing issue at a baud rate of 1Mbaud.
Look in the USB MIDI 1.0 specification.
https://www.midi.org/specifications-old/item/usb-midi-1-0-specification
When you have download the PDF file, look at Figure 8 on page 16.
Hi Davidelvig,
I am in a similar boat, moving designs from Teensy 3.5 to Teensy 4.1.
I've tested 3 x Teensy 4.1 boards (1 abused and 2 fresh out the packet), and 2 x Teensy 3.5 (1 abused and 1 fresh out the...
Omg setting cable to 1 or 2 when sending worked, I guess each of those devices my Mac shows correspond to a cable in Teensy world, but how do I get names for them?
Hey there, I'm a software developer (javascript) but new to electronics programming, I recently started working with Teensy 4.1. I'm trying to create a MIDI router (route messages from A to B with filters). I managed to...
Great work @MrCanvas. Used similar knobs on my late 70's Synth, a mess of stripboard and clip leads. One controlled Osc Mix level to VCF Fc, and the other controlled VCF Out level VCF Fc.
Probably easy to implement...
In answer to the question of "another module to drive the audio process", <this> very recent post by Paul Stoffregen may be of interest to you.
Hope that helps . . .
Mark J Culross
KD5RXT
Thanks in advance for reading, hopefully a clear picture.
Convalescing 100 miles from workshop using the opportunity to dive in and play with the Audio library running various examples on a T3.6 , Pin 2 has a button....
Hi all,
I am building multiple custom usb hid controllers for a Unity experience and we will need each controller to have a unique product name. This ensures we can force Unity to make each controller's mappings...
I updated the PCB and ordered a new batch, my understanding is that there isn't much to do.
The other pins haven't cause any issue by following the guideline linked on the bootloader page . If I run into any other...
It is true:
I ran two tests again. Once with the ADC library and once without it.
The ADC library omits some values.
Without the library all values come through.
Who is responsible for this library, is there a...
Thank you very much. This week I will try to connect one SDI-12 sensor and test if I can read some output and reply to this thread again for the output.
Probably needs someone who have the devices to actually try them out.
It looks like it is not using Serial objects, but is bit banging it. Which might work...
I was doing some quick test to see if T4.x could go...
So,to be sure i updated to 1.59 beta3,but still no sound with sd card
So,to make it simple, i take a sample player with teensy 4.1 and simplify the sketch,
The teensy 4.1 is also connected to a PCM5102A DAC.
Only the...
I don't know if you can see this but these are the four files I'd modify. I'm so sorry I'm just a novice programmer so I don't know if I am doing it correctly.
I'd try to modify the EnviroDIY library, But I don't know if that is as simple as that.
I don't know how to upload a zip file here of the library, but I just modified it to include Teensy4.1 board...
I took a quick look through it, and it looks like it would take a bit of work to add T4.x support to it in the same manner as the current code.
But wondering if a lot of that can be simplified... In particular, it...
Hi sir Kurt, the library you mentioned is the one I use for my Arduino project. Now I am porting my program to Teensy4.1, but I can't make that library work because the Teensy board is still unsupported. I guess I'll...
Hi KurtE
Thanks for your reply.
I want to show you the following example. The data on the left side are from the CAN. The right side is the ASCII value:
28 31 37 30 32 37 30 59 ...
As you mentioned, this library has not been updated to run on Teensy 4.x boards. As far as I can tell he is no longer active with this stuff.
That is, I don't think he has logged into this forum for maybe two and a...
Note I typically avoid strings, but I believe you can do things like:
char string_buffer = "abcdefg";
String my_string = String(string_buffer);
But hard to say what you should do as don't really have any details...
Please check which version of Teensyduino you're using. In Arduino 2.x, look in the Boards Manager (search for "teensy"). In Arduino 1.8.x, click Help > About. If you have older than 1.58, please update.
Older...
hi, I'm trying to connect some SDi-12 sensors to teensy4.1 board and I found this library https://github.com/duff2013/SDI12_T3
The problem is when compiling the example program provided, I got this error code ...
Hi I am trying to implement a data logging system with a timestamp. I am already saving successfuly the data in our SD card and I am using a teensy 4.1 microcontroller. But, when I tried to implement the timestamp,...