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

How often does / can a USB host send bulk IN packets to a device endpoint?

I'm developing a USB MIDI device with a Teensy microcontroller - let's limit it to a USB 1.X / "Full-Speed" device for now if that helps. The USB MIDI (1.0) class definition uses Bulk transfer endpoints for communication so that's the type of…
0
votes
0 answers

XBee-Pro 900HP Communication in API Mode

I've been been trying to get an Xbee-Pro 900HP to communicate with another Xbee, but it doesn't seem to work. I've confirmed that the xbees are set up correctly as they can communicate remotely over XCTU, so it is either my code or my setup. I've…
0
votes
1 answer

When I try to build the teeny 4.1 encoder>speedTest.ino example I get a type conversion error, from volatile uint32_t* to volatile unsigned char*

When I try to build the teeny 4.1 encoder>speedTest.ino example I get the following error: error: cannot convert 'volatile uint32_t {aka volatile long unsigned int}' to 'volatile unsigned char*' in initialization #define portOutputRegister(pin)…
Paul S
  • 3
  • 2
0
votes
0 answers

Controlling power to many WS2812 LEDs in a battery-powered project

I am building an electronic board game which will have 500+ addressable LEDs in it - I don't know the exact model but they claim to be WS2812B, I bought them from Amazon here:…
0
votes
2 answers

Sending ASCII Commands to a TSI 5310 Flowmeter from a Teensy 3.5 with (Arduino IDE)

Introduction: Okay so to start I just want to say that the sensor does send its data when commanded as I've tested this on Python connected to a COMPORT on a pc. I will include the Python Code I created that works with the sensor, so that all…
0
votes
1 answer

Overloading function handling char and String

I'm making a function to handle a message, then print the message using Serial.println(). I have it working, but ran into an issue I can't explain. The first sample code below works, the second (swapping the order of my function declaration) will…
0
votes
2 answers

Is there a way to extend a list of time values in seconds given a new list of time values starting at 0?

I have a python program running a serial port connected to a teensy board. The program receives three lists from the board: t, volt, and curr once one method is complete. I have three lists that I want to build using these values: t_list, volt_list,…
0
votes
1 answer

Issue with CAN communication between Teensy 4.1 and Arduino Nano

I am trying to do CAN communication between Teensy 4.1 and Arduino Nano. For the communication between the Teensy and Nano, I am using a TJA1050 transceiver on Teensy side and MCP2515 CAN module on the Nano side. I am able to do CAN communication…
0
votes
1 answer

How to rename Serial connection with Teensyduino? Using Teensyduino for Serial reading

I want to use a Teensyduino 3.2 for reading Serial input from my python program. The python program uses the "serial.tools.list_ports" library to automatically detect Arduinos that are connected via USB with this simple code: #____________finding…
0
votes
1 answer

Wrong character output from I2C LCD with Arduino

I'm just trying to print a string onto an LCD display (SparkFun 20x4 SerLCD - RGB Backlight Qwiic). The address of the I²C device is 0x72. I'm using an Arduino Teensy to communicate with the LCD display. Pin Connections: LCD - Arduino GND - GND…
0
votes
1 answer

Globally defined RingBuf does not work inside the loop() function

I can use a RingBuf from the SdFat library only inside the setup() function and I don't understand why. Can RingBuf and File32 be defined as global and configured only once during the setup? I'm working on Teensy 4.1. For instance, this code…
JJAlberto
  • 23
  • 5
0
votes
0 answers

I need to send and receive UDP packets from Teensy

I have a communication diagram like In this project, there is a udp communication between python code in linux os and teensy.Different sensors connected to teensy and teensy send the sensor datas to linux with udp. I must send udp request to teensy…
noobinmath
  • 175
  • 2
  • 12
0
votes
0 answers

question about Arduino library

I'm making a MIDI controller with a 4*4 push button pad by following the example from , here's the code: #include USBMIDI_Interface midi; using namespace MIDI_Notes; const AddressMatrix<4, 4> addresses = {{ …
Nickie
  • 1
  • 1
0
votes
1 answer

Can I use a Arduino Mega 2560 as a multiplexer?

I have a 4*4 push button pad with RGB LEDs (brought from sparkfun) connected to a Arduino Mega 2560. At first I wanna use the button pad as a MIDI controller, but now I discovered that Mega 2560 cannot use as a MIDI devices. I have a Teensy 3.2 with…
Nickie
  • 1
  • 1
0
votes
0 answers

C# Serial Port communication Missing Bytes when communicating at high speed

I have created a program in C# to receive high speed data coming from my Teensy 4.1 uController. The controller is simply measuring voltages at two channels every 1 microsec and sends them over a USB along with a time stamp. The packet length for…