This is code for a Lego WeDo 2.0 Car. Parts Things you'll need: 1. To exist 2. Have a Lego Wedo 2.0 set 3. Have 1 Motor 4. Have 1 Distance Sensor 5. Have 4 wheels 6. Have the WeDo Hub (The block thing with a button and needs batteries) 7. Have 2 plus-shaped rods 8. Have the rubber bands 9. Have the 2 slim wheel rims Steps Build the car Attach motor to a 3rd short rod (first connect it to the hub) Put a slim wheel rim behind the wheel according to where the spinner of the motor Connect the rubber band to the 2 slim wheel rims so it looks like a conveyor belt Connect the wheels with the 2 long plus shaped rods accordingly. Put your distance sensor at the VERY front of your car or close to the front. wire everything to the hub and connect your hub via bluetooth. if it doesn't work, install https://scratch.mit.edu/download/scratch-link and open it before connecting. Scratch link does not show anything and that's ok. After following all the steps, connect the hub with bluetooth and run the project. You're done. Everything in a Seychelles Palm shell. If you failed, use a video or use the Lego website.
Change the code how you want.