Now that we know how an LM35 temperature sensor works, let's go ahead and look at the topic of measuring temperature with it by hooking it up to the BeagleBone board.
First of all, take three berg wires and connect the LM35 temperature sensor to the BeagleBone board, as per the circuit diagram shown in the following image:
Then we will turn on the BeagleBone board, and then login into the Linux Shell to start coding it. We will access the WorkSpace
folder where we are saving all the Python scripts that we've already created in the previous chapter. By now you should be familiar with how to navigate to the WorkSpace
directory.
To do this, type command cd WorkSpace
:
Once you are in the WorkSpace
directory, and before writing the script to read temperature data, lets test it out via the Python console, which you should also be familiar with by now.
Type the command to start the Python interactive programming shell, sudo python
:
Once we are inside the Python...