There are many different ways to set this up.
One thing to note is what speed is the battery charged at. A lot of the lipo chargers are made for smaller batteries, and if you use a large lipo battery, it will take longer to recharge. On the...
One low tech solution is to just use the micro SD card in the Teensy 4.1 (or solder in a micro SD card reader in the Teensy 4.0), and put a small micro SD card in the Teensy. When you want to transfer data, take out the micro SD card and put it...
Generally, you want to limit the time to a few seconds. That way if you have the Teensy hooked up to the computer, you won't miss the first line or so immediately the Teensy starts, but you won't wait forever. For example:
while (!Serial &&...
Whoops, evidently I didn't click control-C on the link. Here is the link:
https://www.taydaelectronics.com/5-pin-2-54-mm-single-row-female-pin-header.html
If you have other headers, I find it easier to have a header that is exactly 5 pins so...
I've used these right angle headers and it fits nicely over the micro SD card reader:
https://www.taydaelectronics.com/5-pin-2-54-mm-single-row-ringht-angle-female-pin-header.html
That being said, I'm sure I've used the normal 5 pin header...
Note, you might need 2 pull-up resistors, 1 between SDA and 3.3v and 1 between SCL and 3.3v (the resistors are in parallel with the data pins). Typically 2.2k resistors are used for 3.3v. Typically these days I2C devices have pull-up resistors...
You don't need the shields, you just have to connect the appropriate pins.
For example, I use this code with an I2S board I bought on Amazon:
Max98357A mono I2S chip...
Another factor to consider is some of the WS2812 (neopixel in Adafruit speak) LEDs can work fine if the data pin is 3.3v but the power pin is 5v. Some cannot do this and you need to use a level shifter to convert the data pin to 5v (you need to...
Minor background comments:
CS Pins: Most libraries do not do anything special with the CS pin. That is they typically use something like digitalWrite to set and clear the state. However, there are some libraries, like some of our display...
Note the pinout for I2S is different between Teensy 3.x and Teensy 4.x. If you use the Teensy audio adapter, you need to get the version D or D2 board instead of A-C for the Teensy 4.0/4.1. Note, there are 2 I2S streams on the Teensy 4.x.
I recently bought some 14 and 24 pin headers from Chinese suppliers on ebay, They are enroute right now, so I haven't seen them yet:
2xn headers (n is 2..25 plus 30 and 40)
1xn headers (n is 2..25 + 40)
For Teensy 4.0 stacking headers as well...
Yes that is mostly correct. You cannot use pins A4 and A5 since those are I2C pins and the audio shield uses I2C to set up the parameters.
The pins are:
A0
A1 -- note this is brought out on the shield, and there are some capacitors to improve...
I wrote this up a few years ago to talk about compatibility between the Teensies:
https://github.com/TeensyUser/doc/wiki/Teensy-Compatibility
In general, you need to look at what the Teensy 3.2 is doing in more detail.
This is my first Teensy project (and also my first proper Arduino project), so let's just start by saying I had absolutely no idea what I was doing. There were some learning curves along the way, some of them were steeper than others, but I got...
The one issue that I can think of is many power banks will turn off if the power used is below some threshold. In the Teensy 3.1/3.2 era, I recall Paul had published a circuit that would draw just enough extra power to keep the power bank happy...
The following are defined for each different Teensy:
Teensy define
Machine Define
Teensy
ARDUINO_TEENSY30
__MK20DX128__
Teensy 3.0
ARDUINO_TEENSY32
__MK20DX256__
Teensy 3.1 or Teensy 3.2
ARDUINO_TEENSY35
__MK64FX512__
Teensy 3.5...
I discovered with ST7789 OLED displays, I needed to use a 11Mhz SPI bus to prevent the display from being corrupted on some displays. I found of the displays I had, the Adafruit displays needed 11-12Mhz, while the Newhaven displays could run...
MTP is able to access the SD card in the audio adapter as well as the built-in SD card. Due to having 4 bits for data transfer, the built-in SD card is slightly faster, but MTP can access any file system object. Within the LittleFS code, there...
Looking at the pinout sheet, the Serial2 pins are used as OUT1A and IN1 for I2S audio. Even if you don't use Audio directly, maybe something in the libraries initializes the IN/OUT pins to be used for audio instead of serial devices.
One...
Generally if you are going to be using USB host for things like USB sticks a Teensy 4.1 will be easier to deal with because it has 5 standard 2.54mm holes on the inside that you can solder a USB A cable to attach devices. With the Teensy 4.0...
While RS-232 has higher voltage, on the Teensy 4.0/4.1/micromod (and on the legacy Teensy 3.0,3.6, and LC), the voltage on the TX and RX pins must be 3.3 volts. If you use higher voltage, you risk burning out the Teensy. Only on the legacy...
It works! Thanks for the help.
For anyone else with the same problem as I had. Just add this:
time_t getTeensy3Time()
{
return Teensy3Clock.get();
}
In setup or your custom init function place this:
setSyncProvider(getTeensy3Time);
Ignore...
Did you call 'setSyncProvider' to tell the time library to use the real time clock. Here is the setup code from TimeTeensy3.ino:
#include <TimeLib.h>
void setup() {
// set the Time library to use Teensy 3.0's RTC to keep time...
Though as the ad notes, that particular case will not hold 18650's with the button top. The button top prevents the battery from being over-charged or depleted. If you are using 18650's in a larger enclosure that provides the protection, you...
IIRC, since those chargers charge at 1A, I think you want a battery with at least 1,000mAh of capacity (but it would be helpful to find a FAQ that goes in the details). When I'm making costume props, often times an issue is will the battery fit...
I didn't notice it was a NIMH battery, the various chargers I mentioned only work for lipo batteries.
You need some sort of charger for the battery that works with NIMH batteries. If you don't have a charger laying about you would need to buy...
The default usb connection is set up as a serial connection. Maybe it works with 8-bit binary data, maybe it doesn't (for example it might convert \n into \r\n strings). There are ways to get additional USB devices on the Teensy side, but I was...
I would suspect PaulS meant having the Teensy in USB client mode (i.e. the PI is the host). When the Teensy is a USB client, and the PI is the host, you would just write to the USB serial port with normal text print statements and use...
Well the simplest is just to use USB where the Teensy is a client and the PI is the host. If the PI can power the Teensy, then all you need is a simple USB cable. You would send data via writing text to the serial connection.
Alternatively if...
There are I2C multiplexers. You hook each device up to separate logical I2C busses. When you want to talk to a particular device, you send an I2C message to the multiplexer for which bus to connect to. You do have to be careful if the library...
If you want something that is made to be soldered to a Teensy consider this. You will have to cut the solder connection underneath the Teensy that connects VIN and VUSB...