thanks this exactly what i needed. didn't want to pay 25$ a piece for high res optical encoders.
@CuriousScientist Жыл бұрын
You're welcome. You can get approximately 5 of this for the same price. ;)
@nikthefix89182 жыл бұрын
You could try a cone roller bearing which might feel smoother as it bears any downward thrust too, as long as you can prevent it from 'falling out' - split ring or something.
@CuriousScientist2 жыл бұрын
Thanks, I will look it up! I actually ordered some bearings and nice metal knobs for the continuation of this project, but I did not have the time to assemble a new "potentiometer". I will do it some time in the future.
@nikthefix89182 жыл бұрын
@@CuriousScientist I'm looking to start a similar project but using the AS5311 linear encoder with a 40mm ring magnet so that I can have a large hollow knob with a clear window and an oled display at the center. Maybe even an internal ring of apa102 leds to augment the oled and provide some colour. I already tried it with one of those ALPS hollow shaft encoders but they get very bulky for large apertures and feel terrible. I'm going for a mini Nest Thermostat style / interface and I'm sure the mag encoder is the way to go - with a suitable pcb and mechanical layout.
@CuriousScientist2 жыл бұрын
Your plan sounds interesting! I hope you'll end up with a nice result. I don't have this much ambitious plans with my build, I just wanted to learn this encoder thoroughly and I thought that the best way to do it is by building different projects based on it. I will probably go towards another area where I am planning to build some feedback circuitry for stepper motors.
@nikthefix89182 жыл бұрын
@@CuriousScientist That'd be great! So all us GRBL CNC enthusiasts can get absolute positioning and dispense with some of those pesky limit switches.
@7alfatech8603 жыл бұрын
Nice option for an absolute encoder.
@CuriousScientist3 жыл бұрын
Absolute-ly! ;) I will further develop this gadget, especially its coding part so it can be used for many fun things.
@MuhammadAnwar-vv1cs3 жыл бұрын
Bagus
@CuriousScientist3 жыл бұрын
What does that mean?
@tsraikage Жыл бұрын
bearings you're using are double metal shielded bearings which typically have grease in them instead of oil, they're meant for low speed. get fidget spinner bearings that have oil, slightly higher tolerances too and are usually cheaper than the ones you're using. you're using higher quality bearings, more than necessary.
@CuriousScientist Жыл бұрын
This is what I had at home, so I used this. It is sufficient for the demonstration, and then everyone can decide which bearing suits their application the best. But it I still agree that these are not the most suitable bearings for _this specific_ demo.
@tsraikage Жыл бұрын
@@CuriousScientist fantastic video. watched others too, and to be honest your channel is the only source for detailed info about this topic. good work
@CuriousScientist Жыл бұрын
Thank you very much! I try to make detailed videos on every topic I dissect and discuss.
@botak3332 жыл бұрын
Hi sir, how many time we can program the as5600 using program B sir?? Because i try and working only for 90deg value of pwm. Out sirr, i need more like a 300-350deg sir, i try make more nothing happen sir
@CuriousScientist2 жыл бұрын
Hi! You can find the information in the datasheet.
@Flashzinh03 ай бұрын
Thank you SO MUCH
@CuriousScientist3 ай бұрын
You're welcome!
@Flashzinh03 ай бұрын
@@CuriousScientist Do you do freelance jobs ?
@CuriousScientist3 ай бұрын
Yes, I do. Contact me via my website.
@Thomas-ij7ki Жыл бұрын
Have you already tried the burn_angle function to decrease the valid range (e.g. 0-30°)?
@CuriousScientist Жыл бұрын
No, I haven't. I kept the default condition of the sensor, and if I needed something specific, I just did some math in the code.
@andre95523 жыл бұрын
Wou just the video i needed
@CuriousScientist3 жыл бұрын
Great to hear!
@SaintAngerFTW8 ай бұрын
can as5600 read position when its position is changed after power is off and then power on again?
@CuriousScientist8 ай бұрын
If you don't want to detect more than 360° rotation while the power is off, _absolutely_ (pun intended!). It is an absolute encoder, so it detects the magnet's position in a 0-360° coordinate system.
@SaintAngerFTW8 ай бұрын
@@CuriousScientist Thank you so much Sir.... You are the real G
@intelligenceservices Жыл бұрын
if the hall sensor is itself analog, can it be used as an active analog potentiometer with an op amp for example?
@CuriousScientist Жыл бұрын
I guess, we are talking about a single piece of standalone Hall sensor, and not the AS5600, right? Yes, it could be used, but it would be really cumbersome, I think. Since the output of the Hall sensor is proportional to the strength of the magnetic field around it, you can translate the output signal of the sensor and use that signal in the same way as you would use a potentiometer's output signal. But probably it would be difficult to (relatively) precisely change the distance between a piece of a magnet and the Hall sensor.
@benjaminvarughese29612 жыл бұрын
Can i mount a hollow magnet (that is magnetized across its diameter perpendicular) to this chip and get the readings?
@CuriousScientist2 жыл бұрын
I would not mount the magnet on the chip, because there would not be any relative motion respectively to the chip... I would mount it on a shaft or any rotating object, and then fix the sensor somewhere according to the specifications described in the datasheet. Also, I guess a hollow magnet would work too as long as the strength and the orientation of its magnetic field fulfills the specifications.
@AlexisRodriguez-wi7hf Жыл бұрын
Amazing video! I'm wondering, how long did it take you two design this encoder?
@CuriousScientist Жыл бұрын
Thanks! It did not take so long, I already had the basic concepts available, so I just fitted everything around the encoder PCB.
@miesharleman43932 жыл бұрын
What iff of you would add a seconden stage, with gears. That if the first one goes round once the second one only travelles one “step”. Would be an easy solution for a long linear absolute encoder.
@CuriousScientist2 жыл бұрын
If you can get rid of/minimize the slack in the system, it could work. I guess you would convert it into a linear encoder with those "rack and pinion" mechanisms. You can put whatever you want on the shaft as long as you can keep track of the gear ratios.
@brandonadams640311 ай бұрын
Great video man I learned a lot, I have a kayak motor and the speed controller has the as5600 sensor and find it really hard to dial in the exact speed I want. Do you think it would be easy to wire in another switch or potentiometer with something that has a mechanical click on each speed setting? There’s 100 speed setting on forward and 100 speed setting in reverse on the motor
@CuriousScientist11 ай бұрын
Thanks! You can use a rotary encoder for this purpose. If you need a more sturdy one with more clicks per rotation, look up CNC pendant wheels. I have projects with the mentioned wheel. 😉😎
@brandonadams640311 ай бұрын
@@CuriousScientist awesome I'm watching your video on the cnc encoder now. Could I send you a picture of the sensor, there are 4 wires coming off of the sensor that goes to a connector and that plugs into the speed controller.
@pure64502 жыл бұрын
Very useful information.
@CuriousScientist2 жыл бұрын
Thank you!
@stefanguiton3 жыл бұрын
Great video!
@CuriousScientist3 жыл бұрын
Thank you!
@isidoromaich72263 жыл бұрын
Amazing! good job
@CuriousScientist3 жыл бұрын
Thank you! I will make a better version of this once I get the knobs I ordered recently. I want this thing to spin for a while when I rotate it.
@isidoromaich72263 жыл бұрын
@@CuriousScientist like a flywheel?.. awesome!
@CuriousScientist3 жыл бұрын
Exactly! Unfortunately, with these ultra light printed knobs, I couldn't do it, so I had to order a few machined, metal knobs. Hopefully, I'll get them this year.
@devilvortex1 Жыл бұрын
is it precise as an optical encoder?
@CuriousScientist Жыл бұрын
Which one? :) There are millions of different optical encoders. This can resolve 360° into 4095 steps (12-bit resolution) which is approximately 0.0879° step size. It is your call to say if it is as precise as an optical encoder (of your choice).
@by_iz3 жыл бұрын
Is it possible to connect more than one as5600 to a single i2c line?
@CuriousScientist3 жыл бұрын
Yes, but you need an i2c multiplexer. I have several videos where I show how to do it.
@CuriousScientist3 жыл бұрын
This is the multiplexer you need: kzbin.info/www/bejne/oGbUooChept0rdk And this is where you see how I used two AS5600: kzbin.info/www/bejne/f4uTd6yfgr6Hapo
@by_iz3 жыл бұрын
@@CuriousScientist It is ridiculous that the i2c address does not change, I will use an i2c multiplexer. Should I use rs232 or rs485 to use encoders in long distance? Thanks.
@CuriousScientist3 жыл бұрын
What do you mean by big distance? You can always read the documentation of the i2c protocol and see what is the maximum distance. I know for a fact that 6 metres of shielded cable was capable of carrying the i2c signal.
@by_iz3 жыл бұрын
@@CuriousScientist I will use it for distances ranging from 10 meters to 20 meters using cat5-cat6 cable. I'm sorry for my bad english.
@THEbonny952 жыл бұрын
Did you drop out the resistor? Connected to 3.3v?
@CuriousScientist2 жыл бұрын
What do you mean?
@THEbonny952 жыл бұрын
@@CuriousScientist On the library page that I threw off, they talk about the need to solder the resistors.
@THEbonny952 жыл бұрын
@@CuriousScientist Note: Check your custom board (Like this one: Hall AS5600 sensor for Game Wheel 23x23mm): If there is a pull-down resistor (1k) on pin 5 (PGO), internally there is already a pull-up resistor, there may be a conflict If there is a jumper resistor (0R) between pins 1 (VDD5V) and 2 (VDD3V3), to work under 5V, you need to remove this jumper AS5600 pin 8 (DIR) selects direction, needs to be set externally, otherwise the readings may fluctuate
@CuriousScientist2 жыл бұрын
My custom board works just fine. I never had issues with it. I just have to make sure that the unused pin (out) is tied to GND.
@rockymountainfacet59582 жыл бұрын
Is your code available? I looked at your site and it shows the 3d prints but I can find any code. Do you have a github or somewhere we can look at the code. Thanks for the work you do. Id love to play around with this.
@CuriousScientist2 жыл бұрын
Hi! If you read the article on my website carefully, you can actually find the code. It is mentioned right in the beginning.
@rockymountainfacet59582 жыл бұрын
@@CuriousScientist I found the code. Thanks for this information. I cant wait to play around with this. :)
@CuriousScientist2 жыл бұрын
Super, have fun!
@rockymountainfacet59582 жыл бұрын
@@CuriousScientist I'm curious what size of screws you used for the 3d housing.
@THEbonny952 жыл бұрын
What library are you using? Seeed_Arduino_AS5600?
@CuriousScientist2 жыл бұрын
Why don't you watch the video? The answer is there, as well as on my website... I am not using any libraries, I wrote my own code to get the data from the chip.
@THEbonny952 жыл бұрын
@@CuriousScientist Sorry, I was watching I'm just not English-speaking and did not understand everything.
@CuriousScientist2 жыл бұрын
No worries. Make sure you watch the whole video because the answers are probably in it. Also read the video description because there's a link to my website where you can get the code. ;)
@adammontgomery7980 Жыл бұрын
I'm currently 3d printing the parts you designed, thanks. You might want to think about putting a crypto-wallet address on your site for donations.
@CuriousScientist Жыл бұрын
Hi and thanks! I don't want to add any additional payment methods. One can donate via KZbin (thanks button), PayPal (both via my website or via the direct link on my KZbin page), and Patreon. I think it is more than enough to choose from.