Post has attachment

Post has attachment
please solve the following question
Photo

Post has attachment

Post has attachment
So, I have this Arduino project I'm doing, involving a laser and two motorized mirrors.
So far, the code I have created generates a decent circle, but it only works straight out from my circuit board. See bottom of post for diag.

I'm trying to redo this so that instead of 90°, set the angle of motor 2 so that it draws at 45° out.

However I can't figure out the math for this.

What I have coded is pretty basic, works great for circles drawn at 90°.

for (int i = 0; i < 359; i++) {
pos1 = (sin( ((i*2*3.14)/360)* 13) //work within 13 steps of start position
pos2 = (cos( ((i*2*3.14)/360)* 13)
move1 = (start1 + pos1); //start* is the initial position/angle of motor
myservo1.write(move1);
move2 = (start2 + pos2);
myservo2.write(move2);
}

The 13 is how many steps the motor can move before the reflected laser no longer hits the mirror.

This code won't work for changing the angle to something else. Sure, I can get a nice oval out of this, but that's not what I want. I need a different formula for one of the functions.

Any suggestions?
Photo

Post has attachment
Drawing Pie Charts

How to plot and interpret pie charts for GCSE and Common Core Mathematics. #commoncoremath #mathschat

Click here for the full lesson.
https://mr-mathematics.com/resources/MathematicsLessons/rep_data/PieCharts/PieCharts.html
Photo

Post has attachment

Post has attachment

Post has attachment
Photo

Post has attachment

Post has attachment
Wait while more posts are being loaded