Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [teensy]

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

0
votes
0answers
22 views

Fastest way to convert binary string to a number?

I am using a Teensy 3.2 board as control logic for an ADC that I am building for teaching purposes. Currently, I am employing an attachInterrupt() to detect the rising edge of an external clock pulse ...
0
votes
1answer
44 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 ...
0
votes
0answers
25 views

Unable to create a file on SD with Teensy 3.2 with FreeRTOS

I'm trying to log data to SD card using Teensy 3.2. I've taken the code from Arduino Examples SD > ReadWrite.ino and modified it slightly to run it with FreeRTOS - no changes in the header libraries ...
0
votes
0answers
31 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 ...
0
votes
0answers
28 views

Arduino SPI ISR

Is there any way to trigger a ISR after a SPI transfer is complete? I am trying to send messages from one of three LORA radios and have the other two read the message. I am using the Radiohead (RF95) ...
0
votes
1answer
30 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 ...
0
votes
0answers
18 views

Teensy 2.0 “device descriptor failed” with I²C sck+sda cable connected

I'm currently making a split keyboard, using a Teensy 2.0. I decided to make my two halves communicate over I²C, connected through a 4-cable audio cable. For that I got the following jacks: I used ...
0
votes
1answer
16 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() {...
1
vote
3answers
1k views

How to break connection HM10 Bluetooth?

I have 2 HM10 Bluetooth modules connected to 2 Arduino Teensy running the following code. void setup() { Serial.begin(9600); Serial1.begin(9600); // If the baudrate of the HM-10 module has been ...
0
votes
1answer
353 views

Error Compiling to Board Teensy LC

I wrote a simple switch program using a teensy LC and transistors, but the Arduino compiler will not compile for the Teensy LC. And not for just my program, but any program, including the example ...
2
votes
1answer
357 views

Get USB host controller serial number or ID using Teensy or other HID devices

I have a Teensy board and would like to know if there's a way to get a serial number (or any other kind of ID that is preferably unique) of the host controller that I plug my Teensy into. E.g. can I ...
0
votes
0answers
87 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 ...
0
votes
0answers
40 views

Teensy freezing when reading ir sensor

I have a teensy that controls a motor and reads from a ir sensor, GP2Y0E02b. The issue i run into is that at random times the teensy seems to freeze, the main code stops printing but the interrupt ...
0
votes
2answers
222 views

Inaccurate PWM Signal Frequency and Timing

I have a Teensy 3.2 and I am using the Arduino IDE to program it. I am trying to generate 8 pulses with the frequency of 40 kHz and this needs to be repeated every second. I have written 3 different ...
1
vote
1answer
47 views

Sanity check for dual IR LED circuit [closed]

If the intent is to drive the two LED's with 200-400mA (using PWM @ 38Hz), is there anything wrong with this solution? Perhaps this is a better solution, as it ensures the current is exactly the same ...
0
votes
1answer
174 views

Teensy 2.0 usb xinput device

So I came across a library that lets you turn your TeensyLC/3.X into an xinput device. I only have a 2.0 on hand. I spend the past few hours messing around with the LC example to see if I could hack ...
0
votes
2answers
864 views

SIM800L module just repeating data sent via serial

I've got a Teensy 2.0 with simple AltSoftSerial as displayed on image: As you can see, when I send a command (or any other input via serial) the SIM800L module sends me the same input. I tried to ...
0
votes
1answer
6k views

Nested For Loop

I'm not sure if I'm being really really stupid, but why doesn't this work? void setup() { Serial.begin(9600); } void loop() { for (int x; x < 8; x++) { for (int y; y < 8; y++) { ...
3
votes
1answer
166 views

How can I detect which baudrate a virtual COM port is set to?

I would like my software running on Leonardo to behave differently depending on the baudrate of the USB Serial set by the PC. For example, I want to make a smart USB to UART converter which performs ...
0
votes
3answers
57 views

Read analog port set as output

I have a PWM analog port that is outputting a frequency, is it possible to do an analogRead on the same pin and get a correct value? If so, will reading that port disrupt the freq output on the pin? ...
1
vote
1answer
66 views

Software Gate on a PWM port

I'm using a PWM port and outputting a freq. Is it possible to pulse the PWM port using software to simulate a pulse gate. For example, I'd like to output a freq of 111hz, but would like to gate that ...
2
votes
1answer
877 views

C++ Undefined reference to 'Class:Function()'

I have these files: Project.ino Sensor.h Sensor.cpp IMU/L3G.h IMU/L3G.cpp Sensor.h #ifndef Sensor_h #define Sensor_h #include <EEPROM.h> #include "IMU/L3G.h" #define CUTOFF_FREQ 30 #define ...
-1
votes
4answers
1k views

How to find the index of the maximum value in an array? [closed]

Say we have an array named myMeasurements int myMeasurements[9]={3,4,8,12,7,2,1,67,8}; How can I find the index of the maximum element of this array? For example the MATLAB code would be: ...
0
votes
2answers
216 views

Using Teensy 3.5 (Arduino) to produce USB and Hardware MIDI messages simultaneously. Help?

Currently trying to get a teensy 3.5 to spam a series of notes in a loop over USB and hardware serial, which I am pretty sure it can do. I have a MIDI circuit set up as per the specifications here: ...
0
votes
1answer
270 views

Error compiling to teensy 3.6

Problem: In short, the Arduino IDE won't compile a sketch for the Teensy 3.6. It gives the error: exec: "A:\\arduino-1.8.5\\hardware\\teensy/../tools/teensy_post_compile": file does not exist Error ...
0
votes
0answers
350 views

How to use USB midi AND a physical 5 - Pin DIN port to output MIDI

I am currently working on a MIDI controller and would like to be able to output MIDI messages both over USB to interface with modern DAWs, and also be able to output using a MIDI jack so that I can ...
0
votes
2answers
186 views

Running dual Adafruit GPS at 10Hz on a Teensy 3.2

Excuse the crudity of this question but I'm having quite the trouble trying to run the two Adafruit Ultimate GPS v3 modules at 10Hz on the Teensy 3.2 board. The modules are connected over the hardware ...
2
votes
0answers
601 views

Raspberry Pi, Teensy and Arduino's on i2c

I just got into an interesting mess. I have 3 Arduino's (Pro Mini's) and 2x Teensy's (3.1's) connected via I2C to a Raspberry Pi Master. The 2x Teensy's I2C data lines are connected via OctoBoards ...
1
vote
1answer
118 views

