Pages

Showing posts with label DTE2019. Show all posts
Showing posts with label DTE2019. Show all posts

Friday, 24 May 2019

Quick Charades - DTE

What have you been learning?

In DTE we have been learning to use and code the sphero through the sphero Edu app. First, we played with the sphero to become comfortable using it. After a few lessons of playing with the sphero, we learnt how to code it by watching videos such as 'Block 1' through to 'Block 4' from the Sphero EDU App. For 'Block 1' we've learnt how to use 'Loops' codes by making a square using the sphero. 'Block 2' we've learnt how to use the 'If/Then Else' codes by coding the 'Toss Game'. 'Block 3' we've learnt to use 'Gyroscope' code to measure rotational velocity by making a spinning top using the sphero. For 'Block 4' we've learnt how to create 'Variables' by coding a game called 'Hot Potato' using the sphero. After weeks of learning how to code the sphero, we decided to create a game by putting what we've learnt into one program. I've created a game called 'Quick Charades'. Here are my instructions on how to play the game and codes to create it.

Instruction:

1. Throw the sphero and wait for it to produce a random animal sound.
2. After the sphero produced a random animal sound, try and act it as quick as possible.
3. If the people you're playing with agreed with what you've acted and guessed the animal, you can then pass the sphero to one of them.
4. After a couple of minutes playing the unlucky player will be out. You will know you are out if the sphero says "You're Out".
5. Repeat from instruction number 1.

Coding


  1.  Create your own program.
  2. Take the stabilisation block from movement category and put it under the on start program block.
  3. Take the speak block from sound category and put it under the stabilisation block.
  4. Take the loop forever block from controls category and put it under the speak block.
  5. Go to the variables category and create a variable. Name the first one to expire, chose the variable type number and set the default value to 0. Do the same steps as number four but name it 'Toss'.
  6. Put the set block into the loop forever block and set it to expire.
  7. Go to operators, take the random integer operator and put it into the right side of the set block, keep the random integer operator an integer or 'int'.
  8. On the left side of the random integer operator put number 3 and on the right side put 10. This makes it 3 to 10 tosses before the game expires.
  9. Take the loop until block and place under the set expire block.
  10. Go to the comparators category, take the basic comparator block, place it into the true section of the loop until block and select greater than.
  11. Go to variables, then take the toss variable and place it to the left side of the basic comparator.
  12. For the right side of the basic comparator, place the expire variable.
  13. You then write a code comment on the loop until block by holding on the block or right-clicking it. Write "Loop until the toss variable is greater than the expire variable then call the blocks within".
  14. Go to controls, take the if/then else block and place it in the loop until block.
  15. Take the basic comparator from the comparators category, set it to greater than and place it in the true section of the if/then else block.
  16. Go to the sensors category, take the accelerometer sensor, select the total axis and place it in the left side of the basic comparator block.
  17. On the right side of the basic comparator block type number 3.
  18. Then add a code comment saying "Call the "if" logic if the sphero reads more than 3 gees".
  19. Take the main LED block from lights category and place it in the if/then else block. Set the colour to green.
  20. Then take the sound block from sounds category and place it under the main LED block.
  21. Select the animal category and choose the random animal and choose 'wait'.
  22. Take the set block from variables, choose 'toss' and place it under the sound block.
  23. Place the basic operator to the right of the set block and change it to addition. Place the toss variable on the left side of the plus and on the right side, change the 0 to 1.
  24. Grab the main LED block and place it in the else part of the if/then else. Change the colour to red.
  25. Go to the controls category, grab the delay block and place it within the loop forever block. Change the number to 1 second.
  26. Grab the sound block from the sounds category, choose the game category and select the 'You lose' sound. Place this block under the delay block.
  27. Take the main LED from lights category, change the colour to yellow and place it under the sound block.
  28. Go to the movements category, grab the raw motor block and place it under the main LED block. Set both the left and right motors to 255 and the duration for 2 seconds.
  29. Grab another delay block, place it under the raw motor block and set it to 1 second.
  30. To let the players know they are out, take the speak block, write "You're out" and place it under the delay block.
  31. For the last part, grab a set block, select 'Toss' and place it under the speak block.
  32. Now you are done coding.

What did you learn?

I've learnt how to use different blocks to code the sphero. Examples of these blocks are variable blocks, sensors blocks, movement blocks, and so much more. 

What will you do next time?

Next time I would try to create a different game with different codes.

Wednesday, 20 March 2019

What's this??????????????????

During the 7 weeks in this term, we have been learning about being cybersmart in social media. We first learned how to make our own site, learned about ergonomics, played Interland, learned about being cybersmart and we also have been learning about Digital Bytes. We showed our work by making an infographic of what we learned. Here is my learning:

Ergonomics


Ergonomics is about the study of people's efficiency in their work environment. I used piktochart to create this infographic. I found piktochart interesting because it's easy to use and there are a lot of photos I can use to make an infographic.

Interland


Image result for interland

Interland is a fun game where you learn how to be cyber-smart when using social media. There are four levels in this game that will help you with social media. The first one is trying to find out whether something from social media is factual or satirical. The second level is about sharing things through social media and how you have to be careful who you share things with.

Being Cybersmart


Being cybersmart means being safe and smart when using social media. To create this infographic, I used piktochart again because it's easy to use.

Digital Bytes


What was your biggest takeaway in this video?


My biggest takeaway in this was when a reporter told that people take words from other music to make a new one.


1. What do you think about the real world objects(for example a sliding lock, a typewriter, and traffic light colours) that inspired iPhone’s interface? Do you think people notice these everyday references?

Yes because the traffic light is commonly used. For example, red light means to stop this relates to the iPhone’s interface as to stop or close the app. For the typewriter, Apple used it as a keyboard where if you press a letter it produces a sound the same as the typewriter when you push a button it also produces a sound. People notice this everyday references because it is very common.

2. Why do you think Apple chose to reference physical objects more literally in the iPhone (for example, with a bookshelf, a calendar, a tape deck)?

We think Apple chose to reference physical objects more literally in the iPhone because people will be able to get used to it easily as it is an everyday object.

3. Can you think of any other real-world objects that digital products would benefit from mimicking?

A remote, a torch

4. Do you think it’s OK for companies to copy the look and feel of other companies products when making their own device?

Yes, it is ok because they can take it as an inspiration to make their own new device but change the features of it.

5. What do you think about the iOS 7’s simplified, flatter, more iconic look? Why do you think this look became popular? Who decides what’s popular and what’s not?

We think it’s great because it has evolved into a new and improved multi-touch. It became popular because of its new and improved features. We think that the people decide what’s popular and what’s not because they are the one who’s going to use the device.

6. The FIlmmaker and narrator Kirby, says, “Perhaps, it is not fair for us to expect surprise and delight from smartphones anymore, Perhaps for that, we need new frontier - a new blank slate.” Do you agree? What do you envision?


We agree because having a new frontier means having a new generation of phones and a new type of technology. We envision a more fictional version of phones; where everything is more high tech than ever. Having a crystal clear phone where it is transparent when turned off; looking like a thin piece of glass.

https://images.fastcompany.net/image/upload/w_596,c_limit,q_auto:best,f_auto/fc/3033336-inline-vc5ikii.jpg