Question: Create and demonstrate a system that operates as follows: The Ardiuno uses the ultrasonic sensor to measure the distance to an object. This distance is
Create and demonstrate a system that operates as follows:
The Ardiuno uses the ultrasonic sensor to measure the distance to an object. This distance is transmitted via I2C to the Pi and displayed on the LCD.
*The Arduino also writes the current time and distance through the USB serial link to the serial monitor. This should be set up so that the data display can be turned on and off via commands from the serial link. This program should have a variable sample rate (changed by changing the value of a variable, so re-compiling to change the sampling rate is ok), so that the current time advances exactly at this sample rate. (If you use delays to implement this, you are not doing it correctly.
A Matlab program communicates with the Arduino, starting and stopping the display of data as needed. This program will collect a desired amount of data from the Arduino (specified in number of time samples) and display the results in a graph.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
