Michael Naylor

Results 44 comments of Michael Naylor

Thanks for the reply, but its more complicated with the SHT3x series and all the commands are 16 bit - and so is the user register. I’ve been taken by...

This is from page 10 of the Datasheet. As far as I can see, I need to send 0x44, 0x2C 0x06, 0x44 and get back 6 bytes. If you could...

For the present, I must give up with SHT31 and IN266 and try to get a couple DS18B20 working, and I was wrong to say the DS18B20 is I2C, because...

Correction: DS18B20 is a TO-92 1-wire device - not TO5. Regards, Michael Naylor > On 7 Dec 2021, at 20:56, Michael Naylor ***@***.***> wrote: > > For the present, I...

Thank you. It’s getting late in Spain and time for dinner, so I try it out tomorrow. Regards, Michael Naylor > On 7 Dec 2021, at 21:41, uraimo ***@***.***> wrote:...

RUNNING: let onewires = SwiftyGPIO.hardware1Wires(for:.RaspberryPi2)! print("onewires: \(onewires)") let onewire = onewires[0] print("onewire: \(onewire)") let slaveId = onewire.getSlaves()[0] print("slaveId: \(slaveId)") let ds = DS18B20(onewire,slaveId: slaveId) print(ds.Temperature) OUTPUT: onewires: [SwiftyGPIO.SysFSOneWire] onewire: SwiftyGPIO.SysFSOneWire...

So far so good, but… onewires: [SwiftyGPIO.SysFSOneWire] onewire: SwiftyGPIO.SysFSOneWire slaveId: 28-3c01d607d440 line: 31 01 55 05 7f a5 81 66 37 : crc=37 YES line: 31 01 55 05 7f...

Working now. Thank you. > On 8 Dec 2021, at 12:07, uraimo ***@***.***> wrote: > > > 2.0.4 > > — > You are receiving this because you authored the...

Googling for SHT31, I found this ``` https://github.com/torvalds/linux/blob/master/drivers/hwmon/sht3x.c ``` And I appear to have this in my Raspberry Pi OS. ``` sudo find / -name sht3x* /usr/lib/modules/5.10.63-v8+/kernel/drivers/hwmon/sht3x.ko ``` There's also...

To read the SHT31 status register... Trying this ``` i2c.writeByte(0x44, command: 0xF3, value: 0x2D) let _ = i2c.readData(0x44, command: 0x2D) ``` and I get this ``` I2C read failed: Protocol...