Quote of AWESOMENESS: “The function of leadership is to produce more leaders, not more followers” ~ Ralph Leader
Functions are so useful and cool at the same time and right now I’m going to teach just how to make one!
But, before we go there, what exactly is a function? It’s somewhat like a pre-made command that you get to customize yourself. For example, you wanted to make five circles, imagine you would have to make each circle repeating how big you wanted it to be, the color, locations, and others. But, if you had a function, you would make it so much simpler in just adding the code and copy-pasting the function.
Here’s the code for a function:
[remember: WHITESPACE is very important in Python]
# This hastag is a comment and won't affect the code# We start making function by defining it with the word def# The thing written inside the parenthesis is called the argument# Remember to put the colon then the indentation will be proper, toodef list(alist):
# Here, I'm setting the variable a to number 0
a = 0
# This is a for-loop and the i just stands for index
for i in alist:
if i > 0:
a += 1
# Here is the actual function in action!
# Test section
mylist = [2,-4,5,-16,-20]
mylist2 = [2,6,8,-4]
mylist3 = [-5,-6,-7,-8,10]
This is just a simple example of what you can make of a function. Try it out!
Quote of AWESOMENESS: “Creativity is intelligence having fun” ~ Albert Einstein
Back again with another python program.
Now, this program is an “advanced” version of a guessing number game. So basically, the program gives the user three guesses and the numbers are ranging from 1-10. Through each time the user types in the answer and is wrong, the input would spit out either “too high” or “too low” indicating what the user’s next move should be.
Mix around with it and experiment like maybe adding a wider range of numbers to guess from or maybe adding riddles to guess the number. This code is somewhat the basis of what else can be built with it, so be creative and have fun!
Here’s the code:
range = random.randint(1, 10)
user_guess = 0
guess_counter = 0
print(“This is a guessing game and you will be given three tries to win! \nThe range will be between 1 and 10. \nGood luck!!”)
Quote of awesomeness:“Is not about creating an object. It is about creating a perspective.” ~ Albert Paley
Level of hardness: intermediate (You can do this!)
Heyyy!!!! Here’s another Arduino project for you!
For this project, you will need the following:
1x Arduino UNO Board
1x USB Cable Type A/B
1x RGB LED
3x 220-Ohm Resistor
3x 10k-Ohm Resistor
13x Jumper Wires
The first step is two connect your breadboard to your Arduino and it should look something like the photo above. Then, add your RGB LED to your breadboard.
Next, you need to grab another wire and connect the other positive lane of the breadboard to the negative lane on the other side of the breadboard.
In this step, we will be placing the three 220-Ohm Resistors to three of the legs of the RGB LED. You will only be placing the resistors on the R, G and B of the RGB LED, this will leave you with one leg unconnected.
For this step, you will be needing four wires. Remember I told you that you were left with one leg of the RGB LED which isn’t connected? Well, it’s time to connect it now! Place one end of the wire to the remaining leg of the RGB LED then place the other end to the negative lane of the board. In the photo, the wire which I used for this connection is white.
With the other three wires, connect it to each of the 220-ohm resistors. Then, connect the other end of the wires to the Arduino 9, 19, and 11.
Let’s place the photo-resistors on the breadboard so that they cross the center divide from one side to the other.
Now, connect the 10k-Ohm resistors to one side of the photo-resistors and the other side to the negative lane of the breadboard.
Taking three other wires, connect it between the photo-resistor and the 10k-Ohm resistor then connect the other end to the Analog In pins 0, 1, and 2 on the Arduino.
Going on the other side of the photo-resistor, connect each leg to the positive lane of the Arduino with three wires.
Your result should look something like this!
This is the final step! Connect your Arduino to your computer, fire up your Arduino and copy paste in the following code:
const int greenLEDPin = 9; const int redLEDPin = 11; const int blueLEDPin = 10;
const int redSensorPin = A0; const int greenSensorPin = A1; const int blueSensorPin = A2;
int redValue = 0; int greenValue = 0; int blueValue = 0;
int redSensorValue = 0; int greenSensorValue = 0; int blueSensorValue = 0;
This project is just extremely awesome and awe-spiring that I can’t wait for you guys to try it out!
We. Are. Going. To. Make. An. Arduino. Robot. Arm!!!!!! I know, I know super cool. Now, without further ado, let’s jump right into this project.
The following are what you will need to gather:
1x Arduino UNO Board
1x USB Cable Type A/B
2x 10k-Ohm Resistor
5x LED (A.K.A light-emitting diode, A.K.A miniature looking light bulb-ish)
5x 220 Ohm Resistor
20x Jumper Wires
First, let’s start by putting the potentiometers, the buttons, and the LED’s on our breadboard.
We will be placing 3 potentiometers, 2 buttons, and 5 LED’s. For your reference, the photo above can help. Yes, I did say 5 LED’s but I forgot to place the fifth LED in this photo, but you should put 5.
Here are some important basics to understand about an LED:
Cathode (-, shorter side)
Anode (+, longer side)
RESISTORS. Resistors. resistors.
Place five of your 220 Ohm Resistors on each of the Anodes (+) sides of each of your LED’s and the other end of the resistor to the negative side lane on your breadboard which we will later connect to the GND on your Arduino board. I’ve placed another photo above showing where I’ve placed my 220 Ohm Resistors.
Now, take both of your 10k-Ohm Resistors. You will have to place one side of your resistor to only one of the button’s leg. Do this for both buttons. Here is another picture but of the buttons and resistor placing.
We have finished placing all the resistors we will be needing in this project. You guys are doing an awesome job, btw!
This step will be really quick.
All we need to is get two jumper wires, first. Then, connect the Negative lane on your breadboard to your GND on your Arduino, and, the positive lane of on your breadboard to the 5V on your Arduino (you can find this right beside the GND, usually).
Done with this step. Great job!
For this step, you will be needing 5 of your jumper wires.
We will be connecting each of the LED’s on the breadboard onto the Arduino UNO board with your jumper wires.
Here is the first LED I connected. We will be connected the other leg (cathode, shorter side) of the LEDs to these numbers on the Arduino in order:
I will also be numbering the LEDs on the next photo so that it will be easier to know which we will be connecting to which.
We will connect:
LED 1 to 2 on the Arduino board
LED 2 to 3 on the Arduino board
LED 3 to 4 on the Arduino board
LED 4 to 7 on the Arduino board
LED 5 to 8 on the Arduino board
I know that wiring could be a tedious job but it’s okay because I know you can do it.
Wiring is very important because it connects. It works as that bridge that can help cars go back and forth and connect with other cities. If you have a bulb and a power source you can’t just put it beside each other or clink it together to light the bulb up (even that would be super cool if that’s how easy it was), you need to connect it through wires. So, let’s continue? Yes.
In this step, we will be wiring the buttons and the potentiometers.
Here in this photo I got two jumper wires and connected one end to the remaining unconnected leg of the buttons and connected the other side of the jumper wire to the positive (+) lane on the breadboard
That was easy, wasn’t it?
We are nearly done!
Let’s start wiring the potentiometers now.
For the potentiometer, it’s going to be slightly harder.
In this photo, I’ve connected 3 jumper wires to the right side of the potentiometer then connected the other end of the wire to the Negative lane of the breadboard (A.K.A GND).
And, then, I got 3 more wires and connected it to the left side of my potentiometer then connected the other end to the Positive Lane on the breadboard.
I’ve added the numbers on top of each potentiometer so that it’s easier to understand how to connect it to the Arduino.
As you may see on the picture to your left, I’ve added 3 white jumper wires to each of the middles of the potentiometers because we will connect this to the Arduino Board. Connect potentiometer 1 to the A0 on the Arduino UNO Board | Connect potentiometer 2 to the A1 on the Arduino UNO Board | Connect Potentiometer 3 to the A3 on the Arduino UNO Board.
In this step, grab two more jumper wires and connect both ends of the lanes on each side of the breadboard to each other. I used the black and red wire here.
You will need to connect the Negative lanes on each side to each other and the Positive lane on each side to each other.
Tada! Next step.
We are nearing the last of our steps. KEEP GOING!
We will add the servo motors to our breadboard and I put mine side by side to each other.
I connected three jumper wires each for three of my servos, meaning 9 jumper wires in total.
About servo motors in Arduino:
They usually have 3 plug pins (this is where I connected my jumper wires to)
Take a look at your servo motor. You will probably notice there are three colored wires. Each color represents 3 different things. The colors could actually be different sometimes but, as you see here, my colors are brown, red, and yellow.
The brown is the Ground/Negative (-)
The red is Positive (+) [This wire is usually located at the center of all the three wires]
The yellow is the Signal
Your wires on your servo motors might be different and you might be thinking “WHAT!?!?” but it’s okay (that’s what I thought too) here is how you can compare it to mine to find the similarities:
The Ground/Negative is usually | Black or Brown (in my case, it’s brown)
The Positive is always Red
The Signal can be either | Orange, Yellow, or White (in my case, it’s Yellow)
Awesome, let’s proceed.
These are what you need to connect with your Servos:
Connect each of the GND/Negative (Black or brown wire) on each of your servo motors to the positive lane on your breadboard (I used a white jumper wire, check the photo above for reference)
Connect each of the Positive (Red wire) on each of your servo motors to the negative lane on your breadboard (I used an orange jumper wire)
Lastly, connect each of the signals (Orange, Yellow, or white wire) of your servo motors to: 5, 6, and, 9 on your Arduino
This is our last time! Congratulations!!!
Connect your Arduino to your computer, fire up the Arduino app on your computer, copy paste the code below and press Upload.
Now, the challenge whether you choose to accept it or not is to build your own robot arm out of cardboard or you can check this —-> here which was made by Ryan Chan. Shoutout to him, btw. I hope you enjoyed this! I certainly had an awesome time and I hope you did, too!
You can teach others and share your awesome knowledge on building an arduino robot arm, I give some bragging rights.
HAPPY NEW YEARS YOU AWESOME PEOPLE EVERYWHERE! It’s actually 2018 guys, like, it’s surprising how time flies to fast. But here’s a new year and it’s time to let go of all those negative memories and energy that happened back in 2017 (which was literally just 8 days ago like, WHAAAT??! (I’m screaming this in an excited/surpised/good way)) and start this 2018 with positivity and awesomeness.
What is a vision board?
Have you ever heard of a vision board? If you haven’t, it’s comparable to a resolution with pictures which you stick all together on a board (or even paper) and display it in your room, bathroom, or wherever. This board would normally be filled with what you would want in life, such as, your dreams, the house you would want, your lifestyle, things you would like to achieve, how you want your relationships in your family and with your friends to be like, the things you’ve been wanting to have, the grades you’re needing to get, and so much more. But, I highly trust, that it is important to fill the board you want with the thoughts, the positive mindset you want and the how would like to feel; joy, gratefulness, purpose. In other words, you can also see it as a big list of your goals in life (but with a sprinkle of fairy dust 😉 ).
Where to place your vision board.
It’s important where you put your vision board, as it should be in a place where it is visible so that the idea and dream you’ve written down or placed on your board, will always be seen and you’ll remember what you’re working for and what you are building up to. But, the best places to bestow this board of awesomeness are places at your home where you would normally look at, such as your room, bathroom, living room or wherever you seem to find yourself at in your home.
My experience with vision boards.
I’ve done vision boards countless times over the past years. I usually start at the beginning of the year (but really you can begin anytime, even now) and I included in my vision boards what I would like to accomplish or have the next following year or even years (like my future car and house). And, to my amazement, there were plenty of things that I’ve fulfilled that were included on my vision board. A few things that I got went from: a Nerf gun, to building better relationships with my family, my dream camera and even this golden retriever I truly prayed for. Let’s start with a simple example, this camera I wanted was something I just pasted on my board because for a long time I’ve gotten really interested in photography and I thought “hey, why not”. It took me probably two years until I actually got it through saving and help from my dad (SHOUTOUT: Thanks so much dad hahaha you’re the best).
How does it work?
It won’t happen with a flick of your finger. And, it won’t magically just appear in front of your eyes. Even though I wish it worked as easy as this, it doesn’t. But, if you have the passion and you believe and you really earn and have that deep fire of “I CAN DO IT” and “I WILL GET THERE” inside of you, then you will get there even quicker. I dare say that vision boards work alongside the lawn of attraction and this belief has been existent for quite some time already. Your thoughts and what you visualize are very important. If you focus on seeing what you want and how you see this world positively, you’ll get positive outcomes; if you see the world and what you want in a more negative way, you’re outcomes will be negative. Another way you can see a vision board is as something which is there to mentally push you and while you’re brain and the attraction is at work you need to also get up and do something to reach that goal.
How to Create One:
– Your dreams, aspirations and your wants
– A board or Poster
– Some Markers (Optional)
– Glue or Tape
– Magazines or Newspapers or both
What you’ll do:
1. Cut out whatever it is that you want from the magazine like words, places you want to visit and whatever else
2. Then Paste your cut outs on your board how you would like it
3. TADA, your masterpiece is finish
Famous people who did vision board and visualizations:
Ellen DeGeneres, Katy Perry (started at nine years old), Beyonce, Jim Carrey, Oprah Winfrey, Arnold Schwarzenegger and way more (I would continue but it would fill much space, we’ll do it another time)
You can do it 🙂
At the beginning, I didn’t truly believe that this could work. I used to think that I’m too down the rabbit hole that there was no way I could rise and achieve these targets that I saw through all the rubble. But the thing is I was able to see through all the rubble. I was able to see through the things that were obstacles and walls and just ignore them and look at that goal that shined so bright it gave a spark of hope which is all you ever need to start a flame to get there. And, I know that there are plenty things that can tear us down and we find ourselves in these situations where we get blinded by all the negativity and hopelessness, in these rabbit holes. The Vision Board that you design is there as a flag, a flag of hope, a flag which shows what you are planning and going to achieve. I can assure you that you CAN once you try. If I was able to do it then everyone can.
Everyone is given the same amount of hours in a day but the difference is how we choose to use it and what we choose to believe and see. A great example of this is Alexander Hamilton. This man was born to parents who weren’t able to marry and the streets that they walked around in were filled with whispers of how Alexander Hamilton and his brother, who were only young boys, were disgraceful and other unpleasant names. His father left them early and their mother died when a plague came. He separated from his brother and also became an orphan. He barely had anyone he could call his family. But, do you know what happened? Alexander Hamilton became one of the most well-known and greatest men in history. He worked with George Washington and he was a genius, soldier, scholar, one of the founding fathers and much more. And, even if his father had abandoned them at a young age he yearned to be reunited again as a family and show his father his wife and children. He started out with nothing at such a young age but he turned this energy to something stronger and better and he achieved so much things in life as he set his goals (one of them being: creating a strong central government) and made them come true. We all can do it. You can do it.
Hi, guys! Welcome back to my blog! And, advanced MERRY CHRISTMAS to all of you awesome humans!! Here’s a blog on lawns and how we shouldn’t
Yes, those huge green spaces, usually found in front of a house, which normally has sprinklers (around 1-3, really depending on how big the lawn is), grass, grass- oh! Did I forget to mention there’s grass? And, if you’re really lucky, you would find one or two dandelions around. Some people even consider putting a sign or two saying “KEEP OFF OF GRASS” or “WALK ON PATHWAY ONLY”.
The thing is, lawns have been existent as far as the 16th century. In the beginning, lawns just had the purpose (waaaaaay before) to help the people see if an animal or some person were coming from a direction which seemed to be endangering others. Then soon enough years passed then bowling came the next “cool and popular thing” that went around until it was banished for the “commoners” in England by several kings, which is just unfair. Let’s fast forward again, the Northern Europeans migrate and travel to North America, they share their ideas with the lawns and what they need to start their own. Only the rich and wealthy were able to afford these new “cool” grass trends, at the start. Then looking at today, you can find lawns nearly anywhere. There are too many gallons of water that endlessly get wasted to just these lawns.
I just found out that according to the United States Environmental Protection Agency, that more than 30-60 percent of water from the total percentage which a household uses goes to your outdoors. If we look at both what would be worth using up water on, lawns or gardens? Another thing the US EPA mentioned was this:
If the average sized lawn here in the US gets 20 minutes of watering every day seven days a week
running the shower constantly for 4 days
taking more than 800 showers
this is the amount of water needed for the average family to take 1 year’s worth of shower
I was blown away by such an extraordinary amount that is being used just by ONE average lawn, just one. Can you imagine the hundreds of thousands of lawns using this much water? That’s way too much. But it’s not too late to change this numbers and change our currently occupied spaces by lawns into something better. It’s never too late.
The benefits of having a garden:
Plants and trees absorb sounds. Yeah, you read that right. They absorb sound and these are actually one of their not – so – known traits that they have. Meaning this benefits us when it comes to noise pollution.
Secondly, plants and trees also aid with our pollution. They take in the carbon dioxide that we humans exhale and create, as they give out and produce oxygen. And, this oxygen is a very important component for us to live and survive.
If you have edible plants you could even save a bit of money by reducing the times you visit the market and grow them yourself and produce more in your backyard! And since you’ve grown these plants yourself, you’ll also be aware that there won’t be any preservative or other stuff that barely anyone could spell being injected or placed into your food.
Gardens also help other types of wildlife which insects and other animals like to hang out and even eat a bit of fruit from the trees and take shelter. It’s awesome knowing that we’re helping these creatures while we help ourselves, too. It’s awesome that we’re able to help in these little ways to our one and only home, earth, especially since plants help remove chemicals and bacteria from water in the ground.
Here is an awesome (oh you know, they’re just so awesome) solutions:
Home Gardens for everyone!
Here, imagine this, trees that bear awesome tasting and healthy fruits at your front door. You look up and even find a bird perched on one of your tree branches singing a lovely tune. A breeze swifts past you momentarily spreading an aromatic smell filling your living room with a fragrance of ripe oranges, basil, rosemary and you even take a hint of sage which seemed to be lingering from your next door neighbor’s newly planted herb. Wouldn’t this be such a wonderful sight (or should I say smell) to wake up to? Everyone can try to convert their lawns to a garden which would not only be such an amazing sight to see but very useful to this earth, the animals that live in it and even ourselves. It doesn’t have to be a humungous garden with trees and herbs everywhere you could barely walk back to your house. There are plenty of ways you could design your garden to your liking! Small or big, it all helps. Students and everyone who would want to could even volunteer to help water or take care of the plants.
Spread the word, guys! You could also probably be the one to influence others wherever you live to do the same! Just keep being awesome and create your own ideas!
“I haven’t failed. I just found 10,000 ways that don’t work.” ~ Thomas Edison
First of all, thank you Dyson Foundation for the Ideas Box!!!! :). This has disciplined me with the patience of building a device or an item.
Dyson Foundation Ideas Box is one of the few projects that I am doing. James Dyson, a British inventor, is the industrial designer and founder of the Dyson Company. He is best known for inventing the Dual Cyclone bagless vacuum. But maybe you’re asking yourself, “why? Why did he make this [cool, really cool] vacuum?”. James, one day, was feeling irritated with the vacuum that he was using due to its poor performance. He decided that he wanted to make the product that would be, in his thought, much better. So, five years and 5,127 prototypes later, he made this new vacuum which was the first bagless vacuum in the world. But, that isn’t all! In 2002, Dyson set up this foundation which has the goal to inspire young people to study engineering and maybe even become one someday. He wants students to make mistakes and think in a different way. His “Engineering Box” (which is the one that I received) is filled with activities! Some of the activity cards that were included in the box are:
And, on each of the activity cards are information on like how it works or some small trivia. It’s just very engaging and you could actually find more of these project on their site!
Well, since we’re on this topic, I’d like to share to you guys a few things I have created:
Spy Pen (can shoot far)
Book with hidden camera
I’ve honestly been very excited when it came to making things and the Dyson Foundation is such an excellent way to learn more and get your learning fluids up and running!!
Dyson Ideas Box has pushed me to the limit that I can create anything if I try :D. Inside the box they have sent me, there was a bladeless fan inside but when they sent it to me I had to connect the head to the body (it was very simple).I would recommend homeschoolers to use this and other schools because I think that it would be a great opportunity for kids to get inspired and learn this.
The information which it has for the reader (me or you) has given me a lot of fine concepts to form something out of nothing. They told me that frustration helps you to make an invention because when you’re frustrated at something you will want to do something (exactly how Dyson was with his vacuum). If you made an improved product than the other person, then you should show and tell the advantages. Here is an example:
Can hold about 50 movies and 75 songs
Comes in color black (only)
Your computer design
100 movies 200 songs
Can come in all colors
Can come in small, medium or big
[That was just an example I made up]
Do you see??? You have to make your invention more interesting and a better product. When you are writing an invention (you want to make it “TOP SECRET” so that no would steal it from you) you should sketch, and write down the details. Remember if you are making it better than someone else explain the difference. James Dyson had a vacuum which kept breaking apart, and he was frustrated; therefore, he started to make his own vacuum and finally his invention is around countries and even on ads :). He wanted to make kids explore their inner inventor, make mistakes and invent. You’ve got this. We all do! Now explore and try! Find a problem and create a solution. hank you again to James Dyson!! 🙂
Before I end this, I just have to say again…. Thank you James Dyson!! 🙂
You must be logged in to post a comment.