This week, I am continuously pushing forward project 2. Besides that, I followed the instruction under week 8 to conduct the two labs to get a better understanding of two forms of synchronous serial communication.
Some important take aways for this week’s content.
asynchronous communication:
Two devices have their own clocks to keep time independently. The way for these devices to communicate to each other is to keep their data transmitting rate the same.
synchronous communication:
The device has its own clock and can send that clock signal to pins for receiving device. It also has another sets of pins to send data signal. (CLOCK, DATA OUT/ DATA IN)
Two common forms of synchronous serial communication:
I2C (Inter-Integrated Circuit) / TWI ( Two-Wire Interface)
Lab:
The sensor I selected for this I2C lab is APDS 9960, which has several embedded features such as color detection, gesture detection, and proximity.
I tested color detection example, which worked great.
I tested gesture detection, which did not work.
SPI (Serial Peripheral Interface)
In this part, I played with SD card reader.
I first connected this MicroSD Card Adapter with my Arduino Nano 33 iot, however, it couldn’t initiate successfully. After I switched to Arduino uno, it successfully printed out the sd card information.
I then connected two potentiometer as the input to test writing file to sd card. It successfully saved data to the file.