SkillAgentSearch skills...

AM2320

Arduino AM2320 Temperature and humidity sensor using software I2C

Install / Use

/learn @lazyscheduler/AM2320
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

  • [Original AM2320 libraryi by StanKaravelikov] (https://github.com/Ten04031977)
  • [Instructables from StanKaravelikov] (http://www.instructables.com/id/Connecting-AM2320-With-Arduino/?ALLSTEPS)
  • [SoftwareWire] (https://github.com/Testato/SoftwareWire)
View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks0

Languages

C++

Security Score

55/100

Audited on Apr 10, 2024

No findings