Search found 61 matches

by PinkInk
Sun Aug 31, 2014 2:58 am
Forum: General Discussion and Questions
Topic: Control Speed of DC Motor
Replies: 25
Views: 17742

Re: Control Speed of DC Motor

Thanks! Didn't think what you'd added was likely to have broken it, and was planning to try to use some of the informational stuff you've added to timer to reduce size.
by PinkInk
Sat Aug 30, 2014 3:58 pm
Forum: General Discussion and Questions
Topic: Control Speed of DC Motor
Replies: 25
Views: 17742

Re: Control Speed of DC Motor

Yllumi, the pwm module I put up on the wiki worked when I last tried it, which was several weeks ago. It's possible that micropython has changed in the interim in ways that preclude it working on more recent builds. In particular dhyland has been working on pyb.timer, I note heading in a direction w...
by PinkInk
Sat Aug 30, 2014 3:52 pm
Forum: General Discussion and Questions
Topic: Assembler syntax
Replies: 9
Views: 4310

Re: Assembler syntax

and conflicts with python, Damien updated it to _and I put the sum of the knowledge I gained playing with the inline assembler up on the wiki, hoping someone else would contribute to the bits I couldn't fathom. There are some bits that are currently a little painful, particularly surrounding interac...
by PinkInk
Fri Aug 15, 2014 4:10 am
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 9285

Re: Controlling the output power of a pin (dimming external

The call to timer with a frequency in my module is just to init it, which I couldn't work out how to do directly. As Dave says the frequency is changed later - the following code is a translation of what Damien does in C when you provide a frequency to init a timer, to calc values for prescaler and ...
by PinkInk
Fri Aug 15, 2014 3:59 am
Forum: MicroPython pyboard
Topic: Can we drive headphones from the DAC+on board Op-Amp?
Replies: 10
Views: 6302

Re: Can we drive headphones from the DAC+on board Op-Amp?

You can drive headphones or a piezo speaker directly from the dac's ... but the output is *almost* inaudible, ok for testing, no good for anything finished.
by PinkInk
Sun Aug 03, 2014 3:31 am
Forum: MicroPython pyboard
Topic: Interupts
Replies: 3
Views: 2585

Re: Interupts

Guys, thanks, will test these approaches when I get back from holiday.
by PinkInk
Fri Aug 01, 2014 6:45 am
Forum: MicroPython pyboard
Topic: Interupts
Replies: 3
Views: 2585

Interupts

I'm looking to implement two different ways of controlling my nxt motor shield; a) just drive the motor via pwm and read speed in rpm from the rotary encoder (done - http://wiki.micropython.org/contributedmodules/nxtmotor ) b) tell the motor to move a certain number of degrees, tracking it with the ...
by PinkInk
Thu Jul 31, 2014 4:30 am
Forum: Development of MicroPython
Topic: Software versions?
Replies: 4
Views: 2599

Re: Software versions?

I did, decided it was unloved, thought I'd learned some stuff that others starting from the beginning like me might find useful, and other stuff that I patently don't understand and wondered whether if I published it others would correct it, which would be 'educating'. But my net impression from doi...
by PinkInk
Thu Jul 31, 2014 4:15 am
Forum: MicroPython pyboard
Topic: Powering the pyboard
Replies: 19
Views: 11058

Re: Powering the pyboard

OK, I'll take your word for it - physics, electronics and programming are not my strong points ;)
by PinkInk
Thu Jul 31, 2014 3:43 am
Forum: MicroPython pyboard
Topic: Powering the pyboard
Replies: 19
Views: 11058

Re: Powering the pyboard

Hmmm ... I have been struggling to get a motor response 'kick' (from the limited set of parts available to me) that is fast/hard enough to push back against the momentum from battery weight slung above axle ... slinging the battery beneath might balance the load leading to less momentum - the batter...