Some more progress on menus and things. All of the threading section is complete. Most of feeds are done. Have lockouts on the stepper driver until explicitly initialized and started. Still need to clean up the...
Debug build did not help. Same problem. Yes, I should cancel that bug, and write a more descriptive one. At the time I wrote it, I was in a panic, kernel and personal! I have ensured I have backup of everything, and...
Believe me, this has been a royal pain in the neck. When there's a crash, all you get is a frozen screen, then 30 seconds later the laptop turns off. No chance to do anything, or save anything.
For the weekend, I...
So far this seems to be an Ubuntu and Ubuntu derivative Linux kernel problem. Regressing libusb did nothing. Reverting the kernel seems to have fixed the crashing problem. There are so few users of TyCommander...
Interesting idea on using Powerpoint to make up the initial storyboards. I just did that part with a couple of pencil sketches. Hadn't thought about making a bit map from it. That bit was clever.
At the moment, I...
Seems to be TyCommander that is doing the dirty deed. Why, I don't know. If I use the Teensyloader, it is fine. So for now, that's what I will use.
On a side note, I had ordered a TI Launchpad board, in February,...
That was informative. Thank you. On line 215 of your link, there is mention of using libusb 0.1. Checking my computer for libraries, I have libusb-1.0-0, but in arduino-1.8.19/hardware/tools there is a...
Yes, I have forgotten a \n or two in my time :)
Since I am running on PopOS 22.04, which is a modified Ubuntu 22.04, I have some support from System76, who are the originators and maintainers of PopOS. Basically...
Don't see any binaries on either site. Somehow, I have to undo any tytools integration. Suspect there isn't any (this time, since the laptop crashed on the click to integrate).
Originally, I downloaded the 0.9.7...
@defragster, tycommander was my go to tool, once I learned about it. Extremely useful. I was using it for handling multiple Teensy's, great for that.
My build was from source, which should have gone ok... I did...
So no comments? Am I the only one with this issue?
What is odd, is that it runs perfectly on RaspiOS64 on an RPI4, but still violently crashes my Pop!OS 22.04 i7 computer (32GB RAM, 1TB SDD). @KurtE, you are a...
So it happened once with just Teensyduino and Arduino. After that, I thought maybe I had a bad install of Arduino. So uninstalled it from the system, and tossed the directory into the trash and deleted it from trash. ...
Isolating the active hub from the laptop does not prevent reboot. Total current draw on the USB3 port is 0.23A.
Using valgrind shows memory leaks in tycommander, although they maybe false. I compiled in debug mode,...
The RPI4B isn't that fast... But it is tolerable, especially compared to doing it all again by hand!
FreeCAD is free. You can have your own designs and they can be proprietary, if you want. Not going to say it isn't...
Arduino IDE 1.8.19, Teensyduino 1.56, TyTools 0.9.7.
Symptom: Flash of Teensy 4.1 causes hard crash of laptop - screen freeze 10 seconds, unresponsive to keyboard or mouse, then laptop power turns off.
OS: Ubuntu...
Alas, no significant progress. My laptop has some sort of problem where it just freezes and turns off the power. This typically happens just after flashing a Teensy. Don't know if it is HW, or SW. Been attempting to...
It is this one: Linux Installer (AARCH64 / Jetson TX2)
Teensyduino installed fine on RPIOS-64. Running off SSD now. Could be faster, but when your main computer is on the fritz, it is good to have a backup system. ...
I am trying to bring up an RPI4 running the 64 bit version of Raspberry Pi OS. So far, I have dual monitors, over clocked a little, and will soon boot from SSD. Why am I doing this? Err, my laptop has some sort of...
Well color me embarrassed. drawNumber works just grand. Can't believe I didn't see that before. Sorry for the noise. Slowly this interface ekes along...
I found the drawFloat function which is handy. However, I'd like to pass an integer to a similar function to get text in the center of the box. drawString means I need to convert the int to string. Haven't found an...
Thank you very much Paul. Appreciate it. The drawing confirms some of the not quite rounded to nice metric values that I had measured. Wasn't sure if I had measurement error or not. Much better to get the...
I bought a 3.2" display board from PJRC. When I looked at the information page, it seems that the mechanical drawing is for the smaller 2.8" display. Is there one for the 3.2" display? I know I can measure stuff, but...
@luni, very sorry, not to have acknowledged. Thank you for looking into this. I have updated my code accordingly. Now spending a bit of time on the UI along with the system level state machine. There's probably four...
No, I would never change thread pitch while cutting threads with the spindle is turning! My state machine (if I write it correctly) would prevent that from happening. Although it might be interesting to see what such...
@luni, Making some good progress. Have two display screens and a way to get from one to the other. Working on selecting the pitch value and loading the associated values for N and D to the main program.
As I am...
Thanks for the awesomely fast response! Wasn't expecting an example sketch to fail, but guess it happens. I will give it a try.
Edit: Yes, that compiles for me. Thanks again!
Ok. Program is ILI9341_t3_Menu_Touchinput, from recently installed library example sketch, no changes. Compiles with nearly the same errors. Errors below.
Arduino: 1.8.19 (Linux), TD: 1.56, Board: "Teensy 4.1,...
@KrisKasprzak I am trying to get your example file working, I made a few mods to the IO just to match my current hardware configuration. I am getting compilation errors. Here is the modified file and here are the...
@beermat, very impressive. Umm, that's amazing. I'd say a parallel interface must make a huge difference. This SPI ili9341 is kind of a slow poke and it doesn't have all that many pixels to push.
What I'd like...
I know very little about LVGL, except for their fancy webpage. I never got it running. My comment on the button was coding it from scratch. I have not hooked up touch to it, but I can do that. This was a relatively...
How did you get that to work? I spent some time with it, but didn't get very far. Do you have any notes that you could share on getting it up and running? LOL it took me a day and a half to get an arbitrary text...
Been looking at making a GUI for my electronic lead screw project. Are there any libraries that folks know of that are a step up from the ILI9341_t3 sort of libraries? By that, I mean a little higher level. In what...
Yes, you found the problem as well! Thank you very much for looking. It is very appreciated.
Still have a problem with resetting the counter value to zero for testing. I get some strange output, but that is just...
Think I found part of the problem! Was calling Serial print way too often. I updated the code to only print out the RPM once every 100ms, it seems it was trying to output every time it went around the loop. That plus...
Got a crash at Count = 99591/100000 counts. freq = 100000. My instance of spindleEncoder did not print out the count of 99592, but did for 99591. It printed out "-", then restarted and printed the setup information. ...
Think it will crash before then, but yes. Also, I see that EncSim is outputting a couple of random counts in the beginning on start up. Not always, but occasionally. Might be the outputs changing state, but it is...
@luni, sorry to keep bothering you. In your Encoder library there is a member that is an error callback. I keep getting odd resets at certain speeds, where the count value stops updating. How could one use this error...
@luni, what you showed me works! I didn't understand how to use the command from the header file - ie. I'm not a very proficient C/C++ programmer. :(
Have an unusual problem showing up. Occasionally, my program is...
Of course it is a bug :D. I am running the stepper at 6 TPI, (4.23 mm pitch) which has the highest N/D ratio 0.781. Stress test! Rather see the SW break on my comfortable desk, than down in the shop. At least...
I don't loose counts, at 20 KHz, but my stepper can't follow. At 20K counts/second my stepper is going at 15994 microsteps/sec, so the stepper can't start reliably from rest at this pulse rate. If EncSim had an accel...
@luni, I installed (built) TyCommander and tried EncSim out. Got it to work. I can get it to work up to freq = 14000. After that, my stepper can't follow reliably. Don't know if that is because of acceleration rates...
This file downloaded and once extracted was able to be programmed. The original file on github downloaded as several MB, this hex file is 280KB. I will give it a try!
@KurtE, thanks for the explanation, very helpful. Gives me a better understanding of the "bigger picture". I have a lot to learn on this front, but this gives me some of the basics, which I was missing.
@luni, I downloaded the binary for Teensy 4.1. My Teensy loader said the hex file was unreadable. I check permissions on the hex file and it seemed ok. Enabled gHex and was able to read the hex file. Attempted to...
@KurtE have you run the standard graphicstest in DMA mode? Is it any faster? How long would a screen fill take with DMA?
For the clip rectangle, let me ask these simple questions. The frame buffer is populated as...
@KurtE yes, I am using your library. Details, are hard to write, but often very helpful to those starting out (like me). Thanks for making the library. I'll visit the readme and docs. At the moment the only thing...
@luni, This code stub doesn't seem to work. If I print out c1 and c0, they either are the same, or only differ by one count, independent of the physical encoder shaft RPM. spindleEnc.getValue is not working as I would...
Trying to implement your suggestions. Made version 2.
@luni, is there a way to readback the count value at a moment in time? I want to estimate RPM and I know the count when I enter the onEncoderChanged callback...
Thanks for replying @luni. Yes, the number of encoder counts per spindle revolution is always more than the number of required stepper pulses per lead screw revolution.
I do monitor the count in the main loop, and do...
I'm attempting to come up with an electronic lead screw for my lathe using a Teensy 4.1. So I am working out some of the critical pieces. My code only implements one case at a time, and there is no way to change...
Found this webpage. https://www.quinapalus.com/cm7cycles.html Think it is good enough for me to use. Weird that this is considered privileged info by ARM. It's just a processor...
I'll look, but is there an equivalent for the M7? Assuming M4 and M7 timing are the same, seems to be a bit presumptuous!
Apparently, M7 cycle times are hidden behind ARM registration wall. Wonder why they do that?...
64 bits is good enough. So there seems to be no advantage to long double.
From my ancient copy of K&R, the book states that floating point constants have a type of double unless suffixed. Is this true for the...
For a Teensy 4.1, what is the difference between a double and long double? (How many bits for each?) Are they IEEE compliant, which I guess the specs were written around Intel processors?
How does one declare it?...
@joepasquariello apparently I had two versions of the library, one in /arduino/hardware and another local library in my sketch area. The compiler was issuing a warning. I deleted the one in the sketch area and left...
My exposure to C++ was a little harsh. I had written a client & server program for an FFT engine and prototyped it in Numpy. Got it all running (both ends, client and server) and then had to port the server to C++ for...
Thanks for helping out with the invocation. That helps! I've spent a lot of time on your github link. Basic problem - I'm a lousy C programmer, who has to persevere nonetheless. I do a lot better with Scipy & Numpy...
Maybe I'm a dunce, but I don't know how to invoke it. myEnc1.printConfig(); Gives me a compile error. Error is "no matching function for call to 'QuadEncoder::printConfig();'
Ah. I have a library problem.
Arduino:...
Back to the books... Will do that.
Still hard for me to comprehend what can cause this kind of output.
Current position value1: 4377
Position differential value1: -1
Position HOLD revolution value1: 2
Index...
Thanks for the tip on EncSim. I will take a look at it.
The Arduino world is relatively easy to get into, but really hard to unravel the gory details without a lot of work and sweat. If you need to do something...
Commented out
//myEnc1.EncConfig.IndexTrigger = ENABLE; //enable to use index counter
//myEnc1.EncConfig.INDEXTriggerMode = RISING_EDGE;
This is sort of just trying to understand behaviorally what is...
Thanks for the pointer back to the Manual. Took me a bit to find where I had downloaded it! It defines a couple of things, but it doesn't help too much in understanding the actual library. It did help me understand...
Sorry for the necro post. Is the right place to ask questions on this library?
I am using QuadEncoder_interrupt_pins. I have changed my HW to use the same pins as the example. Have a couple of questions.
1. In...
Tried using PIT. Ok with setPeriod, follows the pattern. Something is off with setNextPeriod, It stalls for 1.4ms, then behaves as expected when the pulses get longer. It is like it is either blocking somewhere, or...
setNextPeriod doesn't seem to work at all in my code, but setPeriod seems ok. Ok in the sense that at least there are 4 pulses of the same period, then 4 more at a different period. The last long pulse is sort of...
Forum keeps timing me out. Lost my post. Got the signal running fast enough for me. Now trying to make the period variable. You advised me to use setPeriod. In the wiki, there is also a setNextPeriod. I tried...
Well thank you for pointing out the old API. That helps a bit. I used only the old API, because that was in your examples. I didn't know any better. MoreTimers.ino is what I started with.
Just made a change and...
I don't understand how your code example works just yet. I'm neither a C or C++ wizard, so it makes it hard for me.
For what it was worth, I managed to run the interrupt at 4x and decode the states of A & B in...
I'd like to make a quadrature signal simulator. This will be used to test other code, which isn't part of the discussion. A real shaft encoder has two output signals, call them A and B. I'd like the simulator to...
Just getting started with both Teensy and this TeensyTimerTool.
I am trying to create some code to make a quadrature encoder simulator. This would run on Teensy T4.1#1. Teensy T4.1#2 would decode the signals...
I see there is a way to do some of the install via the command line. But I'd like to check the syntax.
chmod 755 TeensyduinoInstall.linux64
./TeensyduinoInstall.linux64 --dir=arduino-1.8.15
cd...
Hope this is posted in the right place. If not, please move to the right place.
Just received a T4.1 and am trying to install software. I have V 1.8.13 Arduino IDE installed. The OS seems to have "registered" this...