Search found 35 matches

by mschulz
Mon Mar 21, 2016 3:06 pm
Forum: General Discussion and Questions
Topic: SPI Test
Replies: 1
Views: 301

SPI Test

Hello, to test the SPI Bus, I connectet the X and Y pins. X8 MOSI -> Y8 MOSI X7 MISO -> Y7 MISO X6 SCK -> Y6 SCK With my code I want send wit SPI X a message to SPI Y and print it. But I get an OSERROR 116. Why? Where is my mistake? What must I do with the Slave Select (SS)? When I connect MISO mit ...
by mschulz
Tue Oct 20, 2015 9:01 am
Forum: Hardware Projects
Topic: OLED Displays SSD1306
Replies: 19
Views: 8064

Re: OLED Displays SSD1306

Hello,

this runs now,
But how I can wirte a Text message to the display.

I tried

Code: Select all

display.write_command('123')


But this is unexpected indent

Can I get an example?

Thank you
by mschulz
Mon Oct 19, 2015 4:05 pm
Forum: Hardware Projects
Topic: OLED Displays SSD1306
Replies: 19
Views: 8064

Re: OLED Displays SSD1306

Thank you, yes, this was the first problem, you are so fast :-)
by mschulz
Mon Oct 19, 2015 3:57 pm
Forum: Hardware Projects
Topic: OLED Displays SSD1306
Replies: 19
Views: 8064

Re: OLED Displays SSD1306

Hello, I want to use the SSD1306 with I2C, too. But it do not run. I connectet SDA to Y10, and SCL to Y9, VIN to 5V and GND to GND. so far ok? than I kopied the main and the ssd1306 file from GitHub, and uncommand the line for I2C in the main file. OK? import pyb from ssd1306 import SSD1306 # SPI #d...
by mschulz
Wed Sep 16, 2015 1:17 pm
Forum: General Discussion and Questions
Topic: MemoryError: memory allocation failed, allocating 1584 bytes
Replies: 3
Views: 777

Re: MemoryError: memory allocation failed, allocating 1584 bytes

This code runs, but when I uncommand the last line I get the error. pos[0]=abs(F_KE_Rv/F_KE_Rh) # verhältnis Vorn zu Hinten if self.__pos_alt[0]>=0 and self.__pos_alt[2]>=0 and self.__pos_alt[4]>=0: pos[0]=(self.__pos_alt[0]+self.__pos_alt[2]+self.__pos_alt[4]+pos[0])/4 elif self.__pos_alt[0]>=0 and...
by mschulz
Wed Sep 16, 2015 12:48 pm
Forum: General Discussion and Questions
Topic: MemoryError: memory allocation failed, allocating 1584 bytes
Replies: 3
Views: 777

MemoryError: memory allocation failed, allocating 1584 bytes

Hello, I have a new Problem, that I do notunderstand. I get the following error, when I write one more code line, but I think the line is ok. It is equal witch line I write: Traceback (most recent call last): File "main.py", line 23, in <module> MemoryError: memory allocation failed, alloc...
by mschulz
Tue Aug 04, 2015 10:30 am
Forum: General Discussion and Questions
Topic: UART - working with bytes objects
Replies: 5
Views: 814

Re: UART - working with bytes objects

Thank you, I check with newinstruction = self.__uart2.any() if true I read message = self.__uart2.read(9) print(message) modulard, commandnr, typenr, banknr, value0, value1, value2, value3, checksum = message Sometimes ist works very well but with some messages I print only 2 parts and so I get an e...
by mschulz
Tue Aug 04, 2015 10:26 am
Forum: General Discussion and Questions
Topic: UART - uart.any()
Replies: 7
Views: 862

Re: UART - uart.any()

Hello, Thank you for yout Tips.

I Think I have some cold junctions and now it is better.
by mschulz
Tue Jul 07, 2015 2:27 pm
Forum: General Discussion and Questions
Topic: UART - uart.any()
Replies: 7
Views: 862

Re: UART - uart.any()

Hello, Thank you for your answer I have connectet the ESP8266 WLAN Modul. I have disconectet the module and the servos work When I connectet the RX of the pyboard with 3.3V I have no interrupt with uart.any(). When I connect the rx to GND I get an interrupt with \x00. When I connect nothing I have n...
by mschulz
Tue Jun 30, 2015 1:35 pm
Forum: General Discussion and Questions
Topic: ADC and Safe Mode
Replies: 10
Views: 856

Re: ADC and Safe Mode

for me this is a very strange problem, I have the problem not with determined pins, but with some parts of the software. I solved it, by comment some parts of my code and decommant it. So I do not found the reason, but for the moment it works. If sombody whant to look in my code I can send both vers...

Go to advanced search