Questions tagged [teensy]

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

Filter by
Sorted by
Tagged with
5
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 ...
4
votes
1answer
641 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
179 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 ...
2
votes
1answer
1k 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
262 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
111 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
737 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
402 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
1k 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
647 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
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
2answers
2k 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
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
82 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
350 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
640 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
81 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
159 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
3answers
737 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
44 views

Parsing and comparing strings on Arduino: different behaviour from gcc?

I am trying to parse a simple string, print the result of the parsing via serial.println, and trigger a function on the basis of the received command. I wrote the code below, which perfectly works in ...
1
vote
1answer
89 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
167 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
164 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
2k 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
260 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
489 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
866 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
592 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
2k 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
1answer
621 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
235 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
449 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
821 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
71 views

Program does not seem to be passing from setup to loop, or printing to SD card

I am trying to write code to test servo motors using an encoder. I create a file in the setup part, and then set 1500 microseconds to 0 for the encoder. However, if I try to print something to the SD ...
1
vote
0answers
171 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
222 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
125 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
515 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
101 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
361 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
36 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
104 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
740 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
7k 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
417 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
5k 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
380 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
101 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
74 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
287 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 ...