Hi all,
I am a beginner to electronics and am working on a project where I want to play a sound file whenever an object comes within 20cm of the ultrasonic range sensor. I am looking at combining the following components to make this happen:
-
PiicoDev Ultrasonic Rangefinder (https://core-electronics.com.au/piicodev-ultrasonic-rangefinder.html)
-
Pimoroni Pico Audio Pack (https://core-electronics.com.au/pimoroni-pico-audio-pack-line-out-and-headphone-amp.html)
-
Raspberry Pi Pico (https://core-electronics.com.au/raspberry-pi-pico-soldered-headers.html)
I was initially looking at connecting the Raspberry Pi Pico to the Piicodev Rangefinder with a I2C cable and a Piicodev LiPo Expandsion Boards (https://core-electronics.com.au/piicodev-lipo-expansion-board-for-raspberry-pi-pico.html).
However, as I understand it, the Pimoroni Pico Audio Pack needs to be plugged into the Raspberry Pi Pico directly to work. I was contemplating a Pimoroni Pico Omnibus (https://core-electronics.com.au/pimoroni-pico-omnibus-dual-expander.html) to connect the Raspberry Pi and the Pimoroni Pico Audio Pack together, while still being able to access the pins for the Piicodev Rangefinder (which I would look at connecting through either the LiPo Expansion board or a through a JST PH 4-Pin to Female Socket Cable).
Is it possible to wire these components together for the desired outcome and if so, what would be the best way to go about this? If anyone has any recommendations for other components that would make this project possible / better / easier / cheaper, that would be fantastic as well!
Thanks for the support,
Nathan