Skip to content

TheHighlanders/AS5047ProgrammingScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Programming Script for AS5047p Encoder Chips

This script is intended for an Arduino Nano, connected to an AS5047p chip, and programs it to enable PWM output on the W pin.

Use

The values to program on the chip are set in the script, and could be modified to program many use cases. NOTE: The factorySetting = 0 bit must be set in order for programming to succeed.

The encoder chip must be connected to the Arduino using SPI

The programming process implemented here is described in the datasheet: AS5047p Datasheet, this script is not polished, and is only intended for setting a few bits, so replaces the register comparisons with specific bit checks.

This script is made using the AS5X47 library from Adrian-Legrand, which is available in the Arduino Library Manager. It is based off of the ConfigureSensor example.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages