Hi,
here a guide for adding Raspberry Pi camera, I2S microphone and IR distance module to Nybble.
![](https://static.wixstatic.com/media/a27d24_995e5226fa8346dca2bf800d5fa0237c~mv2.jpg/v1/fill/w_980,h_909,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_995e5226fa8346dca2bf800d5fa0237c~mv2.jpg)
Partlist:
- 1x Nybble
- 1x Raspberry Pi 3
- 1x Perfboard
- 1x Raspberry Pi NoIR camera
- 1x I2S microphone module
- 1x RGB Led + 1kΩ resistor
- 1x Infrared LED + 100Ω resistor
- 1x Light dependent resistor + 0.1μF capacitor
- 1x Infrared photo diode + 0.1μF capacitor
Wiring diagram:
- If someone is interested I could make a wiring diagram.
- All wires are directly connected to Raspberry Pi GPIO's.
- You could also just start with the camera module alone, which needs no wiring at all.
This is how my perfboard looks like:
![](https://static.wixstatic.com/media/a27d24_0db257bbe59e4a859531fe9807c054e7~mv2.jpg/v1/fill/w_980,h_675,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_0db257bbe59e4a859531fe9807c054e7~mv2.jpg)
![](https://static.wixstatic.com/media/a27d24_7d0dc3f8825d45c6bdc9bdcafc4066ac~mv2.jpg/v1/fill/w_980,h_738,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_7d0dc3f8825d45c6bdc9bdcafc4066ac~mv2.jpg)
![](https://static.wixstatic.com/media/a27d24_b87d55f359b1401b8e071e208e235824~mv2.jpg/v1/fill/w_980,h_764,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_b87d55f359b1401b8e071e208e235824~mv2.jpg)
On the original parts only some cutouts are necessary:
![](https://static.wixstatic.com/media/a27d24_2643b32324f948f5aaab6192d30a6615~mv2.jpg/v1/fill/w_980,h_735,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_2643b32324f948f5aaab6192d30a6615~mv2.jpg)
![](https://static.wixstatic.com/media/a27d24_185f14cba2204e63baa3ba8376045e17~mv2.jpg/v1/fill/w_980,h_735,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_185f14cba2204e63baa3ba8376045e17~mv2.jpg)
Since there was no space left I switched from ultrasonic sensor to a custom IR based distance measurement.
The IR based approach works only for ~15cm, so I would call it more a collision detection sensor.
For my surprise the single IR led is also good enough for some cat like night vision in combination with the NoIR camera.
The audio quality of the I2C microphone is also very nice and could be used for any kind of voice recognition.
![](https://static.wixstatic.com/media/a27d24_bf9819846d8b4ae987dc824b28e2a4bc~mv2.jpg/v1/fill/w_980,h_735,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_bf9819846d8b4ae987dc824b28e2a4bc~mv2.jpg)
The hardware works well so far and in the upcoming days I will start the software part.
If I have something shareable I will let you know!
cool! I'm sharing it!