Questions tagged [teensy]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Teensy 4.1 / 4.0 When to use FlexPWM vs QuadTimer pins to strobe LEDs

I want to strobe 3 LEDs (at independent frequencies and duty cycles) via mosfets with a duty cycle of 0.05%-1% at a frequency range of 24-100 hz. I would like to hold 1% or better accuracy for both ...
user avatar
0 votes
0 answers
44 views

Teensy3.2; 4.0 wireless audio nRF24L01 - delay increases over time

At first there is almost no delay(between them), over a few minutes there is a delay of around 1 sec.Accidentally the SCK of the nRF24L01(transmitter) got disconnected, reconnected it back and the ...
user avatar
  • 1
0 votes
2 answers
146 views

What is the difference between SCLK and CLK pins?

Please do forgive me if anything in this question does not make sense, I am very new to PCB and Arduino. I am following a tutorial through where the person doing it is making a small data computer (...
user avatar
1 vote
1 answer
50 views

Why is there a cutoff on these accelerometer measurement values? - ADXL375

I'm using a Teensy 3.2 to read data from an ADXL375 using SPI. In general the communication is going just fine and I can activate settings etc. However, when I try to read X, Y or Z data it seems like ...
user avatar
  • 63
0 votes
1 answer
52 views

Wired Teensy 3.5 AudioShield and RFID RC-522

I received a set of wired Teensy 3.5 AudioShield and RFID RC-522. The audio shield is mounted on the Teensy but I cannot connect the MFRC522 Using MFR222 library. Pins are set to 0 and 31: #define ...
user avatar
1 vote
1 answer
72 views

Connecting Common-Anode Seven Segment Display to Shift Register

I recently wired up the following ill-advised circuit: A common-anode display is wired with its cathodes connected directly to LEDs connected to ground. But the strange thing is that it worked ...
user avatar
  • 11
-1 votes
2 answers
87 views

Send same telemetry data to two different serial ports?

I'm using a Teensy 3.5 to control a wall-following robot. The robot sends telemetry to my PC via two independent ports - Serial1 & Serial. Serial is the normal USB port, used when I direct-...
user avatar
-1 votes
1 answer
241 views

how can I delete contents of an SD card in arduino?

I have a datafile, datalog.txt I can open, read and write cool. What is the best way to delete all the file contents? Should I try rewriting the SD card file with NULL data? I have been reading the &...
user avatar
  • 838
1 vote
0 answers
31 views

Help needed to check if my solenoid wiring is correct

I'm planning a new custom keyboard project which involves a solenoid being controlled by a Teensy2.0++, and i would like to power everything with just a USB cable. I don't have much electronics or ...
user avatar
2 votes
1 answer
77 views

Pull more than 250 mA from powerbank-powered Teensy 3.6

I'm using a powerbank speced 5V at 2.4A to power my Teensy 3.6 via the USB port. However, Teensy recommends to not pull more than 250 mA from its 3.3V pin. Is there any way I can pull more current, at ...
user avatar
  • 155
0 votes
1 answer
99 views

No response from instrument via serial communication

I am using a Teensy 3.6 to communicate with an external instrument via a serial connection. However, I am not able to get the instrument to respond to my commands. The idea is to send a command from ...
user avatar
  • 103
2 votes
2 answers
210 views

MPU6050 Calibrating Accelerometer

I recently got an MPU6050 and I noticed the accelerometer data was a bit off, especially on the Z axis. I'm running it on a Teensy 4.0 with Adafruit's MPU6050 library and basic example code: https://...
user avatar
  • 21
1 vote
0 answers
44 views

using pmrpcm library for sound output from Teensy3.2

I converted an MP3 sound effect (5 seconds long) to WAV to play it out of a Teensy3.2 with speaker connected to PWM output pin. The TMRPCM library specifically talks about Arduino AVR boards, but ...
user avatar
0 votes
1 answer
47 views

Global array doesn't get assigned the space it would take up in memory

I have this sketch: const uint32_t len = 65536; uint8_t arr[len]; void setup() {} void loop() {} The length of the array should fit into the dynamic memory. However, when I compile the sketch it ...
user avatar
  • 315
1 vote
1 answer
114 views

Teensy 4.1 serial communication with 7N2 (7 databits no parity 2 stopbits)

I have ported a project from arduino Due to a teensy 4.1 In the project I read data from a sensor which speaks serial at 7 databits, no parity and 2 stopbits (no configurable). Now it seems that ...
user avatar
0 votes
1 answer
86 views

nuttx hex too large

I have a teensy 4.1, and I am trying to install NUTTX the Real Time Operating System ( RTOS ). Teensy is a supported platform. I am trying install nuttx compiled from source, and upload it using the ...
user avatar
  • 838
2 votes
2 answers
414 views

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 ...
user avatar
  • 33
0 votes
2 answers
346 views

Cannot display a chr string using Wire.read() and u8g2.drawStr()

I'm still getting myself acquainted with C++, so I expect this is a very basic issue I'm facing. I've got an OLED screen connected to a Teensy LC and can display text on it just fine. The Teensy ...
user avatar
1 vote
1 answer
58 views

What pins to use on a Teensy to get data from multiple peripherals?

I'm using a Teensy to keep records on the location, speed, altitude, and direction of a weather balloon I'm hoping to launch. I have an Adafruit LSM9DS1 and a Ublox NEO-M8N with compass (HMC5833L) so ...
user avatar
  • 11
1 vote
1 answer
155 views

Asymmetric encryption on a Teensy?

I want to monitor an input and then send the information in an encrypted way that can't be easily unlocked even if a malicious actor gets access to the device itself. I'm new to using the Teensy ...
user avatar
2 votes
1 answer
127 views

Updating SPI transfer16 to create Transfer24

It might be a bit out there, but for a project that I am working on, my word size default is 24bits (3x8-bit), of which the first 8-bits are data and the next 16-bits are data. I would like to ...
user avatar
0 votes
2 answers
227 views

Converting my delays to millis for smoother operation

I need help converting my code to change out the delay() command into the millis() command for smoother operation. Currently the code only moves after the delay is up. I would like the codes to run ...
user avatar
  • 1
0 votes
0 answers
59 views

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 ...
user avatar
  • 9
2 votes
0 answers
219 views

Teensy 4.1 Ethernet Throughput

Using a socket server on a Teensy 4.1, I am sending and receiving data in a loop from a Windows socket client (WinForms C#.NET). I am sending or receiving 530 bytes of data. In each direction, it ...
user avatar
1 vote
1 answer
118 views

Wave file will not play with Teensy 3.5

I am attempting to play a wav file from an SD card using a Teensy 3.5. I am using this buzzer and I have the following code currently: #include <Audio.h> #include <Wire.h> #include <SPI....
user avatar
  • 111
1 vote
1 answer
560 views

Can FastLED be made faster?

I am using FastLED to drive 16 pixels on an addressable WS2812B RGB LED strip. My application has extremely tight timing constraints. Specifically, I need to turn the LEDs on and off within less than ...
user avatar
  • 11
1 vote
0 answers
262 views

Serial Monitor Not Displaying

I am using BMP 280 for an altimeter to measure the altitude. Once all connected and uploaded the BMP280test code from Adafruit, the serial monitor says busy. But still, when I switch the port in tools,...
user avatar
  • 11
1 vote
0 answers
64 views

How to write analog signals to control throttle of the ship?

I am using teensy 2.0 as DAC. I am trying to write signals on rudder and throttle of the ship via relay. How can I write these analog signals? Should I specify voltage for every pin? Here is my code: ...
user avatar
  • 11
0 votes
1 answer
82 views

Teensy 2.0 MIDI: Number of notes in a chord limited to 6?

I am using the Teensy 2.0 with USBMidi in a project that allows musicians to use retro computers as "instruments" (https://github.com/fredlcore/midijoy). So far, all these computers had no more than ...
user avatar
0 votes
1 answer
135 views

Why can the Xbox360 not detect the Arduino Leonardo as keyboard?

Arduino Leonardo as keyboard in the computer works! But not with the Xbox360. The Teensy works perfectly on the PC but how to emulate a keyboard device for the Xbox360. I know the Xbox360 has ...
user avatar
  • 121
-1 votes
1 answer
424 views

Reading bmp images from SD card, converting it and displaying it on serial monitor in Arduino

Can someone please help me write code that can read a 24-bit BMP file from an SD card, save converted to 8-bit BMP internally, and display the 8-bit BMP pixel values on Arduino terminal as a 2D matrix....
user avatar
  • 1
0 votes
1 answer
67 views

Crazy Results with I2C and I2C_Anything()

I have the following code in a Arduino Mega function to retrieve two 4-byte integers from a Teensy 3.2. Wire.requestFrom(SLAVE_ADDR, sizeof(float)+ 2*sizeof(long)); mySerial.printf("\n<<<<...
user avatar
0 votes
1 answer
611 views

Sending MIDI CC to multiple midi Channel

Hi so i would like to send CC messages to different MIDI Channel (volume control). The CC messages are coming from one knob. The solution i found kind of work but i'm pretty sure is not ideal and ...
user avatar
0 votes
1 answer
1k views

how can i conect a lipo charger to a teensy 4.0?

I have the battery charger product https://www.adafruit.com/product/2124 and a teensy 4.0, that I would like to use to power it. what, if any pin would I connect from bat, to the teensy? Its my ...
user avatar
  • 838
3 votes
3 answers
335 views

Is it possible to program Arduino in transpiled JavaScript?

Coming from JS, I find it very difficult to program Arduino in C++ (not even knowing which version or what features are supported), being bound to the loop and delay, not being able to (easily) use ...
user avatar
  • 139
1 vote
1 answer
1k views

What is the equivilent of PORTx for Teensy (4.0)?

I've seen people use code like PORTB |= 0x1 << 6 to set the sixth bit of PORTB in arduino. I understand that this is significantly faster than using digitalWrite. How can this be done using a ...
user avatar
  • 113
0 votes
1 answer
1k views

Faster TimerOne with Teensy 4.0 (600MHz)

I have a teensy 4.0 which runs at 600MHz, and is double superscaler (i.e. can execute two instructions per clock cycle, sometimes). I need an interrupt to happen faster than every microsecond. I've ...
user avatar
  • 113
1 vote
0 answers
75 views

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 ...
user avatar
0 votes
1 answer
90 views

What would cause a delay when using serial between the Arduino IDE & external clients?

I have been working on a problem for a couple of days that I can't figure out. I am using a Teensy3.6 with Arduino IDE to build a CAN Bus monitor for a car. For those familiar, I am trying to save ...
user avatar
  • 3
1 vote
1 answer
779 views

Baudrate is set to 9600 automatically even if specifying a different value

You initialize the serial communication via USB with Serial.begin(baudrate); where baudrate is a long specifying the number of symbols you want to send over the connection per second. You can put ...
user avatar
  • 315
1 vote
1 answer
596 views

Specific ports on Teensy 3.6 not reading correct bit resolution using ADC library?

I have a basic circuit, where I'm reading analog values from 14 infrared receivers. I set the bit resolution to 16 but specific ports are returning 10 bit values (from 0 - 1024) instead of 16 bit ...
user avatar
0 votes
0 answers
29 views

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. ...
user avatar
1 vote
0 answers
275 views

Can't open serial monitor on Ubuntu (Teensy 3.2)

I am running a simple blink/hello world program on Teensy 3.2. The code is compiling and running fine but I can't see the serial output. When I try to open the serial monitor it gives me "Board at ...
user avatar
0 votes
1 answer
320 views

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 ...
user avatar
  • 133
1 vote
1 answer
166 views

Parsing and comparing strings on Arduino: different behaviour from gcc?

I am trying to parse a simple string, print the result of the parsing via serial.println, and trigger a function on the basis of the received command. I wrote the code below, which perfectly works in ...
user avatar
  • 133
1 vote
0 answers
512 views

Optimizing Teensy 3.6 for data sampling?

So, I have a very basic project where I cycle through 8 IR individual transmitters. After setting the individual transmitter high, I cycle through all 8 IR receivers and print their values, RX_CYCLES ...
user avatar
-1 votes
1 answer
361 views

Sending double data from Matlab to the Teensy 3.6 via the microUSB

I've been hitting against a wall for over a week now. My current project is to use a Teensy 3.6 to send data over an SPI bus to a chip which is effective going to be a signal generator. I've made a ...
user avatar
  • 1
1 vote
1 answer
162 views

What's going wrong with my EEPROM?

I've been chipping away at a project for a long time now and I've found a serious bug. Basically the user has an 8x8 grid, and each cell in this grid has a number of properties. I want to be able ...
user avatar
0 votes
1 answer
186 views

Teensy not pulling down despite digitalWrite(x,LOW)

I'm trying to switch a ATX PSU on and off by serial command. My code is as follows: #include <Arduino.h> #define PIN_LOW_FOR_POWER PIN_F0 void setup() { Serial.begin(115200); } void loop() {...
user avatar
1 vote
0 answers
1k views

5V MCP2515 to 3.3V Teensy. How to reduce the MISO voltage

So to try and speed up my project, I have moved from using two UNO's to a UNO on the receive side, and teensy 3.6 on the sender side. However, no dice. The UNO doesn't receive any data or even try to ...
user avatar