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...

it's the weekends!

Hello everyone! Today I will be talking about the holidays! I know the Title says weekends, but weekends and holidays are pretty similar don't you think? Anyways today I was thinking of doing the Inktober challenge. It is a challenge for artists to draw something new or scary every day in October. Being in an Asia country has its benefits but also some downers as well, for example, there is no snow in Thailand (this is my opinion by the way), no Europe holidays which is kind of a bummer, to be honest. I love Europe holidays. Thailand's Holidays aren't really that great, but my favourite holiday in Thailand is Songkran day. It is because you get very refreshed during the day. You can also fight with other people with water guns or water balloons. I mean it is October with Halloween and all of those spooky things in Europe that we don't have in Thailand. I miss trick or treating when I was a kid, but they don't celebrate Halloween or Christmas in Thailand. Which is ki...