accelerometer
Light accelerometer sensor for fiber-photometry
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: nature.com -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.3%) to scientific vocabulary
Last synced: 7 months ago
·
JSON representation
·
Repository
Light accelerometer sensor for fiber-photometry
Basic Info
- Host: GitHub
- Owner: leomol
- License: gpl-3.0
- Language: C++
- Default Branch: master
- Size: 3.1 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Created almost 4 years ago
· Last pushed over 2 years ago
Metadata Files
Readme
License
Citation
README.md
Accelerometer sensor
Detect acceleration changes on a freely moving mouse using lightweight, readily available electronics.
Note there are two versions of the accelerometer assembly; one with an analog sensor and one with a digital sensor.
Components for the analog sensor
- Arduino Uno Rev3 microcontroller
- ADXL335 triple axis accelerometer breakout
- 6x Soft cable (610mm)
- BNC interface
- Arduino IDE
- Project code
Components for the digital sensor
- Pro micro Atmega32U4 (3.3V) microcontroller
- ADXL362 triple axis accelerometer breakout
- Flex ribbon cable (610mm)
- BNC interface
- Arduino IDE
- ADXL362 library
- Project code
Assembly instructions for the analog sensor
- With the help of a utility knife, cut 6 flex cables.
- Connect pins labeled
Z,Y,X,GND,VCCto pinsA2,A1,A0,GND, and3.3Vof the microcontroller. - Connect the center pin of a BNC interface to any of the three axis (
A2,A1,A0) and the side pin toGNDof the microcontroller. - Install Arduino IDE.
- Upload the code after selecting
Arduino UNOas the board.
Assembly instructions for the digital sensor
- With the help of a utility knife, cut the flex cable to keep only 6 lines and remove the blue plastic from both ends to expose the metallic wires.
- Connect pins labeled
SCLK,MOSI,MISO,CS,GND, andV+of the accelerometer board to pins15,16,14,10,GND, andVCCof the microcontroller by soldering corresponding wires of the flex cable. - Solder the
BNCblack and red cables toGNDand pin9of the microcontroller (respectively). - Melt a small amount of glue stick or add 2-part epoxy to protect the cables from breaking. Repeat for the microcontroller.
- Place heat shrink around the sensor and the microcontroller.
- Install Arduino IDE and the Arduino Addon for SparkFun boards.
- Install the
ADXL362 libraryusing Arduino IDE's library manager. - Upload the code after selecting
SparkFun Pro Microas the board andAtmega32U4 (3.3V, 8MHz)as the processor. To avoid permanently damaging the microcontroller, do not attempt to upload the code using any other combination of board and processor from the IDE.
Usage
- Configure your data acquisition system to read analog data from one of the input ports.
- Connect the BNC cable to the analog port of the data acquisition system.
- Power the microcontroller with a usb cable.
- If using the analog sensor, you may change the sensitivity by sending a
0over the serial port while the sensor sits still. - Attach the accelerometer sensor to the subject.
- Use the serial port to read the processed 3-axis signal or the the BNC port to read the values from a single axis (raw values for the analog sensor; processed values from the digital sensor).
Version History
0.1.0
- 2023-09-29
- Added components, assembly instructions and code for the analog version of the accelerometer sensor.
- Added a sensitivity calibration mechanism for the analog sensor.
- 2022-05-03
- Initial Release.
- Version of the sensor is an adaptation from one described in a paper by Daviu et al 2020.
- Using sensor ADXL362 instead of ADXL335.
- Using Pro micro Atmega32U4 instead of Arduino Uno ATmega328P.
- Using a flex cable (<0.1mm thick) instead of ribbon cables (28 AWG / 0.32mm + plastic sleave).
License
© 2022 Leonardo Molina
This project is licensed under the GNU GPLv3 License.
Owner
- Name: Leo
- Login: leomol
- Kind: user
- Repositories: 5
- Profile: https://github.com/leomol
Citation (CITATION.cff)
cff-version: 1.2.0
title: "Light accelerometer sensor for mice"
abstract: "Accelerometer setup with readily available components, light enough to use on a freely moving mouse"
message: If you use this software, please cite it.
type: software
version: 0.1.0
doi: 10.5281/zenodo.5889758
date-released: 2022-05-03
repository-code: https://github.com/leomol/accelerometer
authors:
- family-names: "Molina"
given-names: "Leonardo A."
email: "leonardomt@gmail.com"
affiliation: "University of Calgary"
orcid: https://orcid.org/0000-0002-6601-7185
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0