I'm committed a fix on github.
https://github.com/PaulStoffregen/cores/commit/49b46c208734b6426ad5ed2b8cc6874ecd59ce2e
Why simply writing the correct value to CCM_CBCDR doesn't work at 24 MHz, but the...
Hi! :)
I am looking for a little help and I am brand-new to using a microcontroller with LEDs
I am using this hardware:
Teensy 3.2
Octo WS2811 Adapter Board https://www.pjrc.com/store/octo28_adaptor.html...
Small Edit to code above.
NOTE: As noted elsewhere Compile at 24 MHz and it starts broken as well.
Code change above gives proper and clearer output:
if ( foo < 47 ) {
Serial.printf("\n...
Using p#13 ClocksT4.zip
Replace the ClocksT4.ino sketch with this. It does the changes as in the October Post - with clock data printed by @mjs513 and shows this when the counts are wrong on millis():
"...
Hi,
Is there a low-level 3D graphics library for Arduino (along the lines of DirectX/Vulkan/Metal/etc.) to render 3D graphics? I checked around and found only quite primitive 3D rendering projects, but maybe my...
This is a secondary thread - missed my attention -
Original issue 18 October - details and samples to repro there : forum.pjrc.com/threads/58053-T4-set_arm_clock-and-micros()
Problem is clock feeding millis()...
@loglow/Dan:
'same here as well' - "PCB Only" for the kits as nothing 'used'.
ADD: 1 new Top Mount battery holder, And 1 { 2x5 short header and female socket set }
No it was meant to say that the ARM compiler is older than the AVR compiler, and there might be things that the newer compiler provides by default. I do tend to agree that including stdbool.h is probably the right...
Could you point me to that code, or post it here?
I'm trying this and getting 24 MHz. I must be missing something...
Serial.println("clock test");
uint32_t pll = CCM_ANALOG_PLL_ARM; // page 1154
int...
hi kurtE.
I have done some of the suggestions you gave before.
I have used a buffer circuit to drive Dynamixel AX-12 using teensy 4.0 with the following scheme.
I use pin 0 as RX, pin 1 as TX and pin 2 as...
Hi guys, I'm making my own keyboard with QMK on Teensy 2.0++, and I want to use the teeny's timer interrupt (should shorter than 1 microsecond) to do my own stuff. How can I do that in QMK's source code like my...
@PaulStoffregen
Way back when we first started I wrote an app that displayed all clocks (one of my first endeavors with the T4). I decided to dust it off and run it to see what it dumped out:
At 24Mhz its...
You are right about the 600Mhz. Even if we changed the clock speed in startup we never went down to 24 mhz.
The funny thing about 24mhz is isn't that considered the clock for low-power mode. Know @manitou and I...
Well, if you absolutely want to take a trip to the syntax crazy land:
#define KEY(name__, ...) unsigned int pulse##name__=__VA_ARGS__;\
Key key##name__={#name__, pulse##name__}
KEY(On,...
Thanks @JarkkoL -- that's closer to what I was aiming for, but I was hoping (for clarity) to have it all on one line without having to invent new names for all the intermediate variables like pulseOn -- I'll have a...
Back then we were only really using 600 MHz speed, as I recall.
I'm digging deeper into this issue. Starting to look like we might not actually be running at 24 MHz. Might really be 30 MHz. Very mysterious....
you could do something along the lines of:
struct Key {
char Name;
unsigned int *Pulse;
};
unsigned int pulseOn={9070,4480, 610,530, 600,530, 610,520, 600,530, 00};
Key keyOn = {"On", pulseOn};
Sure, just built it without the DC power jack and 7805 voltage regulator. And of course do *not* cut the VUSB-VIN pads apart on your Teensy (or solder them back together if already cut apart) so your Teensy provides 5V...
I’ve been playing around with new and delete for creating variable wavetable arrays from an SD card for dynamic wavetable synthesis instead of being limited to what fits in flash memory. Caution definitely needs to be...
The qvgatest_touch arrived (https://oshpark.com/shared_projects/TG395I75), thanks for making this pcb, Paul.
Is there a straightforward way to wire the qvgatest_touch to power the ILI9341 from Teensyduino USB power,...
@defragster - Do you remember where this micros() code originated? I believe it was contributed near the end of the T4 beta (while my attention was focused on a ton of hardware & manufacturing issues).
I don't have a Teensy 2 - but set IDE 1.8.10 to Teensy 2 and did Verify of example BLINK - On WINDOWS - with TD 1.49 beta 2 - it compiles and all is installed to build - not sure if it shows anything different as info:...
didn't realize the redist was stripped. haven't used it in a while, guess now that you say that i do remember always having the setup in my home
thanks!
Teensyduino uses the AVR toolchain within Arduino. It's located in {Arduino}/hardware/tools/avr. No system-provided toolchain in /usr/lib is ever used.
Teensyduino never supports any (modified) copies of Arduino...
using void linux, have gcc-avr / adruino ide (1.8.9) installed and they work.
can use my lilypad just fine.
but when i go to install teensyduino
https://www.pjrc.com/teensy/td_download.html
for some reason...
The click is caused when the sound level is abruptly dropped to zero. Instead of a mixer, try using an AudioEffectEnvelope with delay,attack,hold and decay all set to zero milliseconds. Set the sustain level to 1 and...
There is no easy way. Arrays in C++ are fixed length.
You can create a C++ class, which isn't really an array at all, but tries to act like one with operator overloading syntax. Then code inside your class can use...
Today we use C++14, and probably will stay with it for at least another year.
We're probably due for a toolchain upgrade "soon". But that's not going to happen while we're in the middle of so much activity on the...
Hi all
I have five trees in my garden, all of which have a string of 150 LED pixels on them. They are driven by a Teensy 3.5 running OctoWS8211 library
I have a number of effects running on them (wind up tree, wind...
search the forum for ublox or m8q, there have been several threads, eg
https://forum.pjrc.com/threads/46058-A-UBlox-GPS-Module-Primer-for-beginners/page5
I am trying to initialize an array as part of a structure variable, but the compiler options in place on Arduino seem to require that the array size is predefined. Is there a way around this ? Ultimately, different...
Hello,
I am working on a simple wav player. Let's say I have 2 buttons. The first is "Play my wav sample", and the second "Stop my wav sample". When I press stop, there is a little "click" sound. I can't get rid of...
@DerekR: The stand offs - I got a set of four on quick count - they are for the four corner mount holes so when assembled it can sit on a bench/desk without forcing/inviting parts/pins or soldered joints to...
Warning I have not done anything with the T4_ADC_ringBufferDMA sketch yet... Maybe I should make at least a partial fix to this one...
I have/had my own example: Tr_ADC_DMA_RMS, which I extracted my own buffer...
Looks promising! Will get to it shortly and double check. Was using laptop at TV so just happy to get the twin sets of three reading fast and not bother yet with the SD. Will double check the libs here at desk.
The ARM compiler shipped with Arduino 1.8.10 is version 5.4.1 which was released in June 2016. The AVR compiler is 7.3.0 which was released in January 2018. The current GCC compiler is 9.2.0 which was released in...
Well lets start with this. The MahonyIMU.ino sketch uses the PRJC MahonyAHRS library. Do not believe this is the same as the one you download with library manager, just a guess here.
However, the MahonyAHRS lib can...
I agree - all compare stuff is in there from what I can except for the example: T4_ADC_Compare:
this line:
value = adc->analogReadCmp(pin_cmp, 0); needs to change to
value = adc->analogRead(pin_cmp, 0);
EDIT: ...
The bool problem is above my pay grade, hopefully one of the language experts will chime in. Here's what I think. The compile error is occurring in .c files that reference the bool type. As I recall, C does not...
@mjs513 - Updated (\n)
I did a quick check back to your WIP branch and as far as I can tell everything in master is up to date with changes there?
Sounds good!
@KurtE
Download and ran updated sketch - no issues. Compiled out of the box. Used ",datalog.csv" to create a csv.
Configure ADC 1 and 2Press any key to run test
If line starts with , -> CSV file, # -> binary...
Its a brand new Arduino install (today) 1.8.10 with latest Teensyduino. I was able to do the prop shield calibration
Yes, I now see that the PropShield example in the Mahony library compiles . But now I get "Teensy...
I'm using Arduino 1.8.10 and Teensyduino 1.49b2. I can compile the PropShield example in the Mahony library and MahonyAHRS.h (installed with Teensyduino) does contain begin().
Which version of Arduino and TD are you...
I am trying to calibrate the sensor for my prop shield. Once I uploaded the example - Calibratesensor.h to my prop shield, when I view the serial monitor, it keeps showing me config error FXOS8700. Could anyone advice...
@mjs513, @defragster...- I updated the test program, to give option to output binary or CSV files.
Also allows you to type in name of file...
If first character of line is a , the file will output CSV.
If first...
Looks like the bug is within the calculations done in micros(). It seems to be happening at 150 MHz and lower, but only badly enough at 24 MHz to mess up delay().
Here's a test case to easily see the problem.
...
I am trying to build MahonyIMU but I get error :- 'class mahony' has no member named 'begin'
and if I look in MahonyAHRS.h (downloaded using Library Manager) then there is no 'begin'
Totally confused
You can use them as a normal digital pin. I.e. use digitalWrite to make the pin go low or high, and digitalRead to read the status of the pin. As you said, there isn't anything specifically that uses the pin.
Sorry if this is a dumb question, but I cannot find any reference to what Pins 24 and 25 on the Teensy 3.5 can be used for - there is no indication on the pin-out diagram, and all the other pins have some designation.
...
OK, I found that I was still using a default library in C: after turning on the verbose warnings.
The library suggested renders this for the clock example now. It's not wavy now but the lines are obviously not...
I did use Adafruit_800x480. However, I don't believe I've tried that version of the library. I'll give a try.
It's as if there is some sync issue when the display tries to draw about half way across.
With things like, this it would be beneficial if you might provide some additional information,
Like pointers to the actual hardware you are using, and likewise library: Is it this one?...
Probably need to hack it up to write it as a CSV file, would be easier to the read the data from the file. The other possibility is that I started hacking up Bill G's code to read a binary file and the write a csv or...
@nominal animal - DMA examples - There is sort of an example for doing DMA with both ADCs that is part of the ADC library
There are issues, with the ringBufferDMA as part of that project... I had my own code for...
Yep - Thanks, I forgot to put the close in...
Yep - Currently a binary format, 2 bytes per sample.
Obviously we could hack this up more to have something like a CSV file. Would add a little complexity of not...
Sorry for interrupting (pun not intended), but I recently verified the following approach works on Teensy 3.2.
The ADCx is in software trigger mode.
One DMA channel is used to transfer samples from ADCx_R0...