Most commercial (Din) Midi gear that I've explored have pretty much the same circuit as in the above post. Some have some series L and some bypass C.
If you are thinking of 1/8 inch TRS plugs/sockets then some extra...
Hi, Michael.
D.O.F. - (Direct Output Framework). Bascially, it is software that controls the hardware found on a virtual pinball cabinet. Addressable LED strips in this case.
I managed to get both the Teensy...
Out of curiosity is it sound related (i.e. the Teensy 4.x don't have DACs so you can't just plug in a speaker + amp to A14 and get sounds out). Or is there something else? I'm not sure what DOF is (my other hobby is...
Here is an extract from the supplied source
// TODO: make these checks as inline, since base is
// almost always a constant. base = 0 (BYTE) should
// inline as a call directly to write()
if (base == 0) {...
I'm trying to complete a project on a virtual pinball machine that I'm building and I need a Teensy 3.2 for the addressable LED's to work with DOF. Thus for I've tried a Teensy 4.1 & 4.0. While I learned a lot, it still...
Check out the Octows2811 library page (https://www.pjrc.com/teensy/td_libs_OctoWS2811.html). It says on the Teensy 4.0 and 4.1 you can use any digital pins.
In particular look up File > Examples > OctoWS2811 >...
My colleague and I are working on a Software Define Transceiver using the Teensy 4.1. He wanted to print out a value, val, which is an unsigned long. This code fragment illustrates what I saw:
#include <SPI.h>...
For anyone who stumbles across this thread, yes, it can be done. Not the right tool for the job necessarily, but it worked with the timing tweaked just right with nops.
It'd be trivial to add 5v/3a since there's an entire secondary microcontroller on the board. Hook up the required 5.1k resistors and measure the voltages to see if you can draw more than 500mA.
If that cortex-m0+...
I am looking for feedback on a design.
I need to get 4 cat5e (or similar) cables out of a Teensy 4.1 to drive a large LED array with 16 data signals. Using an OctoWS2811 Adaptor board it is easy to get 2 Cat5e cables...
Imo, it's just cheaper if you only want a simple way to control the printer. I only use Marlin. I was trying to find a different route other than an esp32.
Just a quick (and probably dumb) question: Is the circuit from this webpage suitable for Teensy MicroMod?
Also, would anything need to be added for static protection?
Thanks!
That is an interesting thought that I hadn't considered.
Double checking the datasheet shows that this is only a property of the RX output of the MAX3485 chip. Very interesting indeed *strokes imaginary goatee*.
...
Victor, your program does run correctly, but if I simply comment out the checking for stack corruption, it does not run at all. This is what I have seen over and over with this issue. A working program will "break" with...
@KurtE and @lokki
Found that I had the same issue with my CTH-480 tablet. Think I may have resolved it for both our tablets. I pushed up the changes for touch to the repository so if you want to give it a try and...
A few more thoughts, prompted by reading the "Power Management for Kinetis
MCUs" AN.
I'd assumed that the sleep process took over the pin interrupts specified but I'm not sure this is the case. The power management...
Hey there,
I have a Teensy 4.1 which was working fine. I was working on other projects for a while and now that I wanted to use it again, it doesn't seem to work any more. I tested it with a multimeter and there's no...
Sorry, didn't try when you noted it worked, I got moved to other tasks here ...
Wondering if there is anything telling or unique about the 'new found' malloc code that might point to a solution or change for the...
The wiring is kind of rough. I was trying to make the adapter small, but it makes it tedious to do the wiring. If it helps you, or anyone, I'm picky enough that I actually measured the wires. Lol. It would be really...
Sure that the concurrent access to malloc() calls from multiple threads is a problem that should be addressed. However the main problem looks to be related to how malloc understands the RAM. From my testing, if I place...
thanks, had a glance. i am not yet understanding the input-wacom code, will have to dive deeper.
in the meantime i tried to implement the side-buttons and wheel.
those messages look like this for the wheel being...
Last doe posted with .yield() ending the alloc was not safe with mutex, but assume it finished that to yield before time slice ended preventing multiple callers - and then counter var only allowed one thread to alloc at...
Looks like a fun project.
Right now my 3d printer is dead and my two KickStarter dontations aappear like they may never ship.
Probably should just try to fix my Printerbot... Just the USB connector broke off it.
I’ve got a Teensy Audio Library question. I often find that I want to trigger an envelope using the output of another audio object (a square wave oscillator, for example), rather than using noteOn() in my sketch. What...
Hey everyone,
I made a 3D printer Bluetooth USB serial terminal adapter using a Teensy 4.0 as a USB host and a nRF52840 for the Bluetooth radio. It works well except when running a M503 command. I haven't been able...
When you say the RX line goes low with enable line makes me suspect a particular problem. If you disable the RS485 receiver when you enable the transmitter you will have trouble unless you have something to pull up the...
From the other post with the details of successfully programming a Teensy from within an Ubuntu VM running under a Windows Host:
7) Note that following the successful execution of the 15-second factory restore...
Hello,
I am currently trying to create an 8-band equalizer with amplifier that uses 3.5mm input/output. I have attached a picture of my setup as well as my code at the end.
Currently, I am facing two problems. The...
Hi there,
I'm having a peculiar problem with a Teensy 3.2 (and alternatively the Teensy 4.0) taking 2 digital button inputs and outputting animation to an addressable LED strip (WS2812BSerial library) and midi on/off...
Hi Joe! The reply I am referring is the one where I end with Does this code also works for you? I stopped using printf as it seems to cause many problems and in my full code I have already started to use the...
If KEY.PEM was not created using the tools - there will not be one on the system. This is only used when an encrypted T_4.x is in use.
Also seems the local copy of teensy_secure.exe exists, but is not allowed to run...
Hi Victor. My phone does not show message numbers, so I’m not sure which one you mean. Is it the one with mutexes? I will try it later. If new uses malloc(), you can switch all allocations to tinyalloc by simply writing...
OK, this is working out pretty well, much better than my efforts with the STM32 platform (each according to their abilities). Using the Teensy 4.1, audio board, and audio library, I have been able to framework my effect...
That's correct. While I agree that it would be possible to just use malloc from the main thread, it would require drastic changes in my code because Strings are used. And sometimes when they grow in size, realloc() is...
Email me directly. I have a few extra used ones here which were saved for special testing. They have pins soldered. We'll sell them to you at normal price. PJRC doesn't price gouge.
If you are interested in fine tuning some of the code.
The processing of the messages are in the library .cpp file in the function: bool WacomController::decodeIntuos5(const uint8_t *data, uint16_t len)
Most of...
I used QEMU/KVM aka virt-machine and it was not successful. However, I was not aware of all the USB ID flipping about going on. It seems that as part of normal operation, the USB port is opening and closing a lot and...
@lokki - I just pushed up some changes for the processing of the stylus messages.
You might try it out and see if it gives some better restults.
Assuming it is processing without going through all of the HID...
Looking for (3) Teensy 3.5 boards. Will pay $150ea if you have some spares. Use it to help fund your project. :-). Let me know if you can help me out. Thanks.
-Evan
Hi,
I'm trying to write a morse keyer using a Teensy LC.
I'm using Snooze.sleep to reduce the current consumption while waiting for a key to be pressed.
The key press and release events are detected in ISRs.
This...
if you need additional dumps let me know. i feel you are getting close :)
with debug on there is a stream of messages coming in, even if the stylus or my hands are nowhere near the tablet, is that the case on yours...
stylus moving (the eraser end) first on the surface, then hovering over it. had to shorten the messages again, cut out in the middle.
USB Host Testing
960
*** Device HID1 56a:27 - connected ***
...
here are the side buttons from top to bottom with the wheel once turned. those are pretty easy to grasp, but you get a message for touching the button and one for pressing it down. so a button press is three(four)...
and a continuous slide across the x-axis. as you can see the numbers can't be right. i get many ups and "resets" in the continuous slide, so some bits must be missing there. also had to shorten the serial output, so the...
here is a continuous scroll with one finger from top to bottom on the y axis:
USB Host Testing
960
*** Device HID1 56a:27 - connected ***
manufacturer: Wacom Co.,Ltd.
product: Intuos5 touch M
here is the output (with debug) when i touch the drawing area with one and then two fingers:
USB Host Testing
960
*** Device HID1 56a:27 - connected ***
manufacturer: Wacom Co.,Ltd.
product: Intuos5...
Tanks; That solved that issue, but now I have again another issue. This is what I get when i verify:
AudioGuestbook:49: error: redefinition of 'AudioSynthWaveform waveform1'
AudioSynthWaveform waveform1;...
Does the system have a key.pem file in the sketchbook folder?
-> I can't find key.pem in my PC
-> where is sketchbook folder? Do you mean "C:\\Users\\JINPYO~1.GWA\\AppData\\Local\\Temp\\arduino_build_414163" I can't...
The Teensy LED PIN 13 is on the SPI SCK - clock pin.
So, during transmission over SPI using pin 13 the LED will blink - very fast appearing ON.
Depending on the driver and the use the SPI transmission may be...
I've seen similar problems in the past (intermittently, once every few months, where I'd get a seemingly random large numbered exit code) when compiling with CLion + PlatformIO and never quite figured out what causes...
When I use the TFT_eSPI library, The orange led on teensy 4.0 board is permanent on, but not if I use the teensy ST7789 library, how can I turn it off?
@clinker8 / @PaulStoffregen:
Please see <this> thread where I describe successfully programming a Teensy 4.1 from within an Ubuntu VM running under a Windows host. I haven't tried the Ubuntu VM running under a linux...
Following discussion in another thread (<here>) regarding a lack of success running Arduino + TeensyLoader (including the ability to program the Teensy successfully) from within a virtual machine (VM), I can report that...
When more connections are established, the library pauses every now and then.
This stops the whole program for a few seconds.
How can I fix that.
I am using version 1.0.5
Thanks in advance.
Hello
I can't compile for teensy4.0.
If i try Arduino Uno, It succeed to build.
Tried on Arduino IDE.
Arduino 1.8.19 and Teensyduino 1.57
source code
int i;
My SSD could connect with the 'DriveInfo.ino' sketch and 'DriveInfoAll.ino' sketch. But I ran 'DriveInfoAll.ino' sketch, which Unable to display File system information in SSD. However I could get my 64G Kingston...
In C and freestanding C, it is provided by <stdint.h>, which is available even when the standard C library is not.
In C++ and freestanding C++, it is provided by <cstdint>, which is available even when the standard C++...
@hupool - Something to keep in mind is a lot of thumb drives have small write buffers. I have a 16G Kingston DataTraveler 3.0 that can only do 1.5- 1.6 MB/s. This a fairly old thumb drive. A newer 128G Kingston drive...
None, except a sketch typically includes Arduino.h by default in the IDE
This works to build and upload:
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
while (!Serial &&...
Hi,
for a sketch with Teensy 3.5, developped on Arduino IDE/Teensyduino, I want to use data types uint8_t and uint16_t.
What header file has to be included to know these data types?
bump bump...
Right now, playing with other things... Having fun with tablets right now.
Probably can try to answer questions. don't have hardware to debug, so you may need to instrument the mouse code and see...
Sounds good. What right now I am most interested in seeing are the messages that start off: HPID...
So hopefully with debug on: you should see several of them, which will show me the length, the report ID...
So...
I don't really know but I doubt there are any side effects.
I don't believe you will see any speed improvement in using the i2c_t3 unless you use the added functions that the library provides.
If you use the...
sorry, i am away from my wacom now... will retry tomorrow. but touch was working before this last commit, i got correct results for one axis (0-65000 ish) and on the other axis i got repeated messages between 0-2000...
in this message i sent a whole bunch of messages with the stylus moving on the tablet, so not sure what you mean with do you have a stylus? in fact, i am only interested in the stylus response in the end :-) will sync...
Thanks, there is a little information for me to go query.
I pushed up some changes for processing the 64 byte message
Would be good if you synced up and see if you get anything.
Do you have a stylus? What do...
also with HIDDeviceInfo i have the buttons on the stylus visible again:
HID(10002): 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Begin topusage:10000 type:2 min:0 max:1
usage=90001, value=1 (BUTTON 1)
...
I think we’ve shown that malloc is not reliable from threads other than main on T3. Let’s talk about why you need String in more than one thread. There is no reason to use multiple threads for anything that is logically...
That's another very interesting library I will definitively check. Once again, thanks Joe. I am already using the arduino-printf library which was your suggestion and so far it fits my code like a glove. Barely had to...
In a closer look maybe poor solder joints on pins 19-23? Out of habit, I usually make sure that my solder flows and I'll check the other side to make sure solder made it through the 'through hole'. I would just...