Skip to main content

When the sensor is dark, let the USB work

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!

Comments

Popular posts from this blog

The amusement park on children day

hi again it is me focus and today i am talking about children's day today is children day in Thailand and i went to an amusement park the park it might had the world's largest wave pool i am not sure but it might okay.anyways i went to a park called "siam park" you can search it up on youtube or google and it is in Thailand in Bangkok so i went and played 9 rides because i didn't had much time because my dad wanted to work so i tried to be fast so i played rides called merry go round,a roller coaster,same thing like a roller coaster but not called the vortex,another roller coaster,balloon race,cant remember,log flume,cant remember again,giant drop and that is all but i will how you a picture or maybe a video if i can find it so that is all (after the some of the rides i couldn't feel for a bit and here is a video that i did today) the most scariest one of them all was the giant drop so give a big thanks to my mom and dad for being able to go her...

Interland - Be Internet Awesome from Google

Hello everyone! It is me Focus and today I will be talking about Interland from Google! You might be confused about what Interland is. So Interland is a game that was created by Google to let kids play. The game teaches about the internet.  Interland - Be Internet Awesome  There are 4 stages. The first stage teaches you that we need to be nice to everyone on the internet and that we should learn who are the bullies and who are the innocent. The second stage is about information on the internet. We should know which news are lies and which are true. We can't let our selves be deceived by the fake news on the internet! Don't just trust what everything on the internet is true! We must know which is true and fake. The third stage is about who we should share our information about on the internet, for example, your location of where you know you should send it to your friends and family, not the public. There is also information about your number, ID number and sec...

Some news about school!

Hello everyone! It's Focus and today I will be talking about some news about schools in Thailand. It might sound boring I know, but it's at least some news because schools were cancelled because of the COVID-19 pandemic. Yesterday the school called and said that they will open on the 1st of July. So here we are I told my friend Andy and he said that he knew and that we will get the outfit and books at around the 11th this month I think. I didn't actually know when I had to get my outfit and books because my Mom only told me the date when school will open. Also that I got in the INTER program or international program (hooray!). Andy said that maybe I will have to get the outfit and books on the same date. So I then asked my Mom and apparently its not the same date. I have to get my books and outfit on the 21st this month. I was confused why It wasn't the same date until my Mom told me since I was in the INTER program the outfit and the books are not the same. I then aske...