From james.sheppard at bbc.co.uk Fri Jul 1 05:15:41 2016 From: james.sheppard at bbc.co.uk (James Sheppard) Date: Fri, 1 Jul 2016 09:15:41 +0000 Subject: [Microbit-Python] This happens when your code is "too big" (more than 8kB) Message-ID: Hello everyone I thought people might be interested to know what happens when the MicroPython code being flashed onto a micro:bit is more than 8kB. This analysis was done on a hex file generated by the MicroPython Editor on https://www.microbit.co.uk/ bulked out with ~200 lines of comments. If you?ve never opened up a .hex file to take a look, now could be the right time? (You might find https://en.wikipedia.org/wiki/Intel_HEX useful to refer to.) The first line in the file looks like this: :020000040000FA Which sets the base address of data to be flashed to 0x0 0000. Lines then follow that start with :10XXXX00... which indicates the data to be written to 0x0 XXXX Keep going, and eventually you?ll see :020000040001F9 which sets the base address to 0x1 0000. Then more data. Then :020000040002F8 which sets the base address to 0x2 0000. Then more data. Then :020000040003F7 (0x3 0000) and yet more data. So far this has all been MicroPython data (over 200kB). Your code is next. You?ll see :020000040003F7 again, which sets the base address to 0x3 0000 again (i.e. no change). User code starts at 0x3 E000 with the bytes 4D 50 54 32 (?MPT2?) then the script itself. :10E000004D505432... If there's more than 8kB of user code, you?ll see the address overflow from 0x3 FFF0 to 0x3 0000 :10FFF000... :10000000... During flashing of the hex file to the micro:bit, this causes the MicroPython hex at these addresses to be overwritten - who knows what?s just been trampled over! Cheers, James ---------------------------- http://www.bbc.co.uk This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. --------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From l0c4rd at gmail.com Fri Jul 1 05:23:14 2016 From: l0c4rd at gmail.com (Locard) Date: Fri, 1 Jul 2016 10:23:14 +0100 Subject: [Microbit-Python] This happens when your code is "too big" (more than 8kB) In-Reply-To: References: Message-ID: <7c0f24dd-c2b1-dd08-1d8b-d7e455288f9a@gmail.com> This is really cool James! Just a quick one - those four bytes you're seeing. The first two are "magic" and denote the beginning of a MicroPython script (MP for MicroPython), and the second two tell the interpreter the length of your script so that it doesn't fall off the end. Importantly - they change between scripts! As for where the extra data goes... the location mapped into memory immediately above the area that contains your code is the SRAM (starts at 0x200000000) - so perhaps it's getting flashed to there? Locard On 01/07/2016 10:15, James Sheppard wrote: > Hello everyone > > I thought people might be interested to know what happens when the > MicroPython code being flashed onto a micro:bit is more than 8kB. > > This analysis was done on a hex file generated by the MicroPython > Editor on https://www.microbit.co.uk/ bulked out with ~200 lines of > comments. > > If you?ve never opened up a .hex file to take a look, now could be the > right time? > > (You might find https://en.wikipedia.org/wiki/Intel_HEX useful to > refer to.) > > The first line in the file looks like this: > > :020000040000FA > > Which sets the base address of data to be flashed to 0x0 0000. > > Lines then follow that start with > > :10XXXX00... > > which indicates the data to be written to 0x0 XXXX > > Keep going, and eventually you?ll see > > :020000040001F9 > > which sets the base address to 0x1 0000. > > Then more data. > > Then > > :020000040002F8 > > which sets the base address to 0x2 0000. > > Then more data. > > Then > > :020000040003F7 > > (0x3 0000) > > and yet more data. So far this has all been MicroPython data (over > 200kB). Your code is next. > > You?ll see > > :020000040003F7 > > again, which sets the base address to 0x3 0000 again (i.e. no change). > User code starts at 0x3 E000 with the bytes 4D 50 54 32 (?MPT2?) then > the script itself. > > :10E000004D505432... > > If there's more than 8kB of user code, you?ll see the address overflow > from 0x3 FFF0 to 0x3 0000 > > :10FFF000... > :10000000... > > During flashing of the hex file to the micro:bit, this causes the > MicroPython hex at these addresses to be overwritten - who knows > what?s just been trampled over! > > Cheers, > James > > ---------------------------- > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > --------------------- > > > > _______________________________________________ > 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 Fri Jul 1 05:27:48 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Fri, 1 Jul 2016 10:27:48 +0100 Subject: [Microbit-Python] This happens when your code is "too big" (more than 8kB) In-Reply-To: References: Message-ID: <57763794.1030406@ntoll.org> Addressing this would probably help: https://github.com/bbcmicrobit/PythonEditor/blob/master/static/js/python-main.js#L112 The same probably applies to uflash too (I've not forgotten your PR L0CARD - I'm spending this weekend catching up on micro:bit things). Pull requests most welcome. ;-) N. On 01/07/16 10:15, James Sheppard wrote: > Hello everyone > > I thought people might be interested to know what happens when the > MicroPython code being flashed onto a micro:bit is more than 8kB. > > This analysis was done on a hex file generated by the MicroPython Editor > on https://www.microbit.co.uk/ bulked out with ~200 lines of comments. > > If you?ve never opened up a .hex file to take a look, now could be the > right time? > > (You might find https://en.wikipedia.org/wiki/Intel_HEX useful to refer to.) > > The first line in the file looks like this: > > :020000040000FA > > Which sets the base address of data to be flashed to 0x0 0000. > > Lines then follow that start with > > :10XXXX00... > > which indicates the data to be written to 0x0 XXXX > > Keep going, and eventually you?ll see > > :020000040001F9 > > which sets the base address to 0x1 0000. > > Then more data. > > Then > > :020000040002F8 > > which sets the base address to 0x2 0000. > > Then more data. > > Then > > :020000040003F7 > > (0x3 0000) > > and yet more data. So far this has all been MicroPython data (over > 200kB). Your code is next. > > You?ll see > > :020000040003F7 > > again, which sets the base address to 0x3 0000 again (i.e. no change). > User code starts at 0x3 E000 with the bytes 4D 50 54 32 (?MPT2?) then > the script itself. > > :10E000004D505432... > > If there's more than 8kB of user code, you?ll see the address overflow > from 0x3 FFF0 to 0x3 0000 > > :10FFF000... > :10000000... > > During flashing of the hex file to the micro:bit, this causes the > MicroPython hex at these addresses to be overwritten - who knows what?s > just been trampled over! > > Cheers, > James > > > > ---------------------------- > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > --------------------- > > > > _______________________________________________ > 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: 473 bytes Desc: OpenPGP digital signature URL: From l0c4rd at gmail.com Fri Jul 1 05:47:02 2016 From: l0c4rd at gmail.com (Locard) Date: Fri, 1 Jul 2016 10:47:02 +0100 Subject: [Microbit-Python] Importable Modules Message-ID: <8a16a0a7-aa82-36ac-0ef6-989c0f20d6f1@gmail.com> Hello, I've been trying to compile a complete list of the importable modules available in the current MicroBit build. My current list is pasted below: > antigravity > array > collections > gc > love > math > microbit > micropython > music > neopixel > os > random > struct > sys > this > ustruct Making this list has been a bit of a piecemeal process, and I'd quite like to do it a bit more cleanly, so that it can be automated, and thus kept up-to-date with the latest build of MicroBit MicroPython. To that end: does anyone have any ideas about where in the micropython source code I ought to start looking to find the names of available baked-in modules? Thankyou for your help! Locard From jeff at perfectmotion.co.uk Mon Jul 4 04:31:27 2016 From: jeff at perfectmotion.co.uk (Jeff Young) Date: Mon, 4 Jul 2016 09:31:27 +0100 Subject: [Microbit-Python] This happens when your code is "too big" (more than 8kB) In-Reply-To: References: Message-ID: <017f01d1d5ce$759519a0$60bf4ce0$@perfectmotion.co.uk> Hi James. Very interesting reading. With reference to another thread I want to understand how you are able to load such large files onto the micro:bit. I?m not able to load files which are well under 4kb of code ( ondisk size ) and around 120 lines. ( no comments ). Does you test code actually run ? Thanks Jeff From: Microbit [mailto:microbit-bounces+jeff=perfectmotion.co.uk at python.org] On Behalf Of James Sheppard Sent: 01 July 2016 10:16 To: microbit at python.org Subject: [Microbit-Python] This happens when your code is "too big" (more than 8kB) Hello everyone I thought people might be interested to know what happens when the MicroPython code being flashed onto a micro:bit is more than 8kB. This analysis was done on a hex file generated by the MicroPython Editor on https://www.microbit.co.uk/ bulked out with ~200 lines of comments. If you?ve never opened up a .hex file to take a look, now could be the right time? (You might find https://en.wikipedia.org/wiki/Intel_HEX useful to refer to.) The first line in the file looks like this: :020000040000FA Which sets the base address of data to be flashed to 0x0 0000. Lines then follow that start with :10XXXX00... which indicates the data to be written to 0x0 XXXX Keep going, and eventually you?ll see :020000040001F9 which sets the base address to 0x1 0000. Then more data. Then :020000040002F8 which sets the base address to 0x2 0000. Then more data. Then :020000040003F7 (0x3 0000) and yet more data. So far this has all been MicroPython data (over 200kB). Your code is next. You?ll see :020000040003F7 again, which sets the base address to 0x3 0000 again (i.e. no change). User code starts at 0x3 E000 with the bytes 4D 50 54 32 (?MPT2?) then the script itself. :10E000004D505432... If there's more than 8kB of user code, you?ll see the address overflow from 0x3 FFF0 to 0x3 0000 :10FFF000... :10000000... During flashing of the hex file to the micro:bit, this causes the MicroPython hex at these addresses to be overwritten - who knows what?s just been trampled over! Cheers, James ---------------------------- http://www. bbc.co.uk This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. --------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nevil.hunt at hotmail.co.uk Thu Jul 7 05:20:40 2016 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Thu, 7 Jul 2016 10:20:40 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? Message-ID: Hi, Whilst I understand that currently Bluetooth can't be used with micro-python due to memory constraints, can micro-python be used to send simple radio commands between a pair of micro:bits? The underlying mbed 'C' programming supports this using uBit.radio.enable uBit.radio.datagram.send & uBit.radio.datagram.recv but to do so in 'C' it is necessary to disable the Bluetooth stack so maybe simple radio commands could be supported from micro-python without running into the memory constraints of using the Bluetooth stack. It would certainly be quite neat if it could be supported! Cheers, Nevil -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlos.p.a.87 at gmail.com Thu Jul 7 05:37:20 2016 From: carlos.p.a.87 at gmail.com (Carlos P.A.) Date: Thu, 07 Jul 2016 09:37:20 +0000 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: References: Message-ID: You can have a look at https://github.com/bbcmicrobit/micropython/pull/283 and the linked PR for the documentation. So, while still working some things out, this feature is definitely in the oven :) On Thu, 7 Jul 2016, 11:21 Nevil Hunt, wrote: > Hi, > > Whilst I understand that currently Bluetooth can't be used with > micro-python due to memory constraints, can micro-python be used to send > simple radio commands between a pair of micro:bits? > > The underlying mbed 'C' programming supports this using > > uBit.radio.enable > uBit.radio.datagram.send > & > uBit.radio.datagram.recv > > but to do so in 'C' it is necessary to disable the Bluetooth stack so > maybe simple radio commands could be supported from micro-python without > running into the memory constraints of using the Bluetooth stack. It would > certainly be quite neat if it could be supported! > > > Cheers, > > Nevil > > _______________________________________________ > 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 Thu Jul 7 05:48:21 2016 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Thu, 7 Jul 2016 10:48:21 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: References: , Message-ID: Thanks Carlos, I hoped it might be in the pipe-line. I look forward to giving it a go! Nevil From: carlos.p.a.87 at gmail.com Date: Thu, 7 Jul 2016 09:37:20 +0000 To: microbit at python.org Subject: Re: [Microbit-Python] Using micro-python to send simple radio commands? You can have a look at https://github.com/bbcmicrobit/micropython/pull/283 and the linked PR for the documentation. So, while still working some things out, this feature is definitely in the oven :) On Thu, 7 Jul 2016, 11:21 Nevil Hunt, wrote: Hi, Whilst I understand that currently Bluetooth can't be used with micro-python due to memory constraints, can micro-python be used to send simple radio commands between a pair of micro:bits? The underlying mbed 'C' programming supports this using uBit.radio.enable uBit.radio.datagram.send & uBit.radio.datagram.recv but to do so in 'C' it is necessary to disable the Bluetooth stack so maybe simple radio commands could be supported from micro-python without running into the memory constraints of using the Bluetooth stack. It would certainly be quite neat if it could be supported! Cheers, Nevil _______________________________________________ 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 at thinkingbinaries.com Thu Jul 7 06:26:44 2016 From: david at thinkingbinaries.com (David Whale) Date: Thu, 7 Jul 2016 11:26:44 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: References: Message-ID: Ben from BBC research recompiled MicroPython, and repackaged uflash and mu and got it working himself recently for a coder dojo he was running. He is bmustillrose on twitter, I'm sure he would share his build with you if you wanted to get going quickly? David -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Thu Jul 7 06:28:43 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Thu, 7 Jul 2016 11:28:43 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: References: Message-ID: <577E2EDB.80909@ntoll.org> On 07/07/16 11:26, David Whale wrote: > Ben from BBC research recompiled MicroPython, and repackaged uflash and > mu and got it working himself recently for a coder dojo he was running. > He is bmustillrose on twitter, I'm sure he would share his build with > you if you wanted to get going quickly? > > David > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > As it stands, it should be in the latest version of Mu / uFlash sometime at the end of next week. Updating the version of MicroPython on the BBC website is problematic. N. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: From ben at benmr.com Fri Jul 8 03:50:47 2016 From: ben at benmr.com (Ben Mustill-Rose) Date: Fri, 8 Jul 2016 08:50:47 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: <577E2EDB.80909@ntoll.org> References: <577E2EDB.80909@ntoll.org> Message-ID: Hi, Are there plans to support changing the tx power using MicroPython? I'm happy to send people prebuilt hex files if required - email me off list. Cheers, Ben. On 7/7/16, Nicholas H.Tollervey wrote: > On 07/07/16 11:26, David Whale wrote: >> Ben from BBC research recompiled MicroPython, and repackaged uflash and >> mu and got it working himself recently for a coder dojo he was running. >> He is bmustillrose on twitter, I'm sure he would share his build with >> you if you wanted to get going quickly? >> >> David >> >> >> >> _______________________________________________ >> Microbit mailing list >> Microbit at python.org >> https://mail.python.org/mailman/listinfo/microbit >> > > As it stands, it should be in the latest version of Mu / uFlash sometime > at the end of next week. > > Updating the version of MicroPython on the BBC website is problematic. > > N. > > From ntoll at ntoll.org Fri Jul 8 04:00:12 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Fri, 8 Jul 2016 09:00:12 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: References: <577E2EDB.80909@ntoll.org> Message-ID: <577F5D8C.3040606@ntoll.org> Folks, Yes, the draft API docs (here: https://github.com/bbcmicrobit/micropython/pull/305/files#diff-9670f8cd030b22f84c34b6dfd1dcdc5dR32) for the upcoming module describe a config method where you can override the defaults for: message length, queue size, channel number, power, address and data rate. It'll have two send/receive methods: send_bytes/receive_bytes (for arbitrary bytes) and a simple convenience send/receive (for strings). The former allows advanced users to send any arbitrary data, the latter (for kids) facilitates the simplest possible messages with zero overhead. FWIW, I was writing the C for this stuff on the train into work this morning. I should have it finished off this evening after my commute home. Will then be tested and I hope it'll be in master by the end of next week. Hope this helps. N. On 08/07/16 08:50, Ben Mustill-Rose wrote: > Hi, > > Are there plans to support changing the tx power using MicroPython? > I'm happy to send people prebuilt hex files if required - email me off list. > > Cheers, > Ben. > > On 7/7/16, Nicholas H.Tollervey wrote: >> On 07/07/16 11:26, David Whale wrote: >>> Ben from BBC research recompiled MicroPython, and repackaged uflash and >>> mu and got it working himself recently for a coder dojo he was running. >>> He is bmustillrose on twitter, I'm sure he would share his build with >>> you if you wanted to get going quickly? >>> >>> David >>> >>> >>> >>> _______________________________________________ >>> Microbit mailing list >>> Microbit at python.org >>> https://mail.python.org/mailman/listinfo/microbit >>> >> >> As it stands, it should be in the latest version of Mu / uFlash sometime >> at the end of next week. >> >> Updating the version of MicroPython on the BBC website is problematic. >> >> N. >> >> > _______________________________________________ > 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: 473 bytes Desc: OpenPGP digital signature URL: From david at thinkingbinaries.com Fri Jul 8 05:52:27 2016 From: david at thinkingbinaries.com (David Whale) Date: Fri, 8 Jul 2016 10:52:27 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: <577F5D8C.3040606@ntoll.org> References: <577E2EDB.80909@ntoll.org> <577F5D8C.3040606@ntoll.org> Message-ID: Is it possible to make the power level changeable dynamically without having to set everything else? I have a homing beacon in pxt that works nicely by using dynamic power setting, its easy in pxt but looks harder in your python api to reconfigure every time just to change power level? On 8 Jul 2016 9:00 am, "Nicholas H.Tollervey" wrote: > Folks, > > Yes, the draft API docs (here: > > https://github.com/bbcmicrobit/micropython/pull/305/files#diff-9670f8cd030b22f84c34b6dfd1dcdc5dR32 > ) > for the upcoming module describe a config method where you can override > the defaults for: message length, queue size, channel number, power, > address and data rate. > > It'll have two send/receive methods: send_bytes/receive_bytes (for > arbitrary bytes) and a simple convenience send/receive (for strings). > The former allows advanced users to send any arbitrary data, the latter > (for kids) facilitates the simplest possible messages with zero overhead. > > FWIW, I was writing the C for this stuff on the train into work this > morning. I should have it finished off this evening after my commute > home. Will then be tested and I hope it'll be in master by the end of > next week. > > Hope this helps. > > N. > > On 08/07/16 08:50, Ben Mustill-Rose wrote: > > Hi, > > > > Are there plans to support changing the tx power using MicroPython? > > I'm happy to send people prebuilt hex files if required - email me off > list. > > > > Cheers, > > Ben. > > > > On 7/7/16, Nicholas H.Tollervey wrote: > >> On 07/07/16 11:26, David Whale wrote: > >>> Ben from BBC research recompiled MicroPython, and repackaged uflash and > >>> mu and got it working himself recently for a coder dojo he was running. > >>> He is bmustillrose on twitter, I'm sure he would share his build with > >>> you if you wanted to get going quickly? > >>> > >>> David > >>> > >>> > >>> > >>> _______________________________________________ > >>> Microbit mailing list > >>> Microbit at python.org > >>> https://mail.python.org/mailman/listinfo/microbit > >>> > >> > >> As it stands, it should be in the latest version of Mu / uFlash sometime > >> at the end of next week. > >> > >> Updating the version of MicroPython on the BBC website is problematic. > >> > >> N. > >> > >> > > _______________________________________________ > > 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 Fri Jul 8 06:16:03 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Fri, 8 Jul 2016 11:16:03 +0100 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: References: <577E2EDB.80909@ntoll.org> <577F5D8C.3040606@ntoll.org> Message-ID: <577F7D63.9060109@ntoll.org> On 08/07/16 10:52, David Whale wrote: > Is it possible to make the power level changeable dynamically without > having to set everything else? I have a homing beacon in pxt that works > nicely by using dynamic power setting, its easy in pxt but looks harder > in your python api to reconfigure every time just to change power level? > Good point. I wonder if a reset() method would be helpful to, er, reset things to sensible defaults, but config() only updates the setting you pass in. Ergo, you could just do radio.config(power=3) to change the power. Sound like a plan? Comments, suggestions..? David, please add this as a comment to the linked to code in GitHub so everyone involved in this development gets visibility on your suggestion. I'll also answer on there too. N. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: From carlos.p.a.87 at gmail.com Fri Jul 8 06:26:39 2016 From: carlos.p.a.87 at gmail.com (Carlos P.A.) Date: Fri, 08 Jul 2016 10:26:39 +0000 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: <577F7D63.9060109@ntoll.org> References: <577E2EDB.80909@ntoll.org> <577F5D8C.3040606@ntoll.org> <577F7D63.9060109@ntoll.org> Message-ID: I agree that having a way to change just a single setting would be a useful thing to provide. But we need to make sure that the behaviour between the different modules is consistent, as right now we have different ways of configuring different things. I opened this issues a while ago based on the conversation from a different PR: https://github.com/bbcmicrobit/micropython/issues/306 I think it is important to agree on a consistent way of doing this before we fragment the general config / init any further. On Fri, 8 Jul 2016, 12:16 Nicholas H.Tollervey, wrote: > On 08/07/16 10:52, David Whale wrote: > > Is it possible to make the power level changeable dynamically without > > having to set everything else? I have a homing beacon in pxt that works > > nicely by using dynamic power setting, its easy in pxt but looks harder > > in your python api to reconfigure every time just to change power level? > > > > Good point. I wonder if a reset() method would be helpful to, er, reset > things to sensible defaults, but config() only updates the setting you > pass in. Ergo, you could just do radio.config(power=3) to change the power. > > Sound like a plan? Comments, suggestions..? > > David, please add this as a comment to the linked to code in GitHub so > everyone involved in this development gets visibility on your > suggestion. I'll also answer on there too. > > N. > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mal at egenix.com Fri Jul 8 06:38:51 2016 From: mal at egenix.com (M.-A. Lemburg) Date: Fri, 8 Jul 2016 12:38:51 +0200 Subject: [Microbit-Python] Using micro-python to send simple radio commands? In-Reply-To: <577F5D8C.3040606@ntoll.org> References: <577E2EDB.80909@ntoll.org> <577F5D8C.3040606@ntoll.org> Message-ID: <577F82BB.2080804@egenix.com> On 08.07.2016 10:00, Nicholas H.Tollervey wrote: > Folks, > > Yes, the draft API docs (here: > https://github.com/bbcmicrobit/micropython/pull/305/files#diff-9670f8cd030b22f84c34b6dfd1dcdc5dR32) > for the upcoming module describe a config method where you can override > the defaults for: message length, queue size, channel number, power, > address and data rate. > > It'll have two send/receive methods: send_bytes/receive_bytes (for > arbitrary bytes) and a simple convenience send/receive (for strings). > The former allows advanced users to send any arbitrary data, the latter > (for kids) facilitates the simplest possible messages with zero overhead. > > FWIW, I was writing the C for this stuff on the train into work this > morning. I should have it finished off this evening after my commute > home. Will then be tested and I hope it'll be in master by the end of > next week. I'd make things a little more explicit and intuitive: reset_config() reset everything to defaults set_config(a=x, b=y) set config parameter a to x, b to y (this is essentially your config() except that it doesn't set non-given parameters to defaults) get_config(x) return current value of parameter x Hope this is ready for EuroPython :-) BTW: What's the range of the MB radio communication ? > Hope this helps. > > N. > > On 08/07/16 08:50, Ben Mustill-Rose wrote: >> Hi, >> >> Are there plans to support changing the tx power using MicroPython? >> I'm happy to send people prebuilt hex files if required - email me off list. >> >> Cheers, >> Ben. >> >> On 7/7/16, Nicholas H.Tollervey wrote: >>> On 07/07/16 11:26, David Whale wrote: >>>> Ben from BBC research recompiled MicroPython, and repackaged uflash and >>>> mu and got it working himself recently for a coder dojo he was running. >>>> He is bmustillrose on twitter, I'm sure he would share his build with >>>> you if you wanted to get going quickly? >>>> >>>> David >>>> >>>> >>>> >>>> _______________________________________________ >>>> Microbit mailing list >>>> Microbit at python.org >>>> https://mail.python.org/mailman/listinfo/microbit >>>> >>> >>> As it stands, it should be in the latest version of Mu / uFlash sometime >>> at the end of next week. >>> >>> Updating the version of MicroPython on the BBC website is problematic. >>> >>> N. >>> >>> >> _______________________________________________ >> 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 > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Jul 08 2016) >>> Python Projects, Coaching and Consulting ... http://www.egenix.com/ >>> Python Database Interfaces ... http://products.egenix.com/ >>> Plone/Zope Database Interfaces ... http://zope.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ http://www.malemburg.com/ From leonaso43 at googlemail.com Mon Jul 11 08:46:38 2016 From: leonaso43 at googlemail.com (Leona So) Date: Mon, 11 Jul 2016 13:46:38 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Hi Nevil, That would be brilliant! I need to get hold of a microbit first, because I work at college we don't get any, and it seems impossible to buy one anywhere, unless you know where I could get hold of one? The best thing for teachers to take away would always be pin-pointing exactly where it fits in the teaching curriculum, and how to move on from the project, which, I would be able to help. I will be on leave from this Thursday until mid August, so may be slow in replying emails! Thanks and I look forward to support you on this! Regards, Leona On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt wrote: > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm happy to > send you some of the boards I've had made which make doing so easier (see > attached photos) > > zbit:builder bolts onto the bottom of the micro:bit and provides a grid > for components to be soldered with access to all GPIO and power. > > zbit:breadboard is similar but requires no soldering. > > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to meeting > you and anyone else involved with micro python on that day. > > > Regards, > > Nevil > > ------------------------------ > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics > teaching with Micro:bit motion sensors > CC: stestagg at gmail.com; leonaso43 at googlemail.com > > > Hi everyone, > > I mentioned on this list a couple of weeks ago an idea to run a session at > PyCon UK Teachers' Day on using the Micro:bit's motion sensors. > > A number of people - including Leona, Steve and Nigel (Cc-ed) - replied > wanting to get involved. > > Encouraged by this, I have just submitted the outline below. It hopefully > gives the conference organisers enough to say "Yup, go for it" while > leaving a lot of space for us to decide exactly what to present. > > I am on holiday next week so will finally have time to email everyone who > has expressed interest about working together sorting out the details. > > Thanks > Stephen > > > > *Title: * > Enriching Maths and Physics teaching with Micro:bit motion sensors > > *What are you proposing? * > A workshop for Teachers' Day > (duration/number of attendees are flexible. TBD with PyCon UK organisers) > > *Abstract: * > The BBC Micro:bit has powerful accelerometer and compass motion sensors. > While they are fun for kids to play with, we show how they can also be used > in class to bring some key Maths and Physics principles to life. > > This workshop session is intended for teachers who want to learn about > using micro:bit in their classes. No specific knowledge of micro:bit or > Python programming is assumed. People who already know Python and micro:bit > are also welcome to join in, especially if you can help the teachers get > started. > > Teachers and helpers are asked to send their ideas for teaching examples > to me at mail at stevesimmons.com well before the Teachers' Day. We will > write up several examples to present in full, with some others as group > exercises. > > *Why will people be interested: * > This is a practical session to help teachers integrate micro:bit into > their classes. It can accommodate all levels of experience and teachers and > non-teachers are welcome. > > *What level of audience: * > Novice > > *More information about you (public): * > Stephen has been a Python programmer since 2000. He trained as a > mathematician and electrical engineer, with a PhD in signal processing for > radar target detection. After a period as a management consultant, he > worked for credit card companies in Australia and The Netherlands, running > areas like marketing, risk, operations and strategy. Six years ago, he > moved back into technology and joined JPMorgan in London, where his team > uses Python to build trading, risk management and analytics systems. > > *More information about you (private): * > I presented the tutorial "Pandas from the Inside" at PyData London on 6 > May 2016. I have also submitted a separate proposal on motion sensors data > fusion for the main PyCon UK conference. > > > > _______________________________________________ Microbit mailing list > Microbit at python.org https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel.kendrick at gmail.com Mon Jul 11 09:50:29 2016 From: nigel.kendrick at gmail.com (Nigel Kendrick) Date: Mon, 11 Jul 2016 14:50:29 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: <000801d1db7b$30e63a70$92b2af50$@gmail.com> I have one Microbit via the STEM network, but according to the local STEM office they had to jump through significant hoops to get hold of a few. If there is a route for people in our situation (developing/promoting the product off our own backs), then please let me know too! I?m waiting to see what comes of this proposal for PyCon; I have a full electronics development workshop at home (aka half the spare room) so am happy to help with development and testing. All the best Nigel From: Microbit [mailto:microbit-bounces+nigel.kendrick=gmail.com at python.org] On Behalf Of Leona So via Microbit Sent: 11 July 2016 13:47 To: Nevil Hunt Cc: Leona So ; Stestagg ; mail at stevesimmons.com; microbit at python.org Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors Hi Nevil, That would be brilliant! I need to get hold of a microbit first, because I work at college we don't get any, and it seems impossible to buy one anywhere, unless you know where I could get hold of one? The best thing for teachers to take away would always be pin-pointing exactly where it fits in the teaching curriculum, and how to move on from the project, which, I would be able to help. I will be on leave from this Thursday until mid August, so may be slow in replying emails! Thanks and I look forward to support you on this! Regards, Leona On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt > wrote: Hi Stephen, Leona, Nigel, If your ideas need extra sensors connected to the micro:bit I'm happy to send you some of the boards I've had made which make doing so easier (see attached photos) zbit:builder bolts onto the bottom of the micro:bit and provides a grid for components to be soldered with access to all GPIO and power. zbit:breadboard is similar but requires no soldering. Also, I've just submitted a proposal to demonstrate some of my other zbit:connect boards on Teachers day at PyCon so I look forward to meeting you and anyone else involved with micro python on that day. Regards, Nevil _____ To: microbit at python.org From: mail at stevesimmons.com Date: Mon, 27 Jun 2016 01:20:58 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors CC: stestagg at gmail.com ; leonaso43 at googlemail.com Hi everyone, I mentioned on this list a couple of weeks ago an idea to run a session at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. A number of people - including Leona, Steve and Nigel (Cc-ed) - replied wanting to get involved. Encouraged by this, I have just submitted the outline below. It hopefully gives the conference organisers enough to say "Yup, go for it" while leaving a lot of space for us to decide exactly what to present. I am on holiday next week so will finally have time to email everyone who has expressed interest about working together sorting out the details. Thanks Stephen Title: Enriching Maths and Physics teaching with Micro:bit motion sensors What are you proposing? A workshop for Teachers' Day (duration/number of attendees are flexible. TBD with PyCon UK organisers) Abstract: The BBC Micro:bit has powerful accelerometer and compass motion sensors. While they are fun for kids to play with, we show how they can also be used in class to bring some key Maths and Physics principles to life. This workshop session is intended for teachers who want to learn about using micro:bit in their classes. No specific knowledge of micro:bit or Python programming is assumed. People who already know Python and micro:bit are also welcome to join in, especially if you can help the teachers get started. Teachers and helpers are asked to send their ideas for teaching examples to me at mail at stevesimmons.com well before the Teachers' Day. We will write up several examples to present in full, with some others as group exercises. Why will people be interested: This is a practical session to help teachers integrate micro:bit into their classes. It can accommodate all levels of experience and teachers and non-teachers are welcome. What level of audience: Novice More information about you (public): Stephen has been a Python programmer since 2000. He trained as a mathematician and electrical engineer, with a PhD in signal processing for radar target detection. After a period as a management consultant, he worked for credit card companies in Australia and The Netherlands, running areas like marketing, risk, operations and strategy. Six years ago, he moved back into technology and joined JPMorgan in London, where his team uses Python to build trading, risk management and analytics systems. More information about you (private): I presented the tutorial "Pandas from the Inside" at PyData London on 6 May 2016. I have also submitted a separate proposal on motion sensors data fusion for the main PyCon UK conference. _______________________________________________ Microbit mailing list Microbit at python.org https://mail.python.org/mailman/listinfo/microbit --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From stestagg at gmail.com Mon Jul 11 09:50:21 2016 From: stestagg at gmail.com (Stestagg) Date: Mon, 11 Jul 2016 13:50:21 +0000 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Leona Would it be easier for me to send you mine? You can play with it, and get something working, then maybe we can trade it back at Pycon UK, if you're going to be there over the weekend, if not, we can try things out by proxy. If so, send me your address, and I'll get it posted. Thanks Steve On Mon, Jul 11, 2016 at 1:46 PM Leona So wrote: > Hi Nevil, > > That would be brilliant! I need to get hold of a microbit first, because I > work at college we don't get any, and it seems impossible to buy one > anywhere, unless you know where I could get hold of one? > > The best thing for teachers to take away would always be pin-pointing > exactly where it fits in the teaching curriculum, and how to move on from > the project, which, I would be able to help. > > I will be on leave from this Thursday until mid August, so may be slow in > replying emails! > > Thanks and I look forward to support you on this! > > Regards, > > > Leona > > On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt > wrote: > >> Hi Stephen, Leona, Nigel, >> >> If your ideas need extra sensors connected to the micro:bit I'm happy to >> send you some of the boards I've had made which make doing so easier (see >> attached photos) >> >> zbit:builder bolts onto the bottom of the micro:bit and provides a grid >> for components to be soldered with access to all GPIO and power. >> >> zbit:breadboard is similar but requires no soldering. >> >> Also, I've just submitted a proposal to demonstrate some of my other >> zbit:connect boards on Teachers day at PyCon so I look forward to meeting >> you and anyone else involved with micro python on that day. >> >> >> Regards, >> >> Nevil >> >> ------------------------------ >> To: microbit at python.org >> From: mail at stevesimmons.com >> Date: Mon, 27 Jun 2016 01:20:58 +0100 >> Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and >> Physics teaching with Micro:bit motion sensors >> CC: stestagg at gmail.com; leonaso43 at googlemail.com >> >> >> Hi everyone, >> >> I mentioned on this list a couple of weeks ago an idea to run a session >> at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. >> >> A number of people - including Leona, Steve and Nigel (Cc-ed) - replied >> wanting to get involved. >> >> Encouraged by this, I have just submitted the outline below. It hopefully >> gives the conference organisers enough to say "Yup, go for it" while >> leaving a lot of space for us to decide exactly what to present. >> >> I am on holiday next week so will finally have time to email everyone who >> has expressed interest about working together sorting out the details. >> >> Thanks >> Stephen >> >> >> >> *Title: * >> Enriching Maths and Physics teaching with Micro:bit motion sensors >> >> *What are you proposing? * >> A workshop for Teachers' Day >> (duration/number of attendees are flexible. TBD with PyCon UK organisers) >> >> *Abstract: * >> The BBC Micro:bit has powerful accelerometer and compass motion sensors. >> While they are fun for kids to play with, we show how they can also be used >> in class to bring some key Maths and Physics principles to life. >> >> This workshop session is intended for teachers who want to learn about >> using micro:bit in their classes. No specific knowledge of micro:bit or >> Python programming is assumed. People who already know Python and micro:bit >> are also welcome to join in, especially if you can help the teachers get >> started. >> >> Teachers and helpers are asked to send their ideas for teaching examples >> to me at mail at stevesimmons.com well before the Teachers' Day. We will >> write up several examples to present in full, with some others as group >> exercises. >> >> *Why will people be interested: * >> This is a practical session to help teachers integrate micro:bit into >> their classes. It can accommodate all levels of experience and teachers and >> non-teachers are welcome. >> >> *What level of audience: * >> Novice >> >> *More information about you (public): * >> Stephen has been a Python programmer since 2000. He trained as a >> mathematician and electrical engineer, with a PhD in signal processing for >> radar target detection. After a period as a management consultant, he >> worked for credit card companies in Australia and The Netherlands, running >> areas like marketing, risk, operations and strategy. Six years ago, he >> moved back into technology and joined JPMorgan in London, where his team >> uses Python to build trading, risk management and analytics systems. >> >> *More information about you (private): * >> I presented the tutorial "Pandas from the Inside" at PyData London on 6 >> May 2016. I have also submitted a separate proposal on motion sensors data >> fusion for the main PyCon UK conference. >> >> >> >> _______________________________________________ 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 Mon Jul 11 09:55:54 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Mon, 11 Jul 2016 14:55:54 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: <000801d1db7b$30e63a70$92b2af50$@gmail.com> References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> <000801d1db7b$30e63a70$92b2af50$@gmail.com> Message-ID: <5783A56A.4020400@ntoll.org> Folks, We're trying to source micro:bits for use at PyCon UK. Not sure if we'll be successful but a significant amount of effort is being made to have some at the conference for people to play with. I had promised to deliver a bunch of the devices I'd been given in the spring (pre-launch) but was told to stop for "reasons". (In fact I was asked to recall them and return them to the BBC, but I ignored that request and the person who made it has now left the BBC). I could post people a device if they ping me an email with their address or they come to Paddington where I work, although this won't happen any time soon given that I'm preparing for next week's EuroPython, a new release of MicroPython for the micro:bit and a significantly improved Mu. You're looking at the start of August as an ETA. If I can help, I will. However, I'm snowed under and may not be quick and/or require reminding (I don't mind being reminded). Hope this helps, N. On 11/07/16 14:50, Nigel Kendrick wrote: > I have one Microbit via the STEM network, but according to the local > STEM office they had to jump through significant hoops to get hold of a > few. If there is a route for people in our situation > (developing/promoting the product off our own backs), then please let me > know too! > > > > I?m waiting to see what comes of this proposal for PyCon; I have a full > electronics development workshop at home (aka half the spare room) so am > happy to help with development and testing. > > > > All the best > > > > Nigel > > > > *From:*Microbit > [mailto:microbit-bounces+nigel.kendrick=gmail.com at python.org] *On Behalf > Of *Leona So via Microbit > *Sent:* 11 July 2016 13:47 > *To:* Nevil Hunt > *Cc:* Leona So ; Stestagg > ; mail at stevesimmons.com; microbit at python.org > *Subject:* Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors > > > > Hi Nevil, > > > > That would be brilliant! I need to get hold of a microbit first, because > I work at college we don't get any, and it seems impossible to buy one > anywhere, unless you know where I could get hold of one? > > > > The best thing for teachers to take away would always be pin-pointing > exactly where it fits in the teaching curriculum, and how to move on > from the project, which, I would be able to help. > > > > I will be on leave from this Thursday until mid August, so may be slow > in replying emails! > > > > Thanks and I look forward to support you on this! > > > > Regards, > > > > > > Leona > > > > On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt > wrote: > > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm > happy to send you some of the boards I've had made which make doing > so easier (see attached photos) > > zbit:builder bolts onto the bottom of the micro:bit and provides a > grid for components to be soldered with access to all GPIO and power. > > zbit:breadboard is similar but requires no soldering. > > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to > meeting you and anyone else involved with micro python on that day. > > > Regards, > > Nevil > > > ------------------------------------------------------------------------ > > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors > CC: stestagg at gmail.com ; > leonaso43 at googlemail.com > > > > Hi everyone, > > I mentioned on this list a couple of weeks ago an idea to run a > session at PyCon UK Teachers' Day on using the Micro:bit's motion > sensors. > > A number of people - including Leona, Steve and Nigel (Cc-ed) - > replied wanting to get involved. > > Encouraged by this, I have just submitted the outline below. It > hopefully gives the conference organisers enough to say "Yup, go for > it" while leaving a lot of space for us to decide exactly what to > present. > > I am on holiday next week so will finally have time to email > everyone who has expressed interest about working together sorting > out the details. > > Thanks > Stephen > > > *Title: * > Enriching Maths and Physics teaching with Micro:bit motion sensors > > *What are you proposing? * > A workshop for Teachers' Day > (duration/number of attendees are flexible. TBD with PyCon UK > organisers) > > *Abstract: * > The BBC Micro:bit has powerful accelerometer and compass motion > sensors. While they are fun for kids to play with, we show how they > can also be used in class to bring some key Maths and Physics > principles to life. > > This workshop session is intended for teachers who want to learn > about using micro:bit in their classes. No specific knowledge of > micro:bit or Python programming is assumed. People who already know > Python and micro:bit are also welcome to join in, especially if you > can help the teachers get started. > > Teachers and helpers are asked to send their ideas for teaching > examples to me at mail at stevesimmons.com > well before the Teachers' Day. We > will write up several examples to present in full, with some others > as group exercises. > > *Why will people be interested: * > This is a practical session to help teachers integrate micro:bit > into their classes. It can accommodate all levels of experience and > teachers and non-teachers are welcome. > > *What level of audience: * > Novice > > *More information about you (public): * > Stephen has been a Python programmer since 2000. He trained as a > mathematician and electrical engineer, with a PhD in signal > processing for radar target detection. After a period as a > management consultant, he worked for credit card companies in > Australia and The Netherlands, running areas like marketing, risk, > operations and strategy. Six years ago, he moved back into > technology and joined JPMorgan in London, where his team uses Python > to build trading, risk management and analytics systems. > > *More information about you (private): * > I presented the tutorial "Pandas from the Inside" at PyData London > on 6 May 2016. I have also submitted a separate proposal on motion > sensors data fusion for the main PyCon UK conference. > > > > _______________________________________________ Microbit mailing > list Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > > > > > Virus-free. www.avast.com > > > > > > _______________________________________________ > 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: 473 bytes Desc: OpenPGP digital signature URL: From D.Gibbs at stem.org.uk Mon Jul 11 10:02:55 2016 From: D.Gibbs at stem.org.uk (Dave Gibbs) Date: Mon, 11 Jul 2016 14:02:55 +0000 Subject: [Microbit-Python] Microbit Digest, Vol 14, Issue 8 In-Reply-To: References: Message-ID: Leona, As this is something that STEM Learning Centre would be pleased to support, perhaps I can arrange for a micro:bit to be sent to you for loan? If you email me at d.gibbs at stem.org.uk I will arrange something. I'd also be happy to promote the session to our teachers, and would love to share the resources that result through our community group. Please check out the micro:bit teacher group at: https://www.stem.org.uk/microbit-group It is likely to grow as we support teachers past the BBC's year of public engagement. Thanks, Dave -----Original Message----- From: Microbit [mailto:microbit-bounces+d.gibbs=nationalstemcentre.org.uk at python.org] On Behalf Of microbit-request at python.org Sent: 11 July 2016 14:56 To: microbit at python.org Subject: Microbit Digest, Vol 14, Issue 8 Send Microbit mailing list submissions to microbit at python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/microbit or, via email, send a message with subject or body 'help' to microbit-request at python.org You can reach the person managing the list at microbit-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Microbit digest..." Today's Topics: 1. Re: PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors (Stestagg) 2. Re: PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors (Nicholas H.Tollervey) ---------------------------------------------------------------------- Message: 1 Date: Mon, 11 Jul 2016 13:50:21 +0000 From: Stestagg To: Leona So , Nevil Hunt Cc: "mail at stevesimmons.com" , "microbit at python.org" Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors Message-ID: Content-Type: text/plain; charset="utf-8" Leona Would it be easier for me to send you mine? You can play with it, and get something working, then maybe we can trade it back at Pycon UK, if you're going to be there over the weekend, if not, we can try things out by proxy. If so, send me your address, and I'll get it posted. Thanks Steve On Mon, Jul 11, 2016 at 1:46 PM Leona So wrote: > Hi Nevil, > > That would be brilliant! I need to get hold of a microbit first, > because I work at college we don't get any, and it seems impossible to > buy one anywhere, unless you know where I could get hold of one? > > The best thing for teachers to take away would always be pin-pointing > exactly where it fits in the teaching curriculum, and how to move on > from the project, which, I would be able to help. > > I will be on leave from this Thursday until mid August, so may be slow > in replying emails! > > Thanks and I look forward to support you on this! > > Regards, > > > Leona > > On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt > wrote: > >> Hi Stephen, Leona, Nigel, >> >> If your ideas need extra sensors connected to the micro:bit I'm happy >> to send you some of the boards I've had made which make doing so >> easier (see attached photos) >> >> zbit:builder bolts onto the bottom of the micro:bit and provides a >> grid for components to be soldered with access to all GPIO and power. >> >> zbit:breadboard is similar but requires no soldering. >> >> Also, I've just submitted a proposal to demonstrate some of my other >> zbit:connect boards on Teachers day at PyCon so I look forward to >> meeting you and anyone else involved with micro python on that day. >> >> >> Regards, >> >> Nevil >> >> ------------------------------ >> To: microbit at python.org >> From: mail at stevesimmons.com >> Date: Mon, 27 Jun 2016 01:20:58 +0100 >> Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and >> Physics teaching with Micro:bit motion sensors >> CC: stestagg at gmail.com; leonaso43 at googlemail.com >> >> >> Hi everyone, >> >> I mentioned on this list a couple of weeks ago an idea to run a >> session at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. >> >> A number of people - including Leona, Steve and Nigel (Cc-ed) - >> replied wanting to get involved. >> >> Encouraged by this, I have just submitted the outline below. It >> hopefully gives the conference organisers enough to say "Yup, go for >> it" while leaving a lot of space for us to decide exactly what to present. >> >> I am on holiday next week so will finally have time to email everyone >> who has expressed interest about working together sorting out the details. >> >> Thanks >> Stephen >> >> >> >> *Title: * >> Enriching Maths and Physics teaching with Micro:bit motion sensors >> >> *What are you proposing? * >> A workshop for Teachers' Day >> (duration/number of attendees are flexible. TBD with PyCon UK >> organisers) >> >> *Abstract: * >> The BBC Micro:bit has powerful accelerometer and compass motion sensors. >> While they are fun for kids to play with, we show how they can also >> be used in class to bring some key Maths and Physics principles to life. >> >> This workshop session is intended for teachers who want to learn >> about using micro:bit in their classes. No specific knowledge of >> micro:bit or Python programming is assumed. People who already know >> Python and micro:bit are also welcome to join in, especially if you >> can help the teachers get started. >> >> Teachers and helpers are asked to send their ideas for teaching >> examples to me at mail at stevesimmons.com well before the Teachers' >> Day. We will write up several examples to present in full, with some >> others as group exercises. >> >> *Why will people be interested: * >> This is a practical session to help teachers integrate micro:bit into >> their classes. It can accommodate all levels of experience and >> teachers and non-teachers are welcome. >> >> *What level of audience: * >> Novice >> >> *More information about you (public): * Stephen has been a Python >> programmer since 2000. He trained as a mathematician and electrical >> engineer, with a PhD in signal processing for radar target detection. >> After a period as a management consultant, he worked for credit card >> companies in Australia and The Netherlands, running areas like >> marketing, risk, operations and strategy. Six years ago, he moved >> back into technology and joined JPMorgan in London, where his team >> uses Python to build trading, risk management and analytics systems. >> >> *More information about you (private): * I presented the tutorial >> "Pandas from the Inside" at PyData London on 6 May 2016. I have also >> submitted a separate proposal on motion sensors data fusion for the >> main PyCon UK conference. >> >> >> >> _______________________________________________ Microbit mailing list >> Microbit at python.org https://mail.python.org/mailman/listinfo/microbit >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Mon, 11 Jul 2016 14:55:54 +0100 From: "Nicholas H.Tollervey" To: microbit at python.org Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors Message-ID: <5783A56A.4020400 at ntoll.org> Content-Type: text/plain; charset="windows-1252" Folks, We're trying to source micro:bits for use at PyCon UK. Not sure if we'll be successful but a significant amount of effort is being made to have some at the conference for people to play with. I had promised to deliver a bunch of the devices I'd been given in the spring (pre-launch) but was told to stop for "reasons". (In fact I was asked to recall them and return them to the BBC, but I ignored that request and the person who made it has now left the BBC). I could post people a device if they ping me an email with their address or they come to Paddington where I work, although this won't happen any time soon given that I'm preparing for next week's EuroPython, a new release of MicroPython for the micro:bit and a significantly improved Mu. You're looking at the start of August as an ETA. If I can help, I will. However, I'm snowed under and may not be quick and/or require reminding (I don't mind being reminded). Hope this helps, N. On 11/07/16 14:50, Nigel Kendrick wrote: > I have one Microbit via the STEM network, but according to the local > STEM office they had to jump through significant hoops to get hold of > a few. If there is a route for people in our situation > (developing/promoting the product off our own backs), then please let > me know too! > > > > I?m waiting to see what comes of this proposal for PyCon; I have a > full electronics development workshop at home (aka half the spare > room) so am happy to help with development and testing. > > > > All the best > > > > Nigel > > > > *From:*Microbit > [mailto:microbit-bounces+nigel.kendrick=gmail.com at python.org] *On > Behalf Of *Leona So via Microbit > *Sent:* 11 July 2016 13:47 > *To:* Nevil Hunt > *Cc:* Leona So ; Stestagg > ; mail at stevesimmons.com; microbit at python.org > *Subject:* Re: [Microbit-Python] PyCon UK proposal - Enriching Maths > and Physics teaching with Micro:bit motion sensors > > > > Hi Nevil, > > > > That would be brilliant! I need to get hold of a microbit first, > because I work at college we don't get any, and it seems impossible to > buy one anywhere, unless you know where I could get hold of one? > > > > The best thing for teachers to take away would always be pin-pointing > exactly where it fits in the teaching curriculum, and how to move on > from the project, which, I would be able to help. > > > > I will be on leave from this Thursday until mid August, so may be slow > in replying emails! > > > > Thanks and I look forward to support you on this! > > > > Regards, > > > > > > Leona > > > > On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt > wrote: > > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm > happy to send you some of the boards I've had made which make doing > so easier (see attached photos) > > zbit:builder bolts onto the bottom of the micro:bit and provides a > grid for components to be soldered with access to all GPIO and power. > > zbit:breadboard is similar but requires no soldering. > > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to > meeting you and anyone else involved with micro python on that day. > > > Regards, > > Nevil > > > > ---------------------------------------------------------------------- > -- > > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors > CC: stestagg at gmail.com ; > leonaso43 at googlemail.com > > > > Hi everyone, > > I mentioned on this list a couple of weeks ago an idea to run a > session at PyCon UK Teachers' Day on using the Micro:bit's motion > sensors. > > A number of people - including Leona, Steve and Nigel (Cc-ed) - > replied wanting to get involved. > > Encouraged by this, I have just submitted the outline below. It > hopefully gives the conference organisers enough to say "Yup, go for > it" while leaving a lot of space for us to decide exactly what to > present. > > I am on holiday next week so will finally have time to email > everyone who has expressed interest about working together sorting > out the details. > > Thanks > Stephen > > > *Title: * > Enriching Maths and Physics teaching with Micro:bit motion sensors > > *What are you proposing? * > A workshop for Teachers' Day > (duration/number of attendees are flexible. TBD with PyCon UK > organisers) > > *Abstract: * > The BBC Micro:bit has powerful accelerometer and compass motion > sensors. While they are fun for kids to play with, we show how they > can also be used in class to bring some key Maths and Physics > principles to life. > > This workshop session is intended for teachers who want to learn > about using micro:bit in their classes. No specific knowledge of > micro:bit or Python programming is assumed. People who already know > Python and micro:bit are also welcome to join in, especially if you > can help the teachers get started. > > Teachers and helpers are asked to send their ideas for teaching > examples to me at mail at stevesimmons.com > well before the Teachers' Day. We > will write up several examples to present in full, with some others > as group exercises. > > *Why will people be interested: * > This is a practical session to help teachers integrate micro:bit > into their classes. It can accommodate all levels of experience and > teachers and non-teachers are welcome. > > *What level of audience: * > Novice > > *More information about you (public): * > Stephen has been a Python programmer since 2000. He trained as a > mathematician and electrical engineer, with a PhD in signal > processing for radar target detection. After a period as a > management consultant, he worked for credit card companies in > Australia and The Netherlands, running areas like marketing, risk, > operations and strategy. Six years ago, he moved back into > technology and joined JPMorgan in London, where his team uses Python > to build trading, risk management and analytics systems. > > *More information about you (private): * > I presented the tutorial "Pandas from the Inside" at PyData London > on 6 May 2016. I have also submitted a separate proposal on motion > sensors data fusion for the main PyCon UK conference. > > > > _______________________________________________ Microbit mailing > list Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > > > > > > Virus-free. www.avast.com > campaign=sig-email&utm_content=emailclient> > > > > > _______________________________________________ > 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: 473 bytes Desc: OpenPGP digital signature URL: ------------------------------ Subject: Digest Footer _______________________________________________ Microbit mailing list Microbit at python.org https://mail.python.org/mailman/listinfo/microbit ------------------------------ End of Microbit Digest, Vol 14, Issue 8 *************************************** ________________________________ STEM Learning Limited registered in England and Wales, Company Number 05081097. Registered Office: National Science Learning Centre, University of York, Heslington, York, North Yorkshire, YO10 5DD This e-mail is intended only for the named recipient, may be confidential and may also be privileged. Please notify us immediately if you are not the intended recipient. You should not copy it, forward it or use it for any purpose or disclose the contents to any person. If you have received this e-mail in error, please notify us as soon as possible on +44 (0)1904328300 and destroy your copy. Unless otherwise expressly stated, this e-mail is not intended to constitute a business letter, order form or other offer or invitation to you, nor does this e-mail form the basis of any contract. Contracts may not be concluded by e-mail and any contract or agreement attached is subject to contract and shall not and is not intended to create a legally binding relationship. STEM Learning Limited has taken reasonable precautions to ensure no viruses are present in this email and does not accept responsibility for any loss or damage arising from the use of this email or attachments. This email has been scanned by the Websense Email Security System. For more information please visit: http://www.websense.com/content/websense-email-security-products.aspx From nigel.kendrick at gmail.com Mon Jul 11 14:04:20 2016 From: nigel.kendrick at gmail.com (Nigel Kendrick) Date: Mon, 11 Jul 2016 19:04:20 +0100 Subject: [Microbit-Python] Kicad components and footprints Message-ID: <5783df33.c8a61c0a.ad1e7.4837@mx.google.com> For anyone developing printed circuit boards, care to share any useful Kicad components and footprints such as the 4mm binding post mounting holes to save reinventing the wheel and also for consistency across Open Hardware designs - is there a repo anywhere? Thanks Nigel Kendrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.p.george at gmail.com Mon Jul 11 17:25:03 2016 From: damien.p.george at gmail.com (Damien George) Date: Mon, 11 Jul 2016 22:25:03 +0100 Subject: [Microbit-Python] Importable Modules In-Reply-To: <8a16a0a7-aa82-36ac-0ef6-989c0f20d6f1@gmail.com> References: <8a16a0a7-aa82-36ac-0ef6-989c0f20d6f1@gmail.com> Message-ID: If you look in py/objmodule.c there is a list, but it depends on compile-time config options. The other place to look is in mpconfigport.h for the MICROPY_PORT_BUILTIN_MODULES macro. Really we need to implement a help("modules") command that lists the built-in modules for the user. On Fri, Jul 1, 2016 at 10:47 AM, Locard wrote: > Hello, > > I've been trying to compile a complete list of the importable modules > available in the current MicroBit build. My current list is pasted below: > >> antigravity >> array >> collections >> gc >> love >> math >> microbit >> micropython >> music >> neopixel >> os >> random >> struct >> sys >> this >> ustruct > > Making this list has been a bit of a piecemeal process, and I'd quite like > to do it a bit more cleanly, so that it can be automated, and thus kept > up-to-date with the latest build of MicroBit MicroPython. > > To that end: does anyone have any ideas about where in the micropython > source code I ought to start looking to find the names of available baked-in > modules? > > Thankyou for your help! > > > Locard > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit From leonaso43 at googlemail.com Wed Jul 13 08:05:36 2016 From: leonaso43 at googlemail.com (Leona So) Date: Wed, 13 Jul 2016 13:05:36 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Hi Steve, Have you started working on this? Is there any reading I could have a look in preparation of the project? As mentioned I will be off work due to the summer holiday from next week so I could do a bit of reading to get an idea! Even just a link or two! Thanks. Regards, Leona On Mon, Jul 11, 2016 at 2:50 PM, Stestagg wrote: > Leona > > Would it be easier for me to send you mine? You can play with it, and get > something working, then maybe we can trade it back at Pycon UK, if you're > going to be there over the weekend, if not, we can try things out by proxy. > > If so, send me your address, and I'll get it posted. > > Thanks > > Steve > > On Mon, Jul 11, 2016 at 1:46 PM Leona So wrote: > >> Hi Nevil, >> >> That would be brilliant! I need to get hold of a microbit first, because >> I work at college we don't get any, and it seems impossible to buy one >> anywhere, unless you know where I could get hold of one? >> >> The best thing for teachers to take away would always be pin-pointing >> exactly where it fits in the teaching curriculum, and how to move on from >> the project, which, I would be able to help. >> >> I will be on leave from this Thursday until mid August, so may be slow in >> replying emails! >> >> Thanks and I look forward to support you on this! >> >> Regards, >> >> >> Leona >> >> On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt >> wrote: >> >>> Hi Stephen, Leona, Nigel, >>> >>> If your ideas need extra sensors connected to the micro:bit I'm happy to >>> send you some of the boards I've had made which make doing so easier (see >>> attached photos) >>> >>> zbit:builder bolts onto the bottom of the micro:bit and provides a grid >>> for components to be soldered with access to all GPIO and power. >>> >>> zbit:breadboard is similar but requires no soldering. >>> >>> Also, I've just submitted a proposal to demonstrate some of my other >>> zbit:connect boards on Teachers day at PyCon so I look forward to meeting >>> you and anyone else involved with micro python on that day. >>> >>> >>> Regards, >>> >>> Nevil >>> >>> ------------------------------ >>> To: microbit at python.org >>> From: mail at stevesimmons.com >>> Date: Mon, 27 Jun 2016 01:20:58 +0100 >>> Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and >>> Physics teaching with Micro:bit motion sensors >>> CC: stestagg at gmail.com; leonaso43 at googlemail.com >>> >>> >>> Hi everyone, >>> >>> I mentioned on this list a couple of weeks ago an idea to run a session >>> at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. >>> >>> A number of people - including Leona, Steve and Nigel (Cc-ed) - replied >>> wanting to get involved. >>> >>> Encouraged by this, I have just submitted the outline below. It >>> hopefully gives the conference organisers enough to say "Yup, go for it" >>> while leaving a lot of space for us to decide exactly what to present. >>> >>> I am on holiday next week so will finally have time to email everyone >>> who has expressed interest about working together sorting out the details. >>> >>> Thanks >>> Stephen >>> >>> >>> >>> *Title: * >>> Enriching Maths and Physics teaching with Micro:bit motion sensors >>> >>> *What are you proposing? * >>> A workshop for Teachers' Day >>> (duration/number of attendees are flexible. TBD with PyCon UK organisers) >>> >>> *Abstract: * >>> The BBC Micro:bit has powerful accelerometer and compass motion sensors. >>> While they are fun for kids to play with, we show how they can also be used >>> in class to bring some key Maths and Physics principles to life. >>> >>> This workshop session is intended for teachers who want to learn about >>> using micro:bit in their classes. No specific knowledge of micro:bit or >>> Python programming is assumed. People who already know Python and micro:bit >>> are also welcome to join in, especially if you can help the teachers get >>> started. >>> >>> Teachers and helpers are asked to send their ideas for teaching examples >>> to me at mail at stevesimmons.com well before the Teachers' Day. We will >>> write up several examples to present in full, with some others as group >>> exercises. >>> >>> *Why will people be interested: * >>> This is a practical session to help teachers integrate micro:bit into >>> their classes. It can accommodate all levels of experience and teachers and >>> non-teachers are welcome. >>> >>> *What level of audience: * >>> Novice >>> >>> *More information about you (public): * >>> Stephen has been a Python programmer since 2000. He trained as a >>> mathematician and electrical engineer, with a PhD in signal processing for >>> radar target detection. After a period as a management consultant, he >>> worked for credit card companies in Australia and The Netherlands, running >>> areas like marketing, risk, operations and strategy. Six years ago, he >>> moved back into technology and joined JPMorgan in London, where his team >>> uses Python to build trading, risk management and analytics systems. >>> >>> *More information about you (private): * >>> I presented the tutorial "Pandas from the Inside" at PyData London on 6 >>> May 2016. I have also submitted a separate proposal on motion sensors data >>> fusion for the main PyCon UK conference. >>> >>> >>> >>> _______________________________________________ Microbit mailing list >>> Microbit at python.org https://mail.python.org/mailman/listinfo/microbit >>> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From stestagg at gmail.com Wed Jul 13 08:41:05 2016 From: stestagg at gmail.com (Stestagg) Date: Wed, 13 Jul 2016 12:41:05 +0000 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Hi I haven't sent it yet, sorry, will do tomorrow. As for using the microbit, it should be as simple as plugging it into a laptop. I would recommend the Mu editor, (downloadable here: https://s3-us-west-2.amazonaws.com/ardublockly-builds/microbit/windows/mu-2016-07-11_06_58_34.exe) . Unfortunately, if you're on windows, you'll have to follow the instructions here: https://developer.mbed.org/handbook/Windows-serial-configuration before it will work. OSX and Linux should be fine. Once you've got that connected, then I would reccomend the docs here: https://microbit-micropython.readthedocs.io/en/latest/ which cover getting started, and the whole python API Thanks Steve It's pretty simple. I would recommend the mu editor. Basically you can On Wed, 13 Jul 2016 at 13:05, Leona So wrote: > Hi Steve, > > Have you started working on this? Is there any reading I could have a look > in preparation of the project? As mentioned I will be off work due to the > summer holiday from next week so I could do a bit of reading to get an > idea! Even just a link or two! > > Thanks. > > Regards, > > > Leona > > On Mon, Jul 11, 2016 at 2:50 PM, Stestagg wrote: > >> Leona >> >> Would it be easier for me to send you mine? You can play with it, and >> get something working, then maybe we can trade it back at Pycon UK, if >> you're going to be there over the weekend, if not, we can try things out by >> proxy. >> >> If so, send me your address, and I'll get it posted. >> >> Thanks >> >> Steve >> >> On Mon, Jul 11, 2016 at 1:46 PM Leona So >> wrote: >> >>> Hi Nevil, >>> >>> That would be brilliant! I need to get hold of a microbit first, because >>> I work at college we don't get any, and it seems impossible to buy one >>> anywhere, unless you know where I could get hold of one? >>> >>> The best thing for teachers to take away would always be pin-pointing >>> exactly where it fits in the teaching curriculum, and how to move on from >>> the project, which, I would be able to help. >>> >>> I will be on leave from this Thursday until mid August, so may be slow >>> in replying emails! >>> >>> Thanks and I look forward to support you on this! >>> >>> Regards, >>> >>> >>> Leona >>> >>> On Mon, Jun 27, 2016 at 6:12 PM, Nevil Hunt >>> wrote: >>> >>>> Hi Stephen, Leona, Nigel, >>>> >>>> If your ideas need extra sensors connected to the micro:bit I'm happy >>>> to send you some of the boards I've had made which make doing so easier >>>> (see attached photos) >>>> >>>> zbit:builder bolts onto the bottom of the micro:bit and provides a grid >>>> for components to be soldered with access to all GPIO and power. >>>> >>>> zbit:breadboard is similar but requires no soldering. >>>> >>>> Also, I've just submitted a proposal to demonstrate some of my other >>>> zbit:connect boards on Teachers day at PyCon so I look forward to meeting >>>> you and anyone else involved with micro python on that day. >>>> >>>> >>>> Regards, >>>> >>>> Nevil >>>> >>>> ------------------------------ >>>> To: microbit at python.org >>>> From: mail at stevesimmons.com >>>> Date: Mon, 27 Jun 2016 01:20:58 +0100 >>>> Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and >>>> Physics teaching with Micro:bit motion sensors >>>> CC: stestagg at gmail.com; leonaso43 at googlemail.com >>>> >>>> >>>> Hi everyone, >>>> >>>> I mentioned on this list a couple of weeks ago an idea to run a session >>>> at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. >>>> >>>> A number of people - including Leona, Steve and Nigel (Cc-ed) - replied >>>> wanting to get involved. >>>> >>>> Encouraged by this, I have just submitted the outline below. It >>>> hopefully gives the conference organisers enough to say "Yup, go for it" >>>> while leaving a lot of space for us to decide exactly what to present. >>>> >>>> I am on holiday next week so will finally have time to email everyone >>>> who has expressed interest about working together sorting out the details. >>>> >>>> Thanks >>>> Stephen >>>> >>>> >>>> >>>> *Title: * >>>> Enriching Maths and Physics teaching with Micro:bit motion sensors >>>> >>>> *What are you proposing? * >>>> A workshop for Teachers' Day >>>> (duration/number of attendees are flexible. TBD with PyCon UK >>>> organisers) >>>> >>>> *Abstract: * >>>> The BBC Micro:bit has powerful accelerometer and compass motion >>>> sensors. While they are fun for kids to play with, we show how they can >>>> also be used in class to bring some key Maths and Physics principles to >>>> life. >>>> >>>> This workshop session is intended for teachers who want to learn about >>>> using micro:bit in their classes. No specific knowledge of micro:bit or >>>> Python programming is assumed. People who already know Python and micro:bit >>>> are also welcome to join in, especially if you can help the teachers get >>>> started. >>>> >>>> Teachers and helpers are asked to send their ideas for teaching >>>> examples to me at mail at stevesimmons.com well before the Teachers' Day. >>>> We will write up several examples to present in full, with some others as >>>> group exercises. >>>> >>>> *Why will people be interested: * >>>> This is a practical session to help teachers integrate micro:bit into >>>> their classes. It can accommodate all levels of experience and teachers and >>>> non-teachers are welcome. >>>> >>>> *What level of audience: * >>>> Novice >>>> >>>> *More information about you (public): * >>>> Stephen has been a Python programmer since 2000. He trained as a >>>> mathematician and electrical engineer, with a PhD in signal processing for >>>> radar target detection. After a period as a management consultant, he >>>> worked for credit card companies in Australia and The Netherlands, running >>>> areas like marketing, risk, operations and strategy. Six years ago, he >>>> moved back into technology and joined JPMorgan in London, where his team >>>> uses Python to build trading, risk management and analytics systems. >>>> >>>> *More information about you (private): * >>>> I presented the tutorial "Pandas from the Inside" at PyData London on 6 >>>> May 2016. I have also submitted a separate proposal on motion sensors data >>>> fusion for the main PyCon UK conference. >>>> >>>> >>>> >>>> _______________________________________________ Microbit mailing list >>>> Microbit at python.org https://mail.python.org/mailman/listinfo/microbit >>>> >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel.kendrick at gmail.com Fri Jul 15 08:25:54 2016 From: nigel.kendrick at gmail.com (Nigel Kendrick) Date: Fri, 15 Jul 2016 13:25:54 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Hi Nevil, Happy to receive anything you have to spare - solderable boards are fine. Let me know if you want postage/costs covered. Incidentally, I was laying out some boards of my own with specific circuits on them to be published as Open Hardware DIY projects, but maybe I could think about just (or also) publishing a working layout and BOM to fit your boards. I have an all-in-one audio board with spectrum analyser, 3V Class D audio amplifier, electret mic amplifier and a sound detector/alarm circuit; that might be a squeeze for one board, but they could be split into 3 separate circuits (a Spectrum analyser, an audio amp and a mic/sound detector). Finally, do you know the exact part code (or Farnell/RS stock code) for a JST plug to fit the power connector on the micro:bit; I thought I was bound to have some in my parts bins, but it was not to be. I already have half a dozen battery holders just waiting for the right connector. A meetup at Pycon would be good. Nigel On 27 June 2016 at 18:12, Nevil Hunt wrote: > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm happy to > send you some of the boards I've had made which make doing so easier (see > attached photos) > > zbit:builder bolts onto the bottom of the micro:bit and provides a grid > for components to be soldered with access to all GPIO and power. > > zbit:breadboard is similar but requires no soldering. > > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to meeting > you and anyone else involved with micro python on that day. > > > Regards, > > Nevil > > ------------------------------ > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics > teaching with Micro:bit motion sensors > CC: stestagg at gmail.com; leonaso43 at googlemail.com > > > Hi everyone, > > I mentioned on this list a couple of weeks ago an idea to run a session at > PyCon UK Teachers' Day on using the Micro:bit's motion sensors. > > A number of people - including Leona, Steve and Nigel (Cc-ed) - replied > wanting to get involved. > > Encouraged by this, I have just submitted the outline below. It hopefully > gives the conference organisers enough to say "Yup, go for it" while > leaving a lot of space for us to decide exactly what to present. > > I am on holiday next week so will finally have time to email everyone who > has expressed interest about working together sorting out the details. > > Thanks > Stephen > > > > *Title: * > Enriching Maths and Physics teaching with Micro:bit motion sensors > > *What are you proposing? * > A workshop for Teachers' Day > (duration/number of attendees are flexible. TBD with PyCon UK organisers) > > *Abstract: * > The BBC Micro:bit has powerful accelerometer and compass motion sensors. > While they are fun for kids to play with, we show how they can also be used > in class to bring some key Maths and Physics principles to life. > > This workshop session is intended for teachers who want to learn about > using micro:bit in their classes. No specific knowledge of micro:bit or > Python programming is assumed. People who already know Python and micro:bit > are also welcome to join in, especially if you can help the teachers get > started. > > Teachers and helpers are asked to send their ideas for teaching examples > to me at mail at stevesimmons.com well before the Teachers' Day. We will > write up several examples to present in full, with some others as group > exercises. > > *Why will people be interested: * > This is a practical session to help teachers integrate micro:bit into > their classes. It can accommodate all levels of experience and teachers and > non-teachers are welcome. > > *What level of audience: * > Novice > > *More information about you (public): * > Stephen has been a Python programmer since 2000. He trained as a > mathematician and electrical engineer, with a PhD in signal processing for > radar target detection. After a period as a management consultant, he > worked for credit card companies in Australia and The Netherlands, running > areas like marketing, risk, operations and strategy. Six years ago, he > moved back into technology and joined JPMorgan in London, where his team > uses Python to build trading, risk management and analytics systems. > > *More information about you (private): * > I presented the tutorial "Pandas from the Inside" at PyData London on 6 > May 2016. I have also submitted a separate proposal on motion sensors data > fusion for the main PyCon UK conference. > > > > _______________________________________________ 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 Jul 15 10:16:10 2016 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Fri, 15 Jul 2016 15:16:10 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com>, <5770716A.5090906@stevesimmons.com>, , Message-ID: Hi Nigel, By the end of next week I should be in a position where I can send you some boards. By then I hope to have a few more of my custom connectors available. For the designs you have in mind, which GPIO will they use? The reason why I ask is that designs that just use P0, P1 and/or P2 will work without the custom connector. Designs that use the other GPIO need the connector. Your design ideas certainly sound interesting. I've tinkered with some audio designs but it's really not my area of expertise so I'd be interested in seeing what you can come up with. I plan to be at Pycon in Cardiff on the Friday and it would be good to meet if you are there that day. I am also at the IET micro:bit day on the 29th July in London in case you (or anyone else) is there that day. As far as publishing anything with my boards on them I'd like to wait until a time when people if they want to can obtain them and I'm not yet sure when that will be. As for the JST connectors I have plenty of them. I had to buy 50 and I'm only ever likely to use about a dozen so I can put a few in with the boards I send you along with the crimp pins to go with them. If you don't have a crimp tool you might have to improvise! Let me know what address to post everything to. Cheers, Nevil From: nigel.kendrick at gmail.com Date: Fri, 15 Jul 2016 13:25:54 +0100 To: microbit at python.org Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors Hi Nevil, Happy to receive anything you have to spare - solderable boards are fine. Let me know if you want postage/costs covered. Incidentally, I was laying out some boards of my own with specific circuits on them to be published as Open Hardware DIY projects, but maybe I could think about just (or also) publishing a working layout and BOM to fit your boards. I have an all-in-one audio board with spectrum analyser, 3V Class D audio amplifier, electret mic amplifier and a sound detector/alarm circuit; that might be a squeeze for one board, but they could be split into 3 separate circuits (a Spectrum analyser, an audio amp and a mic/sound detector). Finally, do you know the exact part code (or Farnell/RS stock code) for a JST plug to fit the power connector on the micro:bit; I thought I was bound to have some in my parts bins, but it was not to be. I already have half a dozen battery holders just waiting for the right connector. A meetup at Pycon would be good. Nigel On 27 June 2016 at 18:12, Nevil Hunt wrote: Hi Stephen, Leona, Nigel, If your ideas need extra sensors connected to the micro:bit I'm happy to send you some of the boards I've had made which make doing so easier (see attached photos) zbit:builder bolts onto the bottom of the micro:bit and provides a grid for components to be soldered with access to all GPIO and power. zbit:breadboard is similar but requires no soldering. Also, I've just submitted a proposal to demonstrate some of my other zbit:connect boards on Teachers day at PyCon so I look forward to meeting you and anyone else involved with micro python on that day. Regards, Nevil To: microbit at python.org From: mail at stevesimmons.com Date: Mon, 27 Jun 2016 01:20:58 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors CC: stestagg at gmail.com; leonaso43 at googlemail.com Hi everyone, I mentioned on this list a couple of weeks ago an idea to run a session at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. A number of people - including Leona, Steve and Nigel (Cc-ed) - replied wanting to get involved. Encouraged by this, I have just submitted the outline below. It hopefully gives the conference organisers enough to say "Yup, go for it" while leaving a lot of space for us to decide exactly what to present. I am on holiday next week so will finally have time to email everyone who has expressed interest about working together sorting out the details. Thanks Stephen Title: Enriching Maths and Physics teaching with Micro:bit motion sensors What are you proposing? A workshop for Teachers' Day (duration/number of attendees are flexible. TBD with PyCon UK organisers) Abstract: The BBC Micro:bit has powerful accelerometer and compass motion sensors. While they are fun for kids to play with, we show how they can also be used in class to bring some key Maths and Physics principles to life. This workshop session is intended for teachers who want to learn about using micro:bit in their classes. No specific knowledge of micro:bit or Python programming is assumed. People who already know Python and micro:bit are also welcome to join in, especially if you can help the teachers get started. Teachers and helpers are asked to send their ideas for teaching examples to me at mail at stevesimmons.com well before the Teachers' Day. We will write up several examples to present in full, with some others as group exercises. Why will people be interested: This is a practical session to help teachers integrate micro:bit into their classes. It can accommodate all levels of experience and teachers and non-teachers are welcome. What level of audience: Novice More information about you (public): Stephen has been a Python programmer since 2000. He trained as a mathematician and electrical engineer, with a PhD in signal processing for radar target detection. After a period as a management consultant, he worked for credit card companies in Australia and The Netherlands, running areas like marketing, risk, operations and strategy. Six years ago, he moved back into technology and joined JPMorgan in London, where his team uses Python to build trading, risk management and analytics systems. More information about you (private): I presented the tutorial "Pandas from the Inside" at PyData London on 6 May 2016. I have also submitted a separate proposal on motion sensors data fusion for the main PyCon UK conference. _______________________________________________ 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 gajjar.nilesh at gmail.com Mon Jul 18 15:31:45 2016 From: gajjar.nilesh at gmail.com (Nilesh Gajjar) Date: Mon, 18 Jul 2016 20:31:45 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Hi Nevil Can you please share the JST Connector Part number? I am struggling to find one over google. Thanks -nilesh On Fri, Jul 15, 2016 at 3:16 PM, Nevil Hunt wrote: > Hi Nigel, > > By the end of next week I should be in a position where I can send you > some boards. By then I hope to have a few more of my custom connectors > available. > > For the designs you have in mind, which GPIO will they use? The reason why > I ask is that designs that just use P0, P1 and/or P2 will work without the > custom connector. Designs that use the other GPIO need the connector. > > Your design ideas certainly sound interesting. I've tinkered with some > audio designs but it's really not my area of expertise so I'd be interested > in seeing what you can come up with. I plan to be at Pycon in Cardiff on > the Friday and it would be good to meet if you are there that day. I am > also at the IET micro:bit day on the 29th July in London in case you (or > anyone else) is there that day. > > As far as publishing anything with my boards on them I'd like to wait > until a time when people if they want to can obtain them and I'm not yet > sure when that will be. > > As for the JST connectors I have plenty of them. I had to buy 50 and I'm > only ever likely to use about a dozen so I can put a few in with the boards > I send you along with the crimp pins to go with them. If you don't have a > crimp tool you might have to improvise! > > Let me know what address to post everything to. > > > Cheers, > > Nevil > > ------------------------------ > From: nigel.kendrick at gmail.com > Date: Fri, 15 Jul 2016 13:25:54 +0100 > To: microbit at python.org > Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors > > > Hi Nevil, > > Happy to receive anything you have to spare - solderable boards are fine. > Let me know if you want postage/costs covered. > > Incidentally, I was laying out some boards of my own with specific > circuits on them to be published as Open Hardware DIY projects, but maybe I > could think about just (or also) publishing a working layout and BOM to fit > your boards. I have an all-in-one audio board with spectrum analyser, 3V > Class D audio amplifier, electret mic amplifier and a sound detector/alarm > circuit; that might be a squeeze for one board, but they could be split > into 3 separate circuits (a Spectrum analyser, an audio amp and a mic/sound > detector). > > Finally, do you know the exact part code (or Farnell/RS stock code) for a > JST plug to fit the power connector on the micro:bit; I thought I was bound > to have some in my parts bins, but it was not to be. I already have half a > dozen battery holders just waiting for the right connector. > > A meetup at Pycon would be good. > > Nigel > > On 27 June 2016 at 18:12, Nevil Hunt wrote: > > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm happy to > send you some of the boards I've had made which make doing so easier (see > attached photos) > > zbit:builder bolts onto the bottom of the micro:bit and provides a grid > for components to be soldered with access to all GPIO and power. > > zbit:breadboard is similar but requires no soldering. > > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to meeting > you and anyone else involved with micro python on that day. > > > Regards, > > Nevil > > ------------------------------ > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics > teaching with Micro:bit motion sensors > CC: stestagg at gmail.com; leonaso43 at googlemail.com > > > Hi everyone, > > I mentioned on this list a couple of weeks ago an idea to run a session at > PyCon UK Teachers' Day on using the Micro:bit's motion sensors. > > A number of people - including Leona, Steve and Nigel (Cc-ed) - replied > wanting to get involved. > > Encouraged by this, I have just submitted the outline below. It hopefully > gives the conference organisers enough to say "Yup, go for it" while > leaving a lot of space for us to decide exactly what to present. > > I am on holiday next week so will finally have time to email everyone who > has expressed interest about working together sorting out the details. > > Thanks > Stephen > > > > *Title: * > Enriching Maths and Physics teaching with Micro:bit motion sensors > > *What are you proposing? * > A workshop for Teachers' Day > (duration/number of attendees are flexible. TBD with PyCon UK organisers) > > *Abstract: * > The BBC Micro:bit has powerful accelerometer and compass motion sensors. > While they are fun for kids to play with, we show how they can also be used > in class to bring some key Maths and Physics principles to life. > > This workshop session is intended for teachers who want to learn about > using micro:bit in their classes. No specific knowledge of micro:bit or > Python programming is assumed. People who already know Python and micro:bit > are also welcome to join in, especially if you can help the teachers get > started. > > Teachers and helpers are asked to send their ideas for teaching examples > to me at mail at stevesimmons.com well before the Teachers' Day. We will > write up several examples to present in full, with some others as group > exercises. > > *Why will people be interested: * > This is a practical session to help teachers integrate micro:bit into > their classes. It can accommodate all levels of experience and teachers and > non-teachers are welcome. > > *What level of audience: * > Novice > > *More information about you (public): * > Stephen has been a Python programmer since 2000. He trained as a > mathematician and electrical engineer, with a PhD in signal processing for > radar target detection. After a period as a management consultant, he > worked for credit card companies in Australia and The Netherlands, running > areas like marketing, risk, operations and strategy. Six years ago, he > moved back into technology and joined JPMorgan in London, where his team > uses Python to build trading, risk management and analytics systems. > > *More information about you (private): * > I presented the tutorial "Pandas from the Inside" at PyData London on 6 > May 2016. I have also submitted a separate proposal on motion sensors data > fusion for the main PyCon UK conference. > > > > _______________________________________________ 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 nevil.hunt at hotmail.co.uk Tue Jul 19 05:35:43 2016 From: nevil.hunt at hotmail.co.uk (Nevil Hunt) Date: Tue, 19 Jul 2016 10:35:43 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com>, <5770716A.5090906@stevesimmons.com>, , , , Message-ID: Hi Nilesh, Yes, I found them tricky to track down! You also need to buy both the housing and the crimp pins separately and both have a minimum order quantity. Then when you get them if you don't have the right crimp tool it is difficult to crimp the wires. You may find it cheaper and easier to order a micro:bit battery holder, say from Kitronik, which comes with the right connector fitted, then cut the wire and attach it to your battery pack. But if you want to buy the individual connectors I bought these from Farnell:- JST Battery Connector 2 pin Crimp Housing PHR-2 Farnell Order Code 3616186 JST Battery Connector Crimp Pins BPH-002T-P0.5S Farnell Order Code 3617210 Cheers, Nevil From: gajjar.nilesh at gmail.com Date: Mon, 18 Jul 2016 20:31:45 +0100 To: microbit at python.org Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors Hi Nevil Can you please share the JST Connector Part number? I am struggling to find one over google. Thanks-nilesh On Fri, Jul 15, 2016 at 3:16 PM, Nevil Hunt wrote: Hi Nigel, By the end of next week I should be in a position where I can send you some boards. By then I hope to have a few more of my custom connectors available. For the designs you have in mind, which GPIO will they use? The reason why I ask is that designs that just use P0, P1 and/or P2 will work without the custom connector. Designs that use the other GPIO need the connector. Your design ideas certainly sound interesting. I've tinkered with some audio designs but it's really not my area of expertise so I'd be interested in seeing what you can come up with. I plan to be at Pycon in Cardiff on the Friday and it would be good to meet if you are there that day. I am also at the IET micro:bit day on the 29th July in London in case you (or anyone else) is there that day. As far as publishing anything with my boards on them I'd like to wait until a time when people if they want to can obtain them and I'm not yet sure when that will be. As for the JST connectors I have plenty of them. I had to buy 50 and I'm only ever likely to use about a dozen so I can put a few in with the boards I send you along with the crimp pins to go with them. If you don't have a crimp tool you might have to improvise! Let me know what address to post everything to. Cheers, Nevil From: nigel.kendrick at gmail.com Date: Fri, 15 Jul 2016 13:25:54 +0100 To: microbit at python.org Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors Hi Nevil, Happy to receive anything you have to spare - solderable boards are fine. Let me know if you want postage/costs covered. Incidentally, I was laying out some boards of my own with specific circuits on them to be published as Open Hardware DIY projects, but maybe I could think about just (or also) publishing a working layout and BOM to fit your boards. I have an all-in-one audio board with spectrum analyser, 3V Class D audio amplifier, electret mic amplifier and a sound detector/alarm circuit; that might be a squeeze for one board, but they could be split into 3 separate circuits (a Spectrum analyser, an audio amp and a mic/sound detector). Finally, do you know the exact part code (or Farnell/RS stock code) for a JST plug to fit the power connector on the micro:bit; I thought I was bound to have some in my parts bins, but it was not to be. I already have half a dozen battery holders just waiting for the right connector. A meetup at Pycon would be good. Nigel On 27 June 2016 at 18:12, Nevil Hunt wrote: Hi Stephen, Leona, Nigel, If your ideas need extra sensors connected to the micro:bit I'm happy to send you some of the boards I've had made which make doing so easier (see attached photos) zbit:builder bolts onto the bottom of the micro:bit and provides a grid for components to be soldered with access to all GPIO and power. zbit:breadboard is similar but requires no soldering. Also, I've just submitted a proposal to demonstrate some of my other zbit:connect boards on Teachers day at PyCon so I look forward to meeting you and anyone else involved with micro python on that day. Regards, Nevil To: microbit at python.org From: mail at stevesimmons.com Date: Mon, 27 Jun 2016 01:20:58 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors CC: stestagg at gmail.com; leonaso43 at googlemail.com Hi everyone, I mentioned on this list a couple of weeks ago an idea to run a session at PyCon UK Teachers' Day on using the Micro:bit's motion sensors. A number of people - including Leona, Steve and Nigel (Cc-ed) - replied wanting to get involved. Encouraged by this, I have just submitted the outline below. It hopefully gives the conference organisers enough to say "Yup, go for it" while leaving a lot of space for us to decide exactly what to present. I am on holiday next week so will finally have time to email everyone who has expressed interest about working together sorting out the details. Thanks Stephen Title: Enriching Maths and Physics teaching with Micro:bit motion sensors What are you proposing? A workshop for Teachers' Day (duration/number of attendees are flexible. TBD with PyCon UK organisers) Abstract: The BBC Micro:bit has powerful accelerometer and compass motion sensors. While they are fun for kids to play with, we show how they can also be used in class to bring some key Maths and Physics principles to life. This workshop session is intended for teachers who want to learn about using micro:bit in their classes. No specific knowledge of micro:bit or Python programming is assumed. People who already know Python and micro:bit are also welcome to join in, especially if you can help the teachers get started. Teachers and helpers are asked to send their ideas for teaching examples to me at mail at stevesimmons.com well before the Teachers' Day. We will write up several examples to present in full, with some others as group exercises. Why will people be interested: This is a practical session to help teachers integrate micro:bit into their classes. It can accommodate all levels of experience and teachers and non-teachers are welcome. What level of audience: Novice More information about you (public): Stephen has been a Python programmer since 2000. He trained as a mathematician and electrical engineer, with a PhD in signal processing for radar target detection. After a period as a management consultant, he worked for credit card companies in Australia and The Netherlands, running areas like marketing, risk, operations and strategy. Six years ago, he moved back into technology and joined JPMorgan in London, where his team uses Python to build trading, risk management and analytics systems. More information about you (private): I presented the tutorial "Pandas from the Inside" at PyData London on 6 May 2016. I have also submitted a separate proposal on motion sensors data fusion for the main PyCon UK conference. _______________________________________________ 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 microbit at sheep.art.pl Tue Jul 19 10:21:31 2016 From: microbit at sheep.art.pl (Radomir Dopieralski) Date: Tue, 19 Jul 2016 16:21:31 +0200 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: <20160719162131.681ea222@ghostwheel> I just buy them from aliexpress, ready with cables. For example: http://www.aliexpress.com/item/10-Sets-Micro-JST-2-0-PH-2-Pin-Connector-plug-with-Wires-Cables-150MM-AA2084/32466836980.html On Tue, 19 Jul 2016 10:35:43 +0100 Nevil Hunt wrote: > Hi Nilesh, > > Yes, I found them tricky to track down! > You also need to buy both the housing and the crimp pins separately > and both have a minimum order quantity. Then when you get them if you > don't have the right crimp tool it is difficult to crimp the wires. > You may find it cheaper and easier to order a micro:bit battery > holder, say from Kitronik, which comes with the right connector > fitted, then cut the wire and attach it to your battery pack. But if > you want to buy the individual connectors I bought these from > Farnell:- JST Battery Connector 2 pin Crimp Housing PHR-2 Farnell > Order Code 3616186 JST Battery Connector Crimp Pins BPH-002T-P0.5S > Farnell Order Code 3617210 > Cheers, > > Nevil > > From: gajjar.nilesh at gmail.com > Date: Mon, 18 Jul 2016 20:31:45 +0100 > To: microbit at python.org > Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths > and Physics teaching with Micro:bit motion sensors > > Hi Nevil > Can you please share the JST Connector Part number? > I am struggling to find one over google. > Thanks-nilesh > On Fri, Jul 15, 2016 at 3:16 PM, Nevil Hunt > wrote: > > > > Hi Nigel, > > By the end of next week I should be in a position where I can send > you some boards. By then I hope to have a few more of my custom > connectors available. For the designs you have in mind, which GPIO > will they use? The reason why I ask is that designs that just use P0, > P1 and/or P2 will work without the custom connector. Designs that use > the other GPIO need the connector. Your design ideas certainly sound > interesting. I've tinkered with some audio designs but it's really > not my area of expertise so I'd be interested in seeing what you can > come up with. I plan to be at Pycon in Cardiff on the Friday and it > would be good to meet if you are there that day. I am also at the IET > micro:bit day on the 29th July in London in case you (or anyone else) > is there that day. As far as publishing anything with my boards on > them I'd like to wait until a time when people if they want to can > obtain them and I'm not yet sure when that will be. As for the JST > connectors I have plenty of them. I had to buy 50 and I'm only ever > likely to use about a dozen so I can put a few in with the boards I > send you along with the crimp pins to go with them. If you don't have > a crimp tool you might have to improvise! Let me know what address to > post everything to. Cheers, Nevil From: nigel.kendrick at gmail.com > Date: Fri, 15 Jul 2016 13:25:54 +0100 To: microbit at python.org > Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths > and Physics teaching with Micro:bit motion sensors > > Hi Nevil, > > Happy to receive anything you have to spare - solderable boards are > fine. Let me know if you want postage/costs covered. > > Incidentally, I was laying out some boards of my own with specific > circuits on them to be published as Open Hardware DIY projects, but > maybe I could think about just (or also) publishing a working layout > and BOM to fit your boards. I have an all-in-one audio board with > spectrum analyser, 3V Class D audio amplifier, electret mic amplifier > and a sound detector/alarm circuit; that might be a squeeze for one > board, but they could be split into 3 separate circuits (a Spectrum > analyser, an audio amp and a mic/sound detector). > > Finally, do you know the exact part code (or Farnell/RS stock code) > for a JST plug to fit the power connector on the micro:bit; I thought > I was bound to have some in my parts bins, but it was not to be. I > already have half a dozen battery holders just waiting for the right > connector. > > A meetup at Pycon would be good. > > Nigel > On 27 June 2016 at 18:12, Nevil Hunt wrote: > > > > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm happy > to send you some of the boards I've had made which make doing so > easier (see attached photos) zbit:builder bolts onto the bottom of > the micro:bit and provides a grid for components to be soldered with > access to all GPIO and power. zbit:breadboard is similar but requires > no soldering. > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to > meeting you and anyone else involved with micro python on that day. > Regards, > > Nevil > > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors CC: > stestagg at gmail.com; leonaso43 at googlemail.com > > > > > > > > Hi everyone, > > > > I mentioned on this list a couple of weeks ago an idea to run a > session at PyCon UK Teachers' Day on using the Micro:bit's motion > sensors. > > > > A number of people - including Leona, Steve and Nigel (Cc-ed) - > replied wanting to get involved. > > > > Encouraged by this, I have just submitted the outline below. It > hopefully gives the conference organisers enough to say "Yup, go > for it" while leaving a lot of space for us to decide exactly what to > present. > > > > I am on holiday next week so will finally have time to email > everyone who has expressed interest about working together sorting > out the details. > > > > Thanks > > Stephen > > > > > > > > Title: > > Enriching Maths and Physics teaching with Micro:bit motion > sensors > > > > What are you proposing? > > A workshop for Teachers' Day > > (duration/number of attendees are flexible. TBD with PyCon UK > organisers) > > > > Abstract: > > The BBC Micro:bit has powerful accelerometer and compass > motion sensors. While they are fun for kids to play with, we > show how they can also be used in class to bring some key Maths and > Physics principles to life. > > > > This workshop session is intended for teachers who want to learn > about using micro:bit in their classes. No specific knowledge > of micro:bit or Python programming is assumed. People who already > know Python and micro:bit are also welcome to join in, > especially if you can help the teachers get started. > > > > Teachers and helpers are asked to send their ideas for teaching > examples to me at mail at stevesimmons.com > well before the Teachers' Day. We will write up several examples > to present in full, with some others as group exercises. > > > > Why will people be interested: > > This is a practical session to help teachers integrate > micro:bit into their classes. It can accommodate all levels of > experience and teachers and non-teachers are welcome. > > > > What level of audience: > > Novice > > > > More information about you (public): > > Stephen has been a Python programmer since 2000. He > trained as a mathematician and electrical engineer, with a PhD > in signal processing for radar target detection. After a period as a > management consultant, he worked for credit card companies in > Australia and The Netherlands, running areas like marketing, > risk, operations and strategy. Six years ago, he moved back into > technology and joined JPMorgan in London, where his team uses > Python to build trading, risk management and analytics systems. > > > > More information about you (private): > > I presented the tutorial "Pandas from the Inside" at > PyData London on 6 May 2016. I have also submitted a separate > proposal on motion sensors data fusion for the main PyCon UK > conference. > > > > > > > > > > _______________________________________________ > 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 > -- Radomir Dopieralski -- Radomir Dopieralski From gajjar.nilesh at gmail.com Tue Jul 19 15:03:05 2016 From: gajjar.nilesh at gmail.com (Nilesh Gajjar) Date: Tue, 19 Jul 2016 20:03:05 +0100 Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics teaching with Micro:bit motion sensors In-Reply-To: References: <57706E55.5090605@stevesimmons.com> <5770716A.5090906@stevesimmons.com> Message-ID: Many Thanks Nevil. On 19 Jul 2016 10:36 a.m., "Nevil Hunt" wrote: > Hi Nilesh, > > Yes, I found them tricky to track down! > You also need to buy both the housing and the crimp pins separately and > both have a minimum order quantity. > Then when you get them if you don't have the right crimp tool it is > difficult to crimp the wires. > You may find it cheaper and easier to order a micro:bit battery holder, > say from Kitronik, which comes with the right connector fitted, then cut > the wire and attach it to your battery pack. > > But if you want to buy the individual connectors I bought these from > Farnell:- > > JST Battery Connector 2 pin Crimp Housing PHR-2 Farnell Order Code > 3616186 > JST Battery Connector Crimp Pins BPH-002T-P0.5S Farnell Order Code 3617210 > > > Cheers, > > Nevil > > ------------------------------ > From: gajjar.nilesh at gmail.com > Date: Mon, 18 Jul 2016 20:31:45 +0100 > To: microbit at python.org > Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors > > Hi Nevil > > Can you please share the JST Connector Part number? > > I am struggling to find one over google. > > Thanks > -nilesh > > On Fri, Jul 15, 2016 at 3:16 PM, Nevil Hunt > wrote: > > Hi Nigel, > > By the end of next week I should be in a position where I can send you > some boards. By then I hope to have a few more of my custom connectors > available. > > For the designs you have in mind, which GPIO will they use? The reason why > I ask is that designs that just use P0, P1 and/or P2 will work without the > custom connector. Designs that use the other GPIO need the connector. > > Your design ideas certainly sound interesting. I've tinkered with some > audio designs but it's really not my area of expertise so I'd be interested > in seeing what you can come up with. I plan to be at Pycon in Cardiff on > the Friday and it would be good to meet if you are there that day. I am > also at the IET micro:bit day on the 29th July in London in case you (or > anyone else) is there that day. > > As far as publishing anything with my boards on them I'd like to wait > until a time when people if they want to can obtain them and I'm not yet > sure when that will be. > > As for the JST connectors I have plenty of them. I had to buy 50 and I'm > only ever likely to use about a dozen so I can put a few in with the boards > I send you along with the crimp pins to go with them. If you don't have a > crimp tool you might have to improvise! > > Let me know what address to post everything to. > > > Cheers, > > Nevil > > ------------------------------ > From: nigel.kendrick at gmail.com > Date: Fri, 15 Jul 2016 13:25:54 +0100 > To: microbit at python.org > Subject: Re: [Microbit-Python] PyCon UK proposal - Enriching Maths and > Physics teaching with Micro:bit motion sensors > > > Hi Nevil, > > Happy to receive anything you have to spare - solderable boards are fine. > Let me know if you want postage/costs covered. > > Incidentally, I was laying out some boards of my own with specific > circuits on them to be published as Open Hardware DIY projects, but maybe I > could think about just (or also) publishing a working layout and BOM to fit > your boards. I have an all-in-one audio board with spectrum analyser, 3V > Class D audio amplifier, electret mic amplifier and a sound detector/alarm > circuit; that might be a squeeze for one board, but they could be split > into 3 separate circuits (a Spectrum analyser, an audio amp and a mic/sound > detector). > > Finally, do you know the exact part code (or Farnell/RS stock code) for a > JST plug to fit the power connector on the micro:bit; I thought I was bound > to have some in my parts bins, but it was not to be. I already have half a > dozen battery holders just waiting for the right connector. > > A meetup at Pycon would be good. > > Nigel > > On 27 June 2016 at 18:12, Nevil Hunt wrote: > > Hi Stephen, Leona, Nigel, > > If your ideas need extra sensors connected to the micro:bit I'm happy to > send you some of the boards I've had made which make doing so easier (see > attached photos) > > zbit:builder bolts onto the bottom of the micro:bit and provides a grid > for components to be soldered with access to all GPIO and power. > > zbit:breadboard is similar but requires no soldering. > > Also, I've just submitted a proposal to demonstrate some of my other > zbit:connect boards on Teachers day at PyCon so I look forward to meeting > you and anyone else involved with micro python on that day. > > > Regards, > > Nevil > > ------------------------------ > To: microbit at python.org > From: mail at stevesimmons.com > Date: Mon, 27 Jun 2016 01:20:58 +0100 > Subject: [Microbit-Python] PyCon UK proposal - Enriching Maths and Physics > teaching with Micro:bit motion sensors > CC: stestagg at gmail.com; leonaso43 at googlemail.com > > > Hi everyone, > > I mentioned on this list a couple of weeks ago an idea to run a session at > PyCon UK Teachers' Day on using the Micro:bit's motion sensors. > > A number of people - including Leona, Steve and Nigel (Cc-ed) - replied > wanting to get involved. > > Encouraged by this, I have just submitted the outline below. It hopefully > gives the conference organisers enough to say "Yup, go for it" while > leaving a lot of space for us to decide exactly what to present. > > I am on holiday next week so will finally have time to email everyone who > has expressed interest about working together sorting out the details. > > Thanks > Stephen > > > > *Title: * > Enriching Maths and Physics teaching with Micro:bit motion sensors > > *What are you proposing? * > A workshop for Teachers' Day > (duration/number of attendees are flexible. TBD with PyCon UK organisers) > > *Abstract: * > The BBC Micro:bit has powerful accelerometer and compass motion sensors. > While they are fun for kids to play with, we show how they can also be used > in class to bring some key Maths and Physics principles to life. > > This workshop session is intended for teachers who want to learn about > using micro:bit in their classes. No specific knowledge of micro:bit or > Python programming is assumed. People who already know Python and micro:bit > are also welcome to join in, especially if you can help the teachers get > started. > > Teachers and helpers are asked to send their ideas for teaching examples > to me at mail at stevesimmons.com well before the Teachers' Day. We will > write up several examples to present in full, with some others as group > exercises. > > *Why will people be interested: * > This is a practical session to help teachers integrate micro:bit into > their classes. It can accommodate all levels of experience and teachers and > non-teachers are welcome. > > *What level of audience: * > Novice > > *More information about you (public): * > Stephen has been a Python programmer since 2000. He trained as a > mathematician and electrical engineer, with a PhD in signal processing for > radar target detection. After a period as a management consultant, he > worked for credit card companies in Australia and The Netherlands, running > areas like marketing, risk, operations and strategy. Six years ago, he > moved back into technology and joined JPMorgan in London, where his team > uses Python to build trading, risk management and analytics systems. > > *More information about you (private): * > I presented the tutorial "Pandas from the Inside" at PyData London on 6 > May 2016. I have also submitted a separate proposal on motion sensors data > fusion for the main PyCon UK conference. > > > > _______________________________________________ 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 paulwoolley at blueyonder.co.uk Sun Jul 24 05:05:15 2016 From: paulwoolley at blueyonder.co.uk (woolley paul) Date: Sun, 24 Jul 2016 10:05:15 +0100 (BST) Subject: [Microbit-Python] Using a REPL to debug code Message-ID: <1427503272.1835490.1469351115184.JavaMail.open-xchange@oxbe23.tb.ukmail.iss.as9143.net> Not working in a school I've only just got hold of a Microbit. Trying to read the error messages has been driving me nuts until I found this description of setting up a REPL on a Windows box,(part way down the page). http://www.i-programmer.info/projects/119-graphics-and-games/9636-commando-jump-game-for-the-microbit-in-python.html I had used PuTTY in the past when accessing servers but hadn't thought it possible on the Microbit. This may have been written about before but if not needs to be shared with others like me straining to read the error message. Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at thinkingbinaries.com Sun Jul 24 06:27:36 2016 From: david at thinkingbinaries.com (David Whale) Date: Sun, 24 Jul 2016 11:27:36 +0100 Subject: [Microbit-Python] Using a REPL to debug code In-Reply-To: <1427503272.1835490.1469351115184.JavaMail.open-xchange@oxbe23.tb.ukmail.iss.as9143.net> References: <1427503272.1835490.1469351115184.JavaMail.open-xchange@oxbe23.tb.ukmail.iss.as9143.net> Message-ID: Just use Mu, there is a REPL button built in. On 24 Jul 2016 10:05 am, "woolley paul" wrote: > Not working in a school I've only just got hold of a Microbit. Trying to > read the error messages has been driving me nuts until I found this > description of setting up a REPL on a Windows box,(part way down the page). > > > http://www.i-programmer.info/projects/119-graphics-and-games/9636-commando-jump-game-for-the-microbit-in-python.html > > I had used PuTTY in the past when accessing servers but hadn't thought it > possible on the Microbit. > > This may have been written about before but if not needs to be shared with > others like me straining to read the error message. > > Regards > > > Paul > > _______________________________________________ > 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 Sun Jul 24 07:18:46 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Sun, 24 Jul 2016 12:18:46 +0100 Subject: [Microbit-Python] Using a REPL to debug code In-Reply-To: References: <1427503272.1835490.1469351115184.JavaMail.open-xchange@oxbe23.tb.ukmail.iss.as9143.net> Message-ID: <5794A416.3070606@ntoll.org> On 24/07/16 11:27, David Whale wrote: > Just use Mu, there is a REPL button built in. > And remember to install the USB/serial driver from ARM (referenced from the Mu website here: http://codewith.mu/) N. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: From paulwoolley at blueyonder.co.uk Wed Jul 27 05:06:16 2016 From: paulwoolley at blueyonder.co.uk (woolley paul) Date: Wed, 27 Jul 2016 10:06:16 +0100 (BST) Subject: [Microbit-Python] Problems with Mu Message-ID: <757892974.1968345.1469610376156.JavaMail.open-xchange@oxbe3.tb.ukmail.iss.as9143.net> I have been using Mu for a few days now and I find it has two serious problems. One is that there is no SAVE AS so when doing progressive development you can't easily save the versions through the file name, you have to copy and paste to a NEW screen and then save. Several times I have foolishly hit SAVE and overwritten a previous version I should have kept. Secondly I find that when loading some files extra blank lines are being inserted. This would suggest that a CR/LF is the terminator between lines when a program is being saved and that two Line Feeds are being put in when loading. Certainly better to edit locally than having to go online. Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Wed Jul 27 08:19:05 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Wed, 27 Jul 2016 13:19:05 +0100 Subject: [Microbit-Python] Problems with Mu In-Reply-To: <757892974.1968345.1469610376156.JavaMail.open-xchange@oxbe3.tb.ukmail.iss.as9143.net> References: <757892974.1968345.1469610376156.JavaMail.open-xchange@oxbe3.tb.ukmail.iss.as9143.net> Message-ID: <9a8c6be3-f2bf-8082-2805-d79a3e6f6ae3@ntoll.org> On 27/07/16 10:06, woolley paul wrote: > I have been using Mu for a few days now and I find it has two serious > problems. > > One is that there is no SAVE AS so when doing progressive development > you can't easily save the versions through the file name, you have to > copy and paste to a NEW screen and then save. Several times I have > foolishly hit SAVE and overwritten a previous version I should have kept. > > Secondly I find that when loading some files extra blank lines are being > inserted. This would suggest that a CR/LF is the terminator between > lines when a program is being saved and that two Line Feeds are being > put in when loading. > > Certainly better to edit locally than having to go online. > > Regards > > Paul > > > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > Hi Paul, Thanks for the feedback - really appreciate you taking the time to let us know. Mu can only be improved by such contributions. To address each comment: Save As: This is by design and based upon feedback from teachers. They tell us that we should only have the essential buttons for file system related operations: new, load and save. Furthermore, given that Mu is supposed to be only a simple editor for beginners, if you're asking for features like "Save As" you're probably advanced enough to graduate to a more advanced editor. However, I totally see (and agree with) your point about versioning things. I'd caution about versioning via naming though. It's far better to use an SCM system such as GIT. You should also know that an upcoming feature I'd like to add to Mu is built in SCM so kids can rewind and recover work from the history of a file. I guess the most important point is Mu is simple *on purpose* so it encourages beginner developers to graduate to a "proper" editor. I often use the analogy that it's like bridging the gap between crawling and walking via toddling (Mu). CF/LF: Hmmm... this shouldn't happen and you've found a bug. Can you give as much information as possible about your operating system (I'm guessing it's Windows) and reliable, repeatable steps needed to recreate the problem? I'll take a look and see if I can fix things. Once again, many thanks for the feedback! :-) N. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: From carlos.p.a.87 at gmail.com Wed Jul 27 09:07:22 2016 From: carlos.p.a.87 at gmail.com (Carlos P.A.) Date: Wed, 27 Jul 2016 13:07:22 +0000 Subject: [Microbit-Python] Problems with Mu In-Reply-To: <9a8c6be3-f2bf-8082-2805-d79a3e6f6ae3@ntoll.org> References: <757892974.1968345.1469610376156.JavaMail.open-xchange@oxbe3.tb.ukmail.iss.as9143.net> <9a8c6be3-f2bf-8082-2805-d79a3e6f6ae3@ntoll.org> Message-ID: About the line problem, there is an issue opened in the tracker: https://github.com/ntoll/mu/issues/112 If you could provide any additional information there it would help getting fixed. On Wed, 27 Jul 2016, 13:19 Nicholas H.Tollervey, wrote: > On 27/07/16 10:06, woolley paul wrote: > > I have been using Mu for a few days now and I find it has two serious > > problems. > > > > One is that there is no SAVE AS so when doing progressive development > > you can't easily save the versions through the file name, you have to > > copy and paste to a NEW screen and then save. Several times I have > > foolishly hit SAVE and overwritten a previous version I should have kept. > > > > Secondly I find that when loading some files extra blank lines are being > > inserted. This would suggest that a CR/LF is the terminator between > > lines when a program is being saved and that two Line Feeds are being > > put in when loading. > > > > Certainly better to edit locally than having to go online. > > > > Regards > > > > Paul > > > > > > > > _______________________________________________ > > Microbit mailing list > > Microbit at python.org > > https://mail.python.org/mailman/listinfo/microbit > > > > > Hi Paul, > > Thanks for the feedback - really appreciate you taking the time to let > us know. Mu can only be improved by such contributions. > > To address each comment: > > Save As: > > This is by design and based upon feedback from teachers. They tell us > that we should only have the essential buttons for file system related > operations: new, load and save. Furthermore, given that Mu is supposed > to be only a simple editor for beginners, if you're asking for features > like "Save As" you're probably advanced enough to graduate to a more > advanced editor. > > However, I totally see (and agree with) your point about versioning > things. I'd caution about versioning via naming though. It's far better > to use an SCM system such as GIT. You should also know that an upcoming > feature I'd like to add to Mu is built in SCM so kids can rewind and > recover work from the history of a file. > > I guess the most important point is Mu is simple *on purpose* so it > encourages beginner developers to graduate to a "proper" editor. I often > use the analogy that it's like bridging the gap between crawling and > walking via toddling (Mu). > > CF/LF: > > Hmmm... this shouldn't happen and you've found a bug. Can you give as > much information as possible about your operating system (I'm guessing > it's Windows) and reliable, repeatable steps needed to recreate the > problem? I'll take a look and see if I can fix things. > > Once again, many thanks for the feedback! :-) > > N. > > _______________________________________________ > Microbit mailing list > Microbit at python.org > https://mail.python.org/mailman/listinfo/microbit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulwoolley at blueyonder.co.uk Thu Jul 28 07:38:05 2016 From: paulwoolley at blueyonder.co.uk (woolley paul) Date: Thu, 28 Jul 2016 12:38:05 +0100 (BST) Subject: [Microbit-Python] The joy of string processing Message-ID: <391452166.2057750.1469705885912.JavaMail.open-xchange@oxbe25.tb.ukmail.iss.as9143.net> For those of you into the fun of string processing there are a few snippets to be found in the three free Python books for Kindle on Amazon. Python: Learn in 24 hours by Rungta Python for Informatics by Severance Python by Byron Francis Easier to read on the Fire than the monochrome Kindle. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulwoolley at blueyonder.co.uk Thu Jul 28 07:26:37 2016 From: paulwoolley at blueyonder.co.uk (woolley paul) Date: Thu, 28 Jul 2016 12:26:37 +0100 (BST) Subject: [Microbit-Python] Mu import bug Message-ID: <606580018.2057020.1469705197476.JavaMail.open-xchange@oxbe25.tb.ukmail.iss.as9143.net> For those interested in my little problem I have attached before and Load screen dumps. I am running on a lap top with Windows 10. I also find that Mu crashes on a regular basis. Not having a monitor to see the output from my testing is not a problem, I sprinkle display.scroll through the code and then turn them on and off as comments. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: import_bug.pdf Type: application/pdf Size: 398824 bytes Desc: not available URL: From ntoll at ntoll.org Thu Jul 28 08:47:51 2016 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Thu, 28 Jul 2016 13:47:51 +0100 Subject: [Microbit-Python] Mu import bug In-Reply-To: <606580018.2057020.1469705197476.JavaMail.open-xchange@oxbe25.tb.ukmail.iss.as9143.net> References: <606580018.2057020.1469705197476.JavaMail.open-xchange@oxbe25.tb.ukmail.iss.as9143.net> Message-ID: On 28/07/16 12:26, woolley paul wrote: > I also find that Mu crashes on a regular basis. Can you be more specific? What happens? How can we reliably reproduce this problem? Mu leaves logs which may be helpful for us to track down problems. On Windows (7) these are likely to be found in: C:\Users\\AppData\Local\python\mu\logs\mu.log Can you forward these after a crash so we can take a look at what you were doing? Best wishes, N. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: From ben at benmr.com Thu Jul 28 09:34:41 2016 From: ben at benmr.com (Ben Mustill-Rose) Date: Thu, 28 Jul 2016 14:34:41 +0100 Subject: [Microbit-Python] Mu import bug In-Reply-To: References: <606580018.2057020.1469705197476.JavaMail.open-xchange@oxbe25.tb.ukmail.iss.as9143.net> Message-ID: Hi Paul, Instead of using display.scroll or the REPL within Mu have you considered using something like PuTTY to access it? That way you can do things like print("You're reading me via the REPL") and as you probably will have twigged, the text will show up in PuTTY or whatever program you're using. I use PuTTY exclusively when dealing with the REPL and it's working really well for me. Cheers, Ben. On 7/28/16, Nicholas H.Tollervey wrote: > On 28/07/16 12:26, woolley paul wrote: >> I also find that Mu crashes on a regular basis. > > Can you be more specific? > > What happens? How can we reliably reproduce this problem? > > Mu leaves logs which may be helpful for us to track down problems. On > Windows (7) these are likely to be found in: > > C:\Users\\AppData\Local\python\mu\logs\mu.log > > Can you forward these after a crash so we can take a look at what you > were doing? > > Best wishes, > > N. > > From nieko.baarda at icloud.com Sun Jul 31 15:27:06 2016 From: nieko.baarda at icloud.com (Nieko Baarda) Date: Sun, 31 Jul 2016 21:27:06 +0200 Subject: [Microbit-Python] Subscription Message-ID: I like an subscription for receiving news. Greetings, Nieko Baarda nieko at n-baarda.nl Sent from my iPad