Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

PAA5100JE motion sensor code #85

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Conversation

Leo246813
Copy link

No description provided.

Leo246813

This comment was marked as spam.

@AtMostafa AtMostafa self-requested a review August 12, 2024 11:05
sensor_ver5.py Outdated Show resolved Hide resolved
PAA5100JE.py Outdated Show resolved Hide resolved
PAA5100JE.py Outdated Show resolved Hide resolved
PAA5100JE.py Outdated Show resolved Hide resolved
PAA5100JE.py Outdated Show resolved Hide resolved
PAA5100JE.py Outdated Show resolved Hide resolved
PAA5100JE.py Outdated Show resolved Hide resolved
Copy link
Member

@AtMostafa AtMostafa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job, let me know when you've updated the PR

devices/PAA5100JE_firmware.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Show resolved Hide resolved
devices/PAA5100JE_firmware.py Outdated Show resolved Hide resolved
devices/PAA5100JE_firmware.py Outdated Show resolved Hide resolved
devices/PAA5100JE_firmware.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
Copy link
Member

@AtMostafa AtMostafa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job! let's try it out!

devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
devices/PAA5100JE.py Outdated Show resolved Hide resolved
Copy link
Author

@Leo246813 Leo246813 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugged and found two possible errors:

  1. Polarity and phase incorrect when connect to SPI because different microcontroller is used (updated: polarity: 0; phase: 1)
  2. _read function may have read the wrong data before (need to test if data[0] or data[1] is correct)

Leo246813 and others added 14 commits September 8, 2024 18:30
initialization error 66
tried unplug and plug, maybe something to do with the hardware because the spi seems not to connect
Final version after testing: both sensors were successfully initialized and were able to read motion, however the read data were not send to the pyboard. A possible cause would be an error during the ISR, because no ID were provided by this sensor to allow it to perform an interrupt.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants