Questions tagged [teensy]

Teensy is a cheap and powerful development board with some Arduino compatibility.

Teensy is a cheap and powerful development board with some Arduino compatibility. Through its teensyduino compability module, it can be programmed from Arduino IDE and use most of Arduino base code. Teensyduino replicates Arduino APIs, and many Arduino libraries can run on the Teensy.

Teensy 3 has much more power than most Arduino with a 32bits cortex-M4 (K20) processor, 64KB of RAM, 3 UARTs (hardware Serial) + 1 separated for USB, I2S, DMA SPI, multiple ADCs, etc... The Arduino compatibily offers a smooth migration path for a project started on an Arduino but needing a more beefy controller.

140 questions
1
vote
2 answers

Teensy4.1 with 2x 8MB PSRAM Chips: external_psram_size=0 but EXTMEM char[] works as expected?

So I got 2x PSRAM chips from PJRC with my Teensy4.1 and soldered them on (it's a hideous job as I lost my tips) but it's all tested with a multimeter and the connections are solid. I ran the memtest sketch from here compiled in both Teensyduino and…
CSoft
  • 23
  • 5
1
vote
0 answers

Why is my "port" button on the toolbar greyed out?

I am trying to program a Teensy 3.2 to act as a lightsaber controller. My code works perfectly but I can't select a port. How should I fix this problem? Here is my code: /* Presented without warranty, guarantee and support. By Bob Clagett - I…
John Going
  • 11
  • 1
1
vote
1 answer

Teensy 3.1 no overclock option for 168 MHz

I'm sorry if this isn't the right area. Teensy uses the arduino ide. I've seen some people show off the 144 mhz and 168 mhz option in their ide. I read in the Teensyduino 1.19 release notes that the options were added but not enabled. I would like…
Trexter
  • 132
  • 9
1
vote
1 answer

Teensy lc linker script question

I am under the impression that the origin of RAM on a Cortex M is 0x20000000. However, in the linker file for it, the ORIGIN of RAM is set to 0x1FFFF800. Is that an error, or is there a reason for the discrepancy?
1
vote
1 answer

Strange RPM Readings on Teensy 3.2

While trying to read RPM from a computer fan using the 4-wire protocol, I am getting strange readings. +12 and GND from the fan are connected to a power supply, and the tachometer to the PIN-0 or a Teensy 3.2. I wrote code to read the tachometer…
malavv
  • 111
  • 2
1
vote
1 answer

glediator + PL9823 (WS2812B) + teensy = fail?

here is what I got: teensy++ 2.0 with code below Glediator configured for Glediator_Protocol/Single_Pixels/HL_TL/RGB/B_1000000 led matrix with the PL9823 leds (80 of them) I first off have to set the code to 160 on the teensy just to get it to …
Guy Cothal
  • 131
  • 2
0
votes
0 answers

How can TEENSY Microcontrollers read ASCI Variables from X-PLANE 11

TEENSY Boards have in the USB-MODE "FLIGHTSIM" direct access to the variables = DATAREFS of X-PLANE 11. You can use FLIGHTSIMINTEGER and FLIGHTSIMFLOAT but not a varible for CHARs like the ID of a waypoint for example "IBZ" or "EDDF" . I need to…
bsram
  • 9
  • 2
0
votes
0 answers

VS2019CE/VisualMicro project won't compile without specific reference

I have a small project to test a Sparkfun MPU9250 breakout board. 'Class_MPU9250BasicAHRS_t3.h', 'MPU9250BasicAHRS_t3.h' and 'Class_MPU9250BasicAHRS_t3.cpp' are all in the local project folder. Compile fails with an 'undefined reference' error at…
starship15
  • 764
  • 4
  • 10
0
votes
1 answer

Python script not reading from serial unless teensy is rebooted

I want to send some analog sensor data from a Teensy 3.2 to a mac running a python script (I am using the usual pyserial module and I send data using Serial.print() in the arduino sketch). I am using Teensy but I guess the same would be true for an…
L_T
  • 133
  • 5
0
votes
1 answer

Infinite Loop on Pin Input (Teensy 3.1)?

I have an infinite loop issue that keeps persisting in this code on my Teensy 3.1. This program is intended to take an input on Pin 0 and press the Enter key on the computer it is hooked into. It is connected to a wire with no current but once a…
Flash2017
  • 3
  • 1
0
votes
1 answer

Parsing sd card file to polymorphic objects

I am trying to read a file from sd card and parse them to polymorphic objects, then have an array of pointers to them so i can access them later. I was wondering what the best format would be to save these objects in, i was looking at…
0
votes
1 answer

Maxbotixs LV-EZ4 analog read question

I am using an external 5 volt power supply to power my Sonar, and I am using a Teensy 3.1 to read in analog signal from the sonar. my question is since the teensy is only 3.3v tolerant with analog in, is it safe to use with the maxbotix sonar?
Trexter
  • 132
  • 9
0
votes
3 answers

Subtraction with doubles returning zero erroneously

I have a function that takes as parameter some doubles and does a subtraction operation on it. However I'm getting a result of 0 when one of the parameter is 0 for some reason. int calcPID(double current, double desired, double k){ double diff; …
Lightsout
  • 177
  • 4
  • 13
0
votes
1 answer

teensyduino with teensy LC: cannot include multiple files in sketch

I'm trying to get a rather large sketch working with a teensy LC. I'd like to break it into headers and C files, but the multi-file sketch fails to compile. When I put everything into a single, monolithic sketch, it runs fine. I've #included the…
0
votes
1 answer

Connecting external mic to the Teensy

I have a Teensy 3.2 and the Teensy audio board. I was going to connect lavalier microphone to its audio jack but learned that it's only for output. There are line-in pins though (see "Back Side" scheme). And MIC+GND pins, but these are for, ehm,…
skaurus
  • 101
  • 1
1
2