background image

TXT 

Smart Home

ROBOTICS

23

Robotics Sensor Station IoT

Comfort Sensor

Build the third model as described 
in the assembly instructions and wire it 
accordingly. 
Here it is only necessary to replace the 
camera with the environmental sensor and 
raise it with two 30 building blocks. 
In the individual projects you will use it 
as frost monitor, a mold monitor and air 
monitor. 

Environmental Sensor

The sensor, located on a circuit board in the housing, serves 
to measure gas, atmospheric pressure, humidity and air 
temperature. The module can be connected to the 

TXT-

Controller

 using a ribbon cable. 

We have saved a finished block for evaluating the sensor data 
under: 

 Element groups – Library – I2C – Environmental-Sensor-BME680

The block consists of 2 blocks: the Init Block and the Get Block.

The Init Block starts all processes for evaluating the polling 
operations. The Get Block requests data from the sensors for 
processing in another program. 
The output designations stand for 

 

 T = Temperature (°C)

 

 H = Humidity (relative humidity in %)

 

 P = Atmospheric pressure (hPa for Hecto-Pascal) 

 

 AQ = Air quality (readings from 0 – 500)

 

 AQP = Reliability of AQ values for readings 

over a certain period of time (reading 0 – 3).

First compile the program shown at the right and 
then add the other commands.

Содержание Robotics Sensor Station IoT

Страница 1: ...Begleitheft Activity booklet Manual d accompagnement Begeleidend boekje Cuaderno adjunto Folheto Libretto di istruzioni Сопроводительная инструкция 附带说明书 ...

Страница 2: ... Things 7 Smart Home 7 Industry 4 0 8 Some General Information 10 Electricity 10 Component Explanations 10 Software ROBO Pro 4 4 x 11 ROBOTICS TXT Controller 11 Power Supply 12 First Steps 13 Starting ROBO Pro 14 Light with brightness sensor 16 Photo Resistor 16 LED 16 TXTSmart Home ROBOTICS 2 Robotics Sensor Station IoT ...

Страница 3: ...5 Air Quality Sensor 25 Stationary Camera with Environmental Sensor Data Logging 27 Barometer 35 Sensor Station with Movable Camera 37 Surveillance Camera 37 Cloud Computing 43 Trouble Shooting 49 Interface Test 49 Cables and Wiring 49 Short Circuits 50 Errors in the Program 50 Last Sources for Help 50 ...

Страница 4: ...step by step how you can program simple as well as complicated controls for Smart Home projects using the ROBOTICS TXT Controller from fischertechnik Learning is a process of building things up from a foundation and it is not possible to start with the most difficult things right away even though they may be a little bit more interesting than the more simple tasks This is why we have structured th...

Страница 5: ...omewhere in the text which is explained in more detail at another point in this booklet for example components the text appears in dark blue and underlined You can click on the text to go automatically to the page containing the explanation This is a so called cross reference Background Infos In some cases in this booklet there are terms or foreign words which may require explanation These terms a...

Страница 6: ...sion of analog data such as 100 m 30 seconds into digital data consisting exclusively of a series of zeros and ones The analog number 10 is represented in digital form by the character string 1010 However digitization is also a means of storing and processing data without using paper This was initially accomplished by using electron tubes later transistors and since approx 1970 using microprocesso...

Страница 7: ...of the shipment An intelligent refrigerator is also an interesting example The user simply enters or reads in a bar code or QR code specifying the content as well as the quantity of a product When the quantity drops below the specified value the refrigerator software reminds the user to replenish the product or does it itself automatically Smart Home You may ask why we have named the new ROBOTICS ...

Страница 8: ...tion of work Today these 3 factors have already been implemented in the digital factory Here is a minor example from the printing sector A customer wants to make a photo album of her last vacation For this purpose she first edits the digital photographic data on her PC Then she opens an Internet site for an online print shop where she selects the proper link such as Photo Album Then a program open...

Страница 9: ...partment it is automatically sent to the proper shipping agent The first human the album comes into contact with is the driver of the package van as he delivers it to the customer But how much longer Even today we are attempting to use use driverless transport systems or drones for logistic support Will these soon take over delivery too ...

Страница 10: ...it is necessary to be particularly careful not to make any mistakes when working with electrical components That is why you should always read the assembly instructions very carefully when wiring the electrical components Never connect the positive and negative poles directly to one another to prevent a short circuit This can damage the ROBOTICS TXT Controller or the rechargeable battery Component...

