/
Blocks Programming for FTC Blocks Programming for FTC

Blocks Programming for FTC - PowerPoint Presentation

liane-varnes
liane-varnes . @liane-varnes
Follow
420 views
Uploaded On 2018-02-26

Blocks Programming for FTC - PPT Presentation

Georgia FIRST Tech Challenge Kickoff 9 September 2017 FTC 7673 Dragons and Tiaras FTC 12774 Organized Chaos Towns County Schools Hiawassee GA Breaking News FIRST releases OnBotJava programming ID: 637009

blocks programming youtube amp programming blocks amp youtube www watch https ftc list phone training index pleugryl8ibm4a4yrrcatgck7q0od0lyov controller robot

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Blocks Programming for FTC" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Blocks Programming for FTC

Georgia FIRST Tech Challenge Kickoff 9 September 2017

FTC 7673Dragons and Tiaras

FTC 12774 Organized Chaos

Towns County Schools, Hiawassee, GASlide2

Breaking News!

FIRST releases OnBotJava programming It’s like Blocks, but with text, not drag-and-drop, so now you have multiple choices!

https://www.youtube.com/watch?v=tRDSj2AZJuI2Slide3

What’s Blocks Programming?

Graphical development tool powered by Google’s Blockley Programming Easy-to-use drag-drop programming You can create, edit , and store OpModes directly on your robot controller phone.Use laptop, Chrome book, or tablet to connect to the Blocks Programming mode server that actually resides on your robot controller phone!

3Slide4

News flash! Blocks has a text buddy - On Board Java “reveal”

Wednesday FIRST released OnBotJava which makes it easy to program your

opmodes (using text, not blocks) without having to install Android Studio on a laptopExcellent tutorial video (28 minutes)https://youtu.be/tRDSj2AZJuI

4Slide5

What are Blocks Benefits?

Easy setupSaves OpModes directly to the phoneEasy-to-understand programming blocks Excellent FTC YouTube Blocks programming tutorial videos and FIRST Blocks training manual to get you started

No Internet connection required for programmingNo programming software to install – You just need laptop, Robot Controller (RC) app, an RC phone connected to electricals, and Chrome browser on a laptop or Chromebook.5Slide6

Team and Coach Blocks Resources

Manual - Very helpful, good directions and graphics, troubleshooting tipsTwo versions of training manual

One includes Modern Robotics equipment set uphttps://www.firstinspires.org/sites/default/files/uploads/resource_library/ftc/2017-2018/blocks-programming-training-manual-mr.pdf Other includes Rev Robotics equipment set uphttps://www.firstinspires.org/sites/default/files/uploads/resource_library/ftc/

Both include detailed directions and excellent step-by-step images forItems in blue are same as last year Phones setup and pairingConnecting to electrical devisesConfiguration Below are new Accessing Programming mode on your RC phone

Connecting to the FTC Blocks Programming Mode Server

Programming OpModes sample code–

6

FTC Blocks Programming Training Manuals and LinksSlide7

Blocks Programming Tutorial Videos with Sample Programs

An 11 video playlist of very helpful FIRST-created YouTube Tutorials on Blocks setup and programming.

https://www.youtube.com/watch?v=BL0kvoQcjxU&index=2&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov Most of the videos are under 3 minutesIn following slides, clicking image or link should open the video.

7Slide8

Installing Robot Controller and Driver Station Apps from Google Play

https://www.youtube.com/watch?v=AKoqwqPo-Vc NOTE: This video is from the FIRST Class FIRST Tech Challenge Curriculum you can join via schoology.com. It has many helpful resources for teams as well as classroom students.

8Slide9

Configure Your Hardware on the Robot Controller

Same phone setup as last year.This video by Cupertino High School guides you through the process if you are new to FTC this year.

https://www.youtube.com/watch?v=HD1PCdOQaW4Robot Controller phone needs to be connected to Modern Robotics Core Power Module or Rev Expansion Hub and other electrical devices on your robot ( motors, servos, sensors)Phone and power modules need to be on for you to program.

9Slide10

Connect to Programming Mode - Blocks

VERY, VERY helpful videoRequires both Robot Controller and Driver Station phones

Laptop (Windows or Mac) or ChromebookGamepad(s) WiFi connection for downloading Robot Controller and Driver Station apps, then put phones in Airplane mode. Use WiFi Direct and the Blocks Programming server for programming.Browser (Chrome recommended because it is JavaScript enabled)

10

https://www.youtube.com/watch?v=BL0kvoQcjxU&index=2&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov

Slide11

List of Programming Samples in Manuals and Videos includes the following…

Writing an OpMode Using BlocksSaving and Running a TeleOp OpMode

Moving Forward AutonomousAutonomous Rotate ServoGamepad: Joysticks, Buttons, TriggersBasic Tank DriveBasic Line FollowingControlling a servo motor with an OpModeProgramming for sensorsAll of the following slides should link you directly to the named videos

11TIP: Having the Training manual .pdf on hand to supplement the videos can be useful. Being able to Alt+Tab between the sample in the .pdf and your code window can be helpful. Slide12

Writing an OpMode Using Blocks

https://www.youtube.com/watch?v=o-7z9WE6JAI&t=4s

Also at https://www.youtube.com/watch?v=o-7z9WE6JAI

12Slide13

Saving and Running a TeleOp OpMode

https://www.youtube.com/watch?v=uItHYCxT9eY&index=4&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov

13Slide14

Autonomous Moving Forward and Backward

https://www.youtube.com/watch?v=f8-NQIS3IEM(Can easily change to or add Reverse)

14Slide15

Autonomous Rotate Servo

https://www.youtube.com/watch?v=Qd8iMiAkFGI

15Slide16

Turning Autonomous – Three ways to turn

16

https://www.youtube.com/watch?v=PuOKjimrJ0k&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov&index=6Slide17

Gamepads: Using Joysticks

17

https://www.youtube.com/watch?v=8KXQketfarE&index=7&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYovSlide18

Gamepads: Using Buttons

18

https://www.youtube.com/watch?v=75ndVZzZJjU&index=8&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYovSlide19

Gamepads: Using Triggers

19

https://www.youtube.com/watch?v=tQW8ZG6B_bQ&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov&index=9Slide20

Basic Tank Drive

(From Training Manual pg78)

20Slide21

Basic Line Following

From Training Manual, pg. 79

21Slide22

Save Early, Save Often

https://www.youtube.com/watch?v=YDEkcunllYI&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov&index=10

22

Click on the FIRST Logo to gain access to window where you can save your program to your computer or flash drive or archive the programSlide23

Keep on Saving

In the window at right, you can select OpModes to save them to your download or other folder or to a flash drive.You can also archive your programs.

23

https://www.youtube.com/watch?v=YDEkcunllYI&list=PLEuGrYl8iBm4A4yrRcatGcK7q0od0LYov&index=10Slide24

Tips and Troubleshooting

Blocks Programming Training Manuals provide a list of troubleshooting tips – pages 80-84 Remember you can ask questions in the FTC Forums.

24Slide25

When it’s all put together!

25

RC phone in programming mode

Connected via WiFi Direct to Blocks server on your RC phone. Window where you can drag and drop programming blocks is displayed in Chrome window on your laptop or Chromebook.DS phone just looking cute and ready to drive. TIP:When you are programming in Blocks, you will not

have access to the Internet on your laptop that is displaying Blocks.

So when you are learning, it can be helpful to have another computer so you can watch the videos that show you how to program as you create your programs.

Or-

Follow the programming tutorials in the Training Manual (paper or .pdf on computer )Slide26

Have a great FIRST Tech Challenge season and fun with Blocks Programming!

FTC

12774Organized ChaosAlex, Austin, Logan, Wyattftc12774@gmail.com

FTC 7673

Dragons and Tiaras

Kaitlyn, Connor, Alex, Liam

ftc7673@gmail.com