So far, we have made circuits using parts like stepper motors, distance sensors, and servo motors which are parts of our main project; the Boxbot
We will use this part to make the wheel of the boxbot spin forever and a full 360 degrees.
We will use this part to measure the distance pf something in front of the Boxbot, the code that we use will tell the wheel when to spin and when not to and in what direction.
We will use this part on a boxbot to have good control of turning, linear positioning , velocity, and acceleration of the boxbot
How to connect a distance sensor to the brain
The code that we have been working with:
How we used the "repeat while true" block:
We use this block of coding to loop one or multiple actions while it is true, for example we used it to make a stepper motor move if the distance of the distance sensor is less than 20, but if it was over than 20 it would stop the stepper motors from moving and instead move the servo motors in a loop.