Тёмный
No video :(

Driving a Servo Motor with the BBC micro:bit 

Elektor TV
Подписаться 30 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

14 дек 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@freaker126
@freaker126 6 лет назад
cool. i love the micro bit. so small and simple but can run servo!
@infinitystem6565
@infinitystem6565 6 лет назад
Thank you mon ami!
@ra8620
@ra8620 6 лет назад
If you place French signal inside a Chinese processor it will compile into English.
@liviosemeraro2951
@liviosemeraro2951 3 года назад
Hey, amazing video a big thank's to you, but I have a question, what is the pin0.set_analog_period(value) ? ^^ happy coding !
@ElektorTV
@ElektorTV 3 года назад
Set the period of the PWM signal being output on pin0 to period in milliseconds. The minimum valid value is 1ms.
@liviosemeraro2951
@liviosemeraro2951 3 года назад
@@ElektorTV It's used for ? And thank you for you answer ^^
@ElektorTV
@ElektorTV 3 года назад
@@liviosemeraro2951 The typical RC servo expects to see a pulse every 20 ms, which is why the PWM signal is set to a period of 20 ms. pin0.write_analog controls the width of the PWM pulse, which determines how far the servo will turn.
@DownhillAllTheWay
@DownhillAllTheWay 3 года назад
Is there a way of sensing when a servo has reached its target angle? I know I can use a pause to give it enough time to get there, but that will always be too short or too long (there's almost a 0% chance of getting it exact). It would be nice to be able to get on with whatever you want to do when it reaches that angle, rather than wasting time.
@ElektorTV
@ElektorTV 3 года назад
The only way to do that is to add a sensor (e.g. a mechanical or optical switch or a perforated disk or a potentiometer) to measure the sensor angle and give feedback.
@DownhillAllTheWay
@DownhillAllTheWay 3 года назад
@@ElektorTV Thanks for the reply. It's what I expected, though I had hoped that there was some little-known feedback from a typical servo that would do it. After all, they have a potentiometer in them and a microcontroller, so they have the 'smarts', though they would need a four-wire connection if they were going to transmit.
@ElektorTV
@ElektorTV 3 года назад
@@DownhillAllTheWay Servos are often quite easy to modify, so you might try to bring out that fourth wire yourself.
@ianhydes5805
@ianhydes5805 7 лет назад
the title is a bit misleading, you're controlling a servo not a stepper motor
@ElektorTV
@ElektorTV 7 лет назад
You're right Ian, thank you for pointing this out to me.
@ianhydes5805
@ianhydes5805 7 лет назад
no problem. I didn't watch the whole video, just flicked through but it looked good for servo information. I'm just frustrated that I'm struggling to find much information on driving stepper motors or external interrupts for the micro bit. I'll get there I'm sure. Have fun, its neat technology
@csi228
@csi228 5 лет назад
bonjour
Далее
How to use the BBC micro:bit on board accelerometer
10:35
micro:bit V2 - The new BBC micro:bit - Hands on
11:57
Китайка Шрек поймал Зайца😂😆
00:20
Иран и Израиль. Вот и всё
19:43
Просмотров 1,2 млн
micro:bit RC car make
15:57
Просмотров 42 тыс.
Microbit Hack with Lego
2:18
Просмотров 44 тыс.
Using a BBC Micro:bit to control a Dc Motor
6:22
Просмотров 3,7 тыс.
Breakout Board for the BBC micro:bit
3:01
Просмотров 33 тыс.
The BBC micro:bit - 10 GAMES
5:23
Просмотров 25 тыс.
Китайка Шрек поймал Зайца😂😆
00:20