Introduction: Flaw Detector on RobboScratch
Children are invited to think about how to implement the principle of operation of the flaw detector on RobboScratch with the output of the results on the screen.
Step 1: What Is a Flaw Detector and Where Is It Needed?
A flaw detector or defectoscope is a device for detecting defects in products made of various metallic and non-metallic materials by non-destructive testing methods. Defects include violations of the integrity or uniformity of the structure, areas of corrosion damage, deviations in chemical composition and size, etc.
The field of engineering and technology involved in the development and use of flaw detectors is called flaw detection.
Flaw detectors also include leak detectors (hydrogen leak detectors and helium leak detectors), thickness gauges, hardness meters, structroscope, introscopes, styloscopes, etc.
Step 2: Principle of Operation:
The projectile is placed in the pipeline and moves along it. There are those that move under human control, there are those that move under the pressure of the pumped product: oil, petroleum products, gas, water.
Step 3: Work From a Student's Point of View
"During the lesson, we studied the flaw detector, what it is and where it is used. The teacher suggested that we think about how it can be shown on the screen.
I thought about what a pipe might look like underground. I drew the background and came up with what kind of projectile I would have. I chose it from ready-made sprites. After that, I started programming.
I had to imagine the movement of the projectile in the pipe, and that it would detect defects. We agreed that I would mark the defects with a red dot. To do this, I wrote an algorithm using loops. Then I showed the teacher. He suggested to me to think about how to count the marked defects. I came up with a second algorithm that counts pipe defects with the output of the final value on the screen.
During this lesson, I learned what a diagnostic projectile (flaw detector) is, I understood the principle of its operation, I learned that it has various sensors that can also be programmed. Worked with cycles."
Step 4: Complicating the Task
Using a flaw detector in real conditions, it is necessary to know the location of the defect, because tubes are laid over long distances. In order to understand how long the tube has, it is conditionally divided into picket points. A picket is a distance marking point, in geodesy on linear objects (highway, railway, gas pipeline, oil pipeline, power line, etc.), in increments of 100 m.
Defects can be different: (cracks, non-welding, non-melting), anomalies (utyazhina, undercut, excess penetration, etc.) of the weld, crack-like defects in the pipe body and a change in the geometry of the pipe (dent).
Children are invited to think about how to implement this within the framework of the project with the output of the results on the screen.



