ajb974 / Kibble-Kounter1

Apache License 2.0
1 stars 0 forks source link

Finish infrastructure layer #23

Closed ajb974 closed 1 year ago

ajb974 commented 1 year ago
mlivai commented 1 year ago

Specifications From Adafruit:

[Reference: http://adafru.it/4007]

mlivai commented 1 year ago

Resources for Code:

https://tutorials-raspberrypi.com/raspberry-pi-ultrasonic-sensor-hc-sr04/

ajb974 commented 1 year ago

We can get rid of lines 28 and 29, since we know the start time. Besides that, the code looks good.

mlivai commented 1 year ago

The test with demo.py worked with the proximity sensor as shown: Screenshot (657)

The proximity sensor was also tested with a cup of water. It accurately measured changes in the height of the water.

mlivai commented 1 year ago

image

The same set up was used but with a Pi 0, with GPIO 17 serving as the TRIGGER and GPIO 18 serving as the ECHO. A 3V VCC was used. A 560 ohm resistor was used in place of the 330 ohm resistor. A 1kohm resistor was used in place of the 470 ohm resistor.

[Reference: https://tutorials-raspberrypi.com/raspberry-pi-ultrasonic-sensor-hc-sr04/]

mlivai commented 1 year ago

The camera was tested further for range. The range worked when the pet was directly in front of the camera (approximately less than 0.5 ft away from it) as long as it was placed higher in terms of height (at approximately 1 ft off the ground).

The first image shows the same height placement as before (closer to the ground, approximately 0.5 ft above the ground). The second image shows the 1 ft above the ground. The brightness in the second image is due to an extra light used to counteract the shadows that nearby objects made for the purpose of this demonstration (this brightness would not be there in normal circumstances and the image would be clearer).

picture1 1

picture1

ajb974 commented 1 year ago

Looks good.