Air:bit 1 drone code explained

preview_player
Показать описание
Explanation of the code being run at the micro:bit on the drone.
Рекомендации по теме
Комментарии
Автор

Hello!
Very excited! pls share with me the file downloaded for this! thanks

windy_calmseaphannguyen
Автор

Can you share micro: bit code please? Thanks

aliyaahmadova
Автор

Mircro bit or air bit is similar products name ?

shivamchaurasiya
Автор

Hello,
I finished witn the hardward part of the air:bit without difficulties.

Because I prefer pure micropython than blocl programmation I tried simple codes to try to understand how to command the 4 motors. I supposed that Arm and throttle varaibles are defined by the lower control board:

import microbit as mi

Arm = 1
throttle = 0
while True:
if mi.button_a.was_pressed() and throttle < 45:
throttle = throttle + 3
if mi.button_b.was_pressed() and throttle > 3:
throttle = throttle - 3

Then I tried to command analogically the control board:

import microbit as mi
output = 0
while True:
if mi.button_a.was_pressed() and output < 924:
output = output + 100
mi.pin0.write_analog(output)
if mi.button_b.was_pressed() and output > 99:
output = output - 100
mi.pin0.write_analog(output)

But the both codes do not run ?

Could you help me please ?

jeanoberson
Автор

where did you get the airbit extension? I cannot find it.

michellewendt