Fix adc and dac initialization #55
Loading…
Reference in New Issue
No description provided.
Delete Branch "fsagbuya/nix-servo:adc_dac"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Fix the
spi readback errors
in adc.py andunrecognized device
in dac.py, by configuring the following:spi.cshigh
toFalse
as per adc and dac datasheets.See #49 log for comparison.
ADC init log:
DAC init log:
Where is this coming from? Is the elhep code incorrect?
This needs to be verify with the current elhep code, since the datasheet indicate this as default setup. Will inquire on it.
What datasheet?
Any answers from Jakub?
What's the status of this?
This was mentioned in this issue comment, and it seems Jakub hasn't responded yet. However, from the datasheets referenced in the description, the CS pin is active low. Additionally, testing with spidev_test shows it seems to read fine after applying this patch.
@ -61,3 +62,4 @@
rx_buffer = [0x00, 0x00]
spi.xfer2(spi_buffer)
time.sleep(0.1)
What about this?
This one I added and got:
as compared with the previous:
Okay, and? Please investigate.
d4cd5cd689
to59237af8b7
What's the latest status of this?
@ -19,6 +19,7 @@
import mmap
import os
import time
This import is not used.
59237af8b7
toc9d34348bc