Search found 65 matches
- Fri Aug 01, 2014 6:45 am
- Forum: MicroPython pyboard
- Topic: Interupts
- Replies: 3
- Views: 4724
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 ...
- Thu Jul 31, 2014 4:30 am
- Forum: Development of MicroPython
- Topic: Software versions?
- Replies: 4
- Views: 4988
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...
- Thu Jul 31, 2014 4:15 am
- Forum: MicroPython pyboard
- Topic: Powering the pyboard
- Replies: 19
- Views: 20170
Re: Powering the pyboard
OK, I'll take your word for it - physics, electronics and programming are not my strong points
- Thu Jul 31, 2014 3:43 am
- Forum: MicroPython pyboard
- Topic: Powering the pyboard
- Replies: 19
- Views: 20170
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...
- Wed Jul 30, 2014 7:00 pm
- Forum: MicroPython pyboard
- Topic: Powering the pyboard
- Replies: 19
- Views: 20170
Re: Powering the pyboard
Thanks for the referenced conversation chain, from which I understand - the jury is very much out on whether there will ever be a right or wrong way to power logic and actuators. Single power source appears to be beyond what I have available to me right now, so for my self-balancing bot I'll stick w...
- Tue Jul 29, 2014 7:15 pm
- Forum: MicroPython pyboard
- Topic: Powering the pyboard
- Replies: 19
- Views: 20170
Powering the pyboard
A converse and/or related problem is; how to safely power the pyboard and an external load, from a single power source? My current pet project is a self balancing uPy-bot (close, but no chocolate biscuit) ... seems to have been a good project to have (randomly) chosen from the learning perspective b...
- Mon Jul 28, 2014 4:20 pm
- Forum: General Discussion and Questions
- Topic: Is there an easy way to do PWM yet?
- Replies: 12
- Views: 14293
Re: Is there an easy way to do PWM yet?
UltraBob - that is a very, very good way of diving in ... it's exactly what I was doing, when I built my dead-bug motor controller (to be exact; Chapter 10 of 'Arduino Projects Book' accompaniment to "The Arduino Starter Kit"), albeit - I already knew that whilst the pyboard is perfectly capable of ...
- Sun Jul 27, 2014 4:12 pm
- Forum: Hardware Projects
- Topic: dead bug dc motor driver
- Replies: 3
- Views: 11684
Re: dead bug dc motor driver
Finally managed to botch together hardware pwm in uPy ... and can now drive my motor. Until pwm is implemented properly this might be useful to others. import pwm pY3 = pwm.PWM(pyb.Pin.board.Y3) #pass in desired pin, only Y3,Y4,Y7,Y8,Y9,Y10,X1,X2,X3,X4,X9,X10 known to work pY3.duty(125) #range is 0 ...
- Wed Jul 23, 2014 5:55 pm
- Forum: Development of MicroPython
- Topic: Software versions?
- Replies: 4
- Views: 4988
Re: Software versions?
That's something I've been mulling quite a lot recently, I would very much like to contribute something to the uPy project, but C-code is not something I'm prepared to countenance (call it a lifestyle choice). Obviously - if you're a core developer - your effort is best expended moving functionality...
- Tue Jul 22, 2014 5:10 pm
- Forum: MicroPython pyboard
- Topic: Accelerometer Issues?
- Replies: 10
- Views: 9189
Re: Accelerometer Issues?
If you read it too fast in a loop without a delay it also crashes within seconds.