Stack Exchange Network

Stack Exchange network consists of 174 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
10 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
15 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() {...
0
votes
0answers
26 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
31 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 ...
1
vote
1answer
34 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
73 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 ...
2
votes
1answer
157 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
52 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
53 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
470 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 ...
-2
votes
4answers
737 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
133 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 ...
0
votes
2answers
124 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
121 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
2answers
129 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 ...
1
vote
1answer
97 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
268 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
32 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
0answers
160 views

reading the time off of a RTC for portable projects with Teensy

I am trying to understand the documentation here https://www.pjrc.com/teensy/td_libs_Time.html I've spent a while testing out TimeTeensy3 and timeserial examples and I'm still very confused. Yes the ...
0
votes
1answer
196 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. ...
0
votes
0answers
134 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
49 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
40 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
0answers
306 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
0answers
38 views

Teensy 3.2 Lost sketch

My company uses these teensy boards for our gas detection hardware. We obtained these by purchasing another company a few years ago. We have everything but the original sketch that was written when ...
0
votes
2answers
133 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 ...
1
vote
2answers
132 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 ...
0
votes
1answer
308 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
69 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
206 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
0answers
109 views

ResponsiveAnalogRead out of bound values

I'm currently using ResponsiveAnalogRead for a joystick projet. The joystick I use has two pots, X and Y, and many buttons. Very classic setup. I use calibration phase, during which I push the ...
0
votes
2answers
380 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
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 ...
1
vote
1answer
179 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
147 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, ...
1
vote
1answer
453 views

Hacking old car dvd monitors with arduino

I got this old junk LCD from my car. The DVD function stopped and the LCD holder on the top of the car broke, so I took it. Is there any documentation or advice I could use to get this working with ...
1
vote
1answer
362 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
3answers
92 views

Subtraction with doubles returning zero erroneously

I have a function that takes as parameter some doubles and does a subtraction operation on it. However I'm getting a result of 0 when one of the parameter is 0 for some reason. int calcPID(double ...
1
vote
1answer
60 views

Teensy lc linker script question

I am under the impression that the origin of RAM on a Cortex M is 0x20000000. However, in the linker file for it, the ORIGIN of RAM is set to 0x1FFFF800. Is that an error, or is there a reason for ...
0
votes
1answer
111 views

teensyduino with teensy LC: cannot include multiple files in sketch

I'm trying to get a rather large sketch working with a teensy LC. I'd like to break it into headers and C files, but the multi-file sketch fails to compile. When I put everything into a single, ...
0
votes
2answers
147 views

Hardware damage from executing tight polling loop over extended periods of time?

I want my project to be standing by at the ready for months and years at a time, so I started writing my code to throttle back from polling at delayMicroseconds to just delay. Like, after 15 minutes ...
0
votes
1answer
718 views

Teensy to Teensy serial communication via USB connector

I have 2 Arduino Teensy 3.2 boards that I'm trying to implement serial communication between the 2 boards. I have successfully done this by connecting RX1 of the 1st Teensy with TX1 of 2nd Teensy and ...
0
votes
1answer
697 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 ...
0
votes
2answers
748 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
2answers
163 views

neopixel not blinking

I have some neopixels, and I have one hooked up to my teensy. I want to have the color change, when the push button is pressed vs not pressed. The LED will change colour when I upload the code, if I ...
0
votes
2answers
393 views

From Wiring to pure C

I'm using the Teensy 2.0 (atmega32u4) and decided to switch from Arduino IDE with Wiring to pure C. I think it's much more useful to master programming microcontrollers on that level. Wiring seems to ...
0
votes
1answer
447 views

Connecting external mic to the Teensy

I have a Teensy 3.2 and the Teensy audio board. I was going to connect lavalier microphone to its audio jack but learned that it's only for output. There are line-in pins though (see "Back Side" ...
0
votes
0answers
137 views

Reconnect to Serial Monitor

I have a project for which I have to work with a Teensy 3.2. For the project I have to disconnect the Teensy from my pc running Arduino 1.6.7 (Win 10, 64 bit). Within its runtime, the Teensy ...
0
votes
1answer
142 views

can teensy 3.0 or above run fingerprint scanner fps gt-511c1r?

I have an fps gt-511c1r fingerprint sensor module. I want to know whether i can run it using teensy 3.0 or above? I have tried it successfully using arduino uno. EDIT: I have uploaded the fps blink ...