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.

6
votes
3answers
1k views

Is it possible to create a standalone exe which can burn the code into a Teensy 3.1?

So here's the scenario. I have sent my teensy 3.1 circuit to a client of mine And now I need to update the code burned onto teensy without providing client access to the code So is it possible to ...
3
votes
1answer
167 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 ...
3
votes
1answer
566 views

Teensy MIDI Show Control

I'd like to use my Teensy 3.1 to send MIDI Show Control messages using USB MIDI in order to control an ETC Nomad system. These are different from standard NoteOn, NoteOff, ProgramChange, etc. commands,...
2
votes
1answer
888 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
1answer
87 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 ...
2
votes
1answer
228 views

Overwritten EEPROM

I have a problem with the Teensy, its EEPROM and another Array. My program contains two Arrays, the first one is a 128x4 long Array, the other one a 2560x2 double Array. The first Array is meant to ...
2
votes
1answer
693 views

Arduino sending keystrokes via push-buttons. Proper bouncing and manually setting buttons?

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 ...
2
votes
1answer
358 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 ...
2
votes
4answers
996 views

Take an Arduino or Teensy prototype to Mass production - Loading software onto microcontroller

I am developing an educational product that I would like to mass produce. I am not sure of the quantity yet, but I imagine we will make a few hundred PCBs at least to begin I spoke with an electrical ...
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
2answers
1k views

Use command line to upload program through hex file to Teensy-LC

I want to make a standalone programmer for Teensy-LC in windows 8.1. So basically I have provided the board to a client of mine and now I want to change the program loaded into the Teensy-LC board. ...
1
vote
2answers
2k views

How to simulate delay() to debounce mechanical button using millis()?

Im trying to use the millis() function as a replacement for the delay() function in order to debounce a mechanical button. This is for an electric drum kit I am building. Im using a teensy Arduino to ...
1
vote
1answer
1k views

Teensy 3.1 no overclock option for 168 MHz

I'm sorry if this isn't the right area. Teensy uses the arduino ide. I've seen some people show off the 144 mhz and 168 mhz option in their ide. I read in the Teensyduino 1.19 release notes that the ...
1
vote
1answer
67 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 ...
1
vote
1answer
261 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,...
1
vote
1answer
522 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
68 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 ...
1
vote
1answer
151 views

Strange RPM Readings on Teensy 3.2

While trying to read RPM from a computer fan using the 4-wire protocol, I am getting strange readings. +12 and GND from the fan are connected to a power supply, and the tachometer to the PIN-0 or a ...
1
vote
1answer
1k views

Migrating from ATMega2560 to ARM based — Teensy vs Due?

I currently have a project that is working on an AtMega2560 platform (heavily derived off the Arduino Mega). It mainly involves a GPS module and SD card. Going forward I am looking to add a few more ...
1
vote
3answers
717 views

How big of a difference is there between an Arduino Uno and the rest?

Lately I've been fooling around with a project for my Microsoft Sidewinder Force Feedback Pro Joystick. I've found out that there is a project currently for it built for the Teensy 2.0. On the page ...
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 ...
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 ...
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 ...
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
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 ...
1
vote
1answer
418 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 ...
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 ...
1
vote
1answer
569 views

glediator + PL9823 (WS2812B) + teensy = fail?

here is what I got: teensy++ 2.0 with code below Glediator configured for Glediator_Protocol/Single_Pixels/HL_TL/RGB/B_1000000 led matrix with the PL9823 leds (80 of them) I first off have to set ...
1
vote
1answer
577 views

Arduino keypad matrix example? ( teensyduino )

I'm a beginner using Arduino with a Teensy 3.2 board and programming it as a usb keyboard. I have two 4 button membrane switches. Their button contacts are on pins 1-8, and the 9th pin holds a ...
1
vote
1answer
229 views

Is it possible to create an interface between Teensy 3.2 and a DSP?

I realize that this is a forum for Arduino but since the Teensy 3.2 is compatible with the Arduino IDE I thought it would be appropriate to ask the question here. Anyway, can I create an interface ...
1
vote
1answer
420 views

Teensy: SPI and Pressure Sensor

I'm first time working with a Teensy 3.1. I have to connect this (MS5803-01BA: http://www.amsys.de/products/ms5803.htm) pressure sensor via SPI to my Teensy. My problem is, that I don't have any ...
1
vote
1answer
741 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 ...
1
vote
0answers
144 views

arduino teensy no true HI-Z available?

I am using this https://github.com/watterott/SilentStepStick stepper driver to drive a stepper motor. I am having trouble setting pins to HI-Z/floating to configure the stepper driver. To set the ...
1
vote
0answers
213 views

Is it possible to run the Teensy to the Arduino?

I'm already done copying/pasting the libraries that I know is needed to run the program, but I wonder why I always get this error every time I tried to run the code. What do you think would be the ...
1
vote
0answers
121 views

Change device Function Summary for Teensy-LC

I found this thread here which describes procedure to change the produce-name of Teensy However when we open device properties we see 'Teensy USB Serial (COM xx) in the Device function summary. ...
1
vote
0answers
446 views

Teensy 2.0++ SDA SCL pins not accesible using ARDUINO software

Hi I was looking to interface Teensy++ 2.0 with MPU6050 for a simple IMU project. I have done this previously using Teensy 3.1 by trying the project of kriswiner however I also wanted to try it out on ...
1
vote
0answers
96 views

Teensy and MS5803 sensor

I'm trying to use the MS5803 pressure sensor with a Teensy 3.2. Compiling the Sparkfun, or other, libraries, however, results in no output. Can you provide guidance on how to modify the libraries to ...
1
vote
0answers
323 views

Trying to play audio files on arduino via Usb Host Shield

I want to build a program that will seek audio file inside a USB DOK (DisK On Key/Pen Drive) when it is inserted to the Circuits@Home USB Host shield. After a specified file will be found i want it to ...
1
vote
0answers
35 views

Having trouble bootloading my Two-Up printer

I am following these instructions to set up my Two-Up 3D printer, and I have no problems all the way up until step 18. The board uses the arduino IDE to burn the bootloader, which is why I am posting ...
1
vote
0answers
102 views

Arduino 1.6.1 IDE with Teensyduino Serial port lag issue?

OS: Ubuntu 14.04 Board: Teensy 3.1 and Arduino UNO I've ran many tests and concluded that the issue is within the Arduino IDE itself. The issue: Instead of a smooth stream of data displaying from ...
1
vote
0answers
711 views

Teensy USB Core on Leonardo

The USB Serial speed on the teensy is WAY faster then on the Leonardo. Looks like because they have greatly improved the USB code. Has anyone had any luck using the Teensy core libraries on a Leonardo?...
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++) { ...
0
votes
3answers
341 views

Pass Several Values to Library

Unfortunately I have yet to learn C++ though I have experience with C# and other non-C languages. After trying for the past 5 hours to pick up what I can from Stack and other sites I haven't found a ...
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
2answers
334 views

Delay function broken?

I noticed timing inconsistencies in my project, and further debugging pinpointed it to the problem below. The text should be updating every second, but the returned values are >> 1000ms. To clarify, ...
0
votes
3answers
95 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 ...
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? ...
0
votes
2answers
185 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
2answers
445 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
2answers
343 views

Arduino Uno (or Teensy 3.2) programmatically powering an external USB connection

I'd like to create a process to programmatically turn-on/activate a separate USB device connected to my computer...Thinking another way to state the problem, I want the Arduino to complete the USB ...