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

How to add Teensy board to VS Code and Arduino plugin?

I am currently programming a Teens y2.0 using the Arduino IDE with Teensyduino. It works but Arduino IDE is rubbish, so I would like to use VS Code. However while the Arduino VS code plugin works fine, it doesn't recognise the Teensy as a board,…
AJ.
  • 1,226
  • 1
  • 16
  • 21
5
votes
1 answer

Serial communication between raspberry pi and teensy (using UART / GPIO pins)

I am trying to communicate from my raspberry PI to a teensy (a arduino that can pretend to be a mouse and keyboard for those uninitiated). I want to receive information on the arduino, and based on that information move the mouse. On the arduino…
retep
  • 317
  • 2
  • 13
3
votes
0 answers

Checking if pixels have collided in teensy game

I am trying to check if my joystick controlled character is colliding with a walls pixel stored in an array. The character has a coordinate relating to the top left of its position and a 2D array representing the 'bitmap' that draws it. However I…
Leptoflux
  • 43
  • 1
  • 8
3
votes
1 answer

Is DMA the Correct Way to Receive High-Speed Digital Data on a Microprocessor?

I have been using the Teensy 3.6 microcontroller board (180 MHz ARM Cortex-M4 processor) to try and implement a driver for a sensor. The sensor is controlled over SPI and when it is commanded to make a measurement, it sends out the data over two…
SquawkBirdies
  • 157
  • 2
  • 13
3
votes
1 answer

USB: low latency (< 1ms) with interrupt transfer and raw HID

I have a project that requires reading an external IMU gyroscope data at regular interval and sending the data over to an Android phone. I am using a teensy 2.0 board to query the IMU via I2C and send it over USB using raw HID. I am using RawHID…
Jary316
  • 291
  • 1
  • 4
  • 15
2
votes
1 answer

I2C not reading

I'm trying to interface with a BNO055 breakout board from a Teensy 2.0, but I'm having trouble reading from the BNO055. It has different registers that you can access to read data from the chip. To start, I'm just trying to read the IDs of some…
CaseyB
  • 24,780
  • 14
  • 77
  • 112
2
votes
1 answer

Multiple libraries were found for "Servo.h" (Teensy 3.6)

I know that there are already similar questions out there, but the given advices didn't really help. I want to control a servo motor with my new Teensy 3.6. If I compile my sketch, there appears an error: In file included from…
Michael Brown
  • 137
  • 2
  • 13
2
votes
1 answer

Serial communication between teensy bord and system using python

i am fairly new to the field of IOT. I am setting up a sensor with teensy for reading up its data and transmitting over using serial communication to system where using python I am reading the data and storing it into a database. The problem I am…
Hadi
  • 307
  • 6
  • 20
2
votes
0 answers

Arduino random() affecting string output

I am currently working on an arduino project using a Teensy 3.2. The project uses some encryption code that exists in the library folder. When building the encryption code, any padding that was needed was hard-coded until the rest of the encryption…
2
votes
0 answers

Teensy LC I2S example assembly error

I'm trying to use I2S (not I2C) with the Teensy LC and a SPH0645 digital microphone. The audio library that is included with the Teensyduino (v1.6.7 and ArduinoIDE 1.8.5) code is sufficient for my needs, but I get the following assembler error when…
fdollack
  • 31
  • 4
2
votes
1 answer

Teensy 3.1 keyboard script execution

I'm trying to program a Teensy 3.1 as keyboard, and I'm using an example from https://www.pjrc.com/teensy/td_keyboard.html. int count = 0; void setup() { } // no setup needed void loop() { Keyboard.print("Hello World "); …
Gardelin
  • 950
  • 11
  • 30
2
votes
1 answer

Error sending some unsigned int through serial port (teensy -> raspi)

I am encountering some troubles trying to communicate through USB between a teensy and a Raspberry Pi3. When I send unsigned int, I receive wrong numbers for all the numbers containing the byte of value 13 which is changed to the value 10 For…
Alex
  • 79
  • 6
2
votes
3 answers

Corrupted data with serial connection

I'm trying to send data between Raspberry Pi and Teensy with serial connection. Code for teensy : void setup() { Serial1.begin(9600); } void loop() { Serial1.println("HELLO"); delay(1000); } Python code for Raspberry Pi : import…
Aurélien
  • 259
  • 4
  • 12
2
votes
1 answer

Using placement new with the Teensy 3

I have a C++ class in the Arduino/Teensy environment which is defined in a ".h" file. Within the ".cpp" file I'm attempting to do "placement new" with some code. I'm getting the following error: oscillator.h:17: error: no matching function for call…
MattyZ
  • 1,541
  • 4
  • 24
  • 41
2
votes
2 answers

Uploading program to teensy not working

i got a brand new Teensy 3.2 with the blinking LED programm on it. When I now tried to upload another programm on the teensy, Arduino says: Teensy did not respond to a USB-based request to automatically reboot. Please press the PROGRAM MODE BUTTON…
1
2 3
10 11