Re: Pololu geared DC motor 30g prototype extruder May 27, 2016 02:23PM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
My the suggestion of Misan I tried the EU offices - the package came from Austria.
The problem with the magnet of yours is the orientation - check the desired orientation on the documentation from ASM.
Even putting the magnets on the washer will not modify the magnetic field orientation
My idea was to put 3-4 together and glue them using some hot glue or acrylic side-ways.
First I have to test if the strength is sufficient for the AS5600.
Today (maybe) I'll finally have some time.
Re: Pololu geared DC motor 30g prototype extruder May 27, 2016 07:56PM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder May 27, 2016 08:01PM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 12:36AM |
Registered: 8 years ago Posts: 78 |
Not sure if they indeed used 130s, but the size, vent holes, and arrangement indicate something of that nature. I got some original 130s with encoder from old scanners but worm drives are not very efficient and the entire package is heavier than what we have here. Sourcing the paired worm gear and large helical gear might be an issue.Quote
rklauco
Wow, I have to browse how did they made extruder with Mabuchi 130 - have 5 fakes and 2 originals on my messy desk...
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 12:58AM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
Well, I would say it may work
I didn't want to wait for a magnet - so I just took 5 magnets with 8mm diameter and 1mm width. I glued them onto the gear wheel using 2-3 drips of hot glue.
Then I burned one AS5600 by accidentally putting 12V onto its output pin.
But later I grabbed another one, spend few hours just to finally read the manual and realize I need 1uF capacitor and as soon as I connected the capacitor, voila!
Quote
rklauco
I had to adjust misan's code quite a bit as he only has code for ESP8266 and AS5600.
Also, I lowered the resolution from 3600 steps per 1 turn of the gear to 3600 steps - much more reasonable.
The movement in the video goes from 20 to 150 and back to 0.
Clearly, I did not work with PID settings (that's why I am overshooting so much), but I cannot tune it now - my kids are sleeping and everything is quiet, so even this small movement in the video made a LOT of noise and woke up my dog
So, I think I am done for today, but it looks like great progress.
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 09:10AM |
Registered: 8 years ago Posts: 181 |
Well, I tried to do the schematics - don't kill me, this is my first Fritzing attemptQuote
ipcalit
Do you have a schematic / pic of the board that you used?
Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-117.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-73.00 PID_output=80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-102.00 PID_output=80.00 Target=0.00 Position=-73.00 PID_output=-80.00 Target=0.00 Position=-116.00 PID_output=80.00 Target=0.00 Position=-29.00 PID_output=80.00 Target=0.00 Position=-73.00 PID_output=-80.00 Target=0.00 Position=-256.00 PID_output=80.00 Target=0.00 Position=43.00 PID_output=-6.39 Target=0.00 Position=72.00 PID_output=-80.00 Target=0.00 Position=58.00 PID_output=-80.00 Target=0.00 Position=43.00 PID_output=-80.00 Target=0.00 Position=14.00 PID_output=80.00 Target=0.00 Position=0.00 PID_output=79.76 Target=0.00 Position=87.00 PID_output=-80.00 Target=0.00 Position=29.00 PID_output=-80.00 Target=0.00 Position=29.00 PID_output=80.00 Target=0.00 Position=29.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=51.97 Target=0.00 Position=28.00 PID_output=80.00 Target=0.00 Position=29.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=80.00 Target=0.00 Position=29.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=80.00 Target=0.00 Position=0.00 PID_output=-80.00 Target=0.00 Position=0.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=80.00 Target=0.00 Position=0.00 PID_output=80.00 Target=0.00 Position=29.00 PID_output=-80.00 Target=0.00 Position=72.00 PID_output=80.00 Target=0.00 Position=-256.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=80.00 Target=0.00 Position=43.00 PID_output=80.00 Target=0.00 Position=15.00 PID_output=-80.00 Target=0.00 Position=0.00 PID_output=80.00 Target=0.00 Position=0.00 PID_output=80.00 Target=0.00 Position=73.00 PID_output=-80.00 Target=0.00 Position=0.00 PID_output=80.00 Target=0.00 Position=14.00 PID_output=-80.00 Target=0.00 Position=14.00 PID_output=-80.00 Target=0.00 Position=-15.00 PID_output=80.00 Target=0.00I don't understand what's going on. There is no other source of magnetic field around as far as I am aware...
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 09:22AM |
Registered: 13 years ago Posts: 972 |
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 10:43AM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 12:51PM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
When there is no filament in the extruder, the shaft is a tiny tiny bit up. That's by design - I achieve a bit better grip by creating the pressure by this slight dislocation.
So, when filament is loaded, the measurement is rock steady. When it is out, I receive a field fluctuation like the one above.
Quote
rklauco
To compensate I introduced simple division by 8 - so now the precision is 512 pulses per 1 rotation of the gear. As the diameter is 10.5mm, the resulting length of the extruded filament is ~33mm. That gives resolution of 0.065mm per pulse or 15 "steps" per mm. That's acceptable for me.
I will experiment with 1024 pulse resolution (division by 4) to test the measurement and system stability.
Quote
rklauco
Oh, and I forgot, of course I am working with i2c.
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 03:03PM |
Registered: 8 years ago Posts: 181 |
How did you achieve the flexibility in the bearing?Quote
ipcalit
I my design the driving gear is stable and just the bearing moves slightly to accommodate the filament. This should not create variations in the magnetic flux.
Re: Pololu geared DC motor 30g prototype extruder May 28, 2016 05:26PM |
Registered: 8 years ago Posts: 78 |
The trick is to use the material properties and printing technique in your advantage.Quote
rklauco
How did you achieve the flexibility in the bearing?Quote
ipcalit
I my design the driving gear is stable and just the bearing moves slightly to accommodate the filament. This should not create variations in the magnetic flux.
I'm interested in the technical solution as mine is rock solid...
Re: Pololu geared DC motor 30g prototype extruder June 02, 2016 01:03AM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
I don't have the recommended one, that's for sure.
I am using the capacitors after the fiasco with the 3.3V rail
But I think I found the reason.
When there is no filament in the extruder, the shaft is a tiny tiny bit up. That's by design - I achieve a bit better grip by creating the pressure by this slight dislocation.
So, when filament is loaded, the measurement is rock steady. When it is out, I receive a field fluctuation like the one above.
While the current situation is fixed by simply loading the filament, it makes me wonder - how big the impact is on the measurement if the filament diameter varies even slightly.
Re: Pololu geared DC motor 30g prototype extruder June 02, 2016 02:35AM |
Registered: 13 years ago Posts: 972 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 02:33AM |
Registered: 8 years ago Posts: 78 |
Quote
misan
I have used SOIC8 adapters from eBay
Then press fit into square hole in a plastic part like this [www.thingiverse.com]
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 03:00AM |
Registered: 13 years ago Posts: 972 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 03:29AM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 03:44AM |
Registered: 9 years ago Posts: 916 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 04:04AM |
Registered: 8 years ago Posts: 181 |
The DRV8838 and 8835 are both only for 11V and 1.2A. That's not really enough for majority of stronger DC motors - usual 2D printer motors work with 24-36V and although they are able to work with 12V or less, the torque is lost quickly.Quote
ipcalit
Any experience with TI DRV8838 or DRV8835 (dual) from Pololu or did you just use the classic L293N/L298N?
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 04:18AM |
Registered: 8 years ago Posts: 181 |
Reading the specs, it seems like it's only good for 12V, but I have some trouble with understanding the datasheet - it looks like "Output HIGH" will only get 7.7V, not 12V...Quote
nebbian
Not sure if you guys have come across this driver, but I've ordered one to try out.
[www.ebay.com.au]
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 10:53AM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
The DRV8838 and 8835 are both only for 11V and 1.2A. That's not really enough for majority of stronger DC motors - usual 2D printer motors work with 24-36V and although they are able to work with 12V or less, the torque is lost quickly.Quote
ipcalit
Any experience with TI DRV8838 or DRV8835 (dual) from Pololu or did you just use the classic L293N/L298N?
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 12:50PM |
Registered: 8 years ago Posts: 78 |
Quote
misan
No, I did not notice any relevant variation. However, I have not performed a dual-technology test (using a second optical encoder attached to the same shaft). So I might be fooled by my own perception.
Recently I saw the project Mechaduino that does a big effort to compensate the errors of their magnetic encoder. Mecaduino
Quote
misan
I have tested drivers 6612 [www.pololu.com] and L298N but I am waiting samples of this other one for beefier motors [www.pololu.com]
If you do not have enough current for your motor then performance will be subpar.
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 03:40PM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 05:19PM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
Well, I am disappointed. I tested the A4953 and while it works, it gets extremely hot even during position hold.
And while doing back and forth 120mm movements it got so hot I could not put finger on it.
I had to remove it and put back my TB6612, which works flawlessly.
I had to admit, though, that my temporary board is WAY off the reference design - so probably the missing heat-distribution is accountable for most of it.
What worries me, though, is that the chip should be able to work with 40V and 2A (80W), while I was feeding it 12V and 0.3A (3.6W), so less then 5% of it's designed power capabilities
Someone has different experience with A4953?
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 05:37PM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 06:01PM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 06:12PM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
Well, I simulated 2 8-hour long prints with X and Y axis on a single TB6612 and it was as cool as it started. The motor got worm to touch, but the TB did not.
I did not put any sort of heat sink on the A4953, I can try it tomorrow and report back the results.
I would still like to make the A4953 work - I have a board in mind with ATtiny85, A4953, 2 capacitors and form factor that would make it a drop-in replacement on RAMPS boards... But maybe I am wasting my time and it would be easier to make an add-on board for Arduino Mega, similar to RAMPS shield...
However, I like the experiments
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 06:14PM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder June 07, 2016 06:20PM |
Registered: 8 years ago Posts: 78 |
Quote
rklauco
That was my initial idea - just instead of Zero (due to virtually no availability) I plan to use Orange Pi One.
Re: Pololu geared DC motor 30g prototype extruder June 13, 2016 03:43AM |
Registered: 8 years ago Posts: 181 |
Re: Pololu geared DC motor 30g prototype extruder June 13, 2016 04:34AM |
Registered: 8 years ago Posts: 181 |