single colour LED
this was project 1.1 says change the 0 which is the second bubble to 50 but me and Ishaan did 100 to make it brighter so the program is when space bar pressed LED will turn on and the brightness will go to 100
this task says that you have to figure out how to make it turn off when you press x. the program is when space key pressed LED turn brightness to 100 but when x is pressed LED brightness go to 0 which is off.
the task was to make one turn on then wait 2 seconds then turn the other one on then wait two seconds then turn off both of them off. the program is when space key is pressed one LED brightness goes up to 100 wait to seconds then the other one’s brightness goes to 100 then wait 2 seconds then both of them turn off.
the task was to get two lights but one of them has to have less brightness than the other and also after five seconds it has to turn off. the program is when space key is pressed one of the LED brightness goes to 100 and the other LED turns to 10 which means one is not that bright but the other is really bright.
this task says that you have to make a prediction about what is going to happen if you do this program I predicted that it will turn red first because the number is next to the r which I predicted might be red then it might wait because it has a wait block and in it is one second then it might turn blue because it is next to a b then it might wait another second and then it will turn red again then wait another second and then it might go off because there is nothing next to any of the letters that was my prediction and my prediction was right. it also mentions that you have to figure out how to turn it of I figured out that there has to be nothing next to any letters.
the task for 2.2 is to get the tri-colour LED to turn to a different colour every time you press a key but there has to be four different colours and they have to turn on when you press a certain key. the program is when 1 is pressed it will turn to red then when 2 is pressed it will turn to green then when 3 is pressed it will turn to blue then when 4 is pressed it will be a mixed colour between green and blue and at the end we put something that you don’t have to put which is when 5 key is pressed then it will turn off just so we can stop it from wasting the computers battery.
for this task you have to make the LED turn on when the tri-colour LED of and you have to do that ten times In the time of 10 seconds. The program is when space key pressed tri-colour LED has a mixed colour of 10 red 10 green and 80 blue which equals 100 then wait 0.5 seconds after that the tri colour LED turns off but while that is happening the single colour LED turns on then wait another 0.5 seconds then turn the single colour LED off then repeat that 10 times
this was the outputs now all the stuff below is about inputs like sensors.
this task was about trying to make the distance sensor measure the distance. We made it do what the task wanted us to do which was to measure the distance it was simple to do because they showed us the code we just had to plug it in. I am sorry that we couldn’t find the video.
this task was telling us that we had to make a red light turn on and a servo motor to spin when it has an object in 30 centimetre of it and when it has nothing within 30 centimetres of it the light should be off but we couldn’t get the motor to work so we just left it out. the program is when space is pressed if the sensor senses an object within 30 centimetres then tri colour LED will turn to green it is supposed to turn red but we did green but if it doesn’t sense any thing within 30 centimetres then turn the tri colour LED turns to red it wasn’t supposed to turn red it was supposed to turn off but we did red then the last block is a forever block so the program goes on forever. sorry again that we couldn’t find our video.
the task is to copy that code that they showed us and then they told us that we had to figure out how to make it respond quicker. when we tested the program the motor didn’t move so we tried to fix it but that didn’t work so we didn’t know what to do we tried every thing but still nothing moved we tried changing the wait buttons but that didn’t work so we tried pulling all the wires out and putting them back in but that didn’t work we also tried changing the servo motor numbers but the motor still didn’t move we also tried closing snap and opening it again but that didn’t so we decided we will still show what we tried in our blogs.