I purchased a diode laser from amazon. Bigger than my older laser. Has pwm cause im fancy.
But i needed 5v pwm and my mach3/breakout board provides 0-10v analog. The easiest solution I could think of was once again to slap a nano on it.
Here I am testing the circuit.
The circuit uses 2 10k resistors as a voltage divider to accept the 0-10 volt signal into the arduino analog inputs. The other component is a 5v regulator to power the arduino off the cnc power supply and the knob simulates the mach 3 for testing.
The arduino library makes the code so easy. Pin 5 gives a 980hz signal and other pins give different lower signal so choose accordingly. I cant think of a reason to hassle geting into the Timers and increase the HZ.
//duty is 0-255
int duty = 0;
//pin 1 reads 0-10v /2
//output a pwm at 980HZ
duty = map(analogRead(A1), 0, 1023, 0, 255);
When its done I put it in a 3d printed case and hot glued it to power supply.
I have had some more practice with casting aluminum and now I have even upgraded my oven. My original ovens electrical plan did not account for wire durability based on wattage and length of wire so it quickly wore out.
I also attached an arduino nano to the oven so I could quickly enter rising and falling temperature times.
Further, because I now havea 3d printer I have been doing lost pla casting. Its much faster and the shrinkage can be predicted pretty accurately.
Below is a cut and paste of the results. Most of the time you need 105% enlargement for parts that can fit in your hand.
Oversize Post Calc
7mm roller pin
pin for hypocycloid
hypo cam spacer
spacer for 100:1 cams
7mm roller 103%
cam spacer 103%
square block 103%
Stipling came in perfect but required light sanding which quickly pulled .2 of item
Here is an example of how easy it can be to cast. Casting is not really ever easy. Its time consuming.
Below is my whole aluminum casting setup. You can see the oven is upgraded with a control unit and relay. I use a vacuum as normal to draw down pressure during pour. The toaster oven preheats the parts so they don’t have moisture.
Below are two of the parts. I whacked it with a hammer to see if it would do anything. It didn’t.