Hello everyone today I will be talking about another tutorial with Kid bright again so when it is dark you can turn on the light, fan or other stuff on. So let's begin first you need a forever block and a set x to block. You can change it. It doesn't really matter.
So next you get the light level sensor from the sensor. Next, you put a LED 16x8 2 chars block underneath it. Next a delay 0.5 block underneath that. Now you get an if do else block from logic. In the if you get a = block and change it to a < symbol. Next, you get an X block at the front and a number block at the back you can change it to 30-50. I did 50 because why not? At do you get an LED 16x8 scroll block and you get a print block. You can change the word to when it is dark you want it to say this on the screen. Next, get a write USB (on) block from the I/O and next a delay block set to 3.5 or 3.
At the else do the same thing except change the word in there for when it is day time you want it to say this when it is day time. Make the write USB block off now. and then a delay block set to 3.5 or 3. Then underneath the if do else block you put a clear 16x8 block underneath it. If you did it correctly it will look similar to the picture.
Anyways that is all for today bye!
So next you get the light level sensor from the sensor. Next, you put a LED 16x8 2 chars block underneath it. Next a delay 0.5 block underneath that. Now you get an if do else block from logic. In the if you get a = block and change it to a < symbol. Next, you get an X block at the front and a number block at the back you can change it to 30-50. I did 50 because why not? At do you get an LED 16x8 scroll block and you get a print block. You can change the word to when it is dark you want it to say this on the screen. Next, get a write USB (on) block from the I/O and next a delay block set to 3.5 or 3.
At the else do the same thing except change the word in there for when it is day time you want it to say this when it is day time. Make the write USB block off now. and then a delay block set to 3.5 or 3. Then underneath the if do else block you put a clear 16x8 block underneath it. If you did it correctly it will look similar to the picture.
Anyways that is all for today bye!
Comments
Post a Comment