Search found 288 matches

by Turbinenreiter
Tue Jun 13, 2017 9:19 pm
Forum: ESP8266 boards
Topic: ESP8266 HUZZAH breakout + LSM9DS1 9DOF
Replies: 7
Views: 2262

Re: ESP8266 HUZZAH breakout + LSM9DS1 9DOF

Not sure how similar they are, but maybe this helps:
https://github.com/micropython-IMU/micropython-lsm9ds0
by Turbinenreiter
Fri Jun 02, 2017 8:03 pm
Forum: General Discussion and Questions
Topic: A Tale of Two APIs
Replies: 5
Views: 2505

A Tale of Two APIs

I believe that MicroPythons hardware API is its most important feature. There only few languages that you can use on microcontrollers, mostly by the virtue of their compiler suite - Rust, ADA and D are examples. But getting the language to run on a microcontroller is just the first step, the much mo...
by Turbinenreiter
Mon Apr 24, 2017 10:48 am
Forum: ESP32 boards
Topic: Esp32 make is not working
Replies: 7
Views: 2370

Re: Esp32 make is not working

Code: Select all

make -B
also forces a rebuild.
by Turbinenreiter
Sun Mar 12, 2017 4:21 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 21576

Re: Module for MPU9150

The error is in this line of the code: https://github.com/micropython-IMU/micropython-mpu9x50/blob/master/mpu9150.py#L187 scale = 0.3 That's not a decimal, but a float. I vaguely remember the WiPy not having floating point support and the docs confirm that: http://docs.micropython.org/en/latest/wipy...
by Turbinenreiter
Tue Feb 21, 2017 10:03 am
Forum: MicroPython pyboard
Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
Replies: 11
Views: 3676

Re: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses

I checked the SPI mode again, changed my UNIX SPI library a bit, and am now sure that both devices sue the same mode. Then I played around a bit, changing the modes to be the same, then to be different. Nothing changed, still bad communication. Until I did a spi.deinit() before reseting the board. A...
by Turbinenreiter
Mon Feb 20, 2017 7:50 pm
Forum: MicroPython pyboard
Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
Replies: 11
Views: 3676

Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses

I'm using the pyboard as SPI slave and a Raspberry Pi as Master, both running MicroPython and I'm seeing a lot of weirdness going on. For example, I'm sending this (as byterray): [254, 202, 1, 0, 170, 15, 62, 32, 1] and get his on the pyboard: [126, 74, 1, 0, 42, 15, 62, 32, 0] That's a flip of the ...
by Turbinenreiter
Wed Feb 01, 2017 12:45 pm
Forum: micro:bit boards
Topic: Code syntax error
Replies: 5
Views: 2254

Re: Code syntax error

Listen to Dave not me. Don't know what I was thinking.
by Turbinenreiter
Tue Jan 31, 2017 10:53 pm
Forum: micro:bit boards
Topic: Code syntax error
Replies: 5
Views: 2254

Re: Code syntax error

Code: Select all

val = val + 1
short

Code: Select all

val =+ 1
//edit: this is bullshit, ignore it.
by Turbinenreiter
Sun Jan 29, 2017 3:43 pm
Forum: General Discussion and Questions
Topic: Implementing SPI on the UNIX port
Replies: 5
Views: 1635

Re: Implementing SPI on the UNIX port

So python-periphery _works_. There is some modifications to be done, mostly because of ctypes vs. uctypes also some weirdness with ioctl. I have to press on with other work (I need to finish a paper, and I wanted to have this running for that), but as soon as I have time I will seriously look into i...
by Turbinenreiter
Sun Jan 29, 2017 11:53 am
Forum: General Discussion and Questions
Topic: Implementing SPI on the UNIX port
Replies: 5
Views: 1635

Re: Implementing SPI on the UNIX port

Yeah, that makes sense. I thought I could use it without arguments to quickly test it, didn't think about it actually having a defined interface.

I'm going to try a different route today, doing it in Python, based on this: https://github.com/vsergeev/python-periphery