Several times I've considered making an ADC shield. Might still do it. Recently have been playing with a relatively cheap (~$4) single channel 16 bit ADC chip and a 8:1 mux, both controlled with FlexIO. Input setting time is a difficult...
Every Teensy comes with a pinout reference card that shows which pins. I'm guessing you already have that? Or you can see it on the Teensy 4.1 page and find a link to download the PDF.
If you're looking for more detailed documentation, this...
Hello tonton81,
I am using your great library, but I miss a function to read a specifc mailbox.
I'm using dedicated mailboxes, just receiving one single Can-Message/Identifier per Mailbox.
I want to read out that specific content of the...
When talking of what can versus can not be done, it's important to keep in mind whether the limit is the hardware capability or only the artificial limits imposed by the MPU.
If you configure the MPU differently, the hardware can indeed execute...
Micros returns a 32bit result. It overflows every 2^32 µs which is every 4.295E9 µs (=4295s = 71.6min). To prolong this you can store the value in the lower 32 bits of a 64bit variable. Then look periodically (at least once every 71min) if the...
I have developed 2 libraries for DMA Serial for Teensy 3.6 and Teensy 4.0 which are fully compatible with Arduino architecture and code style and easy to use. They are currently open-source and available to public at my Github page...
If you look at this Arduino Library for the L6DSOX you will see what @brtaylor and @PaulStoffregen is recommending. It illustrates the typical way of working with SPI devices:
pinMode(_csPin, OUTPUT);
digitalWriteFast(_csPin, HIGH); //Lib...
Let's start with the first serial port on pins 1&2, this is addressed as Serial1, so Serial1.begin(11520); works.
Likewise for the second serial port on pins 7&8, this is addressed as Serial2 and Serial2.begin(11520); works.
I am sure you get the...
Looks like the controller has a simple serial interface (set speed by sending a byte). So, instead of an EE solution you could think of using a Teensy (or a cheap controller like a XIAO) to read in the throttle value, calculate the required speed...
Micros returns a 32bit result. It overflows every 2^32 µs which is every 4.295E9 µs (=4295s = 71.6min). To prolong this you can store the value in the lower 32 bits of a 64bit variable. Then look periodically (at least once every 71min) if the...
Hello Micky,
You mentioned you picked up a Teensy 4.1 for this, so here is fine.
The C4 connects to the Teensy via the Teensy's USB host port, with this cable and as seen here : https://www.pjrc.com/store/cable_usb_host_t36.html
Grab that cable...
Since you recommend to move to Teensy 4.0 and 4.1 as a replacement, it would really be very good to develop a version of these controllers that provide a better ADC accuracy. There are numerous users that have problems with missing bits etc., as...
This may be the reason it won't start with that battery on?
That keeping the RTC part alive with 3V is good to help power on in some cases noted by PJRC. But that pin like others is 3.3V limited and having higher voltage may be blocking startup...
I have developed 2 libraries for DMA Serial for Teensy 3.6 and Teensy 4.0 which are fully compatible with Arduino architecture and code style and easy to use. They are currently open-source and available to public at my Github page...
If you just want to try Phazerville firmware on Teensy 4, all you need is a normal (not VOR) version of the Ornament and Crime boards... with Teensy 3.2 installed in a socket. (sadly, it seems many were built with Teensy 3.2 hard soldered). If...
I have a DC motor controller that requires a 0-5 VDC input to vary the PWM for a DC motor controller. I bought a motorcycle-style handgrip to control the controller. Unfortuntatly the handgrip is based on a 49E hall sensor and outputs 0.8 to 4.2...
I'm listening but this is part of the discussion above my pay grade. Because of the current draw, I re-implemented an older circuit of mine for Push On - Hold Off, and am now using a separate RTC as noted earlier in this thread. I'd like to use...
The processor manual has this temptation to try for wakeup on pin (state? change?):
11.4.1 SW_MUX_CTL_PAD_WAKEUP SW MUX Control Register
(IOMUXC_SNVS_SW_MUX_CTL_PAD_WAKEUP)
MUX_MODE : MUX Mode Select Field.
Select 1 of 2 iomux modes to be used...
Yep - just a thing to watch out for, and a solution. Rechargeable lithiums also go to 4V or so while charging, so that's something to regulate down for longest battery life. The big surprise is that the consumption goes UP when you turn the...
Hey! I was inspired by this thread to put together a project of my own, this time as an audio vectorscope for displaying oscilloscope art. I'm using a teensy 4.0 and a Riverdi RVT70HSBNWN00, the 7" EVE4 TFT display without touch screen. I am...
Wonder if you could set RTC alarm for say 15 seconds and have it check for a pin level change and if no change go back to sleep. User would have to switch something or hold a button for at most 15 seconds.
The short version is that loading/executing dynamic code without any sort of MMU available to remap memory is more trouble than it's worth. You've only got 1MB of RAM total to play with, already split into three separate regions (ITCM, DTCM and...
Hi ChrisR, I've just started experimenting with SNVS mode also. See my piping up on https://forum.pjrc.com/index.php?threads/beware-t4x-rtc-power-consumption.64216/ for more infoz. Note my mention there that a battery much over 3V will be...
More on getting the standby (xtal RTC only) current down, and a question (anybody listening to this thread? :)
Currently I'm using the same large 3.6V lithium (Tadrian TL-4902 non-rechargeable) battery, but with two silicon diode drops in series...
If you just want to try Phazerville firmware on Teensy 4, all you need is a normal (not VOR) version of the Ornament and Crime boards... with Teensy 3.2 installed in a socket. (sadly, it seems many were built with Teensy 3.2 hard soldered). If...
@tim:
You should be able to use the PITCHBEND & MODWHEEL pots exactly as wired. PITCHBEND usually has some mechanical mechanism to return it to center when not activated, so I'll assume that this is the case in my functional description below...
If you just want to try Phazerville firmware on Teensy 4, all you need is a normal (not VOR) version of the Ornament and Crime boards... with Teensy 3.2 installed in a socket. (sadly, it seems many were built with Teensy 3.2 hard soldered). If...
I posted a question to your GitHub but probably more appropriate here as it’s not an issue. I don’t see where pins are set for RX/TX and here are 8 potential RX/TX sets. What am I missing?
Also it seems that PlatformIO/VSCode doesn’t respond to...
Double check solder bridge on address select pads, the pic is unclear.
Try inserting 150R in SCL and SDA lines as close as possible to T4.1 SCL and SDA pins.
Are you using this board?
If so, connect the sensor board Vin pin to the Teensy 3V3 pin, as described here.
Luckily, the DO/MISO pin from the sensor board is not level-shifted to the sensor board Vin voltage, so your Teensy will be OK for now.
Paul
Follow up. Here is the output after a bootloader update. It does NOT report Connected until the bootloader update is fully complete, satisfying my requirements.
Connected
[History]
-> {empty}
-> usb:0/140000/0/5/3/4/2 hid#vid_16c0&pid_0486...
Follow up. Here is the output after a bootloader update. It does NOT report Connected until the bootloader update is fully complete, satisfying my requirements.
Connected
[History]
-> {empty}
-> usb:0/140000/0/5/3/4/2 hid#vid_16c0&pid_0486...
For anyone that may stumble upon this thread, I wrote a very quick and dirty C# proof of concept to verify the solution proposed by @h4yn0nnym0u5e and it works well. I am going to begin writing a proper implementation of this for production use...
Found it, thanks! On my Win 10 laptop they are in c:\Users\<me>\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\...
I installed the Arduino IDE for all users, but the teensy extensions got installed under my user profile...
Thank you! The MPU reconfiguration was also addressed by PaulStoffregen in an old post (for Teensy 3) and this seems possible in a similar way for Teensy 4.1.
After even digging longer in the subject, I found people in this forum trying to...
The location depends on your operation system. On MacOS and Windows it's a hidden folder (as viewed from Finder or Explorer).
On any OS, to see the full pathnames of all libraries Arduino used, click File > Preferences (may be Arduino >...
I just updated from Arduino IDE 1.8x to 2.2.1, To install the teensy tools you enter a .json URL. I cannot find the teensy libraries anywhere on my local drive, so I assume they are now stored in the cloud?
Indeed the timing is based on the original design from 2009 where Arduino just gets the files ready and causes the chip to go into bootloader mode, then Teensy Loader takes care of the rest. The only feedback mechanism was meant to be visual...
Thanks for the information. I am currently testing between monitoring Win32 window titles for Teensy "Programming" to appear, and I will also test @h4yn0nnym0u5e suggestion of continuing to monitor teensy_ports for a Teensy without the bootloader...