Search found 61 matches

by PinkInk
Wed Jul 30, 2014 7:00 pm
Forum: MicroPython pyboard
Topic: Powering the pyboard
Replies: 19
Views: 11057

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...
by PinkInk
Tue Jul 29, 2014 7:15 pm
Forum: MicroPython pyboard
Topic: Powering the pyboard
Replies: 19
Views: 11057

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...
by PinkInk
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: 7914

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 ...
by PinkInk
Sun Jul 27, 2014 4:12 pm
Forum: Hardware Projects
Topic: dead bug dc motor driver
Replies: 3
Views: 9026

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 ...
by PinkInk
Wed Jul 23, 2014 5:55 pm
Forum: Development of MicroPython
Topic: Software versions?
Replies: 4
Views: 2599

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...
by PinkInk
Tue Jul 22, 2014 5:10 pm
Forum: MicroPython pyboard
Topic: Accelerometer Issues?
Replies: 10
Views: 4769

Re: Accelerometer Issues?

If you read it too fast in a loop without a delay it also crashes within seconds.
by PinkInk
Mon Jul 14, 2014 3:09 pm
Forum: General Discussion and Questions
Topic: Quest for peek and poke ...
Replies: 0
Views: 2220

Quest for peek and poke ...

I'm trying to implement PWM with the help of in-line assembler, on this quest I've kind of decided that it's sanest to minimise the assembler to basic peek and poke and "do the logic"/heavy lifting in uPy. However I'm running into hard-faults, which I *think* I've substantiated shouldn't be occurrin...
by PinkInk
Mon Jul 14, 2014 2:49 pm
Forum: Hardware Projects
Topic: dead bug dc motor driver
Replies: 3
Views: 9026

Re: dead bug dc motor driver

Jon, many thanks - I'm trying desperately to avoid C, for various (personal) reasons, but I've had a look through your sample code and it verifies what I've learnt (from Google) needs to be done to setup and control PWM (and substantiated by peering into and manipulating LED 4's associated GPIO and ...
by PinkInk
Sun Jul 13, 2014 4:32 pm
Forum: Development of MicroPython
Topic: Assembler, GPIO, 31bit integers?
Replies: 4
Views: 4774

Re: Assembler, GPIO, 31bit integers?

Thanks, I reported the movwt issue ... uPy appears to support a subset of the commands required for these operations i.e. it supports mov and movt ... but the limitations of what it currently exposes come up pretty quickly (particularly in relation to absence of more useful variants of commands that...
by PinkInk
Sat Jul 12, 2014 3:51 pm
Forum: Development of MicroPython
Topic: Assembler, GPIO, 31bit integers?
Replies: 4
Views: 4774

Assembler, GPIO, 31bit integers?

*Somewhere* I think I read that micropython implements 31 bit integers, but I can't recall where, is this correct? (recall something about the most significant bit indicating to the gc whether it's a pointer or a number) In pursuit of a temporary PWM fix, via embedded assembler, I am trying to push ...