I googled "github MCP23S17 Arduino" and found this library, which seems to have what you want. I have used some of Rob's libraries and they work well.
https://github.com/RobTillaart/MCP23S17
Here is a fix to TeensyStep4 for the slide getting "stuck" at 9999 in example sketch RoseFollower_T4. Please use this instead of the work-around from my previous message.
In file stepperbase.cpp, modify function overrideSpeed() as shown below...
There are no examples in the Teensy library on github, but the Atom website is pretty good. Lots of documentation, but no examples as far as I can see.
www.atomthreads.com
I figured out why the RoseFollower_T4 program hangs, and I have a work-around for you to test.
The program hangs when the value speedFac is too close to 0. The work around is to add the code shown below to the tick() handler, before the call to...
The port for Teensy 4.x is in my github repository that I linked to.
Unlike the other ports, initialization is automatic; when you #include <TeensyAtomThreads.h> the startup code will be automatically invoked and handle calling...
Elf, I read the messages on github. Do you mean that this same program runs well on T3.5/3.6, with the only change to the source code being to #include "TeensyStep.h" rather than "TeensyStep4.h"?
Okay, thanks. It's going to take me some time to get into the low-level stuff. I have to understand how this program works on T3, then try to understand how Luni has mapped T3 timer functions onto T4 timers.
Thanks. Good to know that it's 2-4 motors. It would be helpful if you could synthesize requirements that are not specific to your application. For example, what are typical motor resolution (steps and microsteps per rev) and speeds (microstep/s)...
Jon, I'm interested in trying to help get TeensyStep working with T4. Can you provide a small sketch that runs on T3 and captures the capabilities you need for your application? What I mean is, I'd like to understand how many stepper motors you...
GPT is the best choice for what you've done, but just FYI, both FlexPWM and QDC (quadrature decoder) can be used to do something similar. In FlexPWM, the compare value is only 8 bits, but in QDC it is 32 bits, the same as GPT.
How do you get double? Ken's is $5.95 assembled, whereas Sparkfun is $6.95 (board $4.95, ribbon cable $1.50, 2x3 header $0.50). The mounting holes are a nice addition.
Suggest to use MTP_Teensy https://github.com/PaulStoffregen/MTP_Teensy which is build on my version but is modified to interface better with Teensyduino ongoing development
Uno Q is compatible with Arduino shields and lots and lots of Arduino libraries. That makes it quite different from RPi. I haven't used Uno Q yet, but I would imagine the on-board microcontroller can boot up more or less immediately, so perhaps...
Paul's library is Encoder. Let's say your encoder variable is named myEncoder. You would set the value to 0 as shown below. You can learn more about the library by looking at the library example programs.
myEncoder.write(0);
@charnjit - First of all your opening and closing braces are all wrong although it still compiles:confused: You lucked out I guess.
void DO_COPY () {
}
void setup() { // This starts the setup function.
// } -----------> wrong
// void...
The ADC library has examples for how to do timed analog reads. Don’t know what you do on each read or anything about your display code, so can’t say more. Show your code!
I have now gone 21 days without water. My Camel died days ago after I was forced to drink it's last water to stay alive. But I keep my hopes up. Paul shall arrive soon with a truck full of fresh water. He might even bring me a new Camel if I'm...
Your sketch is using a library called QuadratureEncoder, so it is not using either of the two Teensy-compatible encoder libraries (Encoder and QuadEncoder), and it does not even appear to be using Teensy. Are you using Arduino Uno? Shouldn't you...
You probably should show your code. You don't seem to be using either the Encoder library or the QuadEncoder library, because neither has a class by that name.
AM234x looks interesting, but I don't know of any development environment other than what you could get from TI. Doesn't seem like much of a boost from T4. Paul hasn't been able to work on it much, but I'm sure that one of these days there will...
Not sure yet: For example I have a few different RPIs sitting around, like a 5 with an SSD on it, a couple of 4s... Most of the time they
sit in a cabinet... Nice boards.
Had: a Beagle Bone Black (when it first came out don't remember but...
I don't think so. The problem may be related to your bigserialbuffer. You don't show the variable definition in the code you posted. If you post a complete program that builds, runs, and shows the problem, we might be able to tell you what's wrong.
When you do need a timer interrupt, use IntervalTimer instead of TimerOne. IntervalTimer uses Teensy's 4 x PIT (programmable interrupt timer), so it generally won't get in the way of what you're doing with other pins.
I'm guessing you're new to Arduino, and if so, I'd like to point a couple of ways to simplify your program.
All Arduino-compatible boards, including Teensy, have a built-in 1-ms timer that you can read via the function millis(), and you can use...
Hi everyone,
Here is a project I have been working on and off since covid, which I finally found some time to complete this summer... So I proudly present:
S.A.R.C.A.S.M : a Slightly Annoying Rubik's Cube Automatic Solving Robot.
Here is a...
The only thing I see in the manual that looks like it might work is the FORCE capability. FRCEN enables initialization from a FORCE_OUT event. FORCE_SEL lets you assign an external signal as the source of the FORCE_OUT event, which initializes...
I commented out the "wfi" statement used for CORE_TEENSY as shown below, and the Blink example now runs correctly. I assume this means the processor spins in an idle task rather than actually sleeping. With this change, the Blink example runs...
The github page for TaskScheduler says it was tested with Teensy 3.5. The only reference in the source code is use of a macro CORE_TEENSY, which is defined for all Teensy models. The simplest example program (blink) builds with TD 1.59 and runs...
@joepasquariello
I find your modifications excellent for my project ( Audio I2S SAI1 SLAVE IN to S/PDIF OUT sync ).
I can't believe how accurate the frequencies seems to be here :D
I'm measuring WCLK (Word Clock) Master to Slave T4.0 on - LRCLK...