Search found 3821 matches
- Fri Oct 17, 2014 9:32 pm
- Forum: General Discussion and Questions
- Topic: Drive counter with external clock source
- Replies: 8
- Views: 9606
Re: Drive counter with external clock source
Your memory error could be occuring if an int overflows from a small int. The + 1 will then try to allocate a multi-precision int.
- Fri Oct 17, 2014 5:15 pm
- Forum: General Discussion and Questions
- Topic: Drive counter with external clock source
- Replies: 8
- Views: 9606
Re: Drive counter with external clock source
There is a systick interrupt that fires once per millisecond. And USB would have some interrupts (the rate depends on the host). I guess at some point, I should profile the interrupt handler and figure out what kinds of rates we should expect. I know I can do 100,000 interrupts per second on a 16-MH...
- Fri Oct 17, 2014 4:14 pm
- Forum: Hardware Projects
- Topic: Module for MPU9150
- Replies: 54
- Views: 54790
Re: Module for MPU9150
I imagine that the timing constraint comes from the device in question, and probably not the I2C library itself, but that's really just speculation on my part.
- Fri Oct 17, 2014 4:09 pm
- Forum: General Discussion and Questions
- Topic: Drive counter with external clock source
- Replies: 8
- Views: 9606
Re: Drive counter with external clock source
It looks like you can use the ETR signal of a timer to be a clock source. Page 521-523 of RM0090 http://www.st.com/web/en/resource/technical/document/reference_manual/DM00031020.pdf gives an overview of the 2 external triggering modes. Page 552-554 describes the TIMx_SMCR register which appears to h...
- Fri Oct 17, 2014 1:45 am
- Forum: Hardware Projects
- Topic: Module for MPU9150
- Replies: 54
- Views: 54790
Re: Module for MPU9150
The HAL doesn't disable interrupts anywhere. It's quite possible that it needs to. Normally the HW isn't all that sensitive to timing, but occasionally, it will be. So if an interrupt occurs at just the wrong time, it can change the timing of an operation which then triggers your behaviour. Instead ...
- Fri Oct 17, 2014 1:26 am
- Forum: Programs, Libraries and Tools
- Topic: pybkick - tools to make deploying code to pyboard easier
- Replies: 24
- Views: 26646
Re: pybkick - tools to make deploying code to pyboard easier
Sweet. I've been thinking about doing something similar. I was thinking it would be cool to enhance my shell.py to create a remote-shell.py (i.e. you run the shell, and then you can copy files into and out of, and examine the files, but the python code for the shell is actually running on the host. ...
- Thu Oct 16, 2014 6:46 am
- Forum: Hardware Projects
- Topic: OpenMVCam
- Replies: 0
- Views: 3034
OpenMVCam
I signed up fo one of the early OpenMVCam boards, and it arrived yeterday.
OpenMVCam uses MicroPython internally.
I wrote a small blog post here:
http://blog.davehylands.com/search/label/OpenMVCam
OpenMVCam uses MicroPython internally.
I wrote a small blog post here:
http://blog.davehylands.com/search/label/OpenMVCam
- Thu Oct 16, 2014 6:44 am
- Forum: General Discussion and Questions
- Topic: Writing to a text file on the pyboard fails
- Replies: 1
- Views: 4180
Re: Writing to a text file on the pyboard fails
if you either do:
or do:
or do:
the the data will be written before the read.
Code: Select all
with open("foo.txt", "w") as f:
f.write("helloworld")
Code: Select all
f = open("foo.txt, "w"); f.write("hello world"); f.flush()
Code: Select all
impoprt gc
open("foo.txt", "w").write("hello world")
gc.collect()
- Thu Oct 16, 2014 1:13 am
- Forum: General Discussion and Questions
- Topic: Simple projects?
- Replies: 7
- Views: 7098
Re: Simple projects?
I guess it depends on the exact servos that came with the kit (I didn't opt for the kit since I already have lots of servos). Here is an example of a fairly crude arm that could be built with servos: http://www.instructables.com/id/Easy-and-Simple-Arduino-Robot-Arm/ Notice that they used 2 servos fo...
- Wed Oct 15, 2014 10:49 pm
- Forum: General Discussion and Questions
- Topic: Simple projects?
- Replies: 7
- Views: 7098
Re: Simple projects?
I would imagine that anything that can be done with an arduino can also be done with micropython. The libraries might not exist yet, but that's where the fun is :) So it's really about deciding on what you want to do, and then deciding how to do it. I'm pretty familiar with many of the hobbyist styl...