![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Heliguy-Coding_with_the_Ryze_Tello-Blog_Header-optimized.png)
Scratch and the Tello
Scratch is a programming language designed to teach children and teenagers the basics of coding in a fun and interactive way. It allows users to create games, stories and animations to develop their skills. Although targeted at kids, Scratch is a great way for anyone to take their first steps into coding, especially when combined with the Tello. In the case of the Tello, you have two options of control; create a pre-planned mission with actions that you can start with the touch of a button or manually control the Tello with a device in real-time. This is a fun and unique feature for all Tello pilots that can also be used as an educational tool to build your skills in coding.![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/IMG_1673.jpg)
How to Use Scratch
Once you’ve got to grips with flying your Tello and using all of the different intelligent modes, it’s time to check out the Scratch coding functionality. We will walk you through the process of using Scratch with your Tello. First off, we will look at the tools required for the Tello.Downloading Software
There are several different components required to use Scratch with your Tello. We will be using a Windows device; however, we will also note any differences if you’re using Apple. First off, you need to start by downloading the Scratch Offline Editor from the Scratch website here.![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch-Download.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Adobe-AIR.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Node-Scratch.png)
- Tello.js
- Tello.s2e
Scratch Setup
Once you’ve downloaded all of the required programs and you’re ready to begin coding your Tello, open up Scratch. Its interface will be displayed as the below:![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch-1.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch-More-Block.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch-windows-2.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch-address.png)
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Scratch-windows-2-1.png)
Connect the Tello
The final stage in setting up the Tello with Scratch is to allow a connection to the Tello and connect via Wi-Fi to the drone. Turn on the Tello and enter your Wi-Fi settings. The Tello should appear as an option for you to select.![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/scratch-Wi-Fi.png)
Using Scratch
Once you have everything installed and setup, you can begin using Scratch to control the Tello and create pre-planned flight. In this section, we will be looking at the Tello controls used for flights and showing you four examples.Scratch Controls
When using Scratch with your Tello, there are three main categories of blocks you will need to use, dependent on your type of flight. Event - This is the block used as a trigger for something to happen. Flights are usually set to begin when the green flag is selected or space bar pressed. More Blocks - This section is the specific controls put in for the Tello such as take off, fly forwards and flip. Controls - This section allows you to add in instructions such as the duration of a move or repeat a move etc. Sounds - We've added in this extra category for its entertainment value, you can input different sounds into your flight. Sounds are played on the device used to control the Tello, in our case, the Windows laptop. In order to input the controls, simply drag a block into the right-hand section of scratch. You should start with an event, then input your desired instruction for the Tello. Always assign the take off and landing before beginning any flight. We also recommend you create an option to land the drone when a button is selected. For this, we chose the space bar on all flights. This will give you the option to end the flight at any time, a useful option if an error occurs.Basic Planned-Flight
For the first flight, we have planned a basic flight for the Tello using Scratch. It's recommended for your for your first flight, you create a similar flight in order to get used to the basic controls.Scratch Controls
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Capture.png)
Video Example
Now the controls have been input, check them out in action in the video below: https://www.youtube.com/watch?v=BdtMweiKFosAdvanced Planned-Flight 1
Once you've got used to basic flights as shown below, try moving on to more advanced flights with complex routines. You can incorporate flips, more difficult manoeuvres and incorporate sounds.Scratch Controls
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/2.png)
Video Example
Check out the example video of the more advanced flight: https://www.youtube.com/watch?v=keTh03BQB1sAdvanced Planned-Flight 2
For this flight, we incorporated sound into the flight to show off this feature.Scratch Controls
![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/Capture-1.png)
Video Example
Check out the example video below. Make sure your sound is on to hear this interesting feature: https://www.youtube.com/watch?v=IIugUu81LEAIn Air Control
Once you've mastered the advanced flights, try the final option; in air control of the Tello. This is more complex as you have to assign different actions to buttons on your mouse and keyboard and maintain real-time control over the Tello. The layout will be different to pre-planned flights as two blocks are put together to stand alone with a trigger and action.![](https://cdn.shopify.com/s/files/1/0480/3146/5632/files/3.png)
Video Example
Check out the video of us controlling the Tello in real-time using Scratch. https://www.youtube.com/watch?v=2uPKENydcJw Please note, we had a dip in the performance and responsiveness of the Tello when battery levels were low. Make sure you monitor the Tello closely when the charge is depleted and stop using Scratch to charge the drone if acts outside your command.Summary
The option to use Scratch with the Tello is a great addition to the drone. The setup seems daunting at first but once you use the process a couple of times, it becomes second nature. It will be interesting to see if this is developed in the future by Ryze to include options like video record, take a picture or the intelligent flight modes. This would definitely improve the user experience. You can see that the use of Scratch with the Tello is primarily aimed at younger generations but it's still fun to use and a great educational tool to learn the basics of coding.To discuss any information from the above post or any DJI or Freefly product, please give one of our team a call on 0191 296 1024 or email us at info@heliguy.com.
Keep checking back to Heliguy’s Insider Blog for more announcements, insights into drones and, of course, the latest news from the drone industry.
Leave a comment