Linear position with a rotary magnetic encoder

  Рет қаралды 58,807

Matthias random stuff

Matthias random stuff

Күн бұрын

Пікірлер: 282
@matthiasrandomstuff2221
@matthiasrandomstuff2221 2 ай бұрын
I figured out the encoding coming out of the device at the end. I was confusing because I was only looking at the bits, not the clock, and some of the clock pulses are a bit longer, so really confusing. At any rate, its synchronous serial, with the sensor on the rail the master (sensor provides clock). Sends out a 24 bit word, LSB first, last 3 bits always '1'. Resolution somewhere around 150 increments per millimeter (only a guess). On power up, it always starts at zero. Reason it doesn't go back to zero after turning it off is because turning it "off" only turns off the display. Removing the battery resets it to zero.
@FriggOff361
@FriggOff361 2 ай бұрын
@@matthiasrandomstuff2221 i was just about to say that
@HairyNumbNuts
@HairyNumbNuts 2 ай бұрын
And the lesson is ... if you already have a dial indicator use that for positioning when drilling holes that need to be accurately located.
@trevorholland5032
@trevorholland5032 2 ай бұрын
Instead of interpreting the electrical signal, you could point a webcam at the display and use Optical Character Recognition (OCR) to read the numbers in to the computer.
@johnheitke7617
@johnheitke7617 2 ай бұрын
Your Rigol scope has serial decoding capabilities, see chapter 7 of the manual. Most likely I2C protocol
@awesomefeldmanfamily
@awesomefeldmanfamily 2 ай бұрын
Frigging genius
@bazzatron9482
@bazzatron9482 2 ай бұрын
I love that you literally have a machine lathe, you could have made a very accurate way to hold those magnets - but decided to shove some HST on a nail before using it to measure micron accuracy on a cheapo XY table. Never change Matthias 😅
@alucard87
@alucard87 2 ай бұрын
that would be way less fun :D
@AJMansfield1
@AJMansfield1 2 ай бұрын
And that's the thing, too -- for him it that sort of thing usually works!
@davidsadowski2886
@davidsadowski2886 2 ай бұрын
Try a fridge magnet! They're on the weaker side but polarized as a halbach array with very consistent spacing. Commercial magnetic linear encoders are built this way and work quite well for the price point
@sparqqling
@sparqqling 2 ай бұрын
THIS!
@Love2Tinker2
@Love2Tinker2 2 ай бұрын
Sweet idea!
@conorstewart2214
@conorstewart2214 2 ай бұрын
Linear motors work similarly with a line of individual rectangular magnets arranged with opposite orientations.
@skh7791
@skh7791 2 ай бұрын
FFT's in excel!!! Matthias makes me so happy.
@dwalsh3469
@dwalsh3469 2 ай бұрын
Been there for at least 20 years…. 😇
@cashewABCD
@cashewABCD 2 ай бұрын
Matthais running Excel 2003 like a true nerd. :)
@WangleLine
@WangleLine 2 ай бұрын
Yesss!!
@thephlophers
@thephlophers 2 ай бұрын
Chasing microns with a wooden block, very nice. On those cheap DROs, if it's anything like what I have, it has a simple clock and a serial data line encoding the measurement in binary. Similar to UART in principle. You could absolutely have a raspberry pi decode it.
@69dblcab
@69dblcab 2 ай бұрын
Never boring stuff in this channel. Thank You Matthias. Looks like the other brianiacs (with affection) have begun chiming in. Always a fun read. I will need to check back later.
@jcmo5900
@jcmo5900 2 ай бұрын
Agreed. I click on these videos even when I don't think I'm interested. I love the way you share your work, Matthias! Thank you, thank you, thank you so much for taking the time to film, edit and share. I know how much work that is, and we are many, who truly appreciate your efforts.
@simonhopkins3867
@simonhopkins3867 2 ай бұрын
This is a great channel for the comments section as well as the content.
@eliasleb
@eliasleb 2 ай бұрын
I worked on the precision position control of a linear motor for industrial applications. The setup you present at the end of the video is actually very close to what we were using. We actually ran a "learning" sweep to determine field strength vs. position using an external sensor and compensated online with a look-up table.
@rahveibo
@rahveibo 2 ай бұрын
+1. Came here to say this, especially if the readings are somewhat repeatable over time, a lookup table is usually as good if not better than fitting polynomials and sinusoidals etc. As long as it is repeatable it is modellable. Cheaper than a dollar microcontrollers have enough memory to hold thousands of lut entries for tens of temperatures each. No reason to try to represent the interaction of bunch of complex parameters with a handful of variables only.
@danielkruyt9475
@danielkruyt9475 2 ай бұрын
Excited to see how you do on decoding that cheap linear scale's outputs!
@stevewurster
@stevewurster 2 ай бұрын
LEGO bushings for standoffs! Love it!
@illygah
@illygah 2 ай бұрын
LEGO tolerances are insanely tight. This solution is divine.
@clasdauskas
@clasdauskas 2 ай бұрын
It's a pity the rest wasn't as accurate :)
@simonhopkins3867
@simonhopkins3867 2 ай бұрын
This just feeds my hoarding habit. 😉
@hpda44
@hpda44 2 ай бұрын
I still love this stuff. I’m not sure why, a lot of it I don’t particularly understand, but it’s fun to watch. Great video
@Don.Challenger
@Don.Challenger 2 ай бұрын
I think more often than not even if not fully understanding the gist is pretty evident.
@CrawfordAutomation
@CrawfordAutomation 2 ай бұрын
I love this so much and I would watch an entire series of this. Please don't stop!!! What about making an optical encoder with a light and a photosensor with a wheel that has a hole???
@jeffspaulding9834
@jeffspaulding9834 2 ай бұрын
You know your audience, Matthias. FFT was the first thing I thought about when you said "sine waves." I appreciate the analysis - it's a bit lower level than what I normally deal with so it's nice to get a glimpse into that world.
@ianrwin
@ianrwin 2 ай бұрын
The calculations for periodicity of the error, and the coincidence with the gear teeth are excellent. This is so cool!
@stefanopassiglia
@stefanopassiglia Ай бұрын
I can't even explain how much I love these videos
@lewistaylor863
@lewistaylor863 2 ай бұрын
For a piece of test kit I made at work a few years ago, I needed to be able to log the position of a carriage along some linear rails and take that data, along with some load cell data, into a computer. The main catch was that the rails were 1.5m long and I needed accuracy to be within about 0.5%. There were some expensive options, but in the end I made a cheap and accurate enough system using a 600 count rotary encoder and a gt2 belt. The encoder was fixed at one end with a gt2 pulley (I can't remeber the tooth count, but it was the smallest I could find), with an idler at the other end, and a belt loop spliced on the carriage. To get better accuracy, I hacked the stock quadrature encoder library to count based on each of the quad pulses (rather than taking the four pulses and outputting one count). If memory serves I could get within 0.02mm over the full length of the carriage (using precission reference rods as a calibration and verification tool). Belts, pulleys and encoders are dead cheap! I used an arduino and data streamer in Excel to manage the hardware and software requirements.
@jaro6985
@jaro6985 2 ай бұрын
Yeah you can get rotary encoders based off either optical or magnetic like this one, that are much better constructed, so you don't need to worry about radial runout errors etc.
@JamesNewton
@JamesNewton 2 ай бұрын
My friend Ensari and I did this a few years ago and got better results; 1/4 thou instead of 4 thou. But we used a thin line (spiderwire) wrapped around a shaft in a bearing, with the magnet on the end of that shaft, aligned with the chip. Because the shaft was smaller than your gear, we got better resolution; more rotations per unit of linear movement. Also was very easy to make, no 3D printer required.
@horatioswrld
@horatioswrld 2 ай бұрын
As someone who this is all well past for, I want to assure you that you Mr. Wandel that shouldn’t be a concern of yours. I’m locked in. The more you do it, the more I learn and suddenly I’m checking out the sine waves for my solar generators. Keep KZbin niche.
@NotaRobot_gif
@NotaRobot_gif 2 ай бұрын
Always so interesting, and I always learn something new. Thanks for sharing these silly projects!
@wiseoldfool
@wiseoldfool 2 ай бұрын
Another really interesting experiment!
@LeesChannel
@LeesChannel 2 ай бұрын
What a fascinating video! I was hoping it'd keep going.
@ronaldutrecht_nl8738
@ronaldutrecht_nl8738 2 ай бұрын
This is why I love KZbin. Keep on going to make videos like this!
@thomashverring9484
@thomashverring9484 2 ай бұрын
This was so awesome! I didn't understand all of it, but still super interesting and entertaining.
@chiparooo
@chiparooo 2 ай бұрын
Very interesting investigative work! Thanks for sharing!
@mrdrbernd
@mrdrbernd 2 ай бұрын
Videos are always fun to watch, educational and inspiring. - great workmanship. Creative. Please do more videos.
@LucasHartmann
@LucasHartmann 2 ай бұрын
About the spinning compass. You don't have to approximate it, you can just have a full table lookup. Repeatability is what matters.
@eric13hill
@eric13hill 2 ай бұрын
Your talent and creativity are inspiring.
@HexenzirkelZuluhed
@HexenzirkelZuluhed 2 ай бұрын
You still crazy infotainment! I hope the Scale readout works out, I'd be interested in the approach and the results!
@lukahrastovec5022
@lukahrastovec5022 2 ай бұрын
Some cheap Chinese calipers have internal UART outputs, and your linear DRO might have it too. SSI and BiSS/BiSS-C are also common encoder interfaces, but both include an additional clock signal, which wouldn’t match to only "asynchronous" signal on the scope.
@tseckwr3783
@tseckwr3783 2 ай бұрын
true. Even if there is any inaccuracy, it is consistent as far as I have observed. Easy to develop a calibration table for the caliper and the table.
@a1k0n
@a1k0n 2 ай бұрын
It looks like it's missing a start bit if it's a UART, though, otherwise signal traces would always be the same length since the scope would trigger on that; I would guess there is an additional clock signal here.
@MRrwmac
@MRrwmac 2 ай бұрын
Very interesting. I’m glad it worked out for you!
@artursmihelsons415
@artursmihelsons415 2 ай бұрын
Excellent video as always and great experiment!👍 By the way, same signal is on cheap plastic calipers as extra data output available on pcbs.. I looked few of them, and they have it.. 😉 I had an plan to modify them as cheap DRO with adding ATmega... How I read, that signal is exactly the same as from DRO sensors...
@gedtoon6451
@gedtoon6451 2 ай бұрын
I liked the section on Fourier Transforms where you realised your viewers may be as intelligent as you are!😊
@AdityaMehendale
@AdityaMehendale 2 ай бұрын
3mm cubes in a Halbach-array (linear, anyway) --> way more "sinusoidal" transitions! with two Hall-effect sensors (TI makes some good ones) with a 1/4-pitch difference, you would have an excellent quadrature-encoder, far better than 0.1mm resolution. (realized by the small-ness of the magnets). The fact you are running it as a resolver means that you would be relatively immune to amplitude (distance) variations.
@AdityaMehendale
@AdityaMehendale 2 ай бұрын
Clarification: "quadrature" --> sine and cosine pair "Resolver" --> Phi = atan2 (sin(phi)/cos(phi)) --> irrespective of amplitude/magnitude. (Although I am sure MW already knows this ;)
@dosgos
@dosgos 2 ай бұрын
I thought CuriousMarc had a related NASA video. I'll see if I can dig that up.
@69dblcab
@69dblcab 2 ай бұрын
@@AdityaMehendale MW might but I didn't. Thanks
@ericwazhung
@ericwazhung 2 ай бұрын
atan2(sin(phi)/cos(phi)), independent of amplitude, great, assuming amplitude is the same for cos and sin... yes? What if the amplitudes differ due to slight offset-differences, etc? Or, one sensor's being closer to a stronger magnet and the other to a weaker one?
@AdityaMehendale
@AdityaMehendale 2 ай бұрын
@@ericwazhung I'd be far more worried about the magnetization-direction, placement-errors, stray magnetic fields and thermal elongation of the base material. Things can be "better" without being "perfect". Things that are "good enough" don't even need to be better. What I propose is an order-of-magnitude "better" without the need for complexity that far exceeds that what is already present.
@TKC_
@TKC_ 2 ай бұрын
I’ve had a similar need though for much longer distances. I used an allegro a1230 quadrature bipolar Hall effect sensor. Each change in magnetic pole is sensed and things like flat fridge magnets can have quite dense poles. You would need to use a couple offset to get enough resolution or use gears. Probably easiest to hack that cheap one you bought.
@FiveEights-.625
@FiveEights-.625 2 ай бұрын
Great ideas, always stimulating, lovep watching. Sometime ago you mentioned there was some runout in your ER collets. I also had purchased an inexpensive ER collet set and noticed the many of the slits had metal chips in them. I didn’t measure their runout but really think removing the chips is gotta help.
2 ай бұрын
How about a Fourier transform? :-)
@Argosh
@Argosh Ай бұрын
Was about to ask that myself 😉
@MCsCreations
@MCsCreations 2 ай бұрын
Pretty interesting stuff indeed, Matthias! 😊 Stay safe there with your family! 🖖😊
@stuartgray5877
@stuartgray5877 2 ай бұрын
Something we use at work (built the deployment and focus mechanism for the James Webb Space Telescope) is called a LVDT or " Linear Variable Differential Transformer". You can get extreme accuracy with these devices, but requires some EE skills to build one yourself.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 2 ай бұрын
On a project I worked at at the university as an undergrad, it used LVDTs and an A/D converter to sense position. Simple and reliable. I went looking where to buy one, but these things are quite expensive!
@jeffreybernath6627
@jeffreybernath6627 2 ай бұрын
I love the Lego Technic bushings, which first show up at 1:10! 😀
@Don.Challenger
@Don.Challenger 2 ай бұрын
Mr. William Ockham always suggests trying the simpler before the more complex and this is another good demonstration of that iterative improvement that relates science, mathematics engineering and construction in slowly perfecting our built world. Note that sometimes an improvement requires shelving one approach and proceeding by adopting another one originally thought more demanding. Matthias is a great proponent of that procedure (each time he circles back on one of his projects, improvements multiply - pantorouter, bandsaw and the rest / but only where the improvement betters the practical requirements, where good enough suits he tends to rein himself in.)
@AngryArmadillo
@AngryArmadillo 2 ай бұрын
Well said. I think watching him put this mindset into practice over the years has made me a better engineer.
@claudiomenesesc
@claudiomenesesc 2 ай бұрын
Entertaining and mindboggling (at least for me). Regards from sunny Peru.
@pewpewlasergunz
@pewpewlasergunz 2 ай бұрын
You could probably try salvaging a bunch of mini electro magnet coils instead of hoping all your permanent magnets were cast perfectly. Also quite surprised to see this upload as not only was I about to do the exact same project but also the exact same milling table, however I'll be using optical linear and rotary encoders I salvaged from a pair of old desktop printers.
@tlum4081
@tlum4081 2 ай бұрын
I wish someone would donate a Series 1 Bridgeport milling machine to Mathais. However, getting it into his basement would be a problem. I do admire his attempts to get precision with bearskins and duct tape which are entertaining.
@m-vo
@m-vo 2 ай бұрын
Really enjoyed the video and the results! My first thought was using an ultrasonic sensor to directly measure the distance, though I don't know how good the cheap ones are in terms of resolution.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 2 ай бұрын
Played with them. Low precision, inaccurate and unreliable
@viktorbublic
@viktorbublic 2 ай бұрын
My brain hurts but I still love your videos.
@TimoNoko
@TimoNoko 2 ай бұрын
I recall James Bruton took those ultrasonic echo meters apart, so that it metered direct distance between transmitter and receiver. And result was very stable.
@capermache
@capermache 2 ай бұрын
After the apocalypse I want to be on Mathias’s team.
@Proud2bmodest
@Proud2bmodest 2 ай бұрын
Use a non stretchable cord wrapped around an optical rotary encoder with quadrature output to give direction. The cord can be kept taut by using a weight hanging off of one end. This becomes an absolute encoder and can compensate for backlash.
@madmodders
@madmodders 2 ай бұрын
The data format is usually either BIN6 or BCD. Six four-bit nybbles.
@GilesBathgate
@GilesBathgate 2 ай бұрын
AMS who make the rotary encoder chip also make linear encoder chips. Good luck finding a source for those though, and the linear magnet strips. The compass idea is interesting though.
@meeponinthbit3466
@meeponinthbit3466 2 ай бұрын
LOL... Our man knows his audience.... Nerds. 😂❤
@lumotroph
@lumotroph 2 ай бұрын
Fantastic. Your watchers are all such nerds, and we love this! 😂
@alibronx2112
@alibronx2112 2 ай бұрын
Love this!
@ChatNoirLe
@ChatNoirLe 2 ай бұрын
You could try some magnetic encoder tape, it is pretty cheap with fine pitches 2+2mm. Off center can be pretty annoying, I'm planning a project with a MT6835 and even with a 10mm dia magnet you still need to be preferably within 0.1mm centering and even with that it's got a whole bunch of DSP linearisation going on, so you got pretty good results for a bit of wobbly heatshrink.
@semerhi
@semerhi 2 ай бұрын
A Short-time Fourier Transform might be able to capture localized frequencies, and thus factor in the differences between the magnets
@gamerpaddy
@gamerpaddy 2 ай бұрын
you can make yourself a sin/cos absolute encoder very easily: get two linear hall sensors (outputs a voltage around vcc/2 depending on the magnetic field and polarity) feed those two voltages into a microcontroller adc and put the reading straight into the atan2(a,b) function. it will output degrees. just use a diametrically magnetised magnet (or a normal magnet on its side) and place it above both hall sensors where one of the sensors is rotated by 90°. depending on the position and how close you can get the sensors together, you might need to compensate for some non linearity.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 2 ай бұрын
But even easier to find than a linear encoder is a rotary encoder. So why bother? Fact is, if I needed a linear hall sensor, I'd probably just use a rotary encoder and work it back from angle and magnitude, cause the linear ones are way more common.
@gamerpaddy
@gamerpaddy 2 ай бұрын
i needed a absolute angle encoder for a project and didnt wanna spend big bucks on one, incremental didnt work. and incremental can lose steps if the microcontroller cant keep up counting. some industrial absolute encoders work on a optical disc that has sections that encode their angle in binary. sometimes even with multiple gear stages and further discs to count thousands of turns and still keep their absolute position, no matter what the microcontroller is doing. combined with a spring loaded pulley whre you can pull out a string to measure distance it can be a proper linear position sensor.
@FrankGraffagnino
@FrankGraffagnino 2 ай бұрын
i'm looking forward to a video of hacking into those linear encoders. i think a github repo that could share how to do that and the link to the part number you used would be really cool and useful to lots of people. especially with videos to go with it!
@StuartVonTRT
@StuartVonTRT 2 ай бұрын
search for digital caliper serial data or cheap digital caliper serial ... you have there one clock line and one data line, and I think 24 bits of data from which first (probably) 10 are some sort of status, rest is position (number which you divide by something to get position in mm or inch) . Or something similar like this. Most of china cheap calipers have same or probably very similar protocol
@matthiasrandomstuff2221
@matthiasrandomstuff2221 2 ай бұрын
Alas, that's definitely not what I have here.
@andrewianchen5700
@andrewianchen5700 2 ай бұрын
@@matthiasrandomstuff2221 Looking forward to the follow-up video about the encoding. I wonder if they used something different since those encoders look a bit fancier. In case anyone is looking for the encoding on those ubiquitous three button Chinese scales, the encodings are two 24-bit words, two's complement, little-endian. One for assumed absolute position and one for relative. With 20480 bits per inch.
@osgeld
@osgeld 2 ай бұрын
the digital signals are fairly easy to get, if you think 1970's RC type stuff, each digit is within a time period then the pulses per time period give you an 0-X readout. start off at zero and increment very slowly you should be able to pick out the time period pretty quickly. its similar to asynchronous serial but in some special herbs and spices recipe
@3ATIVE
@3ATIVE 2 ай бұрын
Could getting data out of Stepper Motor coils (with some gearing) work?
@krisholt
@krisholt 2 ай бұрын
On my lathe, I have an rotary encoder attached to the main slide, and a toothed belt attached in both ends of the lathe bed so the belt rotates the encoder when it passes over it. The signal are transferred to a TouchDRO from Yuriy's Toys, and the precision is under 1/10 of a millimeter. on the cross slide I have a real glass scale with much higher precision.
@musthavechannel5262
@musthavechannel5262 2 ай бұрын
leave alone the digital signal recognition, just do OCR on the screen, haha. This would be a portable solution in case you change the measuring slider thing in the future.
@AK-vx4dy
@AK-vx4dy 2 ай бұрын
About magnet line, i observed that chip is used in diffrent postion (prependicular vs parallel) than in rotary, this may affect accuracy, also they are spaced more away, so stray fields have more input.
@thenutdriver9685
@thenutdriver9685 2 ай бұрын
A temposonic would be your best bet imo. We use temposonics in our cylinders for position feedback. Basically a tube that goes through a magnetic field,,,going to an encoder.
@MrQuickLine
@MrQuickLine 2 ай бұрын
Martin just mentioned you in his video and then you released this almost immediately after 😁
@BuddyCrotty
@BuddyCrotty 2 ай бұрын
You got a shoutout on the new Wintergarten video today!
@dominpiano
@dominpiano Ай бұрын
Give this man a 3D printer and he will do magic with it!
@RnXeKrNe
@RnXeKrNe 2 ай бұрын
If that's an AS5600 encoder it might work better if you don't let the magnet touch any metal. That's probably the case for other hall effect encoders too. I just learned about this myself after reading up on encoders for BLDC motors, specifically on the SimpleFOC community forum and their docs.
@DragonX5X
@DragonX5X 2 ай бұрын
Very interesting!
@joruss
@joruss 2 ай бұрын
Remember pre-optical mouse? It had two optical encoders on board and chip that dumps ready to consume data steam via serial or ps/2
@kazzle101
@kazzle101 2 ай бұрын
On the youtubes Curious Marc had a look at his broken DRO (late August 2024: Modern Fails: Newall C80 DRO repair), it uses a row of ball bearings instead of your linear track and some sort of magnetic magic and sensors simmilar to yours to find the position.
@misterdudemanguy9771
@misterdudemanguy9771 2 ай бұрын
The signal could be SPI. Look for a companion clock signal. You should be able to interface with 3 wires, ground, clock, and data. An Arduino would be perfect, IIRC it has an I2C/SPI port. If not, bit banging it is trivial, and there's drivers already made for that. Use RS-232 or USB to the PC and send it the converted measurement. Doing this you could capture all 3 axes and send the PC data packets with X, Y, Z.
@senorjp21
@senorjp21 2 ай бұрын
You could use a camera to read the numeric display and use opencv to do optical character recognition. No mod required, but more software required
@IlusysSystems
@IlusysSystems 2 ай бұрын
That's probably better resolution, than I would expect from such system. There are a few videos where images were read from PC mouse, I wonder if mouse sensor would be viable as a position sensor and what the resolution would be. Difficulty would be printing the encoding on some medium, so instead, you would probably have to do what callipers (kinda) do - print bunch of triangles that you would have to interpolate to get position.
@pjsparks4845
@pjsparks4845 2 ай бұрын
That last bit reminds me of linear closed loop stepper motors - I wonder if there's anything worth exploring in that to get a position readout
@longshot789
@longshot789 2 ай бұрын
Love seeing Lego show up
@Farlig69
@Farlig69 2 ай бұрын
8:07 We have faith you'll figure it out ;)
@CrudelyMade
@CrudelyMade Ай бұрын
you might also consider, instead of a magnet, use a slotted 'disc with a light meter. there are a variety of mice that use this as the internal mechanism that measures how the mouse moves. but.. now that I think about it.. you could also but a cheapish mouse and use its light sensor to watch the gear rotate from one side (instead of head on).. and this would translate as mouse motion. and with some mice you can change the resolution/sensitivity which can improve accuracy. and the mouse internals are already made to feed data into the computer via usb or bluetooth or rf. the test for this would be rather straight forward because you can position a mouse over the rotating gear (where you have your magnet).. and you could make that part slightly larger diameter to get an easier/more accurate read. but.. that might have been another 'diy' solution. ;-)
@phrozenwun
@phrozenwun 2 ай бұрын
Instead of rack and pinion, what about a windlass style coupling? That should help remove gear lash and tooth variation issues... very cool all the same, thanks for sharing.
@ScramblerUSA
@ScramblerUSA 2 ай бұрын
You could try using a set of cheap digital calipers. They have an output port on the board (some even have it exposed in a case). And the data format is already documented on the internet and is easy to use since it's a data/clock pair.
@rasimbot
@rasimbot 2 ай бұрын
You can make an oscillating loop with a laser diode, a mirror, a photodiode and a logic inverter. And then count oscillations with a binary counter per ms...
@bpark10001
@bpark10001 2 ай бұрын
C'mon, Mattias, you have good machining capability available! What you have now will be limited to telling you which end of the milling table you are at, with sloppy wood bearings, shrink tubing, & 3D printed plastic gears. Break out that lathe & mill & get stuff properly centered! All that calibration you so carefully measure will change as fast as the tide. (You don't need Fourier series, just a big lookup table of corrections with linear interpolations. The lowliest processors can handle them!) To implement GOOD rack & pinion, get 1' caliper & put encoder on the dial. The "open air" scheme will be perturbed by any ferrous stuff in the room closer than the nearest black hole. A better scheme would be to take coarse threaded steel rod, with steel gear with tooth pitch matching the thread pitch, mounted almost touching. Magnets on the gear cause it to be attracted to the threaded rod threads, forming "magnetic rack & pinion". That can be read out by magnetic encoder. You need magnetic shielding around the encoder! The worst problem with this is stiction of the gear. Mount it on precision ball bearings. Those linear readouts are available with readout capability (but readout may be too slow for CNC work).
@ddutton0
@ddutton0 2 ай бұрын
I did not understand most of this but got that Mathis is super smart 😅
@NeitSotm
@NeitSotm 2 ай бұрын
Just try to use that last measurement (with the magnets in a row) as a calibration! You can simply interpolate the data points that you have. You only need to remember which cycle you're in.
@dr.kraemer
@dr.kraemer Ай бұрын
For some of us an FFT is much more familiar than the rest of the work you present here.
@xl000
@xl000 2 ай бұрын
Imagine people during the first industrial revolution slowly improving methods , materials, measuring device, but not as a hobby or a thought experiment. Like going from a wire that randomly fits through a hole, to a wire that fits consistently through a hole and create the exact same friction. Are there any books on this general subject ?
@reddcube
@reddcube 2 ай бұрын
A flexible fridge magnet is usually a tiny Halbach arrays (alternating north/south poles in a stripe pattern) I wonder how accurate a position you could achieve with the sensor and a flexible magnet tape.
@JernD
@JernD 2 ай бұрын
Have you tried the gnumeric spreadsheet before? It is fairly similar to Excel 2003 but I like the graphing in gnumeric a bit more.
@ColCurtis
@ColCurtis 2 ай бұрын
You could buy just the dro scales. They come with 9 pin connectors. I'm sure you could easily figure out how they work
@Bbonno
@Bbonno 2 ай бұрын
FFT is something I've never actually seen used. Explanations on what it does usually end with by simply saying that it's super important for 'lots of things '...
@klave8511
@klave8511 2 ай бұрын
There’s always the good old mouse. Supposed to get 600dpi. The wheel has less resolution but uses a simple optical encoder.
@TehMegaNoobZor
@TehMegaNoobZor 2 ай бұрын
Had no idea excel could do fft. Cool!
@letsgocamping88
@letsgocamping88 2 ай бұрын
Have you seen curious Marc's video fixing his dro and explaining how it works?
@PatFarrellKTM
@PatFarrellKTM 2 ай бұрын
Sure glad you ran a DFFT, otherwise, I would have had to ask about them.
@Urban_Spaceman
@Urban_Spaceman 2 ай бұрын
Just watched the "Square drill" video from 4 years ago (the Polish flat pack fixture drill) . Could you use that in this "mill" You were complimentary about it's build quality and accuracy.
@GameBacardi
@GameBacardi 2 ай бұрын
I wouldn't believe that you can use magnet like that way until now I have seen it :)
@lezbriddon
@lezbriddon 2 ай бұрын
The magnetic variation in absolute position reminds me of the bumps in 3d printer beds, so they do a a read of multiple points and create a look up table with error values to compensate. cant you take your readings and create an offset lookup so it can be driven to that value?
@vasiliigulevich9202
@vasiliigulevich9202 2 ай бұрын
I wonder if instead of functional approximation, a set of tables associating angle and posotion in monotonic sections would work better.
@handdancin
@handdancin 2 ай бұрын
you could probably make a pretty good dro with a couple draw wire encoders. dont know why you would, but it might be fun
@matthiasrandomstuff2221
@matthiasrandomstuff2221 2 ай бұрын
True, if I want to make something more expensive and less accurate than a real DRO
2 ай бұрын
What kind of precision do you want to achieve with it? I though 0.05mm was plenty good for woodworking.
@mirkoragni3118
@mirkoragni3118 2 ай бұрын
Such a great video! By the way, Am I the only one seeing a DIY CNC coming in the future?
How bad you get zapped before a GFCI trips
8:04
Matthias random stuff
Рет қаралды 63 М.
ABSOLUTELY HUGE Magnetic Induction Heater! Using 100 Spinning Neodynium Magnets And A Bucket
9:50
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 59 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
I tried finding Hidden Gems on AliExpress AGAIN! (Part 11)
15:01
GreatScott!
Рет қаралды 767 М.
Fixing a benchtop power supply I built 37 years ago
9:12
Matthias random stuff
Рет қаралды 51 М.
Washer motor wiring to reuse for projects
10:11
Matthias random stuff
Рет қаралды 146 М.
I 3D printed a 4-axis wire EDM machine that can cut anything conductive
12:41
𝕄𝕠𝕣𝕝𝕠𝕔𝕜
Рет қаралды 170 М.
This laptop has no brain
8:52
Matthias random stuff
Рет қаралды 90 М.
I Bought A Minimill to see if they are Worth It
8:03
Someone Should Make That
Рет қаралды 1,4 МЛН
High precision speed reducer using rope
20:19
Aaed Musa
Рет қаралды 2 МЛН
Meet The Self-Made Woodworker Who Works Out of His Garage
26:35
Andy Bird Builds - CNC
Рет қаралды 2,1 МЛН
Big wooden screw and nut on the metal lathe
8:02
MatthiasWandel
Рет қаралды 101 М.
I Saved an Electron Microscope from the Trash
34:54
ProjectsInFlight
Рет қаралды 518 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН