Skip to content

Arduino AM2320 Temperature and humidity sensor using software I2C

Notifications You must be signed in to change notification settings

lazyscheduler/AM2320

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AM2320 Software I2C

Introduction

The main goal of this library is to use multiple AM2320 with the same microcontroller. Because of I2C protocol you can not use multiple AM2320 in the same bus. Each AM2320 has an I2C address (0x5C) in the same I2C bus you can not use two devices with the same address

To avoid this, if have modified the original [AM2320 arduino library] (https://github.com/Ten04031977) to use software I2C instead of hardware I2C built in the microcontroller. So, you can define as much software I2C buses as you need (one for every AM2320 sensor)

Usage

You need SoftwareWire (I2C software implementation) [library] (https://github.com/Testato/SoftwareWire) in order to use this library. You can install it using Arduino IDE.

See example for detailed usage.

AM2320 sensor1(5,6); // AM2320 sensor attached SDA to digital PIN 5 and SCL to digital PIN 6

Tested with Arduino IDE 1.8.0 and SoftwareWire 1.4.0

Links

About

Arduino AM2320 Temperature and humidity sensor using software I2C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages