This week assignment consists of two phases:
Group Assignment:
Probe an input device(s)'s analog and digital signals, and document the work (in a group or individually)
Individual Assignments:
Measure something: add a sensor to a microcontroller board that you have designed and read it..
Learning outcomes:
The purpose of the group assignment is Probe an input device(s)'s analog and digital signals
For this week assignment. I decided to choose the HC-SR04 Ultrasonic Sensor as Input device on an LCD i2c Display.
How Ultrasonic Sensor Work?
Ultrasonic sensors work by emitting sound waves with a frequency that is too high for a human to hear. These sound waves travel through the air with the speed of sound, roughly 343 m/s. If there is an object in front of the sensor, the sound waves get reflected back and the receiver of the ultrasonic sensor detects them. By measuring how much time passed between sending and receiving the sound waves, the distance between the sensor and the object can be calculated.
PCB Circuit Design
As a starting point I had to list down all components needed to draw the PCB. ATTINY45 was used, however i was not able to find the exact footprint in eagle software.
so I had to upload the library that provides the exact footprint.Once all components were specified, the connections were made as shown below
Download link for fab Library