Page 1 of 1

Question on installing hardware

Posted: Wed Oct 25, 2017 4:37 pm
by WarrenPFJr
Hello,
I am new at this and I just unpacked my first RPI and would love some help figuring out how to install my hardware. The goals of my project are:

1. automate a chicken coop door opening and closing on a clock schedule.
2. take a photo each evening and email/text it to myself so i can confirm all the birds are in
3. monitor temperature (eventually i would like to trigger a heat lamp when needed)

My question pertains to installing the Motor drivers and temp sensor. I have found information on how to install each separately but am having a hard time understanding how to install both together. For example the Motor Driver HAT came with a stacking header, once this is installed all the pins required for the temp sensor have ben used. Can the temp sensor be attached now to the motor driver board? I have enclosed a photo of how i think this is supposed to be assembled but I am hoping someone can give me a bit of guidance. I would appreciate any help.

Thank you in advance
Regards,
Warren

Re: Question on installing hardware

Posted: Thu Oct 26, 2017 11:43 pm
by DougieLawson
The A0, A1 & A2 pins are easy.

Connect to GND or 3V3 to set the low three bits of the device address added to a base address of 0x18.

A2-> GND A1-> GND A0-> GND ADDR==0x18
A2-> GND A1-> GND A0-> 3V3 ADDR==0x19
A2-> GND A1-> 3V3 A0-> GND ADDR==0x1A
A2-> GND A1-> 3V3 A0-> 3V3 ADDR==0x1B
A2-> 3v3 A1-> GND A0-> GND ADDR==0x1C
A2-> 3V3 A1-> GND A0-> 3V3 ADDR==0x1D
A2-> 3v3 A1-> 3v3 A0-> GND ADDR==0x1E
A2-> 3v3 A1-> 3v3 A0-> 3v3 ADDR==0x1F

Read the datasheet to discover what you should do with the ALERT pin.

Lots more details here: https://learn.adafruit.com/adafruit-mcp ... nsor-guide

Re: Question on installing hardware

Posted: Fri Oct 27, 2017 12:03 am
by jbudd