How to make a compass with a BBC Micro:bit | Coding | STEM | Project

  Переглядів 18,504

iNimbleSloth

iNimbleSloth

День тому

Learn how to program a BBC Micro:bit to work as a compass. See how you can either display N, S, W or E to the LED display or an arrow that always points North. The BBC Micro:bit is a cheap microcontroller that is a great way of introducing yourself to coding. Download the code here: www.inimblesloth.com/microbit...
0:00 Introduction
0:25 How Should it Work?
2:48 Code Editor
3:09 Start Coding - Letters Version
3:40 Test on Real Micro:bit
8:08 Start Coding - Arrow North Version
9:08 Test on Real Micro:bit
10:16 JavaScript Code
#Coding #STEM #project
Let’s stay social :-)
Never miss a video from iNimbleSloth
*****************************************
📲 / inimblesloth
📲 / inimblesloth
📲 / @inimblesloth
📲 / inimblesloth
📲 iNimbleSloth.com
📲 / inimblesloth

КОМЕНТАРІ: 18
@rnagra3225
@rnagra3225 Місяць тому
Thank you for this and providing the sample code!
@factzbyaparna2775
@factzbyaparna2775 Місяць тому
Thank you so much for such a great explanation!
@saraypinerez2649
@saraypinerez2649 2 роки тому
Thanks for the video! It helped me a lot
@ratemyfuneral
@ratemyfuneral 4 роки тому
Nice, I was worried you didn't have enough pen colours... fortunately this concern was short-lived.
@iNimbleSloth
@iNimbleSloth 4 роки тому
🤣🤣 you crack me up
@qpphil5150
@qpphil5150 2 роки тому
Great video!
@ConexSpot
@ConexSpot 2 роки тому
That is so cool
@flashnolan314
@flashnolan314 4 роки тому
Nice video! Two comments: A.) Time lapse or summarize last two cardinal directions. We the viewer could see where you were going. B.) A logical AND might be better here to check for a valid condition. For example North could also be less than 135. OR can be more ambiguous.
@iNimbleSloth
@iNimbleSloth 4 роки тому
Glad you liked it, thanks for commenting and the feedback!
@gartmorn
@gartmorn 4 роки тому
A few more lines of code and I take it you could have NE, NW etc etc?
@iNimbleSloth
@iNimbleSloth 4 роки тому
Thanks for watching and commenting! Yes definitely, I only omitted these as I wanted to make this video as quick and simple to follow as possible. Have you used a Micro:bit before?
@gartmorn
@gartmorn 4 роки тому
Yes I have been using different platforms but I'm not the greatest at coding! I'm playing with pi4 just now and considering giving pico 8 a go. I also want to try a spectrum emulator as I have a book with spectrum codes! My youngest is 15 so I'm trying to get him interested. I really started in electronics building circuits but microcontrollers are now a big favourite if only I was better at coding!!
@iNimbleSloth
@iNimbleSloth 4 роки тому
I've not come across Pico 8 before but just Googled it, looks great. What language are you coding with on the Pi4? I tried a bit of Python with my youngest on Pi and he did Scratch at school. Talking of microcontrollers, we've also played about with the Arduino Uno, although not done any videos yet. Coding comes with practice but I am still very much a novice, I do enjoy it though.
@gartmorn
@gartmorn 4 роки тому
@@iNimbleSloth I've done a little bit of both but really just using others code and modding it rather than doing stuff from scratch(excuse the pun).
@silvercattv
@silvercattv 2 роки тому
why does it say 529 :(
@iNimbleSloth
@iNimbleSloth 2 роки тому
The most likey course for this is that the version of hex file is wring. I did this on an original microbit,. Try visiting makecode.microbit.org and import the hex file and then re-download. I'd like to know how you get on.
@hammerbugg
@hammerbugg 3 роки тому
Dude now all you need to do is make this download content
@iNimbleSloth
@iNimbleSloth 3 роки тому
Just uploaded to my site, quick page with nothing fancy - www.inimblesloth.com/microbit-compass/ Download is a ZIP containing both the letters and arrows versions as pre-compiled hex files. You need to extract the ZIP file and then copy your chosen hex file onto the micro:bit. There's a link on that page as to where you can open and edit those hex files. Have fun :-)
BBC Micro:bit MIDI Guitar
7:00
SamTheTinkerer
Переглядів 44 тис.
The World's Fastest Cleaners
00:35
MrBeast
Переглядів 85 млн
"Поховали поруч": у Луцьку попрощались із ДВОМА Героями 🕯🥀 #герої #втрати
00:15
Телеканал Конкурент TV - новини Луцька та Волині
Переглядів 142 тис.
Making a micro:bit compass
8:20
Mr Dimmick's Computing Channel
Переглядів 60 тис.
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 564 тис.
Compass Tutorial for Micro:bit
4:39
Coding Bits by Charlotte Bradley
Переглядів 9 тис.
Getting Started with micro:bit Part 4: Remote Burglar Alarm
7:58
SparkFun Electronics
Переглядів 69 тис.
How to Build a Massive LED Wall on a Budget
14:30
Tech Random
Переглядів 321 тис.
micro:bit Shooting Game
17:52
3C Creative
Переглядів 60 тис.
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 614 тис.
Что если бы Apple делала зубные щётки?
0:59
МОЙ ПЕРВЫЙ ТЕЛЕФОН - Sony Erricson T280i
18:02
ЗЕ МАККЕРС
Переглядів 65 тис.
Start from 0 at any point on the T1 Digital Tape Measure
0:14
REEKON Tools
Переглядів 20 млн
Как установить Windows 10/11?
0:56
Construct PC
Переглядів 1,2 млн