Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

connect four sht10 to atmega32

Status
Not open for further replies.

sa6565

Newbie level 4
Joined
Apr 14, 2016
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
27
In The Name Of *****
Hi
I want to connect four sensor to one Atmega32 in bascom , but I can't read each sht10 address ,Please help me.
thank you
bye
 

Hi,

I'd try a HC4067 to multiplex data lines. Use a pullup on each dataline.

Klaus
 

Hi,

My mistake, i thougt of 10 pieces.

With four pieces i'd use a 1:4 MUX. Maybe a two channel one to switch both signals at once.

Klaus
 

Hi
Thank You Dear Klaus
My problem is this part of Bascom,In This
I2CSEND slave, var
I should write slave address instead slave but the address of sht10 is not written in the sensor datasheet
if I connect 4 sht10 to atmega32,How do I find the address of each?
Thank you very much for your attention
A L L A H bless you .
 
Last edited:

Hi,

Reading datasheet gives the answer:

Datasheet says:
The serial interface of the SHT1x is optimized for sensor
readout and effective power consumption. The sensor
cannot be addressed by I2C protocol
; however, the sensor
can be connected to an I2C bus without interference with
other devices connected to the bus. The controller must
switch between the protocols.

Klaus
 

hi
and
thank you very match
so this mean i can't connect two or more sht10 (or other device) to atmea32?

- - - Updated - - -

hi dear Klaus
thank you very match
If I have understood correctly this mean I can not connect two sht10 or mor (or one sht10 & other devices)to atmega32 with i2c protocol
Is it true ?
 

Hi,

*
You can connect one sensor to an ATMEGA32 at the TWI connections.
But you can not access it with the standard I2C library functions.

* you can connect multiple sensors with independen clock and data lines to the ATMEGA. Four sensors = 8 wires to ATMEGA. No I2C library function. Custom bitbang function.

* You can connect a 1:4 MUX to one ATMEGA line pair and connect 4 sensors to the mux. No I2C library function.

Klaus
 

hi
thank you very match dear friend
if I don,t use i2c library function,I do this(send/receive) with one command for each of the slaves?
If possible, a sample of the command at the Bascom Write me
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top