Страница 11: ...the left The procedure for creating such a program is described in detail in the Chapter First Steps The ROBO Pro Help feature also shows how this works in Chapters 3 and 4 The current software is already installed on your PC ROBOTICS TXT Controller The ROBOTICS TXT Controller is the heart of this ROBOTICS construction set It controls the actuators and evaluates the information from the sensors Fo...

Страница 12: ...nstruction set A Few Tips Experimenting makes the most fun when the experiments also work This is why you should follow a few basic rules when building the models Work carefully Take your time and look precisely at the assembly instructions for the model Looking for an error later will take much longer Check the movement of all parts When putting models together continually check to see if parts w...

Страница 13: ...er to the power supply and PC create and start your first simple program with ROBO Pro Since you will be working particularly with the ROBO Pro Software in addition to the fischertechnik components themselves you should be familiar with the details for writing programs And because this is explained very clearly in ROBO Pro Help Chapters 3 and 4 it is best at this point to continue by working throu...

Страница 14: ...g ROBO Pro Start the ROBO Pro program The following working display appears To create a new program click on the New button with the mouse ROBO Pro then switches over to the programming mode You can tell this because the program monitor displays a dot matrix New ...

Страница 15: ...whether the TXT Controller is properly connected to your computer each time before starting to work To do this perform an Interface Test To do this click on the Interface Test button The following info window appears Here all important interface data is displayed virtually If for example you have connected a pushbutton input which you then push the switching status is displayed with a check mark T...

Страница 16: ... many descriptions you will also find the designation LDR This is an abbreviation for Light Dependent Resistor LED Use an LED light as an actuator An LED is an electronic component which converts electrical energy to light The abbreviation LED stands for Light Emitting Diode Important The photo resistor has a resistance value of 0 5000 Ohms The interface display indicates a value of 0 at full brig...

Страница 17: ...cted to the input First it will be necessary for you to set the type of sensor connected for the branching operation For this purpose click on the command with the right mouse button The context menu for the branching operation appears Use the mouse to click on the Down Arrow button for NTC resistor Another context menu appears in which you can select Photo resistor Then insert the program command...

Страница 18: ...ns field Two windows are available here Help is available at ROBO Pro Help under 8 1 4 After opening the context menu you can select the appropriate conditions Select 4000 as the threshold value for the first check LED on and 3000 as the threshold value for the second check LED off Then you can test the program To do this click on the Start button ROBO Pro Help 3 7 Since the program is in an endle...

Страница 19: ... have to poll the sensor at I1 six times to get the three lamps to switch on and off at the values supplied by the photo resistor What happens in this program sequence First the sensor value is checked for lamp M1 If the value is Yes the program goes to lamp 1 and switches it on The program then continues by checking the value for the second light via the output for M1 If this value also correspon...

Страница 20: ...rogramming Actually in this project you only need to replace the photo resistor with the camera because the required sensor is already in the camera housing The microphone installed on a circuit board in the housing serves as the sensor Microphone The microphone used in your camera is an acoustic sound converter for converting acoustic vibrations in the air into electrical voltage The variations i...

Страница 21: ... additional commands These serve to read information in to and out of the subroutine ROBO Pro Help 8 3 3 and 8 3 4 First insert the subroutine input into the function window Then insert a new command Off ROBO Pro Help 8 5 8 from the Commands block You will need it 3 times 3 lamps Dock one output command on each of the orange colored outputs Right click on the context menu to change the names to 01...

Страница 22: ...e command Lamp output from the Inputs Outputs block on each of the outputs ROBO Pro Help 8 7 5 Rename them 01 03 Then insert the command for value input For this purpose select the command Control Field Input from the Inputs Outputs block ROBO Pro Help 8 7 5 Switch over to Mike and Logarithmic in the context menu Insert the command Constants from the Variable block at connections S1 S3 ROBO Pro He...

Страница 23: ...e can be connected to the TXT Controller using a ribbon cable We have saved a finished block for evaluating the sensor data under Element groups Library I2C Environmental Sensor BME680 The block consists of 2 blocks the Init Block and the Get Block The Init Block starts all processes for evaluating the polling operations The Get Block requests data from the sensors for processing in another progra...

