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
1 answer

Teensy/Arduino Library compilation errors

I'm currently writing a library application for my Teensy using the Arduino IDE and so far, it has been straight forward enough to do. I have however come across a bit of an odd compilation error that I just can't seem to get my head around. My…
CBrown92
  • 21
  • 2
0
votes
1 answer

Pass class function to another class function

sorry for possible duplicates, but I didn't understand the examples and codes snippets I found. I have a class named "EncoderWrapper" which includes some functions. One of these functions is called "onAfterTouch" and is declared in the…
pixel-shock
  • 67
  • 1
  • 9
0
votes
0 answers

How to debug unexpected analogue output in Arduino?

I'm working on Some Neopixels and Arduino (teensy 3.2) and fairly new to both. I have a strip of the LEDs, one PIR, and an LDR to differentiate between day and night and turn off the LEDs. What I'm trying to achieve is to have the LEDS go full…
0
votes
1 answer

Color Hue using FASTLED and WS2812b with a teensy

Please be patient with me as I'm still new to coding using the FASTLED Library. I'm using a teensy 3.2 with the fastled library. I have a strip of 144LED of WS2812B and I'm trying to create a color hue consisting of 3 colors( i want the first…
0
votes
1 answer

Arduino AnalogRead returns 0 every a couple samples

I am using Teensy3.1 to record audio with 50KHz sample rate. I use the function AnalogRead to sample the analog pin. The reading value should fall into the range between 0 to 1024. However, after recording the data, I found there is a small…
Foreverniu
  • 349
  • 1
  • 3
  • 18
0
votes
0 answers

Obtaining a fast ADC sample rate in embedded linux with an external ADC

I've been given the task of getting ADC samples onto an embedded linux computer at the highest rate I can (up to about 300kSPS). I am playing with several different platforms (odroid, edison) but easrly on I realized the limitations of using the…
CrustyAuklet
  • 357
  • 3
  • 16
0
votes
1 answer

Python doesn't parse Serial data to an array

I am working on a project in which I have to collect voltages from a teensy 2.0(which I am programming with arduino) and send those voltages to Python. I also have to send the microsecond the data was taken on. I am using PySerial to communicate…
Dave Fyre
  • 60
  • 10
0
votes
1 answer

Why must be the number of the vertical LEDs a multiple of 8?

I'm going to build a LED-Wall which i will control via 4 teensy micro controllers. Everywere I read the vertical number of my LEDs has to be a multiple of 8? Does it really have to be so? Thank you
Adam
  • 23
  • 1
  • 4
0
votes
2 answers

error: invalid types 'uint16_t {aka short unsigned int}[uint8_t {aka unsigned char}]' for array subscript

Background: I'm currently working on gutting the Adafruit program for 'Uncanny Eyes." My intention is to be able to have a couple of momentary switches that will draw static images to a pair of 1.5" OLEDs. This program uses a Teensy 3.1 or 3.2. I'm…
SiGe
  • 3
  • 1
  • 2
0
votes
0 answers

TeensyLC error while running SET payload

I recently got Teensy LC from PJRC and I tried to generate payload with SET on my kali linux dual boot machine but when i reboot to my Windows Machine and run that payload it like runs it but gives me error at some point Source: // //…
ovxrfl0w
  • 125
  • 1
  • 1
  • 13
0
votes
1 answer

Teensy 3.2 Hellokeypad sketch compile errors

I'm getting a compiler error when I try and compile the HelloKeypad demo sketch. I'm on a Windows 7 machine using a Teensy 3.2 board. I bought a keypad like this one: https://www.adafruit.com/products/1824 I downloaded the keypad.zip file from here:…
RalphF
  • 373
  • 3
  • 10
  • 21
0
votes
1 answer

Arduino keystrokes via push-buttons, how to debounce, when to use matrix?

I have a simple set of 8 push buttons wired to a Teensy 3.2 board (which uses Arduino via Teensyduino plugin). The 8 buttons are on pins 1-8 and their common ground line (one line soldered to each of them) is on the GND pin. I have code to get any…
sylcat
  • 151
  • 1
  • 3
  • 18
0
votes
0 answers

using a rotary switch with teensy 3.2

I have a rotary switch I want to use with my teensy 3.2. I have this code: #include Bounce button3 = Bounce(3, 10); // Key 'Q' Bounce button4 = Bounce(4, 10); // Key 'W' Bounce button5 = Bounce(5, 10); // Key 'E' Bounce button6 =…
ShadowWesley77
  • 365
  • 1
  • 5
  • 16
0
votes
3 answers

Teensy as keyboard: error: 'keyboard_leds' was not declared in this scope

I'm new to Teensy, and I'm trying to write a program that allows it to act as a keyboard. To make my program more useful, I'd like to make it not try to act on any input until its drivers install. I saw on GitHub that a way to do this (assuming the…
J. Doe
  • 1
  • 1
0
votes
1 answer

C++ Arduino passing char* to an array of char*

I am having a problem with passing a char* to an array of char** on my Teensy. Below is the problematic part: for (j = 0; j < rulesamountsingle; j++) { emptybuffer(buff); char temp[10]; while(!Serial.available()); len =…
Keni Mardira
  • 25
  • 1
  • 3