Teensy 2.0 with MCP23017-E

I've recently bought two more MCP23017-E's for a project, but after hooking them up to my Teensy 2.0 I couldn't get them to react to anything. Suspecting faulty hardware, I hooked them up to an old ...
0
votes
0answers
359 views

trouble running i2c and spi at the same time

I know this question has been asked before but I am having trouble running I2c and SPI at the same time. I am attaching my code below. The problem when I run the code is that the LED's don't blink ...
0
votes
0answers
33 views

How to upload data to program over USB port

I am working on a set of Visual poi (like these https://lighttoys.cz/store/vpoi/v4/) and need to upload new pictures to the controllers every now and again. Currently I use a program to convert a ...
0
votes
1answer
766 views

Talking to ADS8698 (18-bit ADC) over SPI

I want to talk to an ADS8698 over SPI (see page 36 for details on their SPI implementation) using a Teensy 3.2. Right now I'm only getting zeros back and I feel like (perhaps wrongly) that I've ...
1
vote
1answer
738 views

PIR motion sensor stuck in a loop

I've bought an HC-SR501-compliant PIR motion sensor (like this one) and connected it to a Teensy 3.1. The circuit seems fine, and the LED lights up. However, when nothing is moving in front of it, the ...
0
votes
1answer
314 views

Selecting different arrays using a list of pointers

I have different arrays of different sizes, and a list of pointers to the addresses of each array. How do I select each array using the list of pointers, and access it's elements. On Teensy 3.2 board. ...
1
vote
1answer
417 views

Optimization Teensy 3.6 Arduino IDE fast I/O Multiplexing Led Matirx

I'm currently working on a 10x10 LED Matrix which is controlled by 5 Shift registers using multiplexing. I've the problem that the Teensy 3.6 is too fast/slow. One part of my code is the Shiftout ...
0
votes
0answers
153 views

DFT using analog read in Teensy 3.2

I am new to arduino world and therefore would like to know how to do DFT using analog read (real time). I know its slow compared to FFT, I checked sample rate to check how fast signalled can be ...
0
votes
1answer
53 views

Infinite Loop on Pin Input (Teensy 3.1)?

I have an infinite loop issue that keeps persisting in this code on my Teensy 3.1. This program is intended to take an input on Pin 0 and press the Enter key on the computer it is hooked into. It is ...
0
votes
1answer
48 views

Parsing sd card file to polymorphic objects

I am trying to read a file from sd card and parse them to polymorphic objects, then have an array of pointers to them so i can access them later. I was wondering what the best format would be to save ...
0
votes
2answers
184 views

Arrays, and for loops… faster to use together, or not to use?

I'm a 4th year EE undergrad, so I'm more of a hardware guy than software. But concerning best programming techniques, is it "better" (more efficient/and/or equally effective) to use for loops when ...
0
votes
1answer
4k views

How do I give the ENTER keypress?

I have a Teensy set up as a keyboard, joystick, and I'm giving keyboard commands. Letter and number keys are going fine. But when I try sending ENTER, I get some extra code in my Linux terminal: $ ...
0
votes
1answer
573 views

Throughput and BER test with nRF24L01+ radio and Teensy microcontroller

I am trying to modify the example given in the this page to a basic throughput and BER test with two nRF24L01+ and Teensy 3.0 modules. I want to modify the nrf24l01_send_string example in a way that ...
1
vote
2answers
144 views

Avoiding false rising and falling edge when using demultiplexer

I have 8 sets of 8 push buttons. There is a Teensy and a demultiplexer. The demultiplexer has 8 outputs. When an output is selected it is pulled low. Each output is connected to a group of 8 push ...
2
votes
1answer
86 views

TEENSY 3.2 RS-232 throughput

I have an application where I need 4 serial ports - 3 will be sending and receiving. The packet size will be up to 255 bytes on these 3 "main" ports. The 4th port will be receive only, and its ...
0
votes
1answer
51 views

Feasability question

I have some experience with Arduino, but not (yet) with other AVRs or Raspberry/Orange. I want to make a project with some slave devices (mostly Arduino Unos, one Arduino Mega). These all need to ...
1
vote
1answer
260 views

65 hall effect sensors as switches to be used as a keyboard with a teensy

I'm trying to wire up a silly little keyboard using hall effect sensors and magnets in a glove. The idea being only I can use the keyboard since I'll have the glove. The sensors are 3 pin, (vcc, gnd,...
0
votes
2answers
454 views

Where is Arduino on Fedora?

I am trying to install the Teensy loader software but I need to know where Arduino is installed. Does anyone know where in Fedora the Arduino files are?
1
vote
3answers
779 views

What are the consequences of different clock speeds on different boards?

I am a programming amateur, arduino noob, trying to decide which board will be better for my project. I need a small board. I am trying to decide between the Teensy 3.2 and the RFduino. I want to have ...
0
votes
1answer
740 views

How to transmit serial data from laptop USB out to Teensy?

I want to send serial data from my laptop to a Teensy LC chip through the laptop's USB port. I am not sure how to do this. From reading I have found two possibilities, which both seem to have problems:...
1
vote
1answer
210 views

When writing to SD card the file has all gibberish how do I fix it?

I am working on a class project where I am using a Teensy 3.5 with a Prop Shield with sensor attached that will be loaded into a rocket that I will launch and gather data from the altitude, pressure ...
0
votes
1answer
172 views

Is there a way to setup an interrupt to trigger at n number of clock cycles from now?

I currently have an nRF transmitter/receiver pair setup on my desk. The transmitter is sending a single byte (0xAA) every 5ms. The receiver sets an LED high to indicate that it received the byte, ...