Search found 118 matches

by nikhiledutech
Wed May 02, 2018 4:35 am
Forum: General Discussion and Questions
Topic: Booting from SD card
Replies: 11
Views: 7257

Re: Booting from SD card

Hey,

At present my PYB flash drive have main.py , boot.py , pybcdfc.inf and readme file.

I have copied all the files to SD card, and tried to boot from SD Card but it didn't boot from SD Card.


Any suggestions ?
by nikhiledutech
Tue May 01, 2018 11:02 am
Forum: Programs, Libraries and Tools
Topic: MPUException: I2C failure when communicating with IMU
Replies: 3
Views: 3799

Re: MPUException: I2C failure when communicating with IMU

Okay. Sorry but there was issue with relemate cable. :oops:

But whats problem is , when i see the Output on UI it gives me following problem: Northeast becomes North West. Same lies with south and east-west Direction.


Can you tell me where i have gone wrong.
by nikhiledutech
Tue May 01, 2018 9:52 am
Forum: Programs, Libraries and Tools
Topic: MPUException: I2C failure when communicating with IMU
Replies: 3
Views: 3799

MPUException: I2C failure when communicating with IMU

Hey, I am facing problem of " MPUException: I2C failure when communicating with IMU" while i try to plot the yaw, roll, pitch.on UI. So at start, it works fine. As soon as i make IMU10DOF move faster, it gives me the above mentioned error. When i move it slowly it works but for that the movement sho...
by nikhiledutech
Mon Apr 30, 2018 11:19 am
Forum: Programs, Libraries and Tools
Topic: Issues in using MPU9250 with Fusion in async method
Replies: 2
Views: 2316

Issues in using MPU9250 with Fusion in async method

Hey, I am using async method to display data of roll, pitch, heading on LCD. Currently the Fusion module is created using MPU9150. I have used fusion.py in sync method with MPU9250 and it works fine. But in async method, it gives me error of MPU9250 don't have mag_trigger. In 9150, mag_reading is us...
by nikhiledutech
Mon Apr 30, 2018 7:07 am
Forum: General Discussion and Questions
Topic: Booting from SD card
Replies: 11
Views: 7257

Booting from SD card

Hello, I am currently using STM32F4 disc board with micropython. I want to boot from SD card. So what steps I have to follow. At present the following line of code are present in boot.py file. # boot.py -- run on boot-up # can run arbitrary Python, but best to keep it minimal import machine import p...
by nikhiledutech
Fri Apr 27, 2018 8:31 am
Forum: Programs, Libraries and Tools
Topic: TypeError: unsupported types for __lshift__: 'tuple', 'int'
Replies: 1
Views: 5506

TypeError: unsupported types for __lshift__: 'tuple', 'int'

Hello, i am facing problem of " TypeError : unsupported types for __lshift__: 'tuple', 'int' " BME280_STANDBY_TIME_1_MS = 0x00 BME280_CONFIG_REG = 0xF5 BME280_CONFIG_REG_TSB__POS = 5 # Read from device def I2C_ReadRegister(Rd_Addr): I2C_Rx_Buf = bytearray(2) if(i2c.readfrom_mem_into(BME280_I2C_ADDRE...
by nikhiledutech
Thu Apr 26, 2018 11:52 am
Forum: General Discussion and Questions
Topic: TypeError: can't convert bytearray to int
Replies: 2
Views: 2463

TypeError: can't convert bytearray to int

hi i am currently using I2C to interface color sensor. But facing issue in the following line. import pyb from machine import Pin, I2C #I2C 2 Initialisation i2c = I2C(scl = ('PB8'), sda = ('PB9')) #Color Sensor adrress COLOR_SENSOR_ADDR = (0x39<<1) COLOR_SENSOR_REG_CTL = 0x80 REG_CTL_POWER = 0x01 RE...
by nikhiledutech
Thu Apr 26, 2018 7:44 am
Forum: Other Boards
Topic: Problem with I2C
Replies: 2
Views: 2269

Re: Problem with I2C

slave device is Color Sensor