I'am working on a project using Teensy 4.1 where I read the frequency of a Quartz Crystal Microbalance (QCM) using the FreqCount library. My goal is to be able to detect very small changes on the QCM frequency (natural frequency around 5 MHz)...
So, the use of the word 'reset' was used out of habit. I know its a 'Program' button but thanks for double checking my knowledge on the matter (or rather correcting my terminology). So, Its certainly bricked. I have put this down to a faulty...
Did a bit more of a deep dive into the specs and the 2 libraries. Here is what I found:
1. Adafruit library uses an older version of the Hillcrest SHTP protocol geared to the BNO080 and BNO085 which they have break outs for. They do not...
Here's a test program to verify that the header works for VGA images. It generates a .BMP file with color bars and gray scale bars with the bitmap in RGB888 format (which is really GBR888 in the file). It includes MTP so that you can easily get...
@PaulStoffregen
Was doing some more poking around with this chip and how its using RST and INT. Definitely don't think its as I2C issue - more of device/libary issue. As a note Sparkfun uses the CEVA library for interfacing with the device.
I have had a similar problem to yourself, receiving temperature and humidity readings from multiple ESP32Cs by a single ESP32C and transmitting to Teensy 4.1 via UART for storage for future analysis.
At first I used Text transmission, like...
Maybe <this> is the post that you are recalling ?? This may or may not apply, as the post recommends adding the "DSB" command at the end of an interrupt function when using the T4.x (which is much faster than the T3.x).
Mark J Culross
KD5RXT
This writes a BMP that is read without complaint by Paint Shop Pro.
// https://forum.pjrc.com/index.php?threads/create-an-image-as-an-array-of-pixels-and-save-as-bmp-file.74006/post-334757
/*
a test script to generate an image, dump it to...
Interesting.
Here is my (Atari HD brick) HD ACSI implementation with Media Transfer Protocol.
I'm pushing the limits of the Atari ST/e DMA speed, based on Teensy 4.1. :D
Sorry. I don't have a blog or a GitHub. Nevertheless I am very happy to share the code with anyone interested.
If you want deeper details/information, probably best to PM me and I will answer ASAP.
I kept many of my Atari ST floppies from the...
Hey I am just curious is there any more information about your project somewhere for the Atari ST disk drive ?
Just asking because I am big fan of Atari computers.
Here is one of my projects for Atari Falcon 030 FDI+ Work In Progress !!!
I just got my Teensy's ordered! Was looking at the ref manual and see that at least some of the lp-uarts have the "single-wire mode" that we need for SDI12 communications, so that is a good start. I haven't really dug into the T4's serial code in...
You can only set the priority for the whole port not just one pin.
void setup() {
// put your setup code here, to run once:
NVIC_SET_PRIORITY(IRQ_PORTD, 0);
}
void loop() {
// put your main code here, to run repeatedly:
}
Hi guys,
Thanks for all the advice. I'm not really in a rack mount environment and don't have room to install the Mean Well - good recommendation, may end up using that device in the future.
I'll also look to protect Teensy GPIO with series...
NVIC_SET_PRIORITY(fromFDDreadPinIRQ, 0); // HIGHEST priority
I am pretty sure that during the track/sector read only the index pulse and read-data can generated interrupts. I switched off the SysTick. Other sources of interrupt, well I'm...
I have done some further investigation, looking at the raw data captured from the FTM timer module.
I also compared a good data stream against the place where it was corrupted. I tried to line up the re-constructed floppy read pulses, but when I...
I suggest you take a look at the libraries EasyTransfer and SerialTransfer. They are not cross-platform, but they are simple enough that you could implement either one on the PC side. They both have they same purpose, which is to send/receive...
The syntax I use for a BMP header is:
# pragma pack (push)
# pragma pack (2)
// save previous packing, then set packing for 16-bits
typedef struct tBMPHDR565VGA{
uint16_t bfType = 0x4d42; //'bm';
uint32_t bfSize = 614466;// 614400...
Thanks for confirming. I'll keep this thread on my list to watch, but sounds like no need to deep dive right now. If it is looking like Wire might have a problem, hopefully a clear test case can be made before I dive into the Wire library.
I think this is part of the problem:
dibHeader.width = 128;//width;
dibHeader.height = 48;//height;
The header you've written says that the image is 128x48 but what you actually write is what is defined here:
#define IMAGE_HEIGHT 3 //48...
Before you disable other interrupts, perhaps first try NVIC_SET_PRIORITY(IRQ_PORTD, 0);
0 is the highest priority, 255 is the lowest. By default, various interrupts are assigned 32 to 128, so setting 0 will allow it interrupt any others and no...
@tim:
You should be able to use the PITCHBEND & MODWHEEL pots exactly as wired. PITCHBEND usually has some mechanical mechanism to return it to center when not activated, so I'll assume that this is the case in my functional description below...
i will admit i am a bit lost here. Can you give examples of how to use this. This is what i did before:
struct __packed BMPFileHeader {
uint16_t fileType; // "BM" for...
Hi All,
So I am using LVGl on my teensy 4.1 and I would like to use the data from a font .c file in an unusual way. With the font defined as a .c file, I am unable to change the data within the array (only read from it to draw the font). I...
I would appreciate any pointers (other postings, web sites) as to how to identify all sources of interrupts and the code needed to disable them. The MK20 SoC is a complicated and sophisticated architecture and I am no expert. It's significantly...
Yes, I know this is not a Teensy, but needed a diversion. Plus lots of things to try to improve.
Yesterday I was curious about how fast the digitalWrite calls are and if there was a digitalWriteFast and if so how much did it speed it up.
There...
Most but not all Teensy 3.0 had black solder mask. Some of the earliest Teensy 3.1 were also black.
The board in this photo is definitely Teensy 3.0. The lighting doesn't quite catch the main chip well, but it is readable "MK20DX128VLH5" with...
Hello,
I make haptic devices that requires very low latency (<0.3ms or 3kHz+), but also very small packages of data, often < 64 bytes.
Normal APIs, especially in Windows, usually don't get the settings right to reach the low latency needed...
Personally I don't think its a Wire library issue. I just retested the both libraries by just attaching to the QWIIC connector on a Micromod board and a R4.
TMM: Sparkfun lib doesn't see the sensor for the couple examples I tested.
R4...
Quick followup, is there still reason to believe the Wire library may have a bug which I should investigate?
I see we have a solution to use Sparkfun's library and connect RST and INT pins. Is there any reason to believe the problems without...
While playing around with another project realized that I pretty much forgot how to use the Teensy SDFat that comes with Teensyduino to access the partitions on a SD card. Pretty always use MTP responder when I wanted to do stuff like that or...
Hello. Has anyone's experience with the new R4 been better than the super hit or miss cloud agent performance on pretty much all the other IOT devices? It doesn't actually seem to be hardware related, more browser and an inability to code...
Looking at sources this shows perhaps a way to ensure the packing is properly atributed:
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4\cmsis_gcc.h:
65 #define __WEAK __attribute__((weak))
66...
The code in p#2 only went to 0 when input was on GND, and would go full scale when on 3.3V as expected.
Floating in between - a small amount ~33 and then rising when touched to something over double that. That values showing now are above...
here is an update to my sketch. Lots more control via the serial monitor. press h enter for help. All seems to function right, but these BMPs just wont load on my pc..
/*
a test script to generate an image, dump it to serial and save / open...
I have updated the struct, is this right?
// Create BMP File Header
struct __packed BMPFileHeader {
uint16_t fileType; // "BM" for Bitmap
uint32_t fileSize...