Joe, sorry for the delay, I didn't have access to my Teensy and computer during the weekend. I was not able to reproduce the error mentioned by you when we check for stack corruption. I tried to comment out many...
Arduino/Teensy code is compiled using a GCC C++ compiler, so you can just consult the C++ documentation: https://en.cppreference.com/w/cpp/header/cmath#Functions
Dear Paul,
thank you for your answer, I was on a busniess trip and no way to test it. I did the reset and worked again, now I see the arduino code is ok, as it is working with CAN analyzer, so I need to figure out...
I've made the buffer size configurable at run-time, per object. The code reads half of the buffer at a time, when there's space available, and I'd strongly recommend making the buffer a multiple of 1024 bytes, so a half...
Update,
I have used a Teensy 3.6 at various speeds and overclocks.
Freezes at PDB0_MOD = 1023
When run at overclock, the PDB0_MOD starts at higher values and freezes at the same 1023.
OK, if I can get 10-20 24 kHz voices directly of an SD card, then I won't use spi flash at all.
What blocksize do you read from the SD card? How much buffering is needed? It would be nice if I could run it out of the...
I’m currently working on streaming off the T4.1 SD card, using internal heap or PSRAM as a buffer. So far I’m comfortably achieving 16 channels at 16-bit 44kHz from standard mono WAV files, off pretty much any card I...
Hi,
I'd like to know where the math functions are documented.
I found a list here: https://www.arduino.cc/reference/en/
But this list is incomplete. For example atan(), atan2(), log(), asin(), acos() are missing in...
I'd like to use a T4.1 with a 32/64/128 mbyte spi flash for polyphonic audio playback (10+ streams possible?)
The streams are mono 16-bit 24kHz (or similar mid-quality). Processing will probably be limited to gain...
Hello,
I am using a Teensy 4.0 from SKPANG with LIN and CAN support. I would like to simulate a LIN slave that can read headers from the master and respond back. Would this library support something like this, and if...
The screen clearing is an artifact of the SerMon tool in use.
TyCommander does not do that (except on upload if chosen) - though it does drop the Teensy after some 10 seconds of it going offline. But it caches all...
Here is the code, though it is pretty much the stock example code minus some misc stuff that wasn't being used in my particular application. I started to pull stuff out after running into the issue to try to make the...
I should mention a simpler approach is to use something like the dfplayer that has a SD card and can emit audio directly. There you only send it commands from the Teensy, and you don't have to have two things that both...
I had done it in the days when I was using the Teensy 3.2/3.5/3.6 on the 128x128 TFT displays (in 2018) with the prop shield using the built-in DAC for the sound and encoding the sounds as RAW files built-into the...
The problem is a different one.
The code I posted was an extract from a large code. I missed to copy some lines with watchdog statements. Sorry for that.
The reset caused by the watchdog clears the Serial Monitor...
I decided to do a Halloween project (Zombie Operation Game) using Uncanny Eyes coupled with the Audio adapter to play various sound effects.
I am using Teensy 4.1 with the Rev D audio adapter.
Displays are two...
"STATUS = Module_info((uint8_t *)pCFG, sizeof(CFGstruct));
if(STATUS == RET_SUCCESS)"
BriComp;
Is this what you were referring to when you said "Ideally have your data in a Struct, and just send the struct each...
sorry, busy day. yes i figured it makes sense to declare a new type for those buttons. on the intuos4 and intuos5 as well as the intuos pro models, there are 9 buttons and a wheel (which is used to choose brush size for...
There are probably 100 ways to do this:
It also depends for example on if you wish for example for the string generated to be fixed length like 16 bytes or do you want leading 0's to be removed.
Here is simple brute...
@KurtE
Just ran it for my wacom Intuos Pen & Touch small S size CTH-480 / S0:
*********************************************
Parsing Report descriptor (0x1fff2190) size: 192
06 0D FF // Usage Page(ff0d) -...
This morning I am starting to play with seeing if I can enumerate the Report descriptors and later maybe try to query some/all of them.
I put up a new branch: https://github.com/KurtE/WacomController/tree/HIDReports...
Thank you very much for this valuable information. The units will be the transceiver connected to the Teensy mounted to the duel H bridge tracker board at the solar array. It will have multiple sensors connected to the...
If you just wanted the value as a sequence of bits, the C/C++ method is to do shifting and masking. There are two ways to number the bits. The first method is big endian where bit #0 is the sign bit, and in a 32-bit...
Big thanks for the responses!
String BinaryString = String(Value, BIN);
@Saibot - This worked, thank you! However, when I wanted to invert the binary bits using the ~ operator, the sketch hangs. Makes sense,...
I've got CrashReport working well saving to eeprom using method at #3, Also been using the breadcrumbs in 1.57 which are a really useful addition.
I'm now trying to chase down an intermittent 'hang'.
I've added a...
Use the last type.
All modules have the same Channel.
Module A has address set to FFFF - Send to - Receive from ALL modules.
Each module should be set up with their own address:
A - FFFF
B - 0001
C - 0002
D -...
@KurtE
Thanks!
I used the serial stuff while debugging on the computer.
But in the field its standalone - 12v power and CAN to request/respond for data.
Question is, how long is CrashReport available for? Duration...
@Rezo - looks good.
My guess is that if you were not trying to write it to two places, you would not need the Stream stuff, but simply print the CrashReport to the SD file.
Also wondering in your case, if you fail...
Hello all,
I've now replaced Nativeethernet for QNEthernet and now I'm trying to send a 8400 bytes image to a browser but it doesn't work, how do I do that.
The image is in the progmem "prog_char logo PROGMEM =...
Set the receiving station to Home Address (Whatever number you choose).
Set each remote station to their own address (REM01, REM02 etc)
Set all the channels to the same HOME and Remotes.
When sending from a remote,...
Does the device or the TFT_eSPI have Touch interface enabled? If the library is reading for TOUCH the reads may be continuous - they were when monitoring for the Teensy ILI9341 touch - until the interrupt pin testing...
Thanks for that info. Ideally I would like both a Toslink input and output solution(s) that have I2S on their other ends and can run on the 4.1 Teensy' voltage. The S/PDIF would get its own (not powered from the Teensy)...
Did not see that first thread. Did see the board link and then lost that link so thanks for posting it. That board looked very good/interesting. I don't know enough to know if that board is compatible with the Teensy...
So this is something that I have been working on for a while and actually have had working for a while..
THIS HID Header Stack that I figured out some months ago should give you all you need to get an extended...
If Pin 13 is used as SCK - AFAIK it will light during transfers and cannot be turned off if active. Either using an alternate pin or transfers are too fast/few between to see in bright light - if it is working.
No...
Had the same question on phrasing: Suppose it is wanted stored as a series of bits in an array of some sort?
Of course sprintf doesn't do binary - forgot itoa while deciding to play
Here's the fun with itoa error...
I used the info from this thread to log the crash report to the SD card, as I have a device that runs in the car and does crash from time to time for some unknown reason.
Here is a basic sketch I used to accomplish...
I'm not sure I understand you correctly since an integer is stored binary into memory.
But perhaps you mean that you want to store "10000000001000" as a character string?
You can use the itoa function.
Here is the...
I tracked down the GitHub repo, and it looks a bit like a student project, lots in there which smells of inexperience! I also can’t see how the part you’ve borrowed could ever have worked, though I didn’t search for...
Good find on that post @PaulS.
Very few T_4.1's ever indicated here with any such problem as this post.
They catch my eye since I had two quit working in short order for no known reason. I didn't trust my hamhanded...
Hi All,
I'm looking for a simple way to convert an integer to a binary number and store it in 1's and 0's. The code below does exactly what I need... it converts 8200 to 10000000001000, but doesn't store it. How can...
If I read the datasheets correctly, both the TLV75733P and NCV8186 are short-circuit protected and therefor unlikely to fail.
If you don't see a short from 3V3 to GND, you could power the Teensy from 3V3 only and see...
I an looking at about 500 to 1,000 feet but would like to get the highest transmission possible even though it is only sensor data there will be like 6 to 8 sensors. I was also looking at there 2.4ghz transmission...
The sample code shows "config.callback = myCallback;" - so the feedTheDog() isn't used as the callback. Seems that was misstated ...
The example feedTheDog() says if called sooner that 5.5 seconds since the last...
Thank you very much @defragster for responding.
So in the code above, feedTheDog() is called by the loop every 5500 ms. If 30 seconds go by and the automated interrupt callback had not been called, the Teensy will...
Two numbers control the function.
That third 5500 is just to limit the repeat calls to wdt.feed() to no more often than 5.5 seconds
Source comments show:
config.timeout = constrain(config.timeout, 0.5f,...
I have been using the watchdog Timer library (WDT_4) and find it to be indispensable especially in remote installations.
The library seems to be working but I have never been able to find a good explanation of its...
Quick update to all (mainly mjs513 and lokki),
I have merged in the changes, but I think we probably should maybe look at how we should handle differences in the different tablets.
That is: there are now defined 3...
Yes, it just allows indexing each byte of the 2 byte number. So code should just suppl it with the desired 16 bit value and it deals with the transfer.
Thanks for the reply.
I tried commenting out the private; line so everything was public. I still get the same error. The _pin variable is private and doesn't cause any errors.
The reason for the union lies in...
Looks like 'private' is blocking that structure declaration internal item _DAC_buffer:
...
private:
int _pin;
static union {
uint8_t ui8;
uint16_t ui16;
} _DAC_buffer;
};
I'm trying to port my application from a teensy 3.2 to teensy 4.0. I used the built-in DAC in the 3.2 so I will need to use an external one with the 4.0. I found a library for the MAX5443 in an old github project. It...
What is sending the Data to the Rx Serial1 Pin? Assuming That Rx pin and GND are connected to the device?
Are the characters received and printed as expected up until the loss of Communication?
On a T_3.5 here...
You might be trying to print some non-printable characters that are doing unexpected things. Are you sure ASCII 31-91 are all printable? Make sure, modify if necessary, and try replacing:
Serial.print((uint8_t)c);...
Websearch found these:-
https://grindskills.com/%C2%B112v-protection-for-midi-input/
https://grindskills.com/%c2%b112v-protection-for-midi-output/
Note that Korg and Arturia were using TRS with different polarity...
I have the following test setup:
1) a board with a serial output
2) a Teensy 3.5, RX1 connected to the serial output
Every 8 seconds the board is sending a string and after each fourth string it sends immediately a...
Not sure what product if any has been selected. Also what is meant by 'low level transmission data'?
Looking at this as an example: adafruit.com/radio-featherwing
It notes it uses SPI to connect, and indeed the...
Thanks for the clarification. I mistook it for being involved with the voltage regulation.
Done, no short.
Sooo, dunno. Should I get another TLV75733P and replace it or is it unlikely that this one is broken?...
I've played briefly with S/PDIF on a Teensy 4.1. I received audio generated by a Teensy 3.2, connected electrically (3.2 pin 22 to 4.1 pin 15); and output from pin 14, via a TOSLINK transmitter, to a cheap S/PDIF to...
Thanks a ton for the quick reply and confirmation. That makes a lot of sense.
I actually am planning on using 1/8" TRS plugs/sockets. Any idea what should be added where to the circuit to protect it better?
The possible problem I can foresee is that LoRa is very low level transmission data and I will have multiple sensors sending data to a GUI and App on Android. Can anyone give me any information on this aspect.
...
I merged in your PR.
Have not looked at the LEDs yet. But I would probably look in wacom_sys.c for references to the word INTUOS5.
Like in wacom_initialize_leds()
And then look at functions like...
Probably you have seen this thread?
This board does SPDIF output for Teensy 4.1 as well.
According to the Audio System Design Tool, Teensy 4.x outputs on pin 7 instead of pin 22 for Teensy 3.x.
Paul
What I will be doing is using the long rang communication so I can either use a android cell app to monitor and also a wall based touch sensor unit for monitoring the voltage, current, battery status, solar tower...
Nope, the third pin is the gate of the FET connected to GND. See schematic.
You may want to check whether the output of U4 TLV75733P voltage regulator] is shorted to GND somehow.
Paul
For p#2 referred to this: arduino.cc/reference/en/language/functions/communication/serial/print/
Didn't look into sources for either. The FORMAT param is noted for 'Arduino' - but not given complete coverage beyond...
WOW!, that is so nice of U to do that Paul. In this rather daunting time of Corporate greed it is nice to hear someone doing a nice gesture. I wish Nvidia would follow your lead as they are now charging 6 to $800 for a...
this could be handy:
https://github.com/jigpu/linuxwacom-wiki-archive/blob/master/wiki/USB_Protocol.md
i don't see a difference in our HID messages that would recognise pen vs eraser. can you differentiate the two...
the intuos5 also has 4 leds around the wheel that can be changed by a press on the wheel button (this is how it works on linux/osx with a proper driver)
i guess the HPID(16): C0 00 00 00 00 00 00 00 00 01 00 00 00...
i did some work now, processing all the side panel infos, buttons, wheel and wheel-button. i hope i used the right coding rules, tried to embed it into the existing code as well as possible. the 8 buttons on the intuos5...
** TeensyStrip Controller
** ----------------------
**
** This Sketch turns a Teensy 3.1, 3.2 or later into a controller for WS2811 / WS2812 based led strips.
* *This strip controller was originally designed for use...
I've solved this, at least well enough for now.
The trick was not to use Snooze but to use chipaudette's idea of calling WFI.
This gets me down to 18mA of which 10mA is the quiescent current for the voltage...
According to those who have installed the Teensy StripController software on the Teensy 3.2, the LED matrix should display a pattern of defined symbols (arrows, plus sign, ect.) but when on the Teensy 4.0 and 4.1, all...
Not sure what you are expecting?
The 2nd parameter for integer types, is the base to use to print, where we have defined:
#define DEC 10
#define HEX 16
#define OCT 8
#define BIN 2
// BYTE was defined in very...