21276
Hi Lutz, I have added a cut down version of the code which should demonstrate the problem with all of the serial stuff removed and the analogue smoothing library. The steppers are driven...
Type: Posts; User: 450nick
21276
Hi Lutz, I have added a cut down version of the code which should demonstrate the problem with all of the serial stuff removed and the analogue smoothing library. The steppers are driven...
Hi there! I have been using the fantastic teensystep for some time, and am just starting to tidy up my code and finalise it for use in my car dashboard project. The one remaining function I'm trying...
Wait no, it was a bug with the scaling of my input.. It works! Thanks so much Luni, it works so much smoother than Accelstepper! Amazing job. Thanks for your help getting it working. If anyone is...
Thanks Luni that works, but I don't fully understand what that piece of code is doing. All 4 steppers now sweep then return to zero, I have control over the steppers but after starting, stepper 4...
Hi Luni,
Right I've got the startup homing sweep working, but now the rotate controllers don't respond - do I need to somehow release the step controller?
#include "TeensyStep.h"
#include...
Ah ok I found this: https://github.com/luni64/TeensyStep/issues/53
It seems to suggest that I might be better off declaring the controllers locally. Would this be a better approach do you think? I...
Ah found it.. But I also found this: https://github.com/luni64/TeensyStep/issues/53
Do you recommend declaring the controllers locally or using the DevTimer branch?
Thanks!
Thanks luni, where do I find this?
Hi Luni! Here is my updated code, but something is wrong... Now I have the two controller types, neither work. The pointers do not move on startup and also don't move when I move the input signal as...
Hi Luni thanks but I'd like to go to a specific step count to sweep a scale. Could I raise a step controller and .move to a step number then to 0 before I use rotate control?
Success! I now have some code that runs really nicely, so much smoother than accelstepper! The last thing I would like is to do a nice sweep of the steppers on startup but I can't work out the best...
Morning Luni! I hope you had a good weekend. I spent quite a lot of time confused and trying to work out how to transmit and receive a frequency pulse rate. I finally succeeded at 2am on Sunday night...
Thanks chaps, I think I will go another way with this. I think I've managed to crack it using an interrupted pin rising method working in micros.
Thanks Kurt! I might give that a go - before I do though I'm curious as to why it is pin specified - is there something about that pin that makes it work above others? Ultimately I need to monitor...
I'm having some trouble reliably reading an incoming frequency on an analogue pin on a Teensy 3.2 and was hoping to be able to use this library but it appears to only work with a single pin that I'm...
Hi Luni,
Where do you put this code for it to work? I tried dropping it in and replacing "doSomeMeasurement()" with speedRaw but this doesn't work - you have an example with it in? Does it run in...
Here's a question... I'm using this code to generate my pulses:
/* 2126mm per tyre revolution = 470 revs per km
diff ratio 3.42 so 1607 revs per km on gearbox = 1.6074 revs per m
Amazing! It works, thanks both... So I now have a solid reading of the speed based on the pulses generated from the other teensy. Awesome. I was running the pulses divided by a factor of 10 so I...
Ok none of those work, but I can get it to work if broken in two...
running 1.0/teeth gives 0.06 which is correct, but not accurate enough - my calculator comes up with 0.0588235294117647
then...
Hi all!
I have developed the following code based on some examples I've found on this forum using interrupts to check for pulses seen on an input pin. This seems to work nicely, but I'm now trying...
Awesome thanks Luni - really appreciate the help. I'll give this a try and will look forward to seeing your code at the weekend!
I would ideally like to try and get this to work without changing the board design, as I have the prototype PCB in front of me for testing. Is there another way to get the steppers to follow the...
Ah ok so will this example not work for my application?
Hi Luni,
Right so I have the below code to test your example, and I get an error around "overrideSpeed" not being a member... Does anything look wrong to you?
#include "TeensyStep.h"...
Fiddled around with it and it works!
Good shout on the variable reluctance, though I think the -5 to +5 goes from gearbox to engine ECU then ECU outputs 0-5v only. I will check this though.
Hi all,
As part of my instrument cluster project, I need to be able to read 12v RPM square wave and vehicle speed 5v square wave input signals. I'm testing my prototype board and so far have no...
Great thanks Luni I'll take a look and see how far I can get before you're able to do the example.. I'll also look at the level shifter too - so this would need to go between the teensy and the...
Thanks again Luni, two questions
1) What does the level shifter do? I realised that the driver is actually on the other PCB but it is driven direct from the Teensy. I think one of the problems was...
Fantastic thanks Luni it now works! Just a quick question; if I want to set 4 motors off toward a target but I don't want them to arrive in sync (each go as fast as it's able), how should I make the...
Great thanks that all makes sense; I'll give these things a go this evening and will report back.
On the image, do you know how to upload a higher res image? If I attach the png file it converts...
Thanks Luni! I will put a better schematic up when I get to work, but looking on my phone I think I may have found the problem. The VID6606 requires a step pulse of 450uS according to this datasheet:...
Hi everyone! I just found this forum, I've been using Teensy's and Arduino now for a few months and it's SO MUCH FUN! So thank you for creating them. I'm still very much learning, and the project I'm...