Страница 24: ...to generate an alarm tone You can select various tones or songs in a context menu ROBO Pro Help 8 1 12 To evaluate the temperature use BME680_Get output T Connect this to a variable command for testing When the program is started the current temperature is displayed To switch on the sound you need a green walk signal followed by a command Wait For from the Branch Wait program element block ROBO Pr...

Страница 25: ...n test it and save it on your computer Finished Program Wellness_sensor_2 rpp Air Quality Sensor Today this theme is more topical than ever everywhere in the media Cars factories large animal husbandry enterprises etc are responsible for the air quality not being as good as it should be Many cities have measuring stations to continuously record the air quality Have you ever seen such a measuring s...

Страница 26: ... and change the displays from AQ 0 and AQP 0 Then link the two control field outputs to the two displays Switch over to the function window Right click to open the context menu Select AQ on the display The selection is depicted in the command Continue in the same manner for the second display After completing the program you can test it and save it on your computer Finished Program Wellness_Sensor...

Страница 27: ...roject all you need to do is check the camera to see if anything moves in its recording window To do this you need the command Camera Input from the Inputs Outputs block ROBO Pro Help 8 7 8 Dock this command on the input to the Branch command Connect the lamp command Off to the N output and the lamp command On to the J output Follow this with the sound command from the Basic Elements block ROBO Pr...

Страница 28: ...ed Program Stationary_camera_1 rpp Simple Data Logging The next project will have you log various data A simple exercise will introduce you to this subject Project 2 This project registers the values from the brightness sensor built into the model and displays them graphically on an oscilloscope monitor Switch over to Control Field to include the oscilloscope monitor in the project ROBO Pro Help 9...

Страница 29: ...ay to LED This command follows the command Arithmetic Operations from the Operators block ROBO Pro Help 8 8 1 Dock the variable output on input B Dock the command Constant on input A Assign it a value of 15 000 max photo resistor input value The output value is the difference of A B This value is forwarded to the command Calculate with decimal numbers from the Operators block ROBO Pro Help 13 Fina...

Страница 30: ...llowing the command insert the command Attach Value from the Commands block ROBO Pro Help 5 10 In the context menu switch on Data input for command value and 48 bit floating decimal Connect the data input to the input to the oscilloscope Dock the command List from the Variable Timer block at the S input to the orange output ROBO Pro Help 8 4 5 It will also be necessary for you to make various chan...

Страница 31: ...ay the data graphically Finished Program Stationary_camera_3 rpp Project 4 Create a program to log the values from the environmental sensor and display them on the oscilloscope in the ROBOPro control field Simultaneously the values are saved in a csv file for graphic display in a spreadsheet Use the subroutines BME680_Init and BME680_Get again for this program Dock one variable command on each of ...

Страница 32: ...following table First assign a name you can remember such as Oscilloscope Switch on the first 5 channels Change the channels as shown in the table see Page 23 Name Color Name Units Position Zero point Scaling Auto red T 0 20 20 on blue H 1 0 41 4 on green P hPa 2 1e 03 1e 03 on white AQ 3 0 70 on magenta AQP 4 0 1 on In the function window activate the context menu for the command Universal Output...

Страница 33: ... open Insert the value assignment and list at the side here Change the names accordingly to Index This counts how many times the program has run through in Whole numbers Later the readings can be assigned to the index What happens up to this point when the program is started The readings from the sensor are read into the command Attach Value and then saved in the list Simultaneously the values are...

Страница 34: ...amera_3 rpp to read in and display the brightness value To take the picture change over to Camera in the function list Here activate the function Switch on camera To take a picture click on Snapshot A picture is taken Simultaneously a context menu window appears for entering the location for saving the image and the file name The storage location and file name are used for the other ROBO Pro image...

Страница 35: ...the downward flow Thus the column of liquid reaches a state of equilibrium at a certain point Construct the model as described in the assembly instructions and wire it accordingly Use the encoder motor and worm gear present in the construction set to turn the pointer When the encoder motor turns it moves the pointer The motor has a three pin connector next to the two sockets for the fischertecnik ...

Страница 36: ...shed in the subroutine PosEm When this is closed mechanically by the pointer the program moves to the actual measured point and indicates the currently measured atmospheric pressure or applicable weather symbol The atmospheric pressure is measured anew every 3 seconds If the atmospheric pressure changes the new value is checked by the subroutine PosEMD If the atmospheric pressure increases or decr...

