WarrenPFJr
Posts: 1
Joined: Wed Oct 25, 2017 1:26 pm

Question on installing hardware

Wed Oct 25, 2017 4:37 pm

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
Attachments
RPIMotorDriverHATANdTempSensor.jpg
RPIMotorDriverHATANdTempSensor.jpg (226.56 KiB) Viewed 337 times

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Question on installing hardware

Thu Oct 26, 2017 11:43 pm

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
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.


Return to “Beginners”