TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2019-05-28 18:33:00
subject: Re: how to connect more s

On Tue, 28 May 2019 12:11:56 -0700 (PDT), mario_rossi@peppercom.it
declaimed the following:

>Hi everybody, sorry for being newbie, at the moment I'm doing an exercise for
the school, a meteo station with 4 sensors. I installed raspbian and use it
with Putty and VLC. The question is how I connect, at SLK and SDA pins the 3

 "SLK" I don't recognize.

 Are they I2C or SPI. If I2C you just hook them (SCL and SDA) in
parallel -- as each device should have its own address, which gets sent in
the data stream to identify which device is being commanded.

SCL -----------------------------------------------------------
 |  |  |  |
 rpi  sen1 sen2 sen3
 |  |  |  |
SDA -----------------------------------------------------


 For SPI, you will need to allocate one GPIO per device to act as a
chip-select (depending on wiring either set these with pull-up resistors
and drive one GPIO low to select a sensor, or pull-down resistors and drive
one GPIO high to select the sensor). With the sensor selection, send the
appropriate commands and read the return data (SPI tends to send a return
bit for every bit sent to a device). SPI uses two data lines MOSI/MISO and
a clock -- shared by all devices, and separate select lines.



--
 Wulfraed                 Dennis Lee Bieber         AF6VN
 wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.