8624 views|12 replies

1w

Posts

25

Resources
The OP
 

Programming the microbit using an Android phone or tablet [Copy link]

 
 
Most Android phones and tablets now have USB OTG function, so we can easily program microbit through the USB of the phone (newbit in the forum can also use this method). First, we need to prepare a USB OTG converter or a USB OTG adapter cable. In this way, microbit can be connected to the phone via USB OTG. Secondly, you need to install a new version of Chrome (Google) browser, the version must be at least greater than 65. In addition, you need to upgrade the firmware of DAPLink on microbit to enable microbit to support webusb function. The firmware version must be greater than 0246. For the method of upgrading the firmware, please refer to the previous posts in the forum, the latest DAPLink firmware download (Note: This firmware is not suitable for newbit). After the preparation, you can start programming through the browser of the mobile phone. Let's open PythonEditor first (https://micropython.top/, you can add the URL to your bookmarks so you don't have to enter it every time, or you can enter it through the online programming navigation bar in the Chinese forum). After writing the code (or using graphical programming), press the burn button and the following prompt will appear. After selecting DAPLink CMSIS-DAP, the connect button will change from gray to blue. Press the connect button and the program will start downloading. After downloading, it will run automatically. After downloading the program, if you press Open REPL, you can also enter the online REPL mode to debug the code at the bottom level. If you want to use makecode for graphical programming, you can open the makecode website (https://makecode.microbit.org/v1?webusb=1) in the chrome browser of your mobile phone. Then click the gear in the upper right corner and select device pairing in the pop-up menu. A connection prompt similar to the previous one will appear. After connecting, press the device pairing button in the lower right corner. Then select OK to allow access to the USB device. If the steps are correct, a successful pairing prompt will appear. After completing the program writing, click the download icon in the lower left corner (the one with a small arrow) to start downloading. It should be noted that because the USB OTG performance of the mobile phone is low, the download time is relatively long, which is easy to cause download timeout. Therefore, it is best to download the program once using makecode on the computer, so that there will be no mistakes when downloading with the mobile phone. This content is originally created by EEWORLD forum user dcexpert. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

Latest reply

Mobile phones can also be fully developed, awesome!   Details Published on 2019-3-16 09:14
 
 

96

Posts

0

Resources
2
 
Not bad, not bad
 
 
 

252

Posts

0

Resources
3
 
Yes, this is only available on Android devices.

Comments

Currently, iOS does not have permission to use USB.  Details Published on 2018-10-25 15:47
 
 
 

1w

Posts

25

Resources
4
 
jj1989 posted on 2018-10-25 14:26 Yes, this can only be used on Android devices.
Currently, iOS does not have USB permissions.
 
 
 

750

Posts

3

Resources
5
 
Can webusb access HID peripherals? I'll have to study the operating mechanism when I have time.

Comments

You can look at the source code of DAPLink  Details Published on 2018-10-25 20:22
Personal signature

要666

 
 
 

1w

Posts

25

Resources
6
 
le062 posted on 2018-10-25 17:55 Can webusb access HID peripherals? I have to study the operating mechanism when I have time.
You can take a look at the source code of DAPLink
 
 
 

750

Posts

3

Resources
7
 
dcexpert posted on 2018-10-25 20:22 You can look at the source code of DAPLink
It has nothing to do with the device side. When evaluating webusb before, I heard that HID peripherals are not supported for security reasons. https://stackoverflow.com/questi ... supported-by-webusb
Personal signature

要666

 
 
 

30

Posts

0

Resources
8
 
Can the microbit webusb be used on iPhone or iPad?

Comments

I haven't tried it, I guess it won't work, Apple's system is relatively closed  Details Published on 2018-12-21 17:01
 
 
 

1w

Posts

25

Resources
9
 
tanhailong posted on 2018-12-21 16:42 Can the original poster's microbit webusb be used on an iPhone or iPad?
I haven't tried it, I don't think it will work, Apple's system is relatively closed

Comments

I tried it, but it didn't work. I downloaded the Chrome browser. There is no pairing option in the settings.  Details Published on 2018-12-24 16:44
 
 
 

30

Posts

0

Resources
10
 
dcexpert posted on 2018-12-21 17:01 I haven't tried it, I guess it won't work, Apple's system is relatively closed
I have tried it, it really doesn't work, I downloaded the Chrome browser. There is no pairing option in the settings

Comments

Let's use an Android tablet first. Fortunately, it's not expensive. If you buy a second-hand one, it only costs 200 to 300 yuan.  Details Published on 2018-12-24 20:33
 
 
 

1w

Posts

25

Resources
11
 
tanhailong posted on 2018-12-24 16:44 I tried it, it really doesn't work, I downloaded the Chrome browser. There is no pairing option in the settings
Use an Android tablet first, fortunately it is not expensive. If you buy a second-hand one, it only costs 200-300 yuan.
 
 
 

237

Posts

0

Resources
12
 
good
 
 
 

9

Posts

0

Resources
13
 
Mobile phones can also be fully developed, awesome!
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list