Страница 37: ...ccordingly Important Pay particular attention to the cable routing as shown in the assembly instructions This ensures that the cable is not in the way when the camera swivels Surveillance Camera Project 1 This model serves as a surveillance camera The image from the camera appears in the ROBO Pro control field The red light comes on The camera is controlled by the arrow keys in the control field F...

Страница 38: ... Name and M1 0 for Text in the context menu In the second display the ID Name is M2 and the Text is M2 0 Under both displays insert 5 Buttons from the Controls block ROBO Pro Help 9 2 1 Arrange the buttons as shown in the figure Assign each proper designations in the context menu When you open the example program it first runs through the subroutine PTU_Ini This subroutine moves the camera to a ze...

Страница 39: ...on First note the WPA2 PSK address of your router Switch on the TXT Controller Ensure that you do not have a USB connection Start the ROBO Pro program Make the next settings initially on the TXT display only Switch to Settings and select Network Then select WiFi Settings on the monitor In the WiFi settings window you need WiFi Mode In the new window activate WiFi Client green dot and then WiFi Cli...

Страница 40: ...he connection was successful Note the IP address Client xxx xxx xx xxx You will need this to establish a connection to the TXT Controller Now all the settings have been made and you can return to the display input window It is necessary to make a final setting in ROBO Pro You have already started the program Activate the button COM USB The Interface context menu appears Here USB WLAN Bluetooth and...

Страница 41: ...ing the camera the environmental data is also displayed on the oscilloscope As soon as the camera registers motion an alarm is output You can use Project 1 and expand it accordingly On the camera monitor you have 7 more displays and a control Assign the following entries to the displays in the context menu Add a control Insert the labeling text Alarm On in the context menu Set the button color to ...

Страница 42: ...ngs For the first five channels take over the settings from the project Stationary_Camera_3 Color Name Units Position Zero point Scaling Auto yellow B 5 0 97 one magenta M 6 0 82 one B stands for photo resistor M stands for microphone You have now completed the entire program however for this project you want to display only the environmental data on the oscilloscope All other parts of the program...

Страница 43: ...an IT infrastructure is made available to a user as a service This can be user software computing power or memory space It also means that the IT infrastructure can be installed at the service provider s rather than locally on your computer Project 3 The objective is to connect the sensor station to the cloud and display the data there on the dashboard Any motion detected by the camera triggers an...

Страница 44: ...hing correctly It is easiest when you jot down the data Important If you are still a minor you will need your parent s email address You need their permission to activate your cloud access Before clicking on Register you need to click on I am not a robot A window appears requesting you to click on certain pictures Complete this selection with Confirm If you want to work with the cloud later enter ...

Страница 45: ...ode Recommendation Set DHCP Next activate Settings on your TXT Controller and then activate Cloud Client Connect your TXT Controller to the fischertechnik Cloud with Settings Network Cloud Settings New Pairing If the TXT Controller is able to establish a connection to the cloud a QR code and a pairing code appear You then have 30 minutes to add your TXT Controller to your account on the cloud Afte...

Страница 46: ...r on the fischertecnik cloud site and enter the pairing code manually Your TXT Controller is now connected to the cloud Select the application TXTSmartHome under File Cloud on your TXT Controller and start it Now you can control the Sensor Station model via the cloud almost like the previous ROBO Pro programs ...

Страница 47: ...e camera and control the camera with the direction buttons Now you always know what is going on in the area around your sensor station The figure shows the current dashboard with the camera image camera control a picture gallery and the temperature reading The following features are available on the fischertechnik cloud Display window on dashboard for temperature humidity atmospheric pressure air ...

Страница 48: ...an control the two camera axes separately It is possible to adjust the incre ment width The red dot in the middle of the cam era control shows the camera s position within the available pan range Under profile menu at top right you can change your pass word as well as delete the entire profile A number of TXT Controllers can be assigned to each profile For each TXT Controller it is possible to set...

Страница 49: ...e correctly connected For this purpose compare your model with the illustrations in the assembly instructions Loose Intermittent Connections A component that works sometimes and doesn t work at other times probably has a loose connection somewhere in the wiring for the component The most frequent causes for this are Loose Plugs When the plugs for the cables are too loose that is wobbly in the jack...

Страница 50: ...or can creep in quite quickly If your model still doesn t do what you want it to after you have checked everything on the model itself and have remedied any faults you should also check your program Go through it line for line to see if you can find the error You can also watch the program running on the monitor in the online mode which means with the ROBOTICS TXT Controller connected to the PC Th...

Отзывы: