Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors - Tests & Drivers #4

Open
ladislas opened this issue May 1, 2020 · 5 comments · Fixed by #5
Open

Sensors - Tests & Drivers #4

ladislas opened this issue May 1, 2020 · 5 comments · Fixed by #5
Assignees
Labels
01 - type: story Clear roadmap to implement a new feature, refactor code, etc.

Comments

@ladislas
Copy link
Member

ladislas commented May 1, 2020

The goal of this story is to list all the sensors used by Leka, find the relevant drivers, test them, compare them if more than one is available and report findings here.

@ladislas ladislas added the 01 - type: task Something to do, e.g. fix a bug, implement a feature, add documentation, etc. label May 1, 2020
@YannLocatelli
Copy link
Member

List of sensors to try:

  • Accelerometer and Gyroscope (on motherboard)
  • Magnetometer (on motherboard)
  • Microphone (on motherboard)
  • Temperature sensor (on motherboard)
  • Light sensor (on motherboard)
  • Capacitive sensor (on flex)
  • [optional] Accelerometer + Magnetometer + Temperature sensor (on flex)

@YannLocatelli
Copy link
Member

YannLocatelli commented May 5, 2020

For now, I will focus only on sensors available on Nucleo and on Steval.

Accelerometer

Reference : LSM6DSOX

Present on Steval, it is connected on the I2C of the Nucleo (I2C1 of STM32F769) at address D5 (or D4, both are hex value)

On robot, it will be connected on I2C1 of STM32F769 at address D5 (or D4, both are hex value)

Drivers available :

  • on mbed by ST : Link
  • on github by ST : Link
  • on github by stm32duino : Link

For later, a repo about the Machine Learning Core feature of LSM6DSOX : Link

Magnetometer

Reference : LSM303AGR (only magnetic sensor)

Present and connected on the I2C of the Nucleo (I2C1 of STM32F769) at address 3C (or 3D, both are hex value)

On robot, it will be connected on I2C1 of STM32F769 at address 3C (or 3D, both are hex value)

Drivers available :

  • on mbed by ST : Link
  • on github by ST : Link
  • on github by stm32duino : Link

Temperature sensor

Reference : HTS221

Present and connected on the I2C of the Nucleo (I2C1 of STM32F769) at address BE (or BF, both are hex value)

On robot, it will be connected on I2C1 of STM32F769 at address BE (or BF, both are hex value)

Drivers available :

  • on mbed by ST : Link
  • on github by ST : Link
  • on github by stm32duino : Link

Mentions of "Nucleo" referring to X-Nucleo-IKS01A2
Mentions of "Steval" referring to STEVAL-MKI197V1

Any suggestion of other driver are welcomed.

@YannLocatelli
Copy link
Member

Other sensors on motherboard have analog input.

Microphone

Reference : ICS-40181

On robot, it will be connected on analog input ADC3_IN8 of STM32F769

Drivers available : None

Driver can be built with AnalogIn API of mbed and at least 2 values to determine the scale.

Light sensor

Reference : 1540601NBA500

On robot, it will be connected on analog input ADC[1/2]_IN9 of STM32F769

Drivers available : None

Recommendations are same as Microphone.

@YannLocatelli
Copy link
Member

YannLocatelli commented May 5, 2020

Flex communicate with STM32F769 by I2C

Capacitive sensor

Reference : MTCH101

They are 6 of them and are not directly drived. In fact they are linked to DAC as input and multiplexer as output.

Reference DAC : MCP4728
Reference multiplexer : MCP23017

On robot, both will be connected on I2C3 of STM32F769 and both have programmable address (DAC from C0 to CF and multiplexer from 40 to 4F)

Drivers available :

  • MTCH101 : None
  • DAC on mbed by wimbeaumont : Link
  • Multiplexer on mbed by Takuya Urakawa : Link

[optional] Accelerometer + Magnetometer + Temperature sensor

Reference : IIS2MDC

On robot, it will be connected on I2C3 of STM32F769 at address 3D (or 3C, both are hex value)

Drivers available :

  • on github by ST : Link
  • on github by stm32duino : Link

@YannLocatelli YannLocatelli linked a pull request May 8, 2020 that will close this issue
@ladislas
Copy link
Member Author

ladislas commented May 8, 2020

@YannLocatelli cette issue était juste une tâche pour faire un test avec mbed et LSM6DSOX sans le BSP, sans les autres capteurs.

Je refais une nouvelle issue/task pour ça: #6

Suite à tes commentaires, je transforme ça en story avec tous les capteurs à tester comme tu l'as écrit.

Je un test

et je rajoute

@ladislas ladislas added 01 - type: story Clear roadmap to implement a new feature, refactor code, etc. and removed 01 - type: task Something to do, e.g. fix a bug, implement a feature, add documentation, etc. labels May 8, 2020
@ladislas ladislas changed the title Sensors - Add clean mbed + LSM6DSOX example Sensors - Tests & Drivers May 8, 2020
@ladislas ladislas reopened this May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - type: story Clear roadmap to implement a new feature, refactor code, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants