Search found 288 matches

by Turbinenreiter
Tue Oct 21, 2014 7:49 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

@dave: kinda. consider: >>> g Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'g' is not defined >>> g===1 File "<stdin>", line 1 g===1 ^ SyntaxError: invalid syntax I think it would be nice to have something like I2CError. so, instead of: >>> i.mem_write(12, 1...
by Turbinenreiter
Tue Oct 21, 2014 3:45 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

@pythoncoder
I made the pull request on Github - have a look over there.

@dhylands

I think what he means is if you have:

Code: Select all

try:
    ..something...
    ..something else...
except Exception:
    ..deal with excepttion...
you wouldn't know if something or something else failed.
by Turbinenreiter
Mon Oct 20, 2014 12:47 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

@pythoncoder:
thanks for putting that much work into this!
If you want, you can send me a pull request for your proposed changes on github (or drop the code here) and I will merge it. If not, I will implement it myself, but it may take a while until I find time to do that.
by Turbinenreiter
Wed Oct 15, 2014 6:40 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

@blmorris I actually initialize the bus twice, once from the MPU9150 module and once from the BMP185 module. I will have to find a way to check if a bus is already initialized and only create it if not. Passing in the i2c object is also a possibility, but I kinda don't wanna have to deal with i2c at...
by Turbinenreiter
Tue Oct 14, 2014 6:46 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

I haven't seen that behavior yet. This will be nasty to track down.
by Turbinenreiter
Mon Oct 13, 2014 12:32 pm
Forum: General Discussion and Questions
Topic: profiling
Replies: 2
Views: 3374

Re: profiling

timeit also needs compile.
by Turbinenreiter
Mon Oct 13, 2014 12:07 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

okay, this should now be fixed. i added timeouts to the i2c functions that will get looped and made the range functions store the selected range to a pseudo-private attribute, which is then used by the get functions.

thanks again for finding that bug!
by Turbinenreiter
Sun Oct 12, 2014 8:36 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 54471

Re: Module for MPU9150

I have the exact same problem and until now I thought it was the SD card!

You finally found the real location if that bug for me! I'll look into it tomorrow.
by Turbinenreiter
Sat Oct 11, 2014 9:46 am
Forum: MicroPython pyboard
Topic: Blender and PyBoard
Replies: 5
Views: 5309

Re: Blender and PyBoard

If you want to use the pyboard as inputdevice for blender, you could use HID to generate mouse input.
by Turbinenreiter
Thu Oct 09, 2014 7:20 pm
Forum: MicroPython pyboard
Topic: Pins
Replies: 5
Views: 5254

Re: Pins

you can also flip the board around.
ADC - Analog-Digital-Converter
SDA/SCL - I2C
MOSI/MISO/SCK/SS - SPI
PWM - Pulse Width Modulation
TX/RX - UART
RST - Reset
GND, VIN, 3V3 - Ground, input voltage, 3.3 Volt output

the docs for the pyb module have the information on how to use those.

also: just ask!