From matt.hickford at gmail.com Wed Feb 1 14:25:46 2017 From: matt.hickford at gmail.com (Matt Hickford) Date: Wed, 1 Feb 2017 19:25:46 +0000 Subject: [Microbit-Python] Radio communication with non-microbit devices Message-ID: Hi everyone. Out of interest, has anyone used the radio module [1] to communicate with a non-microbit device? I understand the microbit doesn't have enough memory to run the Bluetooth low energy stack and micropython together [3]. -Matt [1] https://microbit-micropython.readthedocs.io/en/latest/radio.html [3] https://microbit-micropython.readthedocs.io/en/latest/ble.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Wed Feb 8 03:52:55 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Wed, 8 Feb 2017 08:52:55 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit Message-ID: Hi, I was looking for the Python Temperature and Light Sensor Commands for the micro:bit and I can't find them in ReadTheDocs. Have the commands been implemented? If so, can anyone tell me the syntax? Cheers, Nevil -------------- next part -------------- An HTML attachment was scrubbed... URL: From microbit at sheep.art.pl Wed Feb 8 04:05:39 2017 From: microbit at sheep.art.pl (Radomir Dopieralski) Date: Wed, 8 Feb 2017 10:05:39 +0100 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: Message-ID: <20170208100539.32a0bbf1@ghostwheel> There is no temperature or light sensor on the Micro:bit. If you are connecting an external sensor, then I'm afraid you will need to figure out from the datasheet of that sensor what communication protocol is used and implement it yourself -- or, if you are lucky, find the code that someone already implemented. On Wed, 8 Feb 2017 08:52:55 +0000 Nevil Hunt wrote: > Hi, > > > I was looking for the Python Temperature and Light Sensor Commands > for the micro:bit and I can't find them in ReadTheDocs. > > Have the commands been implemented? > > If so, can anyone tell me the syntax? -- Radomir Dopieralski -- Radomir Dopieralski From ntoll at ntoll.org Wed Feb 8 04:10:19 2017 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Wed, 8 Feb 2017 09:10:19 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: Message-ID: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> Morning! The temperature sensor on the CPU can be accessed via the "temperature" method in the microbit module. See: https://microbit-micropython.readthedocs.io/en/latest/microbit.html#microbit.temperature The light sensor is an on-going work in progress. You'd have to ask Mark Shannon how it's going. N. On 08/02/17 08:52, Nevil Hunt wrote: > Hi, > > > I was looking for the Python Temperature and Light Sensor Commands for > the micro:bit and I can't find them in ReadTheDocs. > > Have the commands been implemented? > > If so, can anyone tell me the syntax? > > > Cheers, > > > Nevil > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From giles.booth at gmail.com Wed Feb 8 04:14:20 2017 From: giles.booth at gmail.com (Giles Booth) Date: Wed, 8 Feb 2017 09:14:20 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: <20170208100539.32a0bbf1@ghostwheel> References: <20170208100539.32a0bbf1@ghostwheel> Message-ID: I taught a year 4 microbit lesson last week using temperature and light readings as implemented in the MS block coding environment. I'd wondered the same about Python as Nevil. On 8 February 2017 at 09:05, Radomir Dopieralski wrote: > There is no temperature or light sensor on the Micro:bit. > > If you are connecting an external sensor, then I'm afraid you will need > to figure out from the datasheet of that sensor what communication > protocol is used and implement it yourself -- or, if you are lucky, > find the code that someone already implemented. > > On Wed, 8 Feb 2017 08:52:55 +0000 > Nevil Hunt wrote: > > > Hi, > > > > > > I was looking for the Python Temperature and Light Sensor Commands > > for the micro:bit and I can't find them in ReadTheDocs. > > > > Have the commands been implemented? > > > > If so, can anyone tell me the syntax? > > > > -- > Radomir Dopieralski > > -- > Radomir Dopieralski > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -- Giles Booth www.suppertime.co.uk/blogmywiki -------------- next part -------------- An HTML attachment was scrubbed... URL: From radomir at dopieralski.pl Wed Feb 8 04:16:18 2017 From: radomir at dopieralski.pl (Radomir Dopieralski) Date: Wed, 8 Feb 2017 10:16:18 +0100 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: <20170208100539.32a0bbf1@ghostwheel> Message-ID: <20170208101618.704c1b49@ghostwheel> I'm sorry, I forgot about the temperature sensor on the CPU. And about the fact that you can use the LEDs of the display for sensing light. On Wed, 8 Feb 2017 09:14:20 +0000 Giles Booth wrote: > I taught a year 4 microbit lesson last week using temperature and > light readings as implemented in the MS block coding environment. I'd > wondered the same about Python as Nevil. > > On 8 February 2017 at 09:05, Radomir Dopieralski > wrote: > > > There is no temperature or light sensor on the Micro:bit. > > > > If you are connecting an external sensor, then I'm afraid you will > > need to figure out from the datasheet of that sensor what > > communication protocol is used and implement it yourself -- or, if > > you are lucky, find the code that someone already implemented. > > > > On Wed, 8 Feb 2017 08:52:55 +0000 > > Nevil Hunt wrote: > > > > > Hi, > > > > > > > > > I was looking for the Python Temperature and Light Sensor Commands > > > for the micro:bit and I can't find them in ReadTheDocs. > > > > > > Have the commands been implemented? > > > > > > If so, can anyone tell me the syntax? > > > > > > > > -- > > Radomir Dopieralski > > > > -- > > Radomir Dopieralski > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > > -- Radomir Dopieralski From nevil.hunt at hotmail.co.uk Wed Feb 8 04:42:18 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Wed, 8 Feb 2017 09:42:18 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> References: , <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> Message-ID: Thanks Nicholas, I thought I'd looked through every page of ReadTheDocs but I obviously hadn't spotted it lurking at the bottom of the Microbit Module! As it happens Temperature was the one I was after at the moment, rather than Light. Cheers, Nevil ________________________________ From: Microbit on behalf of Nicholas H.Tollervey Sent: 08 February 2017 09:10 To: microbit at python.org Subject: Re: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit Morning! The temperature sensor on the CPU can be accessed via the "temperature" method in the microbit module. See: https://microbit-micropython.readthedocs.io/en/latest/microbit.html#microbit.temperature The light sensor is an on-going work in progress. You'd have to ask Mark Shannon how it's going. N. On 08/02/17 08:52, Nevil Hunt wrote: > Hi, > > > I was looking for the Python Temperature and Light Sensor Commands for > the micro:bit and I can't find them in ReadTheDocs. > > Have the commands been implemented? > > If so, can anyone tell me the syntax? > > > Cheers, > > > Nevil > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit Microbit Info Page - Python mail.python.org The MicroBit is a small programmable device for children created by the BBC (in partnership with various other organisations, such as the PSF). > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Wed Feb 8 06:06:28 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Wed, 8 Feb 2017 11:06:28 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: , <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org>, Message-ID: Hi Nicholas et al, I notice all commands in ReadTheDocs have the format microbit.temperature() rather than temperature() Both work, but the first one presumably means you don't need from microbit import * at the start of the script. But since the import is automatically added to any new web script and the extra characters eat into the 8k, should ReadTheDocs be changed to drop the microbit. ? Mu doesn't add this import but anyone graduating to 'Mu' probably knows to add this line, or maybe Mu could be changed to automatically add it when selecting 'New' Nevil ________________________________ From: Microbit on behalf of Nevil Hunt Sent: 08 February 2017 09:42 To: microbit at python.org Subject: Re: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit Thanks Nicholas, I thought I'd looked through every page of ReadTheDocs but I obviously hadn't spotted it lurking at the bottom of the Microbit Module! As it happens Temperature was the one I was after at the moment, rather than Light. Cheers, Nevil ________________________________ From: Microbit on behalf of Nicholas H.Tollervey Sent: 08 February 2017 09:10 To: microbit at python.org Subject: Re: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit Morning! The temperature sensor on the CPU can be accessed via the "temperature" method in the microbit module. See: https://microbit-micropython.readthedocs.io/en/latest/microbit.html#microbit.temperature The light sensor is an on-going work in progress. You'd have to ask Mark Shannon how it's going. N. On 08/02/17 08:52, Nevil Hunt wrote: > Hi, > > > I was looking for the Python Temperature and Light Sensor Commands for > the micro:bit and I can't find them in ReadTheDocs. > > Have the commands been implemented? > > If so, can anyone tell me the syntax? > > > Cheers, > > > Nevil > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit Microbit Info Page - Python mail.python.org The MicroBit is a small programmable device for children created by the BBC (in partnership with various other organisations, such as the PSF). > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Wed Feb 8 06:25:27 2017 From: mail at timgolden.me.uk (Tim Golden) Date: Wed, 8 Feb 2017 11:25:27 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> Message-ID: <0c063906-f6a3-a1ae-6cef-1eb2a41bb64b@timgolden.me.uk> On 08/02/2017 11:06, Nevil Hunt wrote: > I notice all commands in ReadTheDocs have the format > microbit.temperature > > rather than > > temperature() Fairly sure that's a Sphinx artefact because the add_module_names setting is at its default True value in conf.py: https://github.com/bbcmicrobit/micropython/blob/master/docs/conf.py#L93 Whether that's intended or not, I don't know; but it should be easy to change TJG From carlosperate at gmail.com Wed Feb 8 06:32:40 2017 From: carlosperate at gmail.com (Carlos Pereira Atencio) Date: Wed, 08 Feb 2017 11:32:40 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: <0c063906-f6a3-a1ae-6cef-1eb2a41bb64b@timgolden.me.uk> References: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> <0c063906-f6a3-a1ae-6cef-1eb2a41bb64b@timgolden.me.uk> Message-ID: I though all the documentation was made out of restructured text with no other autogeneration? I could be wrong, but if that's the case, would that setting work? Regards, Carlos On Wed, 8 Feb 2017, 11:25 Tim Golden, wrote: > On 08/02/2017 11:06, Nevil Hunt wrote: > > I notice all commands in ReadTheDocs have the format > > microbit.temperature > > > > rather than > > > > temperature() > > Fairly sure that's a Sphinx artefact because the add_module_names > setting is at its default True value in conf.py: > > https://github.com/bbcmicrobit/micropython/blob/master/docs/conf.py#L93 > > Whether that's intended or not, I don't know; but it should be easy to > change > > TJG > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Wed Feb 8 06:54:13 2017 From: mail at timgolden.me.uk (Tim Golden) Date: Wed, 8 Feb 2017 11:54:13 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> <0c063906-f6a3-a1ae-6cef-1eb2a41bb64b@timgolden.me.uk> Message-ID: *Something* has to go from ReST to HTML. If it's on readthedocs, then it's built via Sphinx which uses the settings I mentioned. TJG On 08/02/2017 11:32, Carlos Pereira Atencio wrote: > I though all the documentation was made out of restructured text with no > other autogeneration? I could be wrong, but if that's the case, would > that setting work? > > Regards, > Carlos > > > On Wed, 8 Feb 2017, 11:25 Tim Golden, > wrote: > > On 08/02/2017 11:06, Nevil Hunt wrote: > > I notice all commands in ReadTheDocs have the format > > microbit.temperature > > > > rather than > > > > temperature() > > Fairly sure that's a Sphinx artefact because the add_module_names > setting is at its default True value in conf.py: > > https://github.com/bbcmicrobit/micropython/blob/master/docs/conf.py#L93 > > Whether that's intended or not, I don't know; but it should be easy to > change > > TJG > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > From carlosperate at gmail.com Wed Feb 8 07:13:56 2017 From: carlosperate at gmail.com (Carlos Pereira Atencio) Date: Wed, 08 Feb 2017 12:13:56 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> <0c063906-f6a3-a1ae-6cef-1eb2a41bb64b@timgolden.me.uk> Message-ID: Yes, I understand that, but surely it doesn't try to apply that rule to all the documentation-only files willy nilly without some type of context indication within the files themselves, no? If that worked correctly it'd be automagical. Looking at the docs it sounds like it needs object directives specified, don't really know much about it, so I should probably leave it to the people that know how that works. Back to the original question about importing, I think this is a bigger topic of discussion, as we could be doing a better job at explaining how that works and trying to introducer users into more explicit imports, which is not only good practice, but also important to save resources in constrained platforms like the microbit. Regards, Carlos On Wed, 8 Feb 2017, 11:51 Tim Golden, wrote: > *Something* has to go from ReST to HTML. If it's on readthedocs, then > it's built via Sphinx which uses the settings I mentioned. > > TJG > > On 08/02/2017 11:32, Carlos Pereira Atencio wrote: > > I though all the documentation was made out of restructured text with no > > other autogeneration? I could be wrong, but if that's the case, would > > that setting work? > > > > Regards, > > Carlos > > > > > > On Wed, 8 Feb 2017, 11:25 Tim Golden, > > wrote: > > > > On 08/02/2017 11:06, Nevil Hunt wrote: > > > I notice all commands in ReadTheDocs have the format > > > microbit.temperature > > > > > > rather than > > > > > > temperature() > > > > Fairly sure that's a Sphinx artefact because the add_module_names > > setting is at its default True value in conf.py: > > > > > https://github.com/bbcmicrobit/micropython/blob/master/docs/conf.py#L93 > > > > Whether that's intended or not, I don't know; but it should be easy > to > > change > > > > TJG > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > > > > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Wed Feb 8 08:16:02 2017 From: mail at timgolden.me.uk (Tim Golden) Date: Wed, 8 Feb 2017 13:16:02 +0000 Subject: [Microbit-Python] Python Temperature and Light Sensor Commands for micro:bit In-Reply-To: References: <237812d7-8015-189b-4cca-81e8624f2e9d@ntoll.org> <0c063906-f6a3-a1ae-6cef-1eb2a41bb64b@timgolden.me.uk> Message-ID: <48e1436a-d324-a576-d893-b827c22d3b85@timgolden.me.uk> On 08/02/2017 12:13, Carlos Pereira Atencio wrote: > Yes, I understand that, but surely it doesn't try to apply that rule to > all the documentation-only files willy nilly without some type of > context indication within the files themselves, no? Assuming I understand what you're asking: there's a py:module Sphinx directive at the top of the microbit_micropython_api.rst file: .. py:module:: microbit cf, eg, the music.rst which has a py:module:: music directive (plus an indication that you need to import music). TJG From aivar.annamaa at gmail.com Thu Feb 9 11:37:23 2017 From: aivar.annamaa at gmail.com (Aivar Annamaa) Date: Thu, 9 Feb 2017 18:37:23 +0200 Subject: [Microbit-Python] Communicating with a Micro:bit Message-ID: <6a53c6d1-f947-9761-9979-4c960448b947@gmail.com> Damien George wrote: > In addition to input(), there is also sys.stdin (and sys.stdout for writing) I can't access these from my Mu-flashed Micro:bit. Is it a version issue? Aivar -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Thu Feb 9 12:14:42 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Thu, 9 Feb 2017 17:14:42 +0000 Subject: [Microbit-Python] Making Speech Synth say "connect"? Message-ID: Hi, Can anyone manage to make the micro:bit Speech Synth say "connect" any better than I've managed? The best I've done is:- speech.say("con ect") but it's not that understandable. I've played around with it for a while but I've not managed to come up with anything better! This is the first word I've encountered where I've struggled to find a combination of letters that makes it 'say' the word is a reasonably intelligible way! By the way, if you've not tried the Speech Synth in Micro Python the give it a go! It's brilliant! Cheers, Nevil -------------- next part -------------- An HTML attachment was scrubbed... URL: From radomir at dopieralski.pl Thu Feb 9 12:30:36 2017 From: radomir at dopieralski.pl (Radomir Dopieralski) Date: Thu, 9 Feb 2017 18:30:36 +0100 Subject: [Microbit-Python] Making Speech Synth say "connect"? In-Reply-To: References: Message-ID: <20170209183036.0bcfea66@ghostwheel> To my non-native speaker ears "kon akt" sounds better. On Thu, 9 Feb 2017 17:14:42 +0000 Nevil Hunt wrote: > Hi, > > > Can anyone manage to make the micro:bit Speech Synth say "connect" > any better than I've managed? > > > The best I've done is:- > > > speech.say("con ect") > > > but it's not that understandable. I've played around with it for a > while but I've not managed to come up with anything better! > > > This is the first word I've encountered where I've struggled to find > a combination of letters that makes it 'say' the word is a reasonably > intelligible way! > > > By the way, if you've not tried the Speech Synth in Micro Python the > give it a go! It's brilliant! > > > > Cheers, > > > Nevil -- Radomir Dopieralski From mark at hotpy.org Thu Feb 9 14:01:40 2017 From: mark at hotpy.org (Mark Shannon) Date: Thu, 9 Feb 2017 19:01:40 +0000 Subject: [Microbit-Python] Communicating with a Micro:bit In-Reply-To: <6a53c6d1-f947-9761-9979-4c960448b947@gmail.com> References: <6a53c6d1-f947-9761-9979-4c960448b947@gmail.com> Message-ID: <2d4c4aa2-1b2e-03a8-f6a4-10a50aa50f8a@hotpy.org> Hi Aivar, I suspect Damien was thinking of one of the other micropython implementations. On the microbit there is just print and input. Cheers, Mark. On 09/02/17 16:37, Aivar Annamaa wrote: > Damien George wrote: > > > In addition to input(), there is also sys.stdin (and sys.stdout > for writing) > > > I can't access these from my Mu-flashed Micro:bit. Is it a version issue? > > Aivar > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > From humphrey.robert at orange.fr Thu Feb 9 13:53:06 2017 From: humphrey.robert at orange.fr (Robert Humphrey) Date: Thu, 9 Feb 2017 19:53:06 +0100 Subject: [Microbit-Python] Making Speech Synth say "connect"? In-Reply-To: <20170209183036.0bcfea66@ghostwheel> References: <20170209183036.0bcfea66@ghostwheel> Message-ID: How about ?Con ec ted? ? Bob > On 9 Feb 2017, at 18:30, Radomir Dopieralski wrote: > > To my non-native speaker ears "kon akt" sounds better. > > On Thu, 9 Feb 2017 17:14:42 +0000 > Nevil Hunt > wrote: > >> Hi, >> >> >> Can anyone manage to make the micro:bit Speech Synth say "connect" >> any better than I've managed? >> >> >> The best I've done is:- >> >> >> speech.say("con ect") >> >> >> but it's not that understandable. I've played around with it for a >> while but I've not managed to come up with anything better! >> >> >> This is the first word I've encountered where I've struggled to find >> a combination of letters that makes it 'say' the word is a reasonably >> intelligible way! >> >> >> By the way, if you've not tried the Speech Synth in Micro Python the >> give it a go! It's brilliant! >> >> >> >> Cheers, >> >> >> Nevil > > > > -- > Radomir Dopieralski > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Thu Feb 9 14:37:06 2017 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Thu, 9 Feb 2017 19:37:06 +0000 Subject: [Microbit-Python] Making Speech Synth say "connect"? In-Reply-To: References: <20170209183036.0bcfea66@ghostwheel> Message-ID: Alternatively, use phonemes an get exactly what you specify. See: https://microbit-micropython.readthedocs.io/en/latest/speech.html#phonemes On 09/02/17 18:53, Robert Humphrey wrote: > How about ?Con ec ted? ? > Bob >> On 9 Feb 2017, at 18:30, Radomir Dopieralski > > wrote: >> >> To my non-native speaker ears "kon akt" sounds better. >> >> On Thu, 9 Feb 2017 17:14:42 +0000 >> Nevil Hunt > > wrote: >> >>> Hi, >>> >>> >>> Can anyone manage to make the micro:bit Speech Synth say "connect" >>> any better than I've managed? >>> >>> >>> The best I've done is:- >>> >>> >>> speech.say("con ect") >>> >>> >>> but it's not that understandable. I've played around with it for a >>> while but I've not managed to come up with anything better! >>> >>> >>> This is the first word I've encountered where I've struggled to find >>> a combination of letters that makes it 'say' the word is a reasonably >>> intelligible way! >>> >>> >>> By the way, if you've not tried the Speech Synth in Micro Python the >>> give it a go! It's brilliant! >>> >>> >>> >>> Cheers, >>> >>> >>> Nevil >> >> >> >> -- >> Radomir Dopieralski >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From ntoll at ntoll.org Thu Feb 9 14:38:49 2017 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Thu, 9 Feb 2017 19:38:49 +0000 Subject: [Microbit-Python] Making Speech Synth say "connect"? In-Reply-To: References: <20170209183036.0bcfea66@ghostwheel> Message-ID: Also, another good place to start is by looking at the results of speech.translate (https://microbit-micropython.readthedocs.io/en/latest/speech.html#speech.translate). That way you'll see how the synthesizer is mapping from spelled out English to phonetic English. Hope this helps, N. On 09/02/17 19:37, Nicholas H.Tollervey wrote: > Alternatively, use phonemes an get exactly what you specify. > > See: > > https://microbit-micropython.readthedocs.io/en/latest/speech.html#phonemes > > > On 09/02/17 18:53, Robert Humphrey wrote: >> How about ?Con ec ted? ? >> Bob >>> On 9 Feb 2017, at 18:30, Radomir Dopieralski >> > wrote: >>> >>> To my non-native speaker ears "kon akt" sounds better. >>> >>> On Thu, 9 Feb 2017 17:14:42 +0000 >>> Nevil Hunt >> > wrote: >>> >>>> Hi, >>>> >>>> >>>> Can anyone manage to make the micro:bit Speech Synth say "connect" >>>> any better than I've managed? >>>> >>>> >>>> The best I've done is:- >>>> >>>> >>>> speech.say("con ect") >>>> >>>> >>>> but it's not that understandable. I've played around with it for a >>>> while but I've not managed to come up with anything better! >>>> >>>> >>>> This is the first word I've encountered where I've struggled to find >>>> a combination of letters that makes it 'say' the word is a reasonably >>>> intelligible way! >>>> >>>> >>>> By the way, if you've not tried the Speech Synth in Micro Python the >>>> give it a go! It's brilliant! >>>> >>>> >>>> >>>> Cheers, >>>> >>>> >>>> Nevil >>> >>> >>> >>> -- >>> Radomir Dopieralski >>> _______________________________________________ >>> Microbit mailing list >>> Microbit at python.org >>> https://mail.python.org/mailman/listinfo/microbit >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From damien.p.george at gmail.com Thu Feb 9 20:07:04 2017 From: damien.p.george at gmail.com (Damien George) Date: Fri, 10 Feb 2017 12:07:04 +1100 Subject: [Microbit-Python] Communicating with a Micro:bit In-Reply-To: <2d4c4aa2-1b2e-03a8-f6a4-10a50aa50f8a@hotpy.org> References: <6a53c6d1-f947-9761-9979-4c960448b947@gmail.com> <2d4c4aa2-1b2e-03a8-f6a4-10a50aa50f8a@hotpy.org> Message-ID: Yes Mark is right, there is no stdin/stdout on the microbit. On 10 February 2017 at 06:01, Mark Shannon wrote: > Hi Aivar, > > I suspect Damien was thinking of one of the other micropython > implementations. > On the microbit there is just print and input. > > Cheers, > Mark. > > > On 09/02/17 16:37, Aivar Annamaa wrote: >> >> Damien George wrote: >> >> > In addition to input(), there is also sys.stdin (and sys.stdout >> for writing) >> >> >> I can't access these from my Mu-flashed Micro:bit. Is it a version issue? >> >> Aivar >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit From nevil.hunt at hotmail.co.uk Fri Feb 10 02:47:19 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Fri, 10 Feb 2017 07:47:19 +0000 Subject: [Microbit-Python] Making Speech Synth say "connect"? In-Reply-To: References: <20170209183036.0bcfea66@ghostwheel> , Message-ID: Thanks Radomir, Bob and Nicholas for your suggestions! Nicholas - I thought I'd read all the pages in 'ReadTheDocs' but I must have missed these! If any of the rest of you have not read these pages the I recommend you read them! I now realise that the speech synthesiser is even better than I had thought! (and I thought it was brilliant before!) For instance I hadn't realised you can vary the inflection of the word as shown in the examples at the bottom of the "Phonemes" section. I think this is just what I need to vary to make "connect" sound more understandable! With these suggestions I'm sure zbit:bod will soon be speaking better English than I do! Thanks again, Nevil ________________________________ From: Microbit on behalf of Nicholas H.Tollervey Sent: 09 February 2017 19:38 To: microbit at python.org Subject: Re: [Microbit-Python] Making Speech Synth say "connect"? Also, another good place to start is by looking at the results of speech.translate (https://microbit-micropython.readthedocs.io/en/latest/speech.html#speech.translate). Speech ? BBC micro:bit MicroPython 0.0.1 documentation microbit-micropython.readthedocs.io Functions? speech.translate (words) ? Given English words in the string words, return a string containing a best guess at the appropriate phonemes to pronounce. That way you'll see how the synthesizer is mapping from spelled out English to phonetic English. Hope this helps, N. On 09/02/17 19:37, Nicholas H.Tollervey wrote: > Alternatively, use phonemes an get exactly what you specify. > > See: > > https://microbit-micropython.readthedocs.io/en/latest/speech.html#phonemes Speech ? BBC micro:bit MicroPython 0.0.1 documentation microbit-micropython.readthedocs.io Functions? speech.translate (words) ? Given English words in the string words, return a string containing a best guess at the appropriate phonemes to pronounce. > > > On 09/02/17 18:53, Robert Humphrey wrote: >> How about ?Con ec ted? ? >> Bob >>> On 9 Feb 2017, at 18:30, Radomir Dopieralski >> > wrote: >>> >>> To my non-native speaker ears "kon akt" sounds better. >>> >>> On Thu, 9 Feb 2017 17:14:42 +0000 >>> Nevil Hunt >> > wrote: >>> >>>> Hi, >>>> >>>> >>>> Can anyone manage to make the micro:bit Speech Synth say "connect" >>>> any better than I've managed? >>>> >>>> >>>> The best I've done is:- >>>> >>>> >>>> speech.say("con ect") >>>> >>>> >>>> but it's not that understandable. I've played around with it for a >>>> while but I've not managed to come up with anything better! >>>> >>>> >>>> This is the first word I've encountered where I've struggled to find >>>> a combination of letters that makes it 'say' the word is a reasonably >>>> intelligible way! >>>> >>>> >>>> By the way, if you've not tried the Speech Synth in Micro Python the >>>> give it a go! It's brilliant! >>>> >>>> >>>> >>>> Cheers, >>>> >>>> >>>> Nevil >>> >>> >>> >>> -- >>> Radomir Dopieralski >>> _______________________________________________ >>> Microbit mailing list >>> Microbit at python.org >>> https://mail.python.org/mailman/listinfo/microbit >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Fri Feb 10 04:44:22 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Fri, 10 Feb 2017 09:44:22 +0000 Subject: [Microbit-Python] Making Speech Synth say "connect"? In-Reply-To: References: <20170209183036.0bcfea66@ghostwheel> , , Message-ID: FYI after a couple of hours of pure fun this is what I've settled on:- speech.pronounce("ZEHD3-BIHT4-KAXN4-EHK4-KT2", speed=52, pitch=64, throat=130, mouth=160) Cheers, Nevil ________________________________ From: Microbit on behalf of Nevil Hunt Sent: 10 February 2017 07:47 To: microbit at python.org Subject: Re: [Microbit-Python] Making Speech Synth say "connect"? Thanks Radomir, Bob and Nicholas for your suggestions! Nicholas - I thought I'd read all the pages in 'ReadTheDocs' but I must have missed these! If any of the rest of you have not read these pages the I recommend you read them! I now realise that the speech synthesiser is even better than I had thought! (and I thought it was brilliant before!) For instance I hadn't realised you can vary the inflection of the word as shown in the examples at the bottom of the "Phonemes" section. I think this is just what I need to vary to make "connect" sound more understandable! With these suggestions I'm sure zbit:bod will soon be speaking better English than I do! Thanks again, Nevil ________________________________ From: Microbit on behalf of Nicholas H.Tollervey Sent: 09 February 2017 19:38 To: microbit at python.org Subject: Re: [Microbit-Python] Making Speech Synth say "connect"? Also, another good place to start is by looking at the results of speech.translate (https://microbit-micropython.readthedocs.io/en/latest/speech.html#speech.translate). Speech ? BBC micro:bit MicroPython 0.0.1 documentation microbit-micropython.readthedocs.io Functions? speech.translate (words) ? Given English words in the string words, return a string containing a best guess at the appropriate phonemes to pronounce. That way you'll see how the synthesizer is mapping from spelled out English to phonetic English. Hope this helps, N. On 09/02/17 19:37, Nicholas H.Tollervey wrote: > Alternatively, use phonemes an get exactly what you specify. > > See: > > https://microbit-micropython.readthedocs.io/en/latest/speech.html#phonemes Speech ? BBC micro:bit MicroPython 0.0.1 documentation microbit-micropython.readthedocs.io Functions? speech.translate (words) ? Given English words in the string words, return a string containing a best guess at the appropriate phonemes to pronounce. > > > On 09/02/17 18:53, Robert Humphrey wrote: >> How about ?Con ec ted? ? >> Bob >>> On 9 Feb 2017, at 18:30, Radomir Dopieralski >> > wrote: >>> >>> To my non-native speaker ears "kon akt" sounds better. >>> >>> On Thu, 9 Feb 2017 17:14:42 +0000 >>> Nevil Hunt >> > wrote: >>> >>>> Hi, >>>> >>>> >>>> Can anyone manage to make the micro:bit Speech Synth say "connect" >>>> any better than I've managed? >>>> >>>> >>>> The best I've done is:- >>>> >>>> >>>> speech.say("con ect") >>>> >>>> >>>> but it's not that understandable. I've played around with it for a >>>> while but I've not managed to come up with anything better! >>>> >>>> >>>> This is the first word I've encountered where I've struggled to find >>>> a combination of letters that makes it 'say' the word is a reasonably >>>> intelligible way! >>>> >>>> >>>> By the way, if you've not tried the Speech Synth in Micro Python the >>>> give it a go! It's brilliant! >>>> >>>> >>>> >>>> Cheers, >>>> >>>> >>>> Nevil >>> >>> >>> >>> -- >>> Radomir Dopieralski >>> _______________________________________________ >>> Microbit mailing list >>> Microbit at python.org >>> https://mail.python.org/mailman/listinfo/microbit >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danka.miklos at gmail.com Sun Feb 12 14:39:09 2017 From: danka.miklos at gmail.com (=?UTF-8?B?TWlrbMOzcyBBbmRyw6FzIERhbmth?=) Date: Sun, 12 Feb 2017 19:39:09 +0000 Subject: [Microbit-Python] Microbit Python Doc translation In-Reply-To: References: Message-ID: // +Dani, the translation lead for the micropython documentation Hi all, As an update: we have started the Hungarian translation of the documentation. - ReadTheDocs: https://microbit-micropython-hu.readthedocs.io/hu/latest/ - Github: https://github.com/techtabor/microbit-micropython-hu *Are you up for connecting our translation with your original documentation, so that it show up in the RTD languages section?* According to the RTD instructions , you have to mark in your "parent project" our project as a Hungarian translation. Best, Miklos On Sun, Dec 4, 2016 at 12:58 PM Mikl?s Andr?s Danka wrote: I think as a first step then, I'll just go ahead and fork the original repository for a translation. If some more advanced process is agreed upon, or the documentation is moved to a new platform, we can always move this first fork as well. Thanks! Miklos On Mon, Nov 28, 2016 at 10:59 PM Mikl?s Andr?s Danka wrote: Makes a lot more sense! Let me ruminate and explore a bit more. -Miklos On Mon, Nov 28, 2016 at 10:51 PM Carlos Pereira Atencio < carlosperate at gmail.com> wrote: Readthedocs already offers linked translations, so we can continue using this platform. As far was what I would be looking for is better support for translation tracking and updating, so that people could easily do small contribution without a complex set up or trying to figure out what to update by manually reading the English and translated documents to spot unsynchronised bits. I mention some of my concerns with git here: https://github.com/bbcmicrobit/micropython/pull/371#discussion_r89747053 I feel that ultimately, how live the documentation is in any language will depend on how active the community is. That's irrespective of the translation process. No? I wouldn't quite agree with that, we (as the open source community) always point to documentation, or in this case translations, as an easy first step. If we make this difficult we might inadvertently be turning away valuable contributions. I would expect some of this translations to come also from not-so-technical communities, teachers for instance are great candidates, and every time I even mention git/github to teachers I never hear anything even remotely positive (this specific point is just my personal experience and should be taken completely anecdotally). If we ignoring the use of git for this solutions, then it would be a very manual process to keep track of changes. Yes, "edit this on github" and PRs are easy, and I think it does work great for normal documentation, but translations are do not really follow the same model and I don't feel like git really is the best way to manage them. On 28 November 2016 at 11:19, Mikl?s Andr?s Danka wrote: That's true - all I expected from translations support is that they allow listing translations together and possibly synchronising pages (so if I'm on page X and click the other language, I'm taken to the right page). What else are you looking for? More fine-grained support? Support for tracking/translating each English commit? I feel that ultimately, how live the documentation is in any language will depend on how active the community is. That's irrespective of the translation process. No? -Miklos On Mon, Nov 28, 2016 at 10:15 PM Carlos Pereira Atencio < carlosperate at gmail.com> wrote: I am not really able to have a proper look until later, but from a very quick skim gitbook doesn't seem to offer any translation feature to give it an advantage over readthedocs. They both allow you to add translation to their document generation, but there isn't any features to be able to manage and synchronise such translations, no? Regards, Carlos On 28 November 2016 at 11:02, Mikl?s Andr?s Danka wrote: An alternative is Gitbook: https://www.gitbook.com/ - As far as I can see, it's free for public non-commercial uses - It supports translations: http://toolchain.gitbook.com/languages.html - It is non-technical to edit it - git backed, but no need to deal with git - For a live example, check out the documentation of Redux: http://redux.js.org/docs/basics/UsageWithReact.html Do you expect a reasonably quick decision on this? If these discussions take a longer time, then I think the best solution is if we fork the repo and start the translation - leaving time to decide the exact process. If you expect quick agreement, then we can wait until Gitbook or something else is set up. Thoughts? -Miklos PS. Nick, thanks for the response! I now requested membership. On Sun, Nov 27, 2016 at 11:26 PM Carlos Pereira Atencio < carlosperate at gmail.com> wrote: Let's not forget we still need to formalise the way we create and process the translations: https://github.com/bbcmicrobit/micropython/pull/371 There's been some conversation there but not decisions done at all. On Sun, 27 Nov 2016, 12:13 Nicholas H.Tollervey, wrote: Hi Mikl?s, Hmmm... I can't find your original email to this mailing list. Also, to post you need to be a member (you can join here: https://mail.python.org/mailman/listinfo/microbit) although I get notified of all the non-member postings so let this one through! Also, since you're not a member I'm not sure you'll see any replies to the mailing list (hence me cc'ing you to my reply). Regarding translation and ReadTheDocs: it would be wonderful to have Hungarian translations of the documentation! RtD have started to put advertising on our documentation and there is also work on the pyedu.io website for Python in education related resources. I wonder if we shouldn't just put our tutorials on there instead (along with lots of other education related resources)..? Thoughts..? N. On 27/11/16 06:03, Mikl?s Andr?s Danka wrote: > Hi, > > I haven't got any responses, so I wanted to ping again before I start > hosting a fork. > > Read The Docs supports localisation in this way: > http://read-the-docs.readthedocs.io/en/latest/localization.html > > Would you up for doing this? > > Thanks, > Miklos > > > On Mon, Oct 31, 2016 at 9:26 PM Mikl?s Andr?s Danka > > wrote: > > Hello, > > I'm Miklos Danka, a software engineer and a teacher (here's an > example > ). I'm > writing regarding the BBC Microbit Python edition - please let me > know if this is not the right place or contact for it. > > First of all: *it's really awesome.* Incredible job, especially > around the documentation, which even less experienced kids > understood well. Very very cool. > > Since I teach kids in Hungary, I wanted to translate the > documentation > to > Hungarian. My question is: *do you have a recommended/preferred way > of publishing the translation?* I can always just fork the > repository - but that would miss out on the benefits of having the > documentations tracked together at the same website. > Would you recommend it as a Sphinx "version" (next to "latest" and > "stable")? Or does Sphinx provide and orthogonal translation feature? > > Any ideas/suggestions would be very welcome and appreciated. > > Thanks! > Miklos > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > _______________________________________________ Microbit mailing list Microbit at python.org https://mail.python.org/mailman/listinfo/microbit -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewferguson500 at gmail.com Mon Feb 13 17:06:12 2017 From: andrewferguson500 at gmail.com (Andrew Ferguson) Date: Mon, 13 Feb 2017 22:06:12 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing Message-ID: Hi all, I stumbled across this talk by Bill Thompson the other day. It covers the 'challenges and successes' of the micro:bit project and looks really interesting (to me at least), but I'm over 300 miles away, so cannot attend. The cost is around ?15. Event Bill Thompson - BBC Make it Digital: Challenges and Successes Venue The National Museum of Computing, Milton Keynes Date Thu 16 Feb 2017 at 6:00PM Section General If anyone does go, do let me know how it was. There was a similar talk several months ago, and I emailed TNMOC to ask if they would be able to record the talk and upload the recording. I never got a response, and so I assumed that this would not be possible, but if anyone does decide to go, and would be able to record the talk (even audio would be fine) that would be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share them. Kind regards and happy micro:bit-ing... Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Mon Feb 13 17:10:07 2017 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Mon, 13 Feb 2017 22:10:07 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: Hey Hey, I was going to talk at this, but a family commitment (a surprise birthday party) means I won't be able to attend. N. On 13/02/17 22:06, Andrew Ferguson wrote: > Hi all, > > I stumbled across this talk by Bill Thompson the other day. It covers > the 'challenges and successes' of the micro:bit project and looks really > interesting (to me at least), but I'm over 300 miles away, so cannot > attend. The cost is around ?15. > > Event Bill Thompson - BBC Make it Digital: Challenges and Successes > Venue The National Museum of Computing, Milton Keynes > Date Thu 16 Feb 2017 at 6:00PM > Section General > > If anyone does go, do let me know how it was. There was a similar talk > several months ago, and I emailed TNMOC to ask if they would be able to > record the talk and upload the recording. I never got a response, and so > I assumed that this would not be possible, but if anyone does decide to > go, and would be able to record the talk (even audio would be fine) that > would be amazing. Or, if Mr Thompson uses slides, ask him to upload them > / share them. > > Kind regards and happy micro:bit-ing... > Andrew > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From ctyoung at mtu.edu Mon Feb 13 17:19:39 2017 From: ctyoung at mtu.edu (Charles Young) Date: Mon, 13 Feb 2017 17:19:39 -0500 Subject: [Microbit-Python] auto-restart trashes file I wrote Message-ID: <6356CABF-2E52-4B39-B96D-8C1220B32D9E@mtu.edu> HI Folks: I wrote a micro-python program for the microbit to log data from the magnetometer and write the data to a file on the microbit. This works OK when the microbit is connected to my iMac, but I want to operate the microbit from the battery, then transfer the file to my iMac. The problem occurs when I hook the microbit back up to the iMac. The the program auto-restarts the program and trashes the data file. Has anyone else attempted this? Has anyone overcome this problem? Chuck Young From david at thinkingbinaries.com Mon Feb 13 17:35:11 2017 From: david at thinkingbinaries.com (David Whale) Date: Mon, 13 Feb 2017 22:35:11 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: I'll be there, with micro:bits and MicroPython code cyphering programs to show :) On 13 February 2017 at 22:10, Nicholas H.Tollervey wrote: > Hey Hey, > > I was going to talk at this, but a family commitment (a surprise > birthday party) means I won't be able to attend. > > N. > > On 13/02/17 22:06, Andrew Ferguson wrote: > > Hi all, > > > > I stumbled across this talk by Bill Thompson the other day. It covers > > the 'challenges and successes' of the micro:bit project and looks really > > interesting (to me at least), but I'm over 300 miles away, so cannot > > attend. The cost is around ?15. > > > > Event Bill Thompson - BBC Make it Digital: Challenges and Successes > > Venue The National Museum of Computing, Milton Keynes > > Date Thu 16 Feb 2017 at 6:00PM > > Section General > > > > If anyone does go, do let me know how it was. There was a similar talk > > several months ago, and I emailed TNMOC to ask if they would be able to > > record the talk and upload the recording. I never got a response, and so > > I assumed that this would not be possible, but if anyone does decide to > > go, and would be able to record the talk (even audio would be fine) that > > would be amazing. Or, if Mr Thompson uses slides, ask him to upload them > > / share them. > > > > Kind regards and happy micro:bit-ing... > > Andrew > > > > > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Tue Feb 14 03:39:34 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Tue, 14 Feb 2017 08:39:34 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: Thanks Andrew, It looks like it's not only a talk by Bill but a day of hands-on micro:bit activities. I have just bought a ticket! Nevil ________________________________ From: Microbit on behalf of Andrew Ferguson Sent: 13 February 2017 22:06 To: Python-MicroBit Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing Hi all, I stumbled across this talk by Bill Thompson the other day. It covers the 'challenges and successes' of the micro:bit project and looks really interesting (to me at least), but I'm over 300 miles away, so cannot attend. The cost is around ?15. Event Bill Thompson - BBC Make it Digital: Challenges and Successes Venue The National Museum of Computing, Milton Keynes Date Thu 16 Feb 2017 at 6:00PM Section General If anyone does go, do let me know how it was. There was a similar talk several months ago, and I emailed TNMOC to ask if they would be able to record the talk and upload the recording. I never got a response, and so I assumed that this would not be possible, but if anyone does decide to go, and would be able to record the talk (even audio would be fine) that would be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share them. Kind regards and happy micro:bit-ing... Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Tue Feb 14 04:14:55 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Tue, 14 Feb 2017 09:14:55 +0000 Subject: [Microbit-Python] micro:bit as an aid for the blind for Disabled Access Day 10th-11th March Message-ID: After Andrew's post about the talk in Milton Keynes that I'd not spotted I thought I let everyone know about this event... Some Digital Eagles in Yorkshire have come up with an aid for the blind using micro:bits that they plan to show at Barclays, Leeds, Albion Street, LS1 5AA - 10th and 11th March for https://www.disabledaccessday.com/Barclays I'm told it uses the Python speech module This is their 'dry run' from a couple of weeks ago https://twitter.com/Laila_Mikaeel/status/827968552279871490 DavidW from the Foundation is helping them refine it for the actual day And if you've not already signed up for it, Carlos does a great weekly newsletter about interesting micro:bit activities and event - but even he seems to have missed the talk in Milton Keynes :-) If you want to sign up, go to this link and scroll down for 'micro:bit broadcast' http://www.microbit.org/ecosystem-bycountry/ Cheers, Nevil -------------- next part -------------- An HTML attachment was scrubbed... URL: From barrachri at gmail.com Tue Feb 14 04:51:49 2017 From: barrachri at gmail.com (Christian Barra) Date: Tue, 14 Feb 2017 10:51:49 +0100 Subject: [Microbit-Python] [Microbit:Polska] Feedback after the first workshop! Message-ID: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> Finally we had the first workshop in Gliwice (Poland) about Micro:bit and Python https://microbitpolska.org/en/blog/we-are-starting-bbc-micro-bit-is-coming-to-gliwice/ A short video here: http://www.zso10.gliwice.pl/dla-uczniow/aktualnosci/to-byla-zabawa-funwithmicrobit/ First of all the experience was really amazing, the workshop has been from 10am till 3.30pm and almost all the students remained there till the end! We had around: 30 students with an age around 12-15 years-old 4 teachers 5/6 Python Programmers We prepared the workshop (https://github.com/MicrobitPolska/FunWithMicrobit ) in both English and Polish, I must admit that the level of English was more than enough to forget about the polish version. A few points about the workshop Python + Microbit It?s really a good mix, the fact that you can easily create something keeps the students there :) Main errors The main errors that we have seen were mostly syntax error, for example you forget about the colon at the end or about the indentation (probably the most common error). Mu Editor The editor works really well, we had some kind of glitch when you try to select and then copy the text, but apart from this great experience! Scratch We saw 1 or 2 times students and teachers trying to implement the code using Scratch and the block editor online. They decided to switch because they were blocked with Python. Probably one of the thing we have to do better inside the workshop is to ?teach Python through errors? at least int first part. P.S. PR for https://github.com/MicrobitPolska/FunWithMicrobit are more then welcome! ?? With gravitational cheers, Christian Barra Founder of cassiny.io & PyBootCamp.com EuroPython Society Board Member www.chrisbarra.me -------------- next part -------------- An HTML attachment was scrubbed... URL: From titimoby at gmail.com Tue Feb 14 05:16:19 2017 From: titimoby at gmail.com (Thierry Chantier) Date: Tue, 14 Feb 2017 10:16:19 +0000 Subject: [Microbit-Python] [Microbit:Polska] Feedback after the first workshop! In-Reply-To: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> References: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> Message-ID: Thanks a lot for this feedback and the workshop material. Do you feel 12-15 is the right age range for this kind of workshop, or is it possible to lower a bit ? Thierry Le mar. 14 f?vr. 2017 ? 10:52, Christian Barra a ?crit : > Finally we had the first workshop in Gliwice (Poland) about Micro:bit and > Python > > > https://microbitpolska.org/en/blog/we-are-starting-bbc-micro-bit-is-coming-to-gliwice/ > > A short video here: > http://www.zso10.gliwice.pl/dla-uczniow/aktualnosci/to-byla-zabawa-funwithmicrobit/ > > First of all the experience was really amazing, the workshop has been from > 10am till 3.30pm and almost all the students remained there till the end! > > We had around: > > 30 students with an age around 12-15 years-old > 4 teachers > 5/6 Python Programmers > > We prepared the workshop ( > https://github.com/MicrobitPolska/FunWithMicrobit) in both English and > Polish, I must admit that the level of English was more than enough to > forget about the polish version. > > A few points about the workshop > > Python + Microbit > It?s really a good mix, the fact that you can easily create something > keeps the students there :) > > Main errors > The main errors that we have seen were mostly syntax error, for example > you forget about the colon at the end or about the indentation (probably > the most common error). > > Mu Editor > The editor works really well, we had some kind of glitch when you try to > select and then copy the text, but apart from this great experience! > > Scratch > We saw 1 or 2 times students and teachers trying to implement the code > using Scratch and the block editor online. > They decided to switch because they were blocked with Python. > Probably one of the thing we have to do better inside the workshop is to > ?teach Python through errors? at least int first part. > > P.S. PR for https://github.com/MicrobitPolska/FunWithMicrobit are more > then welcome! > > ?? > With gravitational cheers, > > Christian Barra > Founder of cassiny.io & PyBootCamp.com > EuroPython Society Board Member > www.chrisbarra.me > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at timgolden.me.uk Tue Feb 14 05:21:51 2017 From: mail at timgolden.me.uk (Tim Golden) Date: Tue, 14 Feb 2017 10:21:51 +0000 Subject: [Microbit-Python] [Pythonedu-wg] [Microbit:Polska] Feedback after the first workshop! In-Reply-To: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> References: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> Message-ID: <9d7bc2a3-881b-e26f-fcf9-6647f3a57344@timgolden.me.uk> On 14/02/2017 09:51, Christian Barra wrote: [... snip lots of good stuff about the workshop ...] Great to hear, and thanks for the update. > Mu Editor > The editor works really well, we had some kind of glitch when you try to > select and then copy the text, but apart from this great experience! Depending on what you were seeing, it's possible you came up against this bug: https://github.com/mu-editor/mu/issues/209 which has been fixed now. If it's something else, then please raise an issue. TJG From ntoll at ntoll.org Tue Feb 14 05:30:36 2017 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Tue, 14 Feb 2017 10:30:36 +0000 Subject: [Microbit-Python] [Microbit:Polska] Feedback after the first workshop! In-Reply-To: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> References: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> Message-ID: This is great stuff. Just so you know, I have a branch of Mu that includes a Blockly (i.e. Scratch like) interface to help students make the transition. As you move blocks around, so the Python code changes. https://www.youtube.com/watch?v=XCZEKtNHx5k Best wishes, Nicholas. On 14/02/17 09:51, Christian Barra wrote: > Finally we had the first workshop in Gliwice (Poland) about Micro:bit > and Python > > https://microbitpolska.org/en/blog/we-are-starting-bbc-micro-bit-is-coming-to-gliwice/ > > A short video > here: http://www.zso10.gliwice.pl/dla-uczniow/aktualnosci/to-byla-zabawa-funwithmicrobit/ > > First of all the experience was really amazing, the workshop has been > from 10am till 3.30pm and almost all the students remained there till > the end! > > We had around: > > 30 students with an age around 12-15 years-old > 4 teachers > 5/6 Python Programmers > > We prepared the workshop > (https://github.com/MicrobitPolska/FunWithMicrobit) in both English and > Polish, I must admit that the level of English was more than enough to > forget about the polish version. > > A few points about the workshop > > Python + Microbit > It?s really a good mix, the fact that you can easily create something > keeps the students there :) > > Main errors > The main errors that we have seen were mostly syntax error, for example > you forget about the colon at the end or about the indentation (probably > the most common error). > > Mu Editor > The editor works really well, we had some kind of glitch when you try to > select and then copy the text, but apart from this great experience! > > Scratch > We saw 1 or 2 times students and teachers trying to implement the code > using Scratch and the block editor online. > They decided to switch because they were blocked with Python. > Probably one of the thing we have to do better inside the workshop is to > ?teach Python through errors? at least int first part. > > P.S. PR for https://github.com/MicrobitPolska/FunWithMicrobit are more > then welcome! > > ?? > With gravitational cheers, > > Christian Barra > Founder of cassiny.io & PyBootCamp.com > > EuroPython Society Board Member > www.chrisbarra.me > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From barrachri at gmail.com Tue Feb 14 06:50:30 2017 From: barrachri at gmail.com (Christian Barra) Date: Tue, 14 Feb 2017 12:50:30 +0100 Subject: [Microbit-Python] [Microbit:Polska] Feedback after the first workshop! In-Reply-To: References: <0860B784-3D1E-464F-834D-60ACC0FD1ADB@gmail.com> Message-ID: <12039D09-5B4C-48AD-8875-A1E79145CF59@gmail.com> > On 14 Feb 2017, at 11:30, Nicholas H.Tollervey wrote: > > This is great stuff. > > Just so you know, I have a branch of Mu that includes a Blockly (i.e. > Scratch like) interface to help students make the transition. As you > move blocks around, so the Python code changes. > > https://www.youtube.com/watch?v=XCZEKtNHx5k That?s awesome ! I forgot to say that we are organising 2 workshops in Warsaw with the same style. ?? With gravitational cheers, Christian Barra Founder of cassiny.io & PyBootCamp.com EuroPython Society Board Member www.chrisbarra.me -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Tue Feb 14 13:08:47 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Tue, 14 Feb 2017 18:08:47 +0000 Subject: [Microbit-Python] Lock-up due to some combination of radio and pwm. In-Reply-To: References: <2f795150-c0fd-1787-a816-6f6bd398c275@hotpy.org> , Message-ID: Hi Nicholas/Damien/David, I notice on GitHub Issue [#392] 'microbit hangs when using radio and PWM' is now closed. I've just tried with mu-0.9.13 but still get the same lock-up. Is it that the issue [#392] fix hasn't found its way into Mu yet (in which case I'll check it again when the next version of Mu is released) or is the bug still there? Cheers, Nevil ________________________________ From: Nicholas H.Tollervey Sent: 27 January 2017 11:04 To: For Pythonic MicroBit related discussions; Nevil Hunt Cc: David Booth Subject: Re: [Microbit-Python] Lock-up due to some combination of radio and pwm. Hi, I'm hope to have a release of the editors with an updated runtime come out relatively soon. Unfortunately, it's a case of lining things up and making sure everything is ready / tested and those people I'm relying on to do something actually do it. N. On 27/01/17 10:27, David Booth via Microbit wrote: > Hi Nevil, Damien, Mark > > Re Micro Python lock up when Radio and PWM output used on micro:bit. > > Damien found that my firmware was out of date and sent me a fix which > involved merging two hex file. Unfortunately my programming skills were > not up to performing this merger and so David Whale sent me this idiots > guide (me) to producing a microPython editor on my PC screen which > incorporated Damien's fix but enabled me to write any microPython script > as I would in the editor I would have got via microbit.org > . This solution written by Nicholas Tollervey is The Micro:bit Foundation is a global non-profit ... microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > given at the end of this email. This worked. So I recommend you follow > the instructions but remember if you do not update your new editor, over > time it might get out of date again. > > *Question for Damien* > * > * > *For people like me with older micro:bits and poor C skills, will there > come a time when linking into the microPython editor via > www.microbit.org will give them an editor that The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > will by-pass this problem or should the microPython documentation warn > them that if they want to use radio and PWM to use the following procedure?* > * > * > Regarding Ticket 583 https://support.microbit.org/helpdesk/tickets/583 > > > Ok, so I have a simple scheme for how you can fix this, the idea came > from Nicholas Tollervey late last night! > > 1. go to: https://github.com/bbcmicrobit/PythonEditor [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > > 2. press the CLONE OR DOWNLOAD button > > 3. Choose the DOWNLOAD ZIP option > > This will download a complete web based python editor. > > 4. Unzip this on your computer - you should now have a PythonEditor folder > > 5. get Damien's patched .hex file from > here: https://micropython.org/resources/firmware/microbit-micropython.hex > > 6. rename Damien's .hex file as 'firmware.hex' and replace the > firmware.hex that is in the PythonEditor directory that is now on your > computer with this patched version. > > 7. double click on editor.html - this should launch a complete python > editor web page in your browser. > > 8. Paste your code into this editor window, then press the DOWNLOAD > button. This will generate a .hex file that has your script and Damien's > latest MicroPython 'firmware' inside it (which apparently has the PWM > fix inside it that he was talking about) > > 9. Test your code again to see if the PWM lasts for longer, and report > back to us on how this goes? > > Hope this helps! > > > > David Whale > micro:bit support > http://microbit.org/team The Micro:bit Foundation is a global non-profit ... microbit.org We are enabling children around the world to get creative with technology and invent in school, in clubs and at home! The micro:bit is a handheld, fully programmable ... > > > On 26 January 2017 at 18:14, Nevil Hunt > wrote: > > Hi David/Mark/Damien, > > > Are there any updates on this lock-up issue? > > > By the way if you or anyone else on this mailing list is at the BETT > Show tomorrow (Friday) then I will be on the micro:bit stand for at > least part of the day so come over and say 'hello'! > > > Cheers, > > > Nevil > > > > ------------------------------------------------------------------------ > *From:* Microbit > > on behalf of David Booth via > Microbit > > *Sent:* 31 December 2016 23:17 > *To:* For Pythonic MicroBit related discussions > *Cc:* David Booth > *Subject:* Re: [Microbit-Python] Lock-up due to some combination of > radio and pwm. > > Hi Mark > I have been having problems getting github to accept my input. It > keeps asking me to verify my email address which I have done several > times. So I have now re registered and submitted a comment. > However it did not let me send .hex or .py files > > However you should know that in the interim Damien George has my hex > files and has reproduced the problem. I have sent him my .py files > so he can investigate further. > > Happy New Year > David > > On 30 December 2016 at 12:04, Mark Shannon > wrote: > > Hi Nevil and David, > > Could you please submit an issue for this. > https://github.com/bbcmicrobit/micropython/issues/new > > > It is frustrating knowing that there may be a problem, but not > being able to fix it. > All I need is a brief description of what goes wrong and, most > importantly, some code that causes the problem. > > Cheers, > Mark. > > On 23/12/16 18:44, Nevil Hunt wrote: > > Hi David, > > > I've also encountered some similar symptoms this week, namely a > micro:bit locking up such that a reset doesn't bring it back > to life. > Only a power cycle brings it back to life. > > > My set-up has some similarities with yours in that I'm > sending Radio > commands from one micro:bit to another using the suggested > method of > "radio.send(str(x))" with the receiving micro:bit locking up > from time > to time. However I think the lockups might not be due to the > Radio > commands. I too have the receiving micro:bit driving pins > with PWM (in > my case Servos) and with a bit of experimenting it looks > like it might > be these "pin1.write_analog(x_angle)" commands that are > causing the > lock-ups since by commenting out these "write_analog" > commands (but with > all the Radio commands still running) it hasn't locked up in > over an > hour. By comparison, with the "write_analog" commands still > active, ~5 > mins is the longest it runs without locking up. > > > Maybe you could see if commenting out the "write_analog" > commands on > your setup has the same effects. It may not stop other > errors but I'd be > interested to see if it stops the lock-ups. > > > > Cheers, > > > Nevil > > > > > ------------------------------------------------------------------------ > *From:* Microbit > > > on behalf of David Booth via Microbit > > *Sent:* 23 December 2016 15:09 > *To:* For Pythonic MicroBit related discussions > *Cc:* David Booth > *Subject:* Re: [Microbit-Python] List of error codes and > their meanings > > Hi Damien > > I have a related question regarding run time errors in micro > Python. > > I have three micro:bits. The first I call Rx because it > basically > receives x axis acceleration data in string form, via the > radio from the > other two micro:bits Tx1 and Tx2. Rx poles Tx1 then Tx2 > with 100 ms > gaps. Nicholas Tollervey showed me how to avoid the Type > None error when > converting the string to an integer in RX and I now have > three simple > script which enable Rx to drive pins P0 (from Tx1) and P8 > (from Tx2) > with a PWM signal. > > However after running perfectly well for anything from 10 > seconds to a > minute Rx freezes. On the very few occasions an error > message has > scrolled it appears to be saying that "received is not a > string" and > possibly there is a value error. However on 98% of > occasions Rx is > frozen to the extent it cannot report the error. Since > spurious errors > do not worry me, provided Rx continues with the polling > loop, is it > possible to suppress catching run time errors and if it is > possible is > it likely that the While loop would continue? > > Sometimes pressing reset restarts the system but sometimes I > have to > remove the battery. > > Thank you and a Happy Christmas > David Booth > ps will you be at BETT? > > > On 20 December 2016 at 23:31, Damien George > > >> wrote: > > There are many exceptions and they can occur for many > reasons. Almost > all are based on CPython and the exceptions form a > hierarchy. Eg, > indexing a list with an out-of-bounds index will raise > IndexError, > which derives from LookupError, which derives from > Exception, which > derives from BaseException. > > For a list of implemented exceptions in MicroPython see > > https://github.com/bbcmicrobit/micropython/blob/master/source/py/objexcept.c#L192-L280 > > > > > > On 21 December 2016 at 08:35, David Whale > > >> wrote: > > Is there anything in the docs that lists all the errors > (exceptions) that > > can occur in MicroPython and what they mean? > > > > The closest I found was this: > > > > > > https://github.com/bbcmicrobit/micropython/blob/a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h > > > > > > > > > > Thanks > > > > David > > > > microbit.org-ticket: 460 > > > > > > > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > > > https://mail.python.org/mailman/listinfo/microbit > > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > > > https://mail.python.org/mailman/listinfo/microbit > > > > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Tue Feb 14 13:21:57 2017 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Tue, 14 Feb 2017 18:21:57 +0000 Subject: [Microbit-Python] Lock-up due to some combination of radio and pwm. In-Reply-To: References: <2f795150-c0fd-1787-a816-6f6bd398c275@hotpy.org> Message-ID: It's fixed in MicroPython but hasn't made it's way into uflash (and thus Mu). It'll be in the next release of these tools. N. On 14/02/17 18:08, Nevil Hunt wrote: > Hi Nicholas/Damien/David, > > > I notice on GitHub Issue [#392] 'microbit hangs when using radio and > PWM' is now closed. > > > I've just tried with mu-0.9.13 but still get the same lock-up. > > Is it that the issue [#392] fix hasn't found its way into Mu yet (in > which case I'll check it again when the next version of Mu is released) > or is the bug still there? > > > > Cheers, > > > Nevil > > > > > ------------------------------------------------------------------------ > *From:* Nicholas H.Tollervey > *Sent:* 27 January 2017 11:04 > *To:* For Pythonic MicroBit related discussions; Nevil Hunt > *Cc:* David Booth > *Subject:* Re: [Microbit-Python] Lock-up due to some combination of > radio and pwm. > > Hi, > > I'm hope to have a release of the editors with an updated runtime come > out relatively soon. Unfortunately, it's a case of lining things up and > making sure everything is ready / tested and those people I'm relying on > to do something actually do it. > > N. > > On 27/01/17 10:27, David Booth via Microbit wrote: >> Hi Nevil, Damien, Mark >> >> Re Micro Python lock up when Radio and PWM output used on micro:bit. >> >> Damien found that my firmware was out of date and sent me a fix which >> involved merging two hex file. Unfortunately my programming skills were >> not up to performing this merger and so David Whale sent me this idiots >> guide (me) to producing a microPython editor on my PC screen which >> incorporated Damien's fix but enabled me to write any microPython script >> as I would in the editor I would have got via microbit.org >> . This solution written by Nicholas Tollervey is > > The Micro:bit Foundation is a global non-profit ... > microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the > Daleks and regain control of the TARDIS > > > >> given at the end of this email. This worked. So I recommend you follow >> the instructions but remember if you do not update your new editor, over >> time it might get out of date again. >> >> *Question for Damien* >> * >> * >> *For people like me with older micro:bits and poor C skills, will there >> come a time when linking into the microPython editor via >> www.microbit.org > will give them an editor that > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the > Daleks and regain control of the TARDIS > > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the > Daleks and regain control of the TARDIS > > > >> will by-pass this problem or should the microPython documentation warn >> them that if they want to use radio and PWM to use the following procedure?* >> * >> * >> Regarding Ticket 583 https://support.microbit.org/helpdesk/tickets/583 >> >> >> Ok, so I have a simple scheme for how you can fix this, the idea came >> from Nicholas Tollervey late last night! >> >> 1. go to: https://github.com/bbcmicrobit/PythonEditor > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works > with browsers. > > > >> > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works > with browsers. > > > >> >> 2. press the CLONE OR DOWNLOAD button >> >> 3. Choose the DOWNLOAD ZIP option >> >> This will download a complete web based python editor. >> >> 4. Unzip this on your computer - you should now have a PythonEditor folder >> >> 5. get Damien's patched .hex file from >> here: https://micropython.org/resources/firmware/microbit-micropython.hex > >> >> 6. rename Damien's .hex file as 'firmware.hex' and replace the >> firmware.hex that is in the PythonEditor directory that is now on your >> computer with this patched version. >> >> 7. double click on editor.html - this should launch a complete python >> editor web page in your browser. >> >> 8. Paste your code into this editor window, then press the DOWNLOAD >> button. This will generate a .hex file that has your script and Damien's >> latest MicroPython 'firmware' inside it (which apparently has the PWM >> fix inside it that he was talking about) >> >> 9. Test your code again to see if the PWM lasts for longer, and report >> back to us on how this goes? >> >> Hope this helps! >> >> >> >> David Whale >> micro:bit support >> http://microbit.org/team > > The Micro:bit Foundation is a global non-profit ... > > microbit.org > We are enabling children around the world to get creative with > technology and invent in school, in clubs and at home! The micro:bit is > a handheld, fully programmable ... > > > >> >> >> On 26 January 2017 at 18:14, Nevil Hunt > > wrote: >> >> Hi David/Mark/Damien, >> >> >> Are there any updates on this lock-up issue? >> >> >> By the way if you or anyone else on this mailing list is at the BETT >> Show tomorrow (Friday) then I will be on the micro:bit stand for at >> least part of the day so come over and say 'hello'! >> >> >> Cheers, >> >> >> Nevil >> >> >> >> ------------------------------------------------------------------------ >> *From:* Microbit >> > > on behalf of David Booth via >> Microbit > >> *Sent:* 31 December 2016 23:17 >> *To:* For Pythonic MicroBit related discussions >> *Cc:* David Booth >> *Subject:* Re: [Microbit-Python] Lock-up due to some combination of >> radio and pwm. >> >> Hi Mark >> I have been having problems getting github to accept my input. It >> keeps asking me to verify my email address which I have done several >> times. So I have now re registered and submitted a comment. >> However it did not let me send .hex or .py files >> >> However you should know that in the interim Damien George has my hex >> files and has reproduced the problem. I have sent him my .py files >> so he can investigate further. >> >> Happy New Year >> David >> >> On 30 December 2016 at 12:04, Mark Shannon > > wrote: >> >> Hi Nevil and David, >> >> Could you please submit an issue for this. >> https://github.com/bbcmicrobit/micropython/issues/new >> >> >> It is frustrating knowing that there may be a problem, but not >> being able to fix it. >> All I need is a brief description of what goes wrong and, most >> importantly, some code that causes the problem. >> >> Cheers, >> Mark. >> >> On 23/12/16 18:44, Nevil Hunt wrote: >> >> Hi David, >> >> >> I've also encountered some similar symptoms this week, namely a >> micro:bit locking up such that a reset doesn't bring it back >> to life. >> Only a power cycle brings it back to life. >> >> >> My set-up has some similarities with yours in that I'm >> sending Radio >> commands from one micro:bit to another using the suggested >> method of >> "radio.send(str(x))" with the receiving micro:bit locking up >> from time >> to time. However I think the lockups might not be due to the >> Radio >> commands. I too have the receiving micro:bit driving pins >> with PWM (in >> my case Servos) and with a bit of experimenting it looks >> like it might >> be these "pin1.write_analog(x_angle)" commands that are >> causing the >> lock-ups since by commenting out these "write_analog" >> commands (but with >> all the Radio commands still running) it hasn't locked up in >> over an >> hour. By comparison, with the "write_analog" commands still >> active, ~5 >> mins is the longest it runs without locking up. >> >> >> Maybe you could see if commenting out the "write_analog" >> commands on >> your setup has the same effects. It may not stop other >> errors but I'd be >> interested to see if it stops the lock-ups. >> >> >> >> Cheers, >> >> >> Nevil >> >> >> >> >> ------------------------------------------------------------------------ >> *From:* Microbit >> > > >> on behalf of David Booth via Microbit > > >> *Sent:* 23 December 2016 15:09 >> *To:* For Pythonic MicroBit related discussions >> *Cc:* David Booth >> *Subject:* Re: [Microbit-Python] List of error codes and >> their meanings >> >> Hi Damien >> >> I have a related question regarding run time errors in micro >> Python. >> >> I have three micro:bits. The first I call Rx because it >> basically >> receives x axis acceleration data in string form, via the >> radio from the >> other two micro:bits Tx1 and Tx2. Rx poles Tx1 then Tx2 >> with 100 ms >> gaps. Nicholas Tollervey showed me how to avoid the Type >> None error when >> converting the string to an integer in RX and I now have >> three simple >> script which enable Rx to drive pins P0 (from Tx1) and P8 >> (from Tx2) >> with a PWM signal. >> >> However after running perfectly well for anything from 10 >> seconds to a >> minute Rx freezes. On the very few occasions an error >> message has >> scrolled it appears to be saying that "received is not a >> string" and >> possibly there is a value error. However on 98% of >> occasions Rx is >> frozen to the extent it cannot report the error. Since >> spurious errors >> do not worry me, provided Rx continues with the polling >> loop, is it >> possible to suppress catching run time errors and if it is >> possible is >> it likely that the While loop would continue? >> >> Sometimes pressing reset restarts the system but sometimes I >> have to >> remove the battery. >> >> Thank you and a Happy Christmas >> David Booth >> ps will you be at BETT? >> >> >> On 20 December 2016 at 23:31, Damien George >> >> > >> wrote: >> >> There are many exceptions and they can occur for many >> reasons. Almost >> all are based on CPython and the exceptions form a >> hierarchy. Eg, >> indexing a list with an out-of-bounds index will raise >> IndexError, >> which derives from LookupError, which derives from >> Exception, which >> derives from BaseException. >> >> For a list of implemented exceptions in MicroPython see >> >> https://github.com/bbcmicrobit/micropython/blob/master/source/py/objexcept.c#L192-L280 >> >> >> > > >> >> On 21 December 2016 at 08:35, David Whale >> > >> > >> wrote: >> > Is there anything in the docs that lists all the errors >> (exceptions) that >> > can occur in MicroPython and what they mean? >> > >> > The closest I found was this: >> > >> > >> >> https://github.com/bbcmicrobit/micropython/blob/a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h >> >> >> > > >> > >> > >> > Thanks >> > >> > David >> > >> > microbit.org-ticket: 460 >> > >> > >> > >> > _______________________________________________ >> > Microbit mailing list >> > Microbit at python.org >> > >> > https://mail.python.org/mailman/listinfo/microbit >> >> > > >> > >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> > >> https://mail.python.org/mailman/listinfo/microbit >> >> > > >> >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> >> >> >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From loopspace at mathforge.org Tue Feb 14 13:29:58 2017 From: loopspace at mathforge.org (Andrew Stacey) Date: Tue, 14 Feb 2017 18:29:58 +0000 Subject: [Microbit-Python] Which pins can cope with a 35 micro second pwm? Message-ID: I'm not quite clear from the docs which pins can cope with the minimum pwm speed. I just tried with pin1 and couldn't set it below 1000 microseconds, but I notice from the relevant doc page (https://microbit-micropython.readthedocs.io/en/latest/pin.html) that only some pins are listed as "analog" (3,4,10). Is it only those that can go down to 35? Thanks, Andrew From nevil.hunt at hotmail.co.uk Tue Feb 14 15:09:14 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Tue, 14 Feb 2017 20:09:14 +0000 Subject: [Microbit-Python] Lock-up due to some combination of radio and pwm. In-Reply-To: References: <2f795150-c0fd-1787-a816-6f6bd398c275@hotpy.org> , Message-ID: Thanks Nicholas. Note that on the 27th Jan I tried the 'DavidW' method to merge hex files to include the bug fix in advance of it being included in Mu but I found it was still locking up. (FYII am doing radio + pwm + speech) Anyway, when the new version of Mu is out I'll give it another go. Could you drop an email to this forum so I don't miss it? Cheers, Nevil ________________________________ From: Nicholas H.Tollervey Sent: 14 February 2017 18:21 To: Nevil Hunt; For Pythonic MicroBit related discussions Cc: David Booth Subject: Re: [Microbit-Python] Lock-up due to some combination of radio and pwm. It's fixed in MicroPython but hasn't made it's way into uflash (and thus Mu). It'll be in the next release of these tools. N. On 14/02/17 18:08, Nevil Hunt wrote: > Hi Nicholas/Damien/David, > > > I notice on GitHub Issue [#392] 'microbit hangs when using radio and > PWM' is now closed. > > > I've just tried with mu-0.9.13 but still get the same lock-up. > > Is it that the issue [#392] fix hasn't found its way into Mu yet (in > which case I'll check it again when the next version of Mu is released) > or is the bug still there? > > > > Cheers, > > > Nevil > > > > > ------------------------------------------------------------------------ > *From:* Nicholas H.Tollervey > *Sent:* 27 January 2017 11:04 > *To:* For Pythonic MicroBit related discussions; Nevil Hunt > *Cc:* David Booth > *Subject:* Re: [Microbit-Python] Lock-up due to some combination of > radio and pwm. > > Hi, > > I'm hope to have a release of the editors with an updated runtime come > out relatively soon. Unfortunately, it's a case of lining things up and > making sure everything is ready / tested and those people I'm relying on > to do something actually do it. > > N. > > On 27/01/17 10:27, David Booth via Microbit wrote: >> Hi Nevil, Damien, Mark >> >> Re Micro Python lock up when Radio and PWM output used on micro:bit. >> >> Damien found that my firmware was out of date and sent me a fix which >> involved merging two hex file. Unfortunately my programming skills were >> not up to performing this merger and so David Whale sent me this idiots >> guide (me) to producing a microPython editor on my PC screen which >> incorporated Damien's fix but enabled me to write any microPython script >> as I would in the editor I would have got via microbit.org >> . This solution written by Nicholas Tollervey is The Micro:bit Foundation is a global non-profit ... microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > > The Micro:bit Foundation is a global non-profit ... The Micro:bit Foundation is a global non-profit ... microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the > Daleks and regain control of the TARDIS > > > >> given at the end of this email. This worked. So I recommend you follow >> the instructions but remember if you do not update your new editor, over >> time it might get out of date again. >> >> *Question for Damien* >> * >> * >> *For people like me with older micro:bits and poor C skills, will there >> come a time when linking into the microPython editor via >> www.microbit.org The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > will give them an editor that > > The Micro:bit Foundation is a global non-profit ... > The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > www.microbit.org The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > You will need your BBC micro:bit to help avert disaster, defeat the > Daleks and regain control of the TARDIS > > > The Micro:bit Foundation is a global non-profit ... > The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > www.microbit.org The Micro:bit Foundation is a global non-profit ... www.microbit.org You will need your BBC micro:bit to help avert disaster, defeat the Daleks and regain control of the TARDIS > You will need your BBC micro:bit to help avert disaster, defeat the > Daleks and regain control of the TARDIS > > > >> will by-pass this problem or should the microPython documentation warn >> them that if they want to use radio and PWM to use the following procedure?* >> * >> * >> Regarding Ticket 583 https://support.microbit.org/helpdesk/tickets/583 >> >> >> Ok, so I have a simple scheme for how you can fix this, the idea came >> from Nicholas Tollervey late last night! >> >> 1. go to: https://github.com/bbcmicrobit/PythonEditor [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > > [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works > with browsers. > > > >> [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > > [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > [https://avatars3.githubusercontent.com/u/15104236?v=3&s=400] GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... github.com PythonEditor - A MicroPython editor for the BBC micro:bit that works with browsers. > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works > with browsers. > > > >> >> 2. press the CLONE OR DOWNLOAD button >> >> 3. Choose the DOWNLOAD ZIP option >> >> This will download a complete web based python editor. >> >> 4. Unzip this on your computer - you should now have a PythonEditor folder >> >> 5. get Damien's patched .hex file from >> here: https://micropython.org/resources/firmware/microbit-micropython.hex > >> >> 6. rename Damien's .hex file as 'firmware.hex' and replace the >> firmware.hex that is in the PythonEditor directory that is now on your >> computer with this patched version. >> >> 7. double click on editor.html - this should launch a complete python >> editor web page in your browser. >> >> 8. Paste your code into this editor window, then press the DOWNLOAD >> button. This will generate a .hex file that has your script and Damien's >> latest MicroPython 'firmware' inside it (which apparently has the PWM >> fix inside it that he was talking about) >> >> 9. Test your code again to see if the PWM lasts for longer, and report >> back to us on how this goes? >> >> Hope this helps! >> >> >> >> David Whale >> micro:bit support >> http://microbit.org/team The Micro:bit Foundation is a global non-profit ... microbit.org We are enabling children around the world to get creative with technology and invent in school, in clubs and at home! The micro:bit is a handheld, fully programmable ... > > The Micro:bit Foundation is a global non-profit ... > > microbit.org > We are enabling children around the world to get creative with > technology and invent in school, in clubs and at home! The micro:bit is > a handheld, fully programmable ... > > > >> >> >> On 26 January 2017 at 18:14, Nevil Hunt > > wrote: >> >> Hi David/Mark/Damien, >> >> >> Are there any updates on this lock-up issue? >> >> >> By the way if you or anyone else on this mailing list is at the BETT >> Show tomorrow (Friday) then I will be on the micro:bit stand for at >> least part of the day so come over and say 'hello'! >> >> >> Cheers, >> >> >> Nevil >> >> >> >> ------------------------------------------------------------------------ >> *From:* Microbit >> > > on behalf of David Booth via >> Microbit > >> *Sent:* 31 December 2016 23:17 >> *To:* For Pythonic MicroBit related discussions >> *Cc:* David Booth >> *Subject:* Re: [Microbit-Python] Lock-up due to some combination of >> radio and pwm. >> >> Hi Mark >> I have been having problems getting github to accept my input. It >> keeps asking me to verify my email address which I have done several >> times. So I have now re registered and submitted a comment. >> However it did not let me send .hex or .py files >> >> However you should know that in the interim Damien George has my hex >> files and has reproduced the problem. I have sent him my .py files >> so he can investigate further. >> >> Happy New Year >> David >> >> On 30 December 2016 at 12:04, Mark Shannon > > wrote: >> >> Hi Nevil and David, >> >> Could you please submit an issue for this. >> https://github.com/bbcmicrobit/micropython/issues/new >> >> >> It is frustrating knowing that there may be a problem, but not >> being able to fix it. >> All I need is a brief description of what goes wrong and, most >> importantly, some code that causes the problem. >> >> Cheers, >> Mark. >> >> On 23/12/16 18:44, Nevil Hunt wrote: >> >> Hi David, >> >> >> I've also encountered some similar symptoms this week, namely a >> micro:bit locking up such that a reset doesn't bring it back >> to life. >> Only a power cycle brings it back to life. >> >> >> My set-up has some similarities with yours in that I'm >> sending Radio >> commands from one micro:bit to another using the suggested >> method of >> "radio.send(str(x))" with the receiving micro:bit locking up >> from time >> to time. However I think the lockups might not be due to the >> Radio >> commands. I too have the receiving micro:bit driving pins >> with PWM (in >> my case Servos) and with a bit of experimenting it looks >> like it might >> be these "pin1.write_analog(x_angle)" commands that are >> causing the >> lock-ups since by commenting out these "write_analog" >> commands (but with >> all the Radio commands still running) it hasn't locked up in >> over an >> hour. By comparison, with the "write_analog" commands still >> active, ~5 >> mins is the longest it runs without locking up. >> >> >> Maybe you could see if commenting out the "write_analog" >> commands on >> your setup has the same effects. It may not stop other >> errors but I'd be >> interested to see if it stops the lock-ups. >> >> >> >> Cheers, >> >> >> Nevil >> >> >> >> >> ------------------------------------------------------------------------ >> *From:* Microbit >> > > >> on behalf of David Booth via Microbit > > >> *Sent:* 23 December 2016 15:09 >> *To:* For Pythonic MicroBit related discussions >> *Cc:* David Booth >> *Subject:* Re: [Microbit-Python] List of error codes and >> their meanings >> >> Hi Damien >> >> I have a related question regarding run time errors in micro >> Python. >> >> I have three micro:bits. The first I call Rx because it >> basically >> receives x axis acceleration data in string form, via the >> radio from the >> other two micro:bits Tx1 and Tx2. Rx poles Tx1 then Tx2 >> with 100 ms >> gaps. Nicholas Tollervey showed me how to avoid the Type >> None error when >> converting the string to an integer in RX and I now have >> three simple >> script which enable Rx to drive pins P0 (from Tx1) and P8 >> (from Tx2) >> with a PWM signal. >> >> However after running perfectly well for anything from 10 >> seconds to a >> minute Rx freezes. On the very few occasions an error >> message has >> scrolled it appears to be saying that "received is not a >> string" and >> possibly there is a value error. However on 98% of >> occasions Rx is >> frozen to the extent it cannot report the error. Since >> spurious errors >> do not worry me, provided Rx continues with the polling >> loop, is it >> possible to suppress catching run time errors and if it is >> possible is >> it likely that the While loop would continue? >> >> Sometimes pressing reset restarts the system but sometimes I >> have to >> remove the battery. >> >> Thank you and a Happy Christmas >> David Booth >> ps will you be at BETT? >> >> >> On 20 December 2016 at 23:31, Damien George >> >> > >> wrote: >> >> There are many exceptions and they can occur for many >> reasons. Almost >> all are based on CPython and the exceptions form a >> hierarchy. Eg, >> indexing a list with an out-of-bounds index will raise >> IndexError, >> which derives from LookupError, which derives from >> Exception, which >> derives from BaseException. >> >> For a list of implemented exceptions in MicroPython see >> >> https://github.com/bbcmicrobit/micropython/blob/master/source/py/objexcept.c#L192-L280 >> >> >> > > >> >> On 21 December 2016 at 08:35, David Whale >> > >> > >> wrote: >> > Is there anything in the docs that lists all the errors >> (exceptions) that >> > can occur in MicroPython and what they mean? >> > >> > The closest I found was this: >> > >> > >> >> https://github.com/bbcmicrobit/micropython/blob/a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h >> >> >> > > >> > >> > >> > Thanks >> > >> > David >> > >> > microbit.org-ticket: 460 >> > >> > >> > >> > _______________________________________________ >> > Microbit mailing list >> > Microbit at python.org >> > >> > https://mail.python.org/mailman/listinfo/microbit >> >> > > >> > >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> > >> https://mail.python.org/mailman/listinfo/microbit >> >> > > >> >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> >> >> >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at hotpy.org Tue Feb 14 15:36:18 2017 From: mark at hotpy.org (Mark Shannon) Date: Tue, 14 Feb 2017 20:36:18 +0000 Subject: [Microbit-Python] Which pins can cope with a 35 micro second pwm? In-Reply-To: References: Message-ID: Hi Andrew, For PWM there is only one period. All the pins use the same period, but their duty cycles can differ. This is a hardware limit (there aren't enough clocks to do otherwise). You can use any of the pins with PWM. The minimum PWM period is 256?s. It is longer than the DAL variant, as we use the internal clock for the audio module (needed for speech). I can't remember why exactly why 256? I suspect that it is short enough for music and long enough to be reliable. How low a period do you need? 256?s isn't very long. Cheers, Mark. On 14/02/17 18:29, Andrew Stacey wrote: > I'm not quite clear from the docs which pins can cope with the minimum > pwm speed. I just tried with pin1 and couldn't set it below 1000 > microseconds, but I notice from the relevant doc page > (https://microbit-micropython.readthedocs.io/en/latest/pin.html) that > only some pins are listed as "analog" (3,4,10). Is it only those that > can go down to 35? > > Thanks, > Andrew > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit From david at thinkingbinaries.com Tue Feb 14 18:40:13 2017 From: david at thinkingbinaries.com (David Whale) Date: Tue, 14 Feb 2017 23:40:13 +0000 Subject: [Microbit-Python] Lock-up due to some combination of radio and pwm. In-Reply-To: References: <2f795150-c0fd-1787-a816-6f6bd398c275@hotpy.org> Message-ID: Just for completeness, this was the 'NicholasT' method of changing the .hex inside the editor. Just like Teleporting Ducks was Nicholas's idea. I just relayed the message. It was a brilliant piece of thinking by Nicholas and I'd hate him not to be properly credited for the pure stroke of genius with this simple but effective idea. David. ___________________________________________________________ David Whale, B.Sc (Hons), MIET *Software Engineer and IET Schools Liaison Officer, Essex* On 14 February 2017 at 20:09, Nevil Hunt wrote: > Thanks Nicholas. > > > Note that on the 27th Jan I tried the 'DavidW' method to merge hex files > to include the bug fix in advance of it being included in Mu but I found it > was still locking up. (FYII am doing radio + pwm + speech) > > Anyway, when the new version of Mu is out I'll give it another go. > > > Could you drop an email to this forum so I don't miss it? > > > Cheers, > > > Nevil > > > ------------------------------ > *From:* Nicholas H.Tollervey > *Sent:* 14 February 2017 18:21 > *To:* Nevil Hunt; For Pythonic MicroBit related discussions > *Cc:* David Booth > *Subject:* Re: [Microbit-Python] Lock-up due to some combination of radio > and pwm. > > It's fixed in MicroPython but hasn't made it's way into uflash (and thus > Mu). It'll be in the next release of these tools. > > N. > > On 14/02/17 18:08, Nevil Hunt wrote: > > Hi Nicholas/Damien/David, > > > > > > I notice on GitHub Issue [#392] 'microbit hangs when using radio and > > PWM' is now closed. > > > > > > I've just tried with mu-0.9.13 but still get the same lock-up. > > > > Is it that the issue [#392] fix hasn't found its way into Mu yet (in > > which case I'll check it again when the next version of Mu is released) > > or is the bug still there? > > > > > > > > Cheers, > > > > > > Nevil > > > > > > > > > > ------------------------------------------------------------------------ > > *From:* Nicholas H.Tollervey > > *Sent:* 27 January 2017 11:04 > > *To:* For Pythonic MicroBit related discussions; Nevil Hunt > > *Cc:* David Booth > > *Subject:* Re: [Microbit-Python] Lock-up due to some combination of > > radio and pwm. > > > > Hi, > > > > I'm hope to have a release of the editors with an updated runtime come > > out relatively soon. Unfortunately, it's a case of lining things up and > > making sure everything is ready / tested and those people I'm relying on > > to do something actually do it. > > > > N. > > > > On 27/01/17 10:27, David Booth via Microbit wrote: > >> Hi Nevil, Damien, Mark > >> > >> Re Micro Python lock up when Radio and PWM output used on micro:bit. > >> > >> Damien found that my firmware was out of date and sent me a fix which > >> involved merging two hex file. Unfortunately my programming skills were > >> not up to performing this merger and so David Whale sent me this idiots > >> guide (me) to producing a microPython editor on my PC screen which > >> incorporated Damien's fix but enabled me to write any microPython script > >> as I would in the editor I would have got via microbit.org > >> . This solution written by Nicholas Tollervey is > > The Micro:bit Foundation is a global non-profit ... > microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > > > The Micro:bit Foundation is a global non-profit ... < > http://microbit.org/> > > The Micro:bit Foundation is a global non-profit ... > microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > microbit.org > > You will need your BBC micro:bit to help avert disaster, defeat the > > Daleks and regain control of the TARDIS > > > > > > > >> given at the end of this email. This worked. So I recommend you follow > >> the instructions but remember if you do not update your new editor, over > >> time it might get out of date again. > >> > >> *Question for Damien* > >> * > >> * > >> *For people like me with older micro:bits and poor C skills, will there > >> come a time when linking into the microPython editor via > >> www.microbit.org > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > will give them an editor that > > > > The Micro:bit Foundation is a global non-profit ... > > > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > www.microbit.org > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > You will need your BBC micro:bit to help avert disaster, defeat the > > Daleks and regain control of the TARDIS > > > > > > The Micro:bit Foundation is a global non-profit ... > > > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > www.microbit.org > > The Micro:bit Foundation is a global non-profit ... > > www.microbit.org > You will need your BBC micro:bit to help avert disaster, defeat the Daleks > and regain control of the TARDIS > > > > > You will need your BBC micro:bit to help avert disaster, defeat the > > Daleks and regain control of the TARDIS > > > > > > > >> will by-pass this problem or should the microPython documentation warn > >> them that if they want to use radio and PWM to use the following > procedure?* > >> * > >> * > >> Regarding Ticket 583 https://support.microbit.org/helpdesk/tickets/583 > >> > >> > >> Ok, so I have a simple scheme for how you can fix this, the idea came > >> from Nicholas Tollervey late last night! > >> > >> 1. go to: https://github.com/bbcmicrobit/PythonEditor > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works with > browsers. > > > > > > > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works with > browsers. > > > > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works with > browsers. > > > > > github.com > > PythonEditor - A MicroPython editor for the BBC micro:bit that works > > with browsers. > > > > > > > >> > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works with > browsers. > > > > > > > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works with > browsers. > > > > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > > > > GitHub - bbcmicrobit/PythonEditor: A MicroPython editor ... > > github.com > PythonEditor - A MicroPython editor for the BBC micro:bit that works with > browsers. > > > > > github.com > > PythonEditor - A MicroPython editor for the BBC micro:bit that works > > with browsers. > > > > > > > >> > >> 2. press the CLONE OR DOWNLOAD button > >> > >> 3. Choose the DOWNLOAD ZIP option > >> > >> This will download a complete web based python editor. > >> > >> 4. Unzip this on your computer - you should now have a PythonEditor > folder > >> > >> 5. get Damien's patched .hex file from > >> here: https://micropython.org/resources/firmware/microbit- > micropython.hex > > > >> > >> 6. rename Damien's .hex file as 'firmware.hex' and replace the > >> firmware.hex that is in the PythonEditor directory that is now on your > >> computer with this patched version. > >> > >> 7. double click on editor.html - this should launch a complete python > >> editor web page in your browser. > >> > >> 8. Paste your code into this editor window, then press the DOWNLOAD > >> button. This will generate a .hex file that has your script and Damien's > >> latest MicroPython 'firmware' inside it (which apparently has the PWM > >> fix inside it that he was talking about) > >> > >> 9. Test your code again to see if the PWM lasts for longer, and report > >> back to us on how this goes? > >> > >> Hope this helps! > >> > >> > >> > >> David Whale > >> micro:bit support > >> http://microbit.org/team > > The Micro:bit Foundation is a global non-profit ... > > microbit.org > We are enabling children around the world to get creative with technology > and invent in school, in clubs and at home! The micro:bit is a handheld, > fully programmable ... > > > > > > > The Micro:bit Foundation is a global non-profit ... > > > > microbit.org > > We are enabling children around the world to get creative with > > technology and invent in school, in clubs and at home! The micro:bit is > > a handheld, fully programmable ... > > > > > > > >> > >> > >> On 26 January 2017 at 18:14, Nevil Hunt >> >> wrote: > >> > >> Hi David/Mark/Damien, > >> > >> > >> Are there any updates on this lock-up issue? > >> > >> > >> By the way if you or anyone else on this mailing list is at the BETT > >> Show tomorrow (Friday) then I will be on the micro:bit stand for at > >> least part of the day so come over and say 'hello'! > >> > >> > >> Cheers, > >> > >> > >> Nevil > >> > >> > >> > >> ------------------------------------------------------------ > ------------ > >> *From:* Microbit > >> >> >> on > behalf of David Booth via > >> Microbit >> > >> *Sent:* 31 December 2016 23:17 > >> *To:* For Pythonic MicroBit related discussions > >> *Cc:* David Booth > >> *Subject:* Re: [Microbit-Python] Lock-up due to some combination of > >> radio and pwm. > >> > >> Hi Mark > >> I have been having problems getting github to accept my input. It > >> keeps asking me to verify my email address which I have done several > >> times. So I have now re registered and submitted a comment. > >> However it did not let me send .hex or .py files > >> > >> However you should know that in the interim Damien George has my hex > >> files and has reproduced the problem. I have sent him my .py files > >> so he can investigate further. > >> > >> Happy New Year > >> David > >> > >> On 30 December 2016 at 12:04, Mark Shannon >> >> wrote: > >> > >> Hi Nevil and David, > >> > >> Could you please submit an issue for this. > >> https://github.com/bbcmicrobit/micropython/issues/new > >> > >> > >> It is frustrating knowing that there may be a problem, but not > >> being able to fix it. > >> All I need is a brief description of what goes wrong and, most > >> importantly, some code that causes the problem. > >> > >> Cheers, > >> Mark. > >> > >> On 23/12/16 18:44, Nevil Hunt wrote: > >> > >> Hi David, > >> > >> > >> I've also encountered some similar symptoms this week, > namely a > >> micro:bit locking up such that a reset doesn't bring it back > >> to life. > >> Only a power cycle brings it back to life. > >> > >> > >> My set-up has some similarities with yours in that I'm > >> sending Radio > >> commands from one micro:bit to another using the suggested > >> method of > >> "radio.send(str(x))" with the receiving micro:bit locking up > >> from time > >> to time. However I think the lockups might not be due to the > >> Radio > >> commands. I too have the receiving micro:bit driving pins > >> with PWM (in > >> my case Servos) and with a bit of experimenting it looks > >> like it might > >> be these "pin1.write_analog(x_angle)" commands that are > >> causing the > >> lock-ups since by commenting out these "write_analog" > >> commands (but with > >> all the Radio commands still running) it hasn't locked up in > >> over an > >> hour. By comparison, with the "write_analog" commands still > >> active, ~5 > >> mins is the longest it runs without locking up. > >> > >> > >> Maybe you could see if commenting out the "write_analog" > >> commands on > >> your setup has the same effects. It may not stop other > >> errors but I'd be > >> interested to see if it stops the lock-ups. > >> > >> > >> > >> Cheers, > >> > >> > >> Nevil > >> > >> > >> > >> > >> ------------------------------ > ------------------------------------------ > >> *From:* Microbit > >> >> > >> > >> on behalf of David Booth via Microbit >> >> > >> *Sent:* 23 December 2016 15:09 > >> *To:* For Pythonic MicroBit related discussions > >> *Cc:* David Booth > >> *Subject:* Re: [Microbit-Python] List of error codes and > >> their meanings > >> > >> Hi Damien > >> > >> I have a related question regarding run time errors in micro > >> Python. > >> > >> I have three micro:bits. The first I call Rx because it > >> basically > >> receives x axis acceleration data in string form, via the > >> radio from the > >> other two micro:bits Tx1 and Tx2. Rx poles Tx1 then Tx2 > >> with 100 ms > >> gaps. Nicholas Tollervey showed me how to avoid the Type > >> None error when > >> converting the string to an integer in RX and I now have > >> three simple > >> script which enable Rx to drive pins P0 (from Tx1) and P8 > >> (from Tx2) > >> with a PWM signal. > >> > >> However after running perfectly well for anything from 10 > >> seconds to a > >> minute Rx freezes. On the very few occasions an error > >> message has > >> scrolled it appears to be saying that "received is not a > >> string" and > >> possibly there is a value error. However on 98% of > >> occasions Rx is > >> frozen to the extent it cannot report the error. Since > >> spurious errors > >> do not worry me, provided Rx continues with the polling > >> loop, is it > >> possible to suppress catching run time errors and if it is > >> possible is > >> it likely that the While loop would continue? > >> > >> Sometimes pressing reset restarts the system but sometimes I > >> have to > >> remove the battery. > >> > >> Thank you and a Happy Christmas > >> David Booth > >> ps will you be at BETT? > >> > >> > >> On 20 December 2016 at 23:31, Damien George > >> com > > >> >> >>> wrote: > >> > >> There are many exceptions and they can occur for many > >> reasons. Almost > >> all are based on CPython and the exceptions form a > >> hierarchy. Eg, > >> indexing a list with an out-of-bounds index will raise > >> IndexError, > >> which derives from LookupError, which derives from > >> Exception, which > >> derives from BaseException. > >> > >> For a list of implemented exceptions in MicroPython see > >> > >> https://github.com/bbcmicrobit/micropython/blob/ > master/source/py/objexcept.c#L192-L280 > >> master/source/py/objexcept.c#L192-L280> > >> > >> master/source/py/objexcept.c#L192-L280 > >> master/source/py/objexcept.c#L192-L280>> > >> > >> On 21 December 2016 at 08:35, David Whale > >> >> > > >> >> >>> wrote: > >> > Is there anything in the docs that lists all the > errors > >> (exceptions) that > >> > can occur in MicroPython and what they mean? > >> > > >> > The closest I found was this: > >> > > >> > > >> > >> https://github.com/bbcmicrobit/micropython/blob/ > a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h > >> a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h> > >> > >> a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h > >> a20fbe82c919cea9519ce5a1140103f518b51caa/inc/py/qstrdefs.h>> > >> > > >> > > >> > Thanks > >> > > >> > David > >> > > >> > microbit.org-ticket: 460 > >> > > >> > > >> > > >> > _______________________________________________ > >> > Microbit mailing list > >> > Microbit at python.org > > >> >> > >> > https://mail.python.org/mailman/listinfo/microbit > >> > >> >> > > >> > > >> _______________________________________________ > >> Microbit mailing list > >> Microbit at python.org > > >> >> > >> https://mail.python.org/mailman/listinfo/microbit > >> > >> >> > > >> > >> > >> > >> > >> _______________________________________________ > >> Microbit mailing list > >> Microbit at python.org > > >> https://mail.python.org/mailman/listinfo/microbit > >> > >> > >> _______________________________________________ > >> Microbit mailing list > >> Microbit at python.org > > >> https://mail.python.org/mailman/listinfo/microbit > >> > >> > >> > >> > >> > >> > >> _______________________________________________ > >> Microbit mailing list > >> Microbit at python.org > >> https://mail.python.org/mailman/listinfo/microbit > >> > > > > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From loopspace at mathforge.org Tue Feb 14 16:11:41 2017 From: loopspace at mathforge.org (Andrew Stacey) Date: Tue, 14 Feb 2017 21:11:41 +0000 Subject: [Microbit-Python] Which pins can cope with a 35 micro second pwm? In-Reply-To: References: Message-ID: <2618744b-1656-61d9-fb00-d175a54e0b74@mathforge.org> Thanks. I've hooked up a microbit to a Lego Mindstorms RCX2.0 block via one of the sensor ports. The RCX brick reads the voltage across the port. It can read between 0V and 5V, split into 1024 segments. By switching the voltage on a pin, I can switch between two values. I had hoped that by using PWM, I could get values in between, but for that to work then the switching period on the microbit would have to be faster than the sampling period of the RCX, and that is about 3ms. (I'm not convinced that this would work anyway, and throwing a low pass filter into the circuit might be the proper answer, but in trying it I came across the fact that pin1.set_analog_period_microseconds() wouldn't take a value lower than 1000 so thought I'd ask about it.) Andrew On 14/02/2017 20:36, Mark Shannon wrote: > Hi Andrew, > > For PWM there is only one period. All the pins use the same period, but > their duty cycles can differ. This is a hardware limit (there aren't > enough clocks to do otherwise). You can use any of the pins with PWM. > > The minimum PWM period is 256?s. It is longer than the DAL variant, as > we use the internal clock for the audio module (needed for speech). > I can't remember why exactly why 256? I suspect that it is short enough > for music and long enough to be reliable. > How low a period do you need? 256?s isn't very long. > > Cheers, > Mark. > > On 14/02/17 18:29, Andrew Stacey wrote: >> I'm not quite clear from the docs which pins can cope with the minimum >> pwm speed. I just tried with pin1 and couldn't set it below 1000 >> microseconds, but I notice from the relevant doc page >> (https://microbit-micropython.readthedocs.io/en/latest/pin.html) that >> only some pins are listed as "analog" (3,4,10). Is it only those that >> can go down to 35? >> >> Thanks, >> Andrew >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit From nevil.hunt at hotmail.co.uk Fri Feb 17 18:10:04 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Fri, 17 Feb 2017 23:10:04 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: Hi Andrew, Yes, it was a fascinating talk. And the good news is that it was recorded by TNMOC and their Tweet earlier today says that it will be posted in YouTube. Cheers, Nevil ________________________________ From: Microbit on behalf of Andrew Ferguson Sent: 13 February 2017 22:06 To: Python-MicroBit Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing Hi all, I stumbled across this talk by Bill Thompson the other day. It covers the 'challenges and successes' of the micro:bit project and looks really interesting (to me at least), but I'm over 300 miles away, so cannot attend. The cost is around ?15. Event Bill Thompson - BBC Make it Digital: Challenges and Successes Venue The National Museum of Computing, Milton Keynes Date Thu 16 Feb 2017 at 6:00PM Section General If anyone does go, do let me know how it was. There was a similar talk several months ago, and I emailed TNMOC to ask if they would be able to record the talk and upload the recording. I never got a response, and so I assumed that this would not be possible, but if anyone does decide to go, and would be able to record the talk (even audio would be fine) that would be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share them. Kind regards and happy micro:bit-ing... Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewferguson500 at gmail.com Sat Feb 18 06:26:13 2017 From: andrewferguson500 at gmail.com (Andrew Ferguson) Date: Sat, 18 Feb 2017 11:26:13 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: Excellent - thanks very much for letting me know about that! On 17 February 2017 at 23:10, Nevil Hunt wrote: > Hi Andrew, > > > Yes, it was a fascinating talk. And the good news is that it was recorded > by TNMOC and their Tweet earlier today says that it will be posted in > YouTube. > > > Cheers, > > > Nevil > > > ------------------------------ > *From:* Microbit > on behalf of Andrew Ferguson > *Sent:* 13 February 2017 22:06 > *To:* Python-MicroBit > *Subject:* [Microbit-Python] Potentially Interesting Talk at The National > Museum of Computing > > Hi all, > > I stumbled across this talk by Bill Thompson the other day. It covers the > 'challenges and successes' of the micro:bit project and looks really > interesting (to me at least), but I'm over 300 miles away, so cannot > attend. The cost is around ?15. > > Event Bill Thompson - BBC Make it Digital: Challenges and Successes > Venue The National Museum of Computing, Milton Keynes > Date Thu 16 Feb 2017 at 6:00PM > Section General > > If anyone does go, do let me know how it was. There was a similar talk > several months ago, and I emailed TNMOC to ask if they would be able to > record the talk and upload the recording. I never got a response, and so I > assumed that this would not be possible, but if anyone does decide to go, > and would be able to record the talk (even audio would be fine) that would > be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share > them. > > Kind regards and happy micro:bit-ing... > Andrew > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.hickford at gmail.com Sat Feb 18 07:26:12 2017 From: matt.hickford at gmail.com (Matt Hickford) Date: Sat, 18 Feb 2017 12:26:12 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: Brilliant! Please share a link when it's published On 17 February 2017 at 23:10, Nevil Hunt wrote: > Hi Andrew, > > > Yes, it was a fascinating talk. And the good news is that it was recorded > by TNMOC and their Tweet earlier today says that it will be posted in > YouTube. > > > Cheers, > > > Nevil > > > ------------------------------ > *From:* Microbit > on behalf of Andrew Ferguson > *Sent:* 13 February 2017 22:06 > *To:* Python-MicroBit > *Subject:* [Microbit-Python] Potentially Interesting Talk at The National > Museum of Computing > > Hi all, > > I stumbled across this talk by Bill Thompson the other day. It covers the > 'challenges and successes' of the micro:bit project and looks really > interesting (to me at least), but I'm over 300 miles away, so cannot > attend. The cost is around ?15. > > Event Bill Thompson - BBC Make it Digital: Challenges and Successes > Venue The National Museum of Computing, Milton Keynes > Date Thu 16 Feb 2017 at 6:00PM > Section General > > If anyone does go, do let me know how it was. There was a similar talk > several months ago, and I emailed TNMOC to ask if they would be able to > record the talk and upload the recording. I never got a response, and so I > assumed that this would not be possible, but if anyone does decide to go, > and would be able to record the talk (even audio would be fine) that would > be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share > them. > > Kind regards and happy micro:bit-ing... > Andrew > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Tue Feb 21 03:04:27 2017 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Tue, 21 Feb 2017 08:04:27 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: , Message-ID: Hi Andrew, et al, The National Museum of Computing have just posted the first video from last Thursday's micro:bit day at the museum Showing micro:bits were David Whale from the Foundation (@whaleygeek on Twitter) Thomas Stratford showing Simon Says and the 'MegaBit' (@MrTomsWorld on Twitter) and myself showing zbit:connect (@ZbitConnect on Twitter) The Video is Introduced by Bill Thompson - BBC Make it Digital The Video was shot by David Allen - BBC Producer of the 1980's Digital Literacy Programs and who specified and commissioned the original BBC Micro ! He managed to capture some of the excitement of the children in seeing the micro:bit, particularly the girl at the end! Here is the link:- https://youtu.be/kg0vYWlG7fo Cheers, Nevil ________________________________ From: Microbit on behalf of Andrew Ferguson Sent: 18 February 2017 11:26 To: For Pythonic MicroBit related discussions Subject: Re: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing Excellent - thanks very much for letting me know about that! On 17 February 2017 at 23:10, Nevil Hunt > wrote: Hi Andrew, Yes, it was a fascinating talk. And the good news is that it was recorded by TNMOC and their Tweet earlier today says that it will be posted in YouTube. Cheers, Nevil ________________________________ From: Microbit > on behalf of Andrew Ferguson > Sent: 13 February 2017 22:06 To: Python-MicroBit Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing Hi all, I stumbled across this talk by Bill Thompson the other day. It covers the 'challenges and successes' of the micro:bit project and looks really interesting (to me at least), but I'm over 300 miles away, so cannot attend. The cost is around ?15. Event Bill Thompson - BBC Make it Digital: Challenges and Successes Venue The National Museum of Computing, Milton Keynes Date Thu 16 Feb 2017 at 6:00PM Section General If anyone does go, do let me know how it was. There was a similar talk several months ago, and I emailed TNMOC to ask if they would be able to record the talk and upload the recording. I never got a response, and so I assumed that this would not be possible, but if anyone does decide to go, and would be able to record the talk (even audio would be fine) that would be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share them. Kind regards and happy micro:bit-ing... Andrew _______________________________________________ Microbit mailing list Microbit at python.org https://mail.python.org/mailman/listinfo/microbit -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at thinkingbinaries.com Tue Feb 21 04:47:39 2017 From: david at thinkingbinaries.com (David Whale) Date: Tue, 21 Feb 2017 09:47:39 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: The little girl at the end was excited because I was teleporting a 'giraffe' to her micro:bit via the micro:bit radio. Teleporting Giraffe was inspired by the Teleporting Duck, which was inspired by a Pycon Oxford meet-up workshop that Nicholas presented at. David. ___________________________________________________________ David Whale, B.Sc (Hons), MIET *Software Engineer and IET Schools Liaison Officer, Essex* On 21 February 2017 at 08:04, Nevil Hunt wrote: > > Hi Andrew, et al, > > > The National Museum of Computing have just posted the first video from > last Thursday's micro:bit day at the museum > > > Showing micro:bits were David Whale from the Foundation (@whaleygeek on > Twitter) > > Thomas Stratford showing Simon Says and the 'MegaBit' (@MrTomsWorld on > Twitter) > > and myself showing zbit:connect (@ZbitConnect on Twitter) > > > The Video is Introduced by Bill Thompson - BBC Make it Digital > The Video was shot by David Allen - BBC Producer of the 1980's Digital > Literacy Programs and who specified and commissioned the original BBC Micro > ! > > He managed to capture some of the excitement of the children in seeing the > micro:bit, particularly the girl at the end! > > > Here is the link:- > > > https://youtu.be/kg0vYWlG7fo > > > Cheers, > > > Nevil > > > > ------------------------------ > *From:* Microbit > on behalf of Andrew Ferguson > *Sent:* 18 February 2017 11:26 > *To:* For Pythonic MicroBit related discussions > *Subject:* Re: [Microbit-Python] Potentially Interesting Talk at The > National Museum of Computing > > Excellent - thanks very much for letting me know about that! > > On 17 February 2017 at 23:10, Nevil Hunt wrote: > >> Hi Andrew, >> >> >> Yes, it was a fascinating talk. And the good news is that it was recorded >> by TNMOC and their Tweet earlier today says that it will be posted in >> YouTube. >> >> >> Cheers, >> >> >> Nevil >> >> >> ------------------------------ >> *From:* Microbit >> on behalf of Andrew Ferguson >> *Sent:* 13 February 2017 22:06 >> *To:* Python-MicroBit >> *Subject:* [Microbit-Python] Potentially Interesting Talk at The >> National Museum of Computing >> >> Hi all, >> >> I stumbled across this talk by Bill Thompson the other day. It covers the >> 'challenges and successes' of the micro:bit project and looks really >> interesting (to me at least), but I'm over 300 miles away, so cannot >> attend. The cost is around ?15. >> >> Event Bill Thompson - BBC Make it Digital: Challenges and Successes >> Venue The National Museum of Computing, Milton Keynes >> Date Thu 16 Feb 2017 at 6:00PM >> Section General >> >> If anyone does go, do let me know how it was. There was a similar talk >> several months ago, and I emailed TNMOC to ask if they would be able to >> record the talk and upload the recording. I never got a response, and so I >> assumed that this would not be possible, but if anyone does decide to go, >> and would be able to record the talk (even audio would be fine) that would >> be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share >> them. >> >> Kind regards and happy micro:bit-ing... >> Andrew >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> >> > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.f.booth at googlemail.com Tue Feb 21 10:16:09 2017 From: david.f.booth at googlemail.com (David Booth) Date: Tue, 21 Feb 2017 15:16:09 +0000 Subject: [Microbit-Python] Potentially Interesting Talk at The National Museum of Computing In-Reply-To: References: Message-ID: Hi Nevil Thanks for the link Do you have a link for Bill Thompson's talk? All the best David On 21 February 2017 at 08:04, Nevil Hunt wrote: > > Hi Andrew, et al, > > > The National Museum of Computing have just posted the first video from > last Thursday's micro:bit day at the museum > > > Showing micro:bits were David Whale from the Foundation (@whaleygeek on > Twitter) > > Thomas Stratford showing Simon Says and the 'MegaBit' (@MrTomsWorld on > Twitter) > > and myself showing zbit:connect (@ZbitConnect on Twitter) > > > The Video is Introduced by Bill Thompson - BBC Make it Digital > The Video was shot by David Allen - BBC Producer of the 1980's Digital > Literacy Programs and who specified and commissioned the original BBC Micro > ! > > He managed to capture some of the excitement of the children in seeing the > micro:bit, particularly the girl at the end! > > > Here is the link:- > > > https://youtu.be/kg0vYWlG7fo > > > Cheers, > > > Nevil > > > > ------------------------------ > *From:* Microbit > on behalf of Andrew Ferguson > *Sent:* 18 February 2017 11:26 > *To:* For Pythonic MicroBit related discussions > *Subject:* Re: [Microbit-Python] Potentially Interesting Talk at The > National Museum of Computing > > Excellent - thanks very much for letting me know about that! > > On 17 February 2017 at 23:10, Nevil Hunt wrote: > >> Hi Andrew, >> >> >> Yes, it was a fascinating talk. And the good news is that it was recorded >> by TNMOC and their Tweet earlier today says that it will be posted in >> YouTube. >> >> >> Cheers, >> >> >> Nevil >> >> >> ------------------------------ >> *From:* Microbit >> on behalf of Andrew Ferguson >> *Sent:* 13 February 2017 22:06 >> *To:* Python-MicroBit >> *Subject:* [Microbit-Python] Potentially Interesting Talk at The >> National Museum of Computing >> >> Hi all, >> >> I stumbled across this talk by Bill Thompson the other day. It covers the >> 'challenges and successes' of the micro:bit project and looks really >> interesting (to me at least), but I'm over 300 miles away, so cannot >> attend. The cost is around ?15. >> >> Event Bill Thompson - BBC Make it Digital: Challenges and Successes >> Venue The National Museum of Computing, Milton Keynes >> Date Thu 16 Feb 2017 at 6:00PM >> Section General >> >> If anyone does go, do let me know how it was. There was a similar talk >> several months ago, and I emailed TNMOC to ask if they would be able to >> record the talk and upload the recording. I never got a response, and so I >> assumed that this would not be possible, but if anyone does decide to go, >> and would be able to record the talk (even audio would be fine) that would >> be amazing. Or, if Mr Thompson uses slides, ask him to upload them / share >> them. >> >> Kind regards and happy micro:bit-ing... >> Andrew >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> >> > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danka.miklos at gmail.com Mon Feb 27 17:52:35 2017 From: danka.miklos at gmail.com (=?UTF-8?B?TWlrbMOzcyBBbmRyw6FzIERhbmth?=) Date: Mon, 27 Feb 2017 22:52:35 +0000 Subject: [Microbit-Python] Microbit Python Doc translation In-Reply-To: References: Message-ID: Any updates on this thread? It would be great to connect the two translation sites! Thanks, Miklos On Sun, Feb 12, 2017 at 7:39 PM Mikl?s Andr?s Danka wrote: > // +Dani, the translation lead for the micropython documentation > > Hi all, > > As an update: we have started the Hungarian translation of the > documentation. > > - ReadTheDocs: > https://microbit-micropython-hu.readthedocs.io/hu/latest/ > - Github: https://github.com/techtabor/microbit-micropython-hu > > > *Are you up for connecting our translation with your original > documentation, so that it show up in the RTD languages section?* > > According to the RTD instructions > , > you have to mark in your "parent project" our project as a Hungarian > translation. > > Best, > Miklos > > > On Sun, Dec 4, 2016 at 12:58 PM Mikl?s Andr?s Danka < > danka.miklos at gmail.com> wrote: > > I think as a first step then, I'll just go ahead and fork the original > repository for a translation. > > If some more advanced process is agreed upon, or the documentation is > moved to a new platform, we can always move this first fork as well. > > Thanks! > Miklos > > > On Mon, Nov 28, 2016 at 10:59 PM Mikl?s Andr?s Danka < > danka.miklos at gmail.com> wrote: > > Makes a lot more sense! Let me ruminate and explore a bit more. > > -Miklos > > On Mon, Nov 28, 2016 at 10:51 PM Carlos Pereira Atencio < > carlosperate at gmail.com> wrote: > > Readthedocs already offers linked translations, so we can continue using > this platform. As far was what I would be looking for is better support for > translation tracking and updating, so that people could easily do small > contribution without a complex set up or trying to figure out what to > update by manually reading the English and translated documents to spot > unsynchronised bits. I mention some of my concerns with git here: > https://github.com/bbcmicrobit/micropython/pull/371#discussion_r89747053 > > > I feel that ultimately, how live the documentation is in any language will > depend on how active the community is. That's irrespective of the > translation process. No? > > > I wouldn't quite agree with that, we (as the open source community) always > point to documentation, or in this case translations, as an easy first > step. If we make this difficult we might inadvertently be turning away > valuable contributions. I would expect some of this translations to come > also from not-so-technical communities, teachers for instance are great > candidates, and every time I even mention git/github to teachers I never > hear anything even remotely positive (this specific point is just my > personal experience and should be taken completely anecdotally). If we > ignoring the use of git for this solutions, then it would be a very manual > process to keep track of changes. Yes, "edit this on github" and PRs are > easy, and I think it does work great for normal documentation, but > translations are do not really follow the same model and I don't feel like > git really is the best way to manage them. > > > > On 28 November 2016 at 11:19, Mikl?s Andr?s Danka > wrote: > > That's true - all I expected from translations support is that they allow > listing translations together and possibly synchronising pages (so if I'm > on page X and click the other language, I'm taken to the right page). > > What else are you looking for? More fine-grained support? Support for > tracking/translating each English commit? > > I feel that ultimately, how live the documentation is in any language will > depend on how active the community is. That's irrespective of the > translation process. No? > > -Miklos > > On Mon, Nov 28, 2016 at 10:15 PM Carlos Pereira Atencio < > carlosperate at gmail.com> wrote: > > I am not really able to have a proper look until later, but from a very > quick skim gitbook doesn't seem to offer any translation feature to give it > an advantage over readthedocs. They both allow you to add translation to > their document generation, but there isn't any features to be able to > manage and synchronise such translations, no? > > Regards, > Carlos > > On 28 November 2016 at 11:02, Mikl?s Andr?s Danka > wrote: > > An alternative is Gitbook: https://www.gitbook.com/ > > - As far as I can see, it's free for public non-commercial uses > - It supports translations: http://toolchain.gitbook.com/languages.html > - It is non-technical to edit it - git backed, but no need to deal > with git > - For a live example, check out the documentation of Redux: > http://redux.js.org/docs/basics/UsageWithReact.html > > > Do you expect a reasonably quick decision on this? If these discussions > take a longer time, then I think the best solution is if we fork the repo > and start the translation - leaving time to decide the exact process. If > you expect quick agreement, then we can wait until Gitbook or something > else is set up. > > Thoughts? > > -Miklos > > > PS. Nick, thanks for the response! I now requested membership. > > > > > On Sun, Nov 27, 2016 at 11:26 PM Carlos Pereira Atencio < > carlosperate at gmail.com> wrote: > > Let's not forget we still need to formalise the way we create and process > the translations: https://github.com/bbcmicrobit/micropython/pull/371 > There's been some conversation there but not decisions done at all. > > > > On Sun, 27 Nov 2016, 12:13 Nicholas H.Tollervey, wrote: > > Hi Mikl?s, > > Hmmm... I can't find your original email to this mailing list. Also, to > post you need to be a member (you can join here: > https://mail.python.org/mailman/listinfo/microbit) although I get > notified of all the non-member postings so let this one through! Also, > since you're not a member I'm not sure you'll see any replies to the > mailing list (hence me cc'ing you to my reply). > > Regarding translation and ReadTheDocs: it would be wonderful to have > Hungarian translations of the documentation! RtD have started to put > advertising on our documentation and there is also work on the pyedu.io > website for Python in education related resources. > > I wonder if we shouldn't just put our tutorials on there instead (along > with lots of other education related resources)..? > > Thoughts..? > > N. > > > > On 27/11/16 06:03, Mikl?s Andr?s Danka wrote: > > Hi, > > > > I haven't got any responses, so I wanted to ping again before I start > > hosting a fork. > > > > Read The Docs supports localisation in this way: > > http://read-the-docs.readthedocs.io/en/latest/localization.html > > > > Would you up for doing this? > > > > Thanks, > > Miklos > > > > > > On Mon, Oct 31, 2016 at 9:26 PM Mikl?s Andr?s Danka > > > wrote: > > > > Hello, > > > > I'm Miklos Danka, a software engineer and a teacher (here's an > > example > > ). I'm > > writing regarding the BBC Microbit Python edition - please let me > > know if this is not the right place or contact for it. > > > > First of all: *it's really awesome.* Incredible job, especially > > around the documentation, which even less experienced kids > > understood well. Very very cool. > > > > Since I teach kids in Hungary, I wanted to translate the > > documentation > > to > > Hungarian. My question is: *do you have a recommended/preferred way > > of publishing the translation?* I can always just fork the > > repository - but that would miss out on the benefits of having the > > documentations tracked together at the same website. > > Would you recommend it as a Sphinx "version" (next to "latest" and > > "stable")? Or does Sphinx provide and orthogonal translation feature? > > > > Any ideas/suggestions would be very welcome and appreciated. > > > > Thanks! > > Miklos > > > > > > > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From radomir at dopieralski.pl Mon Feb 27 18:09:05 2017 From: radomir at dopieralski.pl (Radomir Dopieralski) Date: Tue, 28 Feb 2017 00:09:05 +0100 Subject: [Microbit-Python] Microbit Python Doc translation In-Reply-To: References: Message-ID: <20170228000905.3227f661@ghostwheel> I'm sorry, I completely forgot about this. I have connected the Hungarian translation now. On Mon, 27 Feb 2017 22:52:35 +0000 Mikl?s Andr?s Danka wrote: > Any updates on this thread? It would be great to connect the two > translation sites! > > Thanks, > Miklos > > > On Sun, Feb 12, 2017 at 7:39 PM Mikl?s Andr?s Danka > wrote: > > > // +Dani, the translation lead for the micropython documentation > > > > Hi all, > > > > As an update: we have started the Hungarian translation of the > > documentation. > > > > - ReadTheDocs: > > https://microbit-micropython-hu.readthedocs.io/hu/latest/ > > - Github: https://github.com/techtabor/microbit-micropython-hu > > > > > > *Are you up for connecting our translation with your original > > documentation, so that it show up in the RTD languages section?* > > > > According to the RTD instructions > > , > > you have to mark in your "parent project" our project as a Hungarian > > translation. > > > > Best, > > Miklos > > > > > > On Sun, Dec 4, 2016 at 12:58 PM Mikl?s Andr?s Danka < > > danka.miklos at gmail.com> wrote: > > > > I think as a first step then, I'll just go ahead and fork the > > original repository for a translation. > > > > If some more advanced process is agreed upon, or the documentation > > is moved to a new platform, we can always move this first fork as > > well. > > > > Thanks! > > Miklos > > > > > > On Mon, Nov 28, 2016 at 10:59 PM Mikl?s Andr?s Danka < > > danka.miklos at gmail.com> wrote: > > > > Makes a lot more sense! Let me ruminate and explore a bit more. > > > > -Miklos > > > > On Mon, Nov 28, 2016 at 10:51 PM Carlos Pereira Atencio < > > carlosperate at gmail.com> wrote: > > > > Readthedocs already offers linked translations, so we can continue > > using this platform. As far was what I would be looking for is > > better support for translation tracking and updating, so that > > people could easily do small contribution without a complex set up > > or trying to figure out what to update by manually reading the > > English and translated documents to spot unsynchronised bits. I > > mention some of my concerns with git here: > > https://github.com/bbcmicrobit/micropython/pull/371#discussion_r89747053 > > > > > > I feel that ultimately, how live the documentation is in any > > language will depend on how active the community is. That's > > irrespective of the translation process. No? > > > > > > I wouldn't quite agree with that, we (as the open source community) > > always point to documentation, or in this case translations, as an > > easy first step. If we make this difficult we might inadvertently > > be turning away valuable contributions. I would expect some of this > > translations to come also from not-so-technical communities, > > teachers for instance are great candidates, and every time I even > > mention git/github to teachers I never hear anything even remotely > > positive (this specific point is just my personal experience and > > should be taken completely anecdotally). If we ignoring the use of > > git for this solutions, then it would be a very manual process to > > keep track of changes. Yes, "edit this on github" and PRs are easy, > > and I think it does work great for normal documentation, but > > translations are do not really follow the same model and I don't > > feel like git really is the best way to manage them. > > > > > > > > On 28 November 2016 at 11:19, Mikl?s Andr?s Danka > > wrote: > > > > That's true - all I expected from translations support is that they > > allow listing translations together and possibly synchronising > > pages (so if I'm on page X and click the other language, I'm taken > > to the right page). > > > > What else are you looking for? More fine-grained support? Support > > for tracking/translating each English commit? > > > > I feel that ultimately, how live the documentation is in any > > language will depend on how active the community is. That's > > irrespective of the translation process. No? > > > > -Miklos > > > > On Mon, Nov 28, 2016 at 10:15 PM Carlos Pereira Atencio < > > carlosperate at gmail.com> wrote: > > > > I am not really able to have a proper look until later, but from a > > very quick skim gitbook doesn't seem to offer any translation > > feature to give it an advantage over readthedocs. They both allow > > you to add translation to their document generation, but there > > isn't any features to be able to manage and synchronise such > > translations, no? > > > > Regards, > > Carlos > > > > On 28 November 2016 at 11:02, Mikl?s Andr?s Danka > > wrote: > > > > An alternative is Gitbook: https://www.gitbook.com/ > > > > - As far as I can see, it's free for public non-commercial uses > > - It supports translations: > > http://toolchain.gitbook.com/languages.html > > - It is non-technical to edit it - git backed, but no need to > > deal with git > > - For a live example, check out the documentation of Redux: > > http://redux.js.org/docs/basics/UsageWithReact.html > > > > > > Do you expect a reasonably quick decision on this? If these > > discussions take a longer time, then I think the best solution is > > if we fork the repo and start the translation - leaving time to > > decide the exact process. If you expect quick agreement, then we > > can wait until Gitbook or something else is set up. > > > > Thoughts? > > > > -Miklos > > > > > > PS. Nick, thanks for the response! I now requested membership. > > > > > > > > > > On Sun, Nov 27, 2016 at 11:26 PM Carlos Pereira Atencio < > > carlosperate at gmail.com> wrote: > > > > Let's not forget we still need to formalise the way we create and > > process the translations: > > https://github.com/bbcmicrobit/micropython/pull/371 There's been > > some conversation there but not decisions done at all. > > > > > > > > On Sun, 27 Nov 2016, 12:13 Nicholas H.Tollervey, > > wrote: > > > > Hi Mikl?s, > > > > Hmmm... I can't find your original email to this mailing list. > > Also, to post you need to be a member (you can join here: > > https://mail.python.org/mailman/listinfo/microbit) although I get > > notified of all the non-member postings so let this one through! > > Also, since you're not a member I'm not sure you'll see any replies > > to the mailing list (hence me cc'ing you to my reply). > > > > Regarding translation and ReadTheDocs: it would be wonderful to have > > Hungarian translations of the documentation! RtD have started to put > > advertising on our documentation and there is also work on the > > pyedu.io website for Python in education related resources. > > > > I wonder if we shouldn't just put our tutorials on there instead > > (along with lots of other education related resources)..? > > > > Thoughts..? > > > > N. > > > > > > > > On 27/11/16 06:03, Mikl?s Andr?s Danka wrote: > > > Hi, > > > > > > I haven't got any responses, so I wanted to ping again before I > > > start hosting a fork. > > > > > > Read The Docs supports localisation in this way: > > > http://read-the-docs.readthedocs.io/en/latest/localization.html > > > > > > Would you up for doing this? > > > > > > Thanks, > > > Miklos > > > > > > > > > On Mon, Oct 31, 2016 at 9:26 PM Mikl?s Andr?s Danka > > > > wrote: > > > > > > Hello, > > > > > > I'm Miklos Danka, a software engineer and a teacher (here's an > > > example > > > ). > > > I'm writing regarding the BBC Microbit Python edition - please > > > let me know if this is not the right place or contact for it. > > > > > > First of all: *it's really awesome.* Incredible job, > > > especially around the documentation, which even less experienced > > > kids understood well. Very very cool. > > > > > > Since I teach kids in Hungary, I wanted to translate the > > > documentation > > > to > > > Hungarian. My question is: *do you have a > > > recommended/preferred way of publishing the translation?* I can > > > always just fork the repository - but that would miss out on the > > > benefits of having the documentations tracked together at the > > > same website. Would you recommend it as a Sphinx "version" (next > > > to "latest" and "stable")? Or does Sphinx provide and orthogonal > > > translation feature? > > > > > > Any ideas/suggestions would be very welcome and appreciated. > > > > > > Thanks! > > > Miklos > > > > > > > > > > > > _______________________________________________ > > > Microbit mailing list > > > Microbit at python.org > > > https://mail.python.org/mailman/listinfo/microbit > > > > > > > > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > > > > > -- Radomir Dopieralski