Search found 118 matches
- Tue Jul 17, 2018 11:39 am
- Forum: General Discussion and Questions
- Topic: How to Add self made driver in micropython ?
- Replies: 1
- Views: 1803
How to Add self made driver in micropython ?
Hello, So i have created a driver file for a particular sensor. Now i want to add this module in micropython in such a way that i can easily import it. At present i am copying the driver file into PYBFlash drive. Than importing it. But what if i want to import the driver, without copying the module ...
- Tue May 22, 2018 6:24 am
- Forum: Other Boards
- Topic: Issue with I2C while writing and reading from buffer
- Replies: 5
- Views: 5696
Re: Issue with I2C while writing and reading from buffer
okay got it. thanks Sir.
Still there is slight problem. I have read correctly 255 bytes out of 256. But the last byte should be FF and its reading 0xF.
Why So ?
0xF8 - 0xFF : ['0xf8', '0xf9', '0xfa', '0xfb', '0xfc', '0xfd', '0xfe', '0xf']
Still there is slight problem. I have read correctly 255 bytes out of 256. But the last byte should be FF and its reading 0xF.
Why So ?
0xF8 - 0xFF : ['0xf8', '0xf9', '0xfa', '0xfb', '0xfc', '0xfd', '0xfe', '0xf']
- Mon May 21, 2018 5:23 am
- Forum: Other Boards
- Topic: Issue with I2C while writing and reading from buffer
- Replies: 5
- Views: 5696
Re: Issue with I2C while writing and reading from buffer
Hello, So as per your advice i wrote 0 to 256 byte of data . It worked fine . I also read the same in 256 bytes of buffer. for x in range (255): i2c.mem_write(0x00 , 80, 1 + x, timeout = 5000, addr_size = 8) time.sleep_ms(100) #Delay to write to EEPROM i2c.mem_read(Rx_buf, 80, 1, timeout = 5000, add...
- Fri May 18, 2018 12:55 pm
- Forum: Other Boards
- Topic: Issue with I2C while writing and reading from buffer
- Replies: 5
- Views: 5696
Issue with I2C while writing and reading from buffer
Hey, I am currently interfacing, I2C with Stm32f407disc board. problem here is when i use bytearray to read small length of data it works fine. But when i increase the bytearray size, and try to read it gives me garbage data. Here goes my code to send array data of 6 elements. This program works fin...
- Fri May 18, 2018 12:32 pm
- Forum: General Discussion and Questions
- Topic: SPI EEPROM
- Replies: 6
- Views: 4316
- Wed May 16, 2018 9:33 am
- Forum: General Discussion and Questions
- Topic: SPI EEPROM
- Replies: 6
- Views: 4316
Re: Problem in Iterating through list
Okay here goes my short code, to read write and read byte to EEPROM. In the below code , i have used a byte array to store eeprom address along with data. It works fine, but if i pass a hex value as my data to be written, and later on read it gives me decimal of the hex value written . So for that r...
- Wed May 16, 2018 5:09 am
- Forum: General Discussion and Questions
- Topic: SPI EEPROM
- Replies: 6
- Views: 4316
Re: Problem in Iterating through list
Hey,
I already have successfully interfaced Stepper Motor. Its just that my loop was not working properly.
Sir I have searched in forum regarding how to read and write from SPI based EEPROM. I haven't found anything related to SPI.
So can you give any tip to interface SPI based EEPROM.
I already have successfully interfaced Stepper Motor. Its just that my loop was not working properly.
Sir I have searched in forum regarding how to read and write from SPI based EEPROM. I haven't found anything related to SPI.
So can you give any tip to interface SPI based EEPROM.
- Tue May 15, 2018 11:17 am
- Forum: General Discussion and Questions
- Topic: Problem in receivng data using SPI
- Replies: 6
- Views: 4746
Re: Problem in receivng data using SPI
Hey Sir, sorry i didn't described my question correctly.
I wanted to interface SPI based EEPROM, but as you see we dont have any functions to write and read from specified address.
I wanted to interface SPI based EEPROM, but as you see we dont have any functions to write and read from specified address.
- Tue May 15, 2018 11:14 am
- Forum: Other Boards
- Topic: Reading Data from SPI based EEPROM ?
- Replies: 0
- Views: 1642
Reading Data from SPI based EEPROM ?
Hello, I was looking to interface a SPI based EEPROM with my STM32F407 disc board. But in pyb or machine, there are no methods available, to send data on a specific memory address. For example, In case of I2C we had i2c.mem_write() method to send data to particular memory address. Is there any possi...
- Tue May 15, 2018 9:08 am
- Forum: General Discussion and Questions
- Topic: SPI EEPROM
- Replies: 6
- Views: 4316
SPI EEPROM
Hello, I am currently interfacing stepper motor with stm32f407 disc board. I have created a list of functions. This functions are basically for setting different GPIO pins. So problem that i face is one of this : it's not properly iterating or the pins are not getting reset for the appropriate time....