Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CS5530 Weight scale sensor

License

NotificationsYou must be signed in to change notification settings

Riley349/CS5530_ADC_Arduino_Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MITInstallation instructionsCommits since latestBuild StatusHit Counter

AnArduino library for sending and receiving data usingCirrus logic CS5530 .

Compatible Hardware

Cirrus logic CS5530 wiring

Cirrus logic CS5530Arduino
VCC5.0V
GNDGND
SCKSCK
SDOMISO
SDIMOSI
NSS10

NSS pin can be changed by usingcell.setPin(ss).

NOTES:

  • Some boards (like the Arduino Nano), cannot supply enough current for the CS5530 in TX mode. This will cause lockups when sending, be sure to use an external 3.3V supply that can provide at least 120mA's when using these boards.
  • If your Arduino board operates at 5V or 3.3V, no need to use a level converter for the wiring to the Cirrus logic CS5530 module.

Installation

Using the Arduino IDE Library Manager

  1. ChooseSketch ->Include Library ->Manage Libraries...
  2. TypeCS5530 into the search box.
  3. Click the row to select the library.
  4. Click theInstall button to install the library.

Using Git

cd~/Documents/Arduino/libraries/git clone https://github.com/yasir-shahzad/CS5530

API

SeeAPI.md.

Examples

Seeexamples folder.

FAQ

1) Initializing the CS5530 is failing

Please check the wiring you are using matches what's listed in [Cirrus logic CS5530](# Cirrus logic CS5530-wiring). You can also usecell.setPins(ss) to change the default pins used. You can callcell.setSPIFrequency(frequency) to lower the SPI frequency used by the library. Both API's must be called beforecell.begin(...).

2) Is CS5530 MSBFIRST or LSBFIRST?

If we see in the data sheet we can clearly see the CS5530 is MSBFIRST.

3) Which SPI mode does CS5530 uses?

if we see at Cpoles and Cphases in data-sheet, we can clearly analize from graphs that it's SPI_MODE0.

4) Does it SPI works on fixed frequency?

No, It's SPI work on different frequency ranges.

5) Can this library be used for CS5532 or CS5534?

Yes, It's SPI communication works on all the cirrus logic chips. But you have to change register configurations.

License

This libary islicensed under theMIT Licence.

About

CS5530 Weight scale sensor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++100.0%

[8]ページ先頭

©2009-2025 Movatter.jp