Posts

Showing posts from February, 2021

Scratch - How to Change the Size of Sprite According to the Loudness

Image
How to Change the Size of Sprite According to the Loudness Hello guys. In this blog we are going to see about changing sprite size according to the loudness input given to the microphone  Coding with Blocks 1) Lets place " when flag clicked " Block from " Events panel ". The " when flag clicked " Block triggers the Blocks/Block code connected to it below. 2) Now lets place " forever " Block from " Control " panel. The Blocks/Block inside the " forever " Block will run continuously.  3) Now lets place " set size to _ " Block from " Looks ". The " set size to _ " Block sets the size of sprite for giving value, here cat is the sprite. Play around by changing the value of it's size. Note - " forever " is used here to change the value of " set size to_ " Block continuously. It will be needed in 4th step and 5th step. 4) Now drag and drop " _*_ " Block inside " set

Arduino - Led Blink

Image
  This is a simple project using Arduino. It would  enrich your knowledge about Arduino. You’re going to program your first  Arduino project starts with LED. Components required You will need  following components -      Breadboard x 1     led x 1 ( any color )     220Ω / 330Ω Resistor x 1     Jumper x 2  ( Male - Male)     Arduino Uno x 1 ( Any Arduino board can be used ) Procedure Follow the circuit diagram and hook up the components on the breadboard as shown in the image given below. Connect the positive terminal of the LED to 8th pin in Arduino board after adding resistor to negative terminal of the LED then connect the end of the resistor to GND of the Arduino board.    Note − To find out the polarity of an LED, look at it closely. The shorter of the two legs, towards the flat edge of the bulb indicates the negative terminal.    Sketch Open the Arduino IDE software on your computer. Coding in the Arduino language will control your circuit. Open the new sketch File by clicking New

Rock, Paper, Scissor using Python 3

Image
  Rock, Paper, Scissor using Python  I’m guessing you’re learning Python because you want to write interactive programs, like video games. Well, today is your lucky day. You’re going to program your first Python game. Rock, Paper, Scissor  Open IDLE and create a new file, rps.py. Then enter the following:  __________________________________________________________________________________  from random import randint #create a list of play options t = [ "Rock" , "Paper" , "Scissors" ] #assign a random play to the computer computer = t [ randint ( 0 , 2 ) ] #set player to False player = False while player == False : #set player to True player = input ( "Rock, Paper, Scissors?" ) if player == computer : print ( "Tie!" ) elif player == "Rock" : if computer == "Paper" : print ( "You lose!" , computer , "covers&qu

Arduino Relay Tooth

Image
Relay Tooth   Components Required Arduino Mega 2560 & Genuino Mega 2560(any Arduino board can be used) - 1 HC-06 Bluetooth Module - 1 Relay (generic) - 1 About this projects This project allows to control AC electrical equipment via Bluetooth. And I use Relay to control electrical equipment by getting the signal from phone Bluetooth. Original post of me >