Zagreb University of Applied Sciences, Professional Study in Mechatronics
Table of Contents
Analog communication between two mbeds¶
You will need two mbed application boards (or just two mbeds) for this exercise. Connect the analog output (p18) of the first board to the analog input (p17) of the second board. You can use the 3.5 mm stereo line cable, or directly connect the wires (p18 to p17 and GND to GND).
Write the program for the first mbed that sends the analog value to the second mbed. One possible solution including a terminal is given below.
Write the program for the second mbed that receives the analog value sent by the first mbed. A possible including the terminal is given below.
A simple program that receives a value over analog input and displays it on a terminal.
Run the programs and both terminals and observe the results. What are the differences if using stereo line cable or plane wires? Does the surrounding noise affect the data transfer? Is there a way to reduce the noise?
Temperature sensor LM35¶
There is a LM35 temperature sensor LM35 available in the lab. Read the datasheet, connect the sensor with mbed, and write a program that displays measured temperature in the lab on the computer terminal.
Light dependent resistor (LDR)¶
There is a light dependent resistor (LDR) NSL-19M51 available in the lab. Read the datasheet, connect the sensor with mbed, and write a program that displays measured illumination in the lab on the computer terminal in luxes.
You have completed all the exercises in the Examples of analog inputs usage topic.
Return to TVZ Mechatronics Team Homepage.