Search found 79 matches

by prem111
Tue Aug 11, 2020 4:59 pm
Forum: ESP32 boards
Topic: ADC2 read ?
Replies: 0
Views: 35

ADC2 read ?

Hi, can possible read value from ADC2 pins (for gpio 2)?

im added in machine_adc.c

Code: Select all

{{&machine_adc_type}, GPIO_NUM_2, ADC2_CHANNEL_2},
and compile.

But it is probably not enough?
Thanks.
by prem111
Tue Aug 11, 2020 4:29 pm
Forum: ESP8266 boards
Topic: ADC2 read ?
Replies: 1
Views: 53

ADC2 read ?

Hi, can possible read value from ADC2 pins ?

Thanks.

UPDATE: my mistake i meant esp32 sorry.
by prem111
Thu Jul 30, 2020 6:30 am
Forum: Drivers for External Components
Topic: bno055 - i2c problem. ETIMEDOUT.
Replies: 6
Views: 334

Re: bno055 - i2c problem. ETIMEDOUT.

I mean to send/save the offsets. In order not to calibrate every time it is turned on.
by prem111
Wed Jul 29, 2020 7:23 pm
Forum: Drivers for External Components
Topic: bno055 - i2c problem. ETIMEDOUT.
Replies: 6
Views: 334

Re: bno055 - i2c problem. ETIMEDOUT.

Thanks for reply. I am using esp32. It also tests with the wires. As for them, I agree, IMU is awesome. But I'm having trouble calibrating after rebooting. I have mag offsets saved, after restart I send them to the device, but I don't know acc and gyro offsets so I don't give them, sometimes it's fi...
by prem111
Wed Jul 29, 2020 8:06 am
Forum: Drivers for External Components
Topic: bno055 - i2c problem. ETIMEDOUT.
Replies: 6
Views: 334

Re: bno055 - i2c problem. ETIMEDOUT.

I think adding a timeout in i2c to 2000 helped, but is that a good solution and will it always work?
by prem111
Tue Jul 28, 2020 8:45 pm
Forum: Drivers for External Components
Topic: bno055 - i2c problem. ETIMEDOUT.
Replies: 6
Views: 334

bno055 - i2c problem. ETIMEDOUT.

Hi, im use this driver: https://github.com/micropython-IMU/micropython-bno055/blob/master/bno055_base.py imu: https://www.dfrobot.com/product-1793.html It's ok, it's getting the data, but sometimes I get an error: File "libs/bno055_base.py", line 115, in _readn OSError: [Errno 110] ETIMEDOUT i2c: i2...
by prem111
Thu Jul 23, 2020 9:02 am
Forum: Drivers for External Components
Topic: lsm303d problem connect to i2c adresses.
Replies: 5
Views: 220

Re: lsm303d problem connect to i2c adresses.

Then it only sees the accelerometer data - the magnetometer does not.

Code: Select all

lsm303 = LSM303D(i2c)
print(lsm303.read())

((20, -204, 1069), (0, 0, 0))
by prem111
Tue Jul 21, 2020 2:27 pm
Forum: ESP32 boards
Topic: i2c - cannot see the device.
Replies: 2
Views: 151

i2c - cannot see the device.

Hi, im connect to esp32 lsm303d sensor.

Using this driver:
https://github.com/kamikaze/pyboard-exa ... /lsm303.py

in i2c scan:

Code: Select all

i2c.scan()
[29]
He only sees the accelerometer, why can't he see the magnetometer as well?
by prem111
Tue Jul 21, 2020 12:26 pm
Forum: Drivers for External Components
Topic: lsm303d problem connect to i2c adresses.
Replies: 5
Views: 220

lsm303d problem connect to i2c adresses.

Hi, im trying use this driver to connect lsm303d: https://github.com/kamikaze/pyboard-examples/blob/master/imu/lsm303.py im have error: Traceback (most recent call last): File "<stdin>", line 68, in <module> File "<stdin>", line 31, in __init__ OSError: [Errno 19] ENODEV i2c scan: >>> i2c.scan() [29]