Тёмный
Bill Siever
Bill Siever
Bill Siever
Подписаться
9.8 Data Structures & Algorithms: B-Trees
3:33
6 месяцев назад
Комментарии
@lookyfunny8419
@lookyfunny8419 2 месяца назад
Hi there. In bitty app options I have only scan time and device filtering and no option like yours in video. App doesnt recognize mbit. Is there any direct link for bitty android app ? Thanks
@bsiever
@bsiever 2 месяца назад
Hi --- things to check: a) Are you sure Bluetooth is on/enabled on your phone? b) Did you update the project to disable Pairing (shown at 0:48 in the video)? c) You may want to try the "micro:bit pairing" (shown around 4:35 in the video). Pairing is/was required for the iOS app when the video was made. It might not be anymore. You might be able to try a different approach. Here's an old thread showing how the MBit app's controller could be used to interact with the micro:bit: forum.makecode.com/t/android-app-discord/7696/9 . It includes a link to generic code that worked at the time.
@samanthapennington4232
@samanthapennington4232 4 месяца назад
The BLE HID Extension isn't available when I search for it.
@bsiever
@bsiever 4 месяца назад
The full name is microbit-pxt-blehid. I just did a quick test and it looks like it's there --- I searched for "BLE" and it was listed first. If that still doesn't work, here's an empty project that already include the BLE HID blocks: makecode.microbit.org/S55587-75114-67388-20014
@ariitard
@ariitard 5 месяцев назад
for 'mouse' how to tweak it such that microbit needs to be tilted more to move cursor?
@bsiever
@bsiever 5 месяцев назад
There are several different approaches that may have subtly different behaviors. The easiest may be to just multiply the acceleration by a fraction before it's ever used. For example, in the example at makecode.microbit.org/20442-75928-77698-24331 you may want to try replacing the `acceleration` blocks (that set `newXAcc` and `newYAcc`) with `0.7 x acceleration`
@AnonymousYoutubeUserA
@AnonymousYoutubeUserA 6 месяцев назад
It's odd how little views this has
@bsiever
@bsiever 6 месяцев назад
The videos were just released on RU-vid yesterday, so I'm surprised they have any views or comments already! They had all been hosted in the school's learning management system (Canvas) and only available to the students who took the course in Fall of 2020, but a former student asked about them so I decided to make them public.
@harshbarsaiyan6640
@harshbarsaiyan6640 6 месяцев назад
Nice explanation
@FactyTact
@FactyTact 6 месяцев назад
will it work in microbit V1?
@bsiever
@bsiever 6 месяцев назад
No, I'm afraid this is micro:bit v2 only extension. It relies on some updates and the additional memory in the v2.
@FactyTact
@FactyTact 6 месяцев назад
​@bsiever is there any other way to use micro:bit V1 as a keyboard. I have tried with this extention on bbc micro:bit v1 but it does not work. BTW thank you for quick reply.
@bsiever
@bsiever 6 месяцев назад
@@FactyTact You might take a look at this thread: forum.makecode.com/t/anyone-ever-used-microbit-as-a-controller/9959. There are a few things that are mentioned that are relevant: 1) It has a link to an older Keyboard extension that worked on the V1 (github.com/kshoji/pxt-bluetooth-keyboard) and 2) I don't think that extension works with current versions of MakeCode, but the post also mentions a trick to access older versions of MakeCode, which may still work with that extension. Vegz78 mentions using an older version of MakeCode. Good Luck!
@plotaAAAA
@plotaAAAA 8 месяцев назад
i cant fiind devices extensions
@bsiever
@bsiever 8 месяцев назад
It's no longer officially supported, so it doesn't show up in the Extensions list. "Devices" may still work in older projects. You can try using this empty project, which already includes the Devices toolbox: makecode.microbit.org/_C733433TYJsd
@Andru_SL
@Andru_SL 10 месяцев назад
music
@steamthinkingroboticaeduca
@steamthinkingroboticaeduca 11 месяцев назад
Hi, I bought the app and it works perfectly. I would like to implement some of this funcionalies for an APP that I am creating. Is it possible to acces to the code of the app to adapt it to my project? Thank you!
@bsiever
@bsiever 11 месяцев назад
Hi --- they MakeCode blocks for the Bluetooth Services used by the app can be used by other apps, including the one you are writing. Some of the specifications for those services can be found here: lancaster-university.github.io/microbit-docs/resources/bluetooth/bluetooth_profile.html . It's also possible to look at the service implementation in the source code of MakeCode and the micro:bit runtimes. If you haven't worked with bluetooth LE before, you may want to start by experimenting with a bluetooth browser App, like LightBlue (on iOS) or nRF Connect (iOS and Android).
@steamthinkingroboticaeduca
@steamthinkingroboticaeduca 11 месяцев назад
@@bsiever Thanks!
@omer_attas
@omer_attas Год назад
great
@adamfalletta
@adamfalletta Год назад
Thanks Bill, I appreciate you and your work on this project. Was wondering if you can point me in the right direction. I'm trying to use the BLE HID on Key Press Down as soon as PIN 0 is touched. I tried it out and it works fine but only when you release the key (i have a connected arcade button). Is there any possible way to achieve on KeyPressDown? Similar to how the HID Keyboard works with the Circuit Playground Express. Many thanks , Adam.
@bsiever
@bsiever Год назад
Hi @TheRevVBand: Thanks! The problem is due to the way touches are detected, not this extension. Here's a demo that may be closer to what you want: makecode.microbit.org/_4maRTkH081XA . It will show a small heart on the "touch down" (while holding GND and P0). It seems to take about about a second for it to be detected, but it is distinct from the release. It'll show a large heart when P0 is released. For further general questions you may want to post to the micro:bit forum at: forum.makecode.com/
@adamfalletta
@adamfalletta Год назад
@@bsiever Thanks for the prompt response! I've tried that code and it does not work the way I need to, but a step in the right direction. I'm trying to build real time BLE HID keyboards so i can hook them up to web based games. The controller needs to send a keystroke in real time. here is an example with an esp32... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BkfmBk6OeQM.html - would we be able to do something like this? - An even better example... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QJr3OmvUpC4.html - Thanks again. (i'll check the forum if we can't get it to work) =)
@bsiever
@bsiever Год назад
@@adamfalletta You may want to take a look at Jurjen's Micro:bit-MaKey projects: gitlab.com/jurjendevries/makey-makey-microbit . If you just need 2-3 types of key event, you may want to mix-in one of my other extensions: Button Clicks (makecode.microbit.org/pkg/bsiever/microbit-pxt-clicks). Here's an example that sends keys as soon as A or B are pressed down by using Button Clicks: makecode.microbit.org/_1iHcAX0e4T5x . I think the underlying problem is due to how capacitive touch events are detected. There may be some workaround, but I won't be able to look into for a few weeks .
@adamfalletta
@adamfalletta Год назад
@@bsiever That plugin is a great way for buttons to act like keypresses. The ultimate plugin would be for onPin touch Down - this way I could hook up an external arcade button (or sensors) and build my full line products. I could also listen for analog values and send keystrokes as soon as a certain threshold is reached. I appreciate your honesty and will circle back in a few weeks to check your availability as these projects are extremely important not only to me, my partners, but for many. I hold you in the highest regard Bill and I'm hopeful that you can find it in your heart to include me in your schedule on some point down the line. If you come across anything until then I will be very glad to hear it. Sincerely Adam
@bsiever
@bsiever Год назад
@@adamfalletta Oh --- Are you using buttons? I thought you were using capacitive touch. If you're using buttons, you might get the behavior you want with pulse events, like this: makecode.microbit.org/_Xvec9tPzXbvR (Sends the key when P0 is connected to GND --- a button between GND and P0 should trigger it)
@Xyva43
@Xyva43 Год назад
I'm trying to use the micro:bit as a mouse like you showed in the video on Windows 10 PC but it's not working, I've copied the code and connected it via bluetooth but nothing's happening
@bsiever
@bsiever Год назад
Hi @Xyva --- I can't be sure it'll work with all set ups, but here are some things to try: 1) Here's my exact version to try: makecode.microbit.org/_7b6a48akA8zv ; 2) Unpair and then repair the micro:bit with Windows ; 3) Maybe try it on a different computer to see if it's the computer or the micro:bit that's the problem.
@andresduranmolina7994
@andresduranmolina7994 Год назад
I just want to connect a Bluetooth keyboard and the micro bit in the matrix led show me the letter that I pressed
@bsiever
@bsiever Год назад
Hi, I'm sorry, but that's not something the extension shown here is able to do. This example makes the micro:bit act as a keyboard. Having the micro:bit connect to a bluetooth keyboard is technically possible, but I'm not sure if it'd be possible with MakeCode and I haven't heard about any extension that does that.
@user-rg4ch9bj9c
@user-rg4ch9bj9c Год назад
Hi, Thank you so much for developing this extension. @time 7:05 of your video I see the begin of function called "move mouse". Could you share it? Thank a lot.
@bsiever
@bsiever Год назад
Sure! Here it is: makecode.microbit.org/_YPWV6tfmr8TW (If you do cool things with the extension, please share!)
@NicelySatisfied
@NicelySatisfied Год назад
does my pc need to have a bluetooth adapter?
@bsiever
@bsiever Год назад
It needs to support Bluetooth Low Energy. Most PCs made in the last 5-6 years (since around 2017) support it. Older PCs may need an adapter. Bluetooth support must be enabled. For example, it won't work on school computers if the school disables bluetooth.
@NicelySatisfied
@NicelySatisfied Год назад
@@bsiever The motherboard I bought doesn't support it so I'm going to have to get an adapter. Thanks for the information.
@JavierGarcia-se3vi
@JavierGarcia-se3vi Год назад
Thank you very much for the tutorial, Greetings from Mexico! 😄
@bsiever
@bsiever Год назад
Greetings from the U.S.! I hope it helps --- it's a bit out of date.
@Sternhammer89
@Sternhammer89 2 года назад
Hi, I am a teacher with two classes building MicroBit buggies, we want to control them using BlueTooth and have iPads. After much searching and looking at out of date apps, I came across this video (having already found Martin Wooley's Bitty Controller). I have been trying to get it working but first realised my old class set of MicroBit V1's needed a firmware update. I then found the 'Devices' extension is no longer supported, but did manage to add it (before I found your responses below to the same problems). I did this but whenever I try to scan, no devices can be found. I have not yet had time to test the official MicroBit IOS app, but will hopefully do that shortly (it's also free which helps :-) )
@bsiever
@bsiever 2 года назад
Hi Bill --- Are you sure you disabled "Pairing", which I show how to do at about 42 seconds into the video (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UuGTBZRwC-8.html)? This has to be done on each project and then, of course, the micro:bit needs to be updated with the new code. It may also be necessary to include at least one Bluetooth Service. The micro:bit _should_ show up in scans without much trouble if you disable pairing. (Disabling pairing makes it a lot easier to use Bitty Controller) Good Luck!
@bsiever
@bsiever 2 года назад
One more idea. It's also possible to use the Yahboom's MBit app to control almost anything over Bluetooth without the Devices blocks. Here's a thread on the Makecode Forum where I describe the approach: forum.makecode.com/t/android-app-discord/7696/9
@Sternhammer89
@Sternhammer89 2 года назад
@@bsiever Tried again, couldn't get BittyBlue to recognise the MicroBit, but after a couple of goes with the MicroBit IOS app I manage to display North and south arrows on the Microbit. It did keep disconnecting though.
@llmtube
@llmtube 2 года назад
Thanks Bill!!! Such a great inspiration!!
@bsiever
@bsiever 2 года назад
I'm really looking forward to seeing the cool projects others come up with!
@Matthew286_
@Matthew286_ 2 года назад
so OP, thanks.
@michaelli3997
@michaelli3997 2 года назад
Hi, thanks for making this, but I followed all the steps on a Windows 10 PC, it doesn't work, nothing happens when I press the button, I tried to re-pair the micro: bit, but nothing works, do you have any suggestions?
@bsiever
@bsiever 2 года назад
Can you post on the extension discussion forum and include: a) a link to the micro:bit program you're using (use the share button in MakeCode) and b) a description of your computer? The discussion forum is as: github.com/bsiever/microbit-pxt-blehid/discussions
@maciekkrasnicki9773
@maciekkrasnicki9773 2 года назад
Hi! I have one question, is there any possibility to connect micro:bit with PC via Bluetooth or other wireless option?
@bsiever
@bsiever 2 года назад
Sure! If you want to see how to send data from the micro:bit to a PC, see one of my other examples: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eJiddQwKPck.html ; If you want the micro:bit to act like a Bluetooth HID device, see this demo: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-n4J5GN72N_4.html (It shows a MakeCode extension I made). For other Bluetooth options, search for Bluetooth here: github.com/carlosperate/awesome-microbit/
@maciekkrasnicki9773
@maciekkrasnicki9773 2 года назад
@@bsiever Okay, I've checked it:) And I have one more question, is there any way to connect with Robot MaqueenPlus Micro:bit to PC via bluetooth? I am asking, because if I use an extension for bluetooth then I cannot use an extension for MaqueenPlus. Do you know if there is any possibility to do it?
@bsiever
@bsiever 2 года назад
@@maciekkrasnicki9773 Maybe. I've created a "fork" of the MaQueen+ Extension that you can try, but I have not tested it at all. You can add it by going to add extensions and in the search bar enter "bsiever/pxt-DFRobot_MaqueenPlus_v20", hit enter, and select the tile. You can then add Bluetooth (and remove Radio). Or you can open this test project that has both the MaQueen blocks and Bluetooth blocks: makecode.microbit.org/_CeUd19asyJLH . By the way, the RGB lights may interfere with Bluetooth behavior. It may be necessary to not use both in the same script. Good luck!
@bsiever
@bsiever 2 года назад
@@maciekkrasnicki9773 In addition to my other suggestions, you may want to ask questions like this on the MakeCode Micro:bit forum: forum.makecode.com/c/microbit or ask DFRobot (makers of MaQueen)
@maciekkrasnicki9773
@maciekkrasnicki9773 2 года назад
@@bsiever Hi again! Thank you very much for your great help:) Unfortunately, I have one more question. I created an app for Andrid in App Inventor to control MaqueenPlus, but I have one problem with downloading a program to a micro:bit via MakeCode. I created this app using BlocklyTalky in App Inventor (it works without any problems) and in MakeCode (unfortunately when I want to download a program on micro:bit V2 there is an error 927). I' ve checked it and it means that "The program is incompatible with the micro:bit version you are using". Do you have any idea how I can fix it? Is there any version of BlocklyTalky for micro:bit V2? Or is there any way to change micro:bit V2 "software" for micro:bit V1 "software"? Or maybe You know another way to create such an app? Please let me know, have a nice day:)
@niceman567
@niceman567 2 года назад
Thanks for the video, I can't seem to find the "DEVICES" in extension, has that been discountinued?
@bsiever
@bsiever 2 года назад
"Devices" is not being supported any longer, but it can still be added and used. See my other comments on this video for instructions to use it or look at this support article: support.microbit.org/support/solutions/articles/19000125262-makecode-devices-extension
@niceman567
@niceman567 2 года назад
@@bsiever thanks a lot
@AndrewMcDonald_McScience
@AndrewMcDonald_McScience 2 года назад
Very cool!! The last one for temperature collection reminds me of a website that I'm building with some college students. Would be happy to share it with you. Your input would be much appreciated.
@bsiever
@bsiever 2 года назад
Sure! Please share!
@palpatel8809
@palpatel8809 2 года назад
The devices extension is not showing
@bsiever
@bsiever 2 года назад
See my comment below for details to add it yourself. Or try this project: makecode.microbit.org/_6p08qDUF2Vs8
@DJ-xk1ux
@DJ-xk1ux 2 года назад
Nice 👍
@bsiever
@bsiever 2 года назад
Thanks!
@calebjoest6791
@calebjoest6791 2 года назад
Rip i either buy glitchy app or buy an iphone...
@aayushtiru3950
@aayushtiru3950 2 года назад
You can use kitronik move app it work just as nicely and is free and is on Android
@techmonstah
@techmonstah 2 года назад
Very interesting with so many options. Like Loreto in the comments said, it'll help support accessibility needs!
@bsiever
@bsiever 2 года назад
Loreto has already put together a great example of an assistive device: twitter.com/loretod101/status/1495154394266017794?s=20&t=P62lu0HidYqisjP3bwbjOQ
@darshnikmakwana1162
@darshnikmakwana1162 2 года назад
can i use bluetooth and usb serial communication simultaneously ?
@bsiever
@bsiever 2 года назад
Yes, you should be able to use it while also using USB serial!
@loretodumitrescu1486
@loretodumitrescu1486 2 года назад
This is amazing!!! Thank you so much for developing this extension. It'll be a game-changer in supporting low-cost assistive technology. Can't wait to try it out.
@unai0675
@unai0675 2 года назад
Good tutorial but when I connected my Micro-bit to the app in my menu doesn't show the monitor and control
@bsiever
@bsiever 2 года назад
Are you using iOS? Unfortunately, I don't think the Android version of the app includes this feature.
@artjomskucajevs5706
@artjomskucajevs5706 2 года назад
Am i able to connect to the microbit from a phone wirelessssly if its connected to an external powersupply ie. not a pc.
@bsiever
@bsiever 2 года назад
Yes. The only reason it was connected in the video was to allow me to show the details of programming it. Once it is programmed, you can connect while it's on battery power (or other forms of power supply).
@happybreak5318
@happybreak5318 2 года назад
thank you very much now it works
@makecodeandhardware1395
@makecodeandhardware1395 3 года назад
This does not work for me. I have copied your above code and downloaded it to both V1.5 and V2.0 Microbit. I have used an HP Stream laptop which DOES have bluetooth. I get the message that they are paired, the laptop correctly recognizes the Microbit by name. When I click 'pair' as you did, I do not get the 'show console Device '' bubble. It only stays with the simulator bubble. Have done the whole process repeatedly. The Bluetooth console is enabled. Suggestions ?
@bsiever
@bsiever 3 года назад
I just did a couple of quick tests. At first it behaved as you described: Bluetooth connected, but it didn't show data. I made a few minor changes / reprograms / reloads and it started working. Here's a slightly updated version of the project with a minor delay between each "send": makecode.microbit.org/_3yT8KAcHuho3 (My theory is that data was streaming in too fast and the PC's console couldn't keep up, so data was lost. I've experienced something like this before with other projects)
@bsiever
@bsiever 3 года назад
The "Devices" extension doesn't seem to show up when you search for it now. You can manually add "Devices" manually to a new project. You'd: 1. Create a new project; 2. Add the Bluetooth extension (as shown); 3. Go to the gear menu in the upper right and pick "Project Settings"; 4. Click "Edit Settings As text"; 5. Type the line "devices": "*", right above the bluetooth line (include the double quotes (") and the comma (,)). 6. Click on the "Blocks" at the top to return to the editor view 7. For the "Devices" palette to be redrawn you may need to either reload the page or click "Blocks" and then JavaScript/Pyhton and Blocks again.
@aayushtiru3950
@aayushtiru3950 2 года назад
Thanks for the tutorial I have been trying to connect my mobile but wasn't able to
@palpatel8809
@palpatel8809 2 года назад
Can u please create a tutorial I need that for my project
@cicihyrum3469
@cicihyrum3469 2 года назад
It didnt show up
@bsiever
@bsiever 2 года назад
@@cicihyrum3469 You may have to reload the page/project. You can also try this link to an empty project that contains the Devices toolbox. Just hit the edit button and customize it: makecode.microbit.org/_C733433TYJsd
@dabitzz
@dabitzz Год назад
@@palpatel8809 i made a tutorial on how to get the devices extension ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-iChe5aYWhbE.html
@chcolate_chip3020
@chcolate_chip3020 3 года назад
This was helpful, I wanted to make a remote control car with my microbit
@davidperks1514
@davidperks1514 3 года назад
Very interesting presentation. I'm off to test out these features.
@bsiever
@bsiever 4 года назад
Here's the project code: makecode.microbit.org/_aykdWqRK4DKb
@dennisdunbar3940
@dennisdunbar3940 4 года назад
Best explanation of how to set this up that I have found, thank you!
@bsiever
@bsiever 4 года назад
Thanks! I'm glad it helped.
@AliciaCatalina
@AliciaCatalina 5 лет назад
Thanks so much for amazing video, plus the instructions on how to make the camera into a webcam
@YaserFarid
@YaserFarid 6 лет назад
Do you even know what is WebRTC?
@bsiever
@bsiever 6 лет назад
WebRTC is an API for real-time communications in browsers. Unfortunately these videos were mis-titled and show UV4L rather than WebRTC.
@DeepankarMaithani
@DeepankarMaithani 7 лет назад
what you did is used mjpeg streamer not the webrtc streaming. Webrtc streaming didnt worked for me. Did it work for you?
@bsiever
@bsiever 6 лет назад
Sorry --- I've mostly ignored this since posting it. This video demonstrates the use of UV4L Server & mjpeg, NOT WebRTC. I've updated the RU-vid title (but not the video itself, which still contains mentions of WebRTC) . Thanks for the feedback.
@MrBrian9107
@MrBrian9107 7 лет назад
thanks for sharing, can you show how configure it with the cloud (over the internet).
@AjirThamlika
@AjirThamlika 7 лет назад
how to configure usb webcam with uv4l ?