Search found 111 matches

by prem111
Tue Aug 18, 2020 2:59 pm
Forum: General Discussion and Questions
Topic: BLE init long time problem.
Replies: 6
Views: 730

BLE init long time problem.

BLE initializes sometimes for 2 seconds and sometimes more than 10. Does anyone know the solution to this problem?

micropython 1.12 / esp-idf 4.0

https://github.com/micropython/micropy ... sues/5489
by prem111
Sat Aug 15, 2020 8:04 pm
Forum: General Discussion and Questions
Topic: Update *.py files via BLE.
Replies: 1
Views: 364

Update *.py files via BLE.

I would like to implement the ability to update *.py files. Being connected via BLE (esp32) How to solve it most safely? create tmp.py -> add content -> check checksum -> delete old.py -> rename tmp.py to new.py ? are there better ways?
by prem111
Tue Aug 11, 2020 4:59 pm
Forum: ESP32 boards
Topic: ADC2 read ?
Replies: 0
Views: 581

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: 342

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: 1032

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: 1032

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: 1032

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: 1032

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: 744

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))