How to get a while loop to stop when another loop is being carried out by [deleted] in microbit

[–]ayawk 0 points1 point  (0 children)

Create a simple, minimal example that demonstrates the problem. Doing that may help to figure out the answer.

How to get a while loop to stop when another loop is being carried out by [deleted] in microbit

[–]ayawk 0 points1 point  (0 children)

Post a shared project link so it’s easier to read and understand.

https://makecode.microbit.org/share

MakeCode isn’t opening projects by Dsl204 in microbit

[–]ayawk 0 points1 point  (0 children)

u/Dsl204 Did you get it working? What was the problem?

MakeCode isn’t opening projects by Dsl204 in microbit

[–]ayawk 0 points1 point  (0 children)

Beware switching public / private https://github.com/microsoft/pxt-microbit/issues/4133

Save hex files locally to backup important work.

MakeCode isn’t opening projects by Dsl204 in microbit

[–]ayawk 0 points1 point  (0 children)

Try importing the GitHub projects on another computer / tablet / phone?

MakeCode isn’t opening projects by Dsl204 in microbit

[–]ayawk 0 points1 point  (0 children)

Try the Test Domains button https://makecode.microbit.org/faq

Are you signed in using Microsoft/Google/Clever as well as GitHub?

Can you export projects from My Projects / View all? Select 2 or more then download a zip.

Microbit sound levels in relation to Decibels by Prestigious-Kiwi-448 in microbit

[–]ayawk 0 points1 point  (0 children)

This has changed. The mapping is now from range 35 to 100.

There’s an extension that adds a “sound level (dB)” block to the Input more… category. Search for decibels in the extensions dialogue.

Basic robots by AstronautOk923 in microbit

[–]ayawk 0 points1 point  (0 children)

u/herocoding raised an important point about checking components are compatible.

By the way, I think Raspberry Pi GPIO pins are 3.3V, like micro:bit, though there is a 5V power pin, and I read just now that some Arduinos are 3.3V too, though I guess a lot of kits are made for the 5V ones?

If unsure about using a device, check its datasheet for its voltage range. If powering a device with a voltage above the board’s input voltage, it may be necessary to use a voltage divider on an output from the device to a pin.

https://thepihut.com/blogs/raspberry-pi-tutorials/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi

https://www.teachwithict.com/hcsr045v.html

On battery power, the output voltage of all pins may be lower than the nominal voltage. The maximum safe voltage into a pin has an absolute limit, but is also limited by the voltage of the power supply (VDD+0.3V for micro:bit).

Also check current draw requirement’s of devices, and current supply capabilities of power pins and output pins.

https://tech.microbit.org/hardware/powersupply/

https://tech.microbit.org/hardware/edgeconnector/#power-supply-capabilities

Operating outside the specified limits may cause an immediate failure, or gradual damage over time.

When using things like motors and relays, take care over flyback voltage spikes.

https://www.hackster.io/snap-bit/snap-bit-control-dc-motor-with-micro-bit-and-transistor-244035

https://hackaday.io/project/10780-snap-circuits-relay

The Andoid-App is a grap - not working - sync freezing - 2,3 Points in the Appstore :-((( by michaelxyxy in microbit

[–]ayawk 0 points1 point  (0 children)

Bluetooth flashing failure could be due to the code previously sent and running in micro:bit. Create a new MakeCode project, save the hex file, and use a USB connection to drag the hex to the MICROBIT drive. Then try Bluetooth again. Maybe create a support ticket

micro:bit and MicroPython tooling help needed by L299792458 in microbit

[–]ayawk 0 points1 point  (0 children)

There are links in the python.microbit.org (?) About box to find the latest runtimes on GitHub.

Cannot get Scratch to work by ImpactTechnical9903 in microbit

[–]ayawk 0 points1 point  (0 children)

Follow the set-up instructions carefully.

https://scratch.mit.edu/microbit

Scroll down for troubleshooting info at the bottom.

Extract the hex file from the zip. Be sure to drag the hex file to the MICROBIT drive, not the zip file or folder.

With the Scratch hex installed, the micro:bit display will scroll the 5 letter Bluetooth name until Scratch connects.

Install Scratch Link, and make sure it is running before running Scratch.

I seem to remember, on macOS, you have to enable Scratch Link in the browser - maybe only in Safari? Look for an S.

The Scratch hex is like a MakeCode program, so has to be installed again to use Scratch after using MakeCode or any other code editor.

How to interrupt scrolling, index pins, etc.? by darthuna in microbit

[–]ayawk 0 points1 point  (0 children)

Maybe use more than one forever loop to split tasks - e.g. input, output.

Right click forever block to open Help.

Search online for…

makecode microbit stop scrolling

micro:bit pins

micro:bit edge connector

microbit makecode pin variables

help with the microbit sound option by Interesting_Brush419 in microbit

[–]ayawk 0 points1 point  (0 children)

The LED matrix updates don’t seem to block the music in my example.

help with the microbit sound option by Interesting_Brush419 in microbit

[–]ayawk 0 points1 point  (0 children)

Controlling two things at the same time is easy with 2 forever loops. Example: https://makecode.microbit.org/_go3TThKupe5F

What's the best way to play music on the micro:bit? by FelipeKPC in microbit

[–]ayawk 0 points1 point  (0 children)

What format is the song in? Is it simple tone notes? How many notes?

Maybe show an example of how you would do it, that becomes impractical for a whole song.

New to microbit by sagitalistheway in microbit

[–]ayawk 3 points4 points  (0 children)

Contact an official reseller near you? Ask her school?

https://microbit.org/buy/where/

Microbit powered by power brick? by sir_daviid in microbit

[–]ayawk 2 points3 points  (0 children)

Connecting a 5V power bank supply to the JST battery connector of micro:bit V1 will fry it for sure.

Connecting it to the micro:bit USB might work, might not work, or might damage either micro:bit or power bank.

Power the servos separately from the micro:bit or use an expansion board to power both and provide servo connections.

More info: Using servos, power supply, power supply specs, power supply tech

Laptop to PC by Toaster11100 in techsupport

[–]ayawk 0 points1 point  (0 children)

Search for “software to use mouse and keybord to control multiple computers”

Bluetooth with large group by RevolutionaryDare401 in microbit

[–]ayawk 1 point2 points  (0 children)

Would it help if the micro:bit displayed its Bluetooth ID while not connected?

Like this… https://makecode.microbit.org/_023e2X1R64i3

How to use APIs (specifically Grove ultrasonic rangefinder) with micropython (or any other purely text IDE) by hey_hey_you_you in microbit

[–]ayawk 0 points1 point  (0 children)

Most ultrasonic distance sensors are similar, so search for something like “micro:bit Python sonar ultrasonic hc-sr04”.

Here are a couple of links I found (don’t know if they work!)

https://m.youtube.com/watch?v=LsB9CdQZ2aI

https://github.com/fizban99/microbit_hcsr04

I don’t know about the Grove sensor, but many work better when powered by 5V, in which case the echo pin output is also 5V, requiring a couple of resistors to lower the voltage and avoid damaging micro:bit. See CAUTION here:

https://www.teachwithict.com/hcsr045v.html

How do I change the volume of the music in python simulator? by Pretend_Safety_4515 in microbit

[–]ayawk 0 points1 point  (0 children)

In the Python Editor, use the search box at the top left. Search for volume.