Questions tagged [teensy]

The Teensy is a complete USB-based microcontroller development system, in a very small footprint, capable of implementing many types of projects.

The Teensy is a complete USB-based microcontroller development system, in a very small footprint, capable of implementing many types of projects.
All programming is done via the USB port.
No special programmer is needed, only a standard "Mini-B" USB cable and a PC or Macintosh with a USB port.

Home page: https://www.pjrc.com/teensy/

155 questions
0
votes
0 answers

Command line arguments for Arduino (Teensy)

Take the example blink sketch, is it possible to set the LED-pin at compile time via command-line arguments or something similar? In my actual sketch, I would like to set some variables (numbers, maybe strings). The only thing I found so far is this…
JavaMan
  • 1,142
  • 12
  • 22
0
votes
1 answer

Serial communication printing issue

I am working on serial communication between two MCU's particularly teensy(similar to Arduino) for generating fake GPS data. I have been able to write GPS data and read from the other MCU fine but if u look closely, the data that is printed has some…
0
votes
1 answer

Platformio Linker Error When Including

I'm using PlatformIO (with the VS Code extension), on Windows 10, and am compiling for the Teensy 3.5 board. I've reduced a linker error in one of my projects to the following piece of code: #include #include void…
Zack
  • 874
  • 1
  • 9
  • 18
0
votes
1 answer

MPU 6050 accelerometer sends 16bit unsigned values

I'm using the GY-521 breakout board to get it's accelerometer data on a teensy 3.6. From what I understand, I should expect signed (so positive and negative) values from it, but instead I get values from 0 to 65535. So here is what I get: When the…
middels
  • 1
  • 2
0
votes
2 answers

Implementing PI control for Teensy Atmega 32u4

I am implementing PID control using the standard libraries of the Teensy Atmega32u4. My control variable is PWM signal. My process variable is the current angular position of a DC motor that is interfaced with a 10kohm potentiometer with code that…
J_code
  • 356
  • 1
  • 5
  • 17
0
votes
2 answers

LED Stripes with Teensy and Python

I'm currently working on a project to control LED stripes which are connected to a Teensy 3.2 board which is connected to a Windows PC. It is technically based on this project: https://www.pjrc.com/teensy/td_libs_OctoWS2811.html There's also a…
James Doe
  • 1
  • 2
0
votes
1 answer

Analog measurement incorrect on Teensy 2.0++

I have a Joystick wired up to my Teensy 2.0++ and I want to read the analog values from it. I took this implementation from PJRC: static uint8_t aref = (1<
skiilaa
  • 1,212
  • 11
  • 20
0
votes
0 answers

NFC PN532 on Teensy 3.5

I have a problem with my teensy 3.5 for reading NFC tag using a PN532 : I am using the Adafruit_PN532 librairie. here is my wiring : PN532 | Teensy 3.5 ------------------ 5V -> Vin GND -> Gnd SCK -> 13 MISO -> 39 MOSI -> 28 SS -> …
Buisson
  • 479
  • 1
  • 6
  • 23
0
votes
1 answer

Teensy LidarLite LIDAREnhanced no known conversion for argument 2 from 'int16_t* {aka short int*}' to 'int*'

I'm using a Teensy 3.5 to run a LidarLite v3 module and am getting the following error: teensy no known conversion for argument 2 from 'int16_t* {aka short int*}' to 'int*' This error is repeating for a number of different functions. How can I…
Adam Sampson
  • 1,971
  • 1
  • 7
  • 15
0
votes
1 answer

How to take a snapshot of a changing variable (such as a timer) in C?

I am currently programming a Teensy micro-controller and want to setup a pause function for a game. I have been able to create a timer from ISR counter overflows, however I haven't been able to work out how to pause this counter. I have…
david_10001
  • 492
  • 1
  • 6
  • 22
0
votes
1 answer

How to display a uint8_t as an integer or string?

I am trialling a function that converts decimal numbers to binary, and I want to see if it is working or not. The problem is I am writing it in C for a Teensy micro controller, and I don't have many of the basic operations like printf. I am using a…
david_10001
  • 492
  • 1
  • 6
  • 22
0
votes
1 answer

How do I use enumerate type structs in C?

I am trying to set a Nokia LCD screen to turn all pixels off, all pixels on, inverse mode on and normal mode on, depending on which button the user pushes. I have all the code complete apart for setting the mode of the LCD screen. This is because…
david_10001
  • 492
  • 1
  • 6
  • 22
0
votes
1 answer

SSD1306, DIGISparkOLED not working with teensy3.2

OLED display is not working with teensy3.2 board, but it is working fine with arduino UNO with the same code as below: #include U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); // Display which does not send AC int frame=0; const uint8_t…
vasu
  • 25
  • 7
0
votes
1 answer

No audio output Teensy 3.2 using either onboard DAC or USB passthrough

I'm working on my final project for my music degree (the idea is exploring alternative input methods for interacting with electronic instruments) and I'm putting together a touch screen based synth using the Teensy 3.2 and the Adafruit STMPE610. I…
0
votes
1 answer

Teensy Arduino as Android HID Device, stalls after a few inputs

My project is to read button inputs from my car's steering wheel controls and convert them (using a Teensy 3.2 Arduino-alike) into android system actions of my choosing (e.g. Volume Up, Next Track, OK Google). I have tried several different modes…
Kaboom22
  • 1
  • 3