Skip to content

A simple script adapting Shawn Hymel's ADXL343 I2C tutorial code for the EuroPi synth module

License

Notifications You must be signed in to change notification settings

dComposer/Accelerometer_EuroPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connecting an ADXL343 Accelerometer to a EuroPi module

A simple script adapting Shawn Hymel's ADXL343 I2C tutorial code for the EuroPi module.

Voltage Outputs

Output Value
CV1 X
CV2 Y
CV3 Z
CV4 1-X
CV5 1-Y
CV6 1-Z

Hex Addresses on the ADXL343

Refer to Table 19 on Page 21 of the ADXL343's Datasheet for a complete description of what each hex address is referring to in the accelerometer_europi.py code.

EuroPi I2C setup

For I2C, you only need to use 4 pins on the ADXL343: VIN, GND, SDA, and SCL. Connect these pins to the EuroPi (the I2C breakout header lists VIN as 3V3) and use this code to let the EuroPi read data from the ADXL343 breakout board:

i2c = machine.I2C(1, scl=machine.Pin(3), sda=machine.Pin(2), freq=400000)

Demo

ADXL343 to EuroPi Demo

About

A simple script adapting Shawn Hymel's ADXL343 I2C tutorial code for the EuroPi synth module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages