Driving a Servo Motor with the BBC micro:bit

  Рет қаралды 31,152

Elektor TV

Elektor TV

Күн бұрын

Пікірлер: 15
@ra8620
@ra8620 7 жыл бұрын
If you place French signal inside a Chinese processor it will compile into English.
@freaker126
@freaker126 6 жыл бұрын
cool. i love the micro bit. so small and simple but can run servo!
@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.
@liviosemeraro2951
@liviosemeraro2951 4 жыл бұрын
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 4 жыл бұрын
Set the period of the PWM signal being output on pin0 to period in milliseconds. The minimum valid value is 1ms.
@liviosemeraro2951
@liviosemeraro2951 4 жыл бұрын
@@ElektorTV It's used for ? And thank you for you answer ^^
@ElektorTV
@ElektorTV 4 жыл бұрын
@@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.
@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
@infinitystem6565
@infinitystem6565 6 жыл бұрын
Thank you mon ami!
@csi228
@csi228 5 жыл бұрын
bonjour
micro:bit V2 - The new BBC micro:bit - Hands on
11:57
Stu Lowe
Рет қаралды 58 М.
micro:bit RC car make
15:57
Microsoft MakeCode
Рет қаралды 43 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 40 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 19 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 132 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 9 МЛН
Servo Motors, how do they work?
15:12
The Engineering Mindset
Рет қаралды 2 МЛН
Что купить новичку в Arduino? Большой обзор
21:49
Заметки Ардуинщика
Рет қаралды 916 М.
Using a BBC Micro:bit to control a Dc Motor
6:22
Garry Crossan
Рет қаралды 3,8 М.
Puente H L298N - Carro Seguidor de Línea con Micro:bit - PARTE 3 ⚡
10:21
The BBC micro:bit - 10 GAMES
5:23
Mr. Piay
Рет қаралды 25 М.
Micro: bit Robot, Coding device for kids via Python
2:56
Labplus
Рет қаралды 88 М.
First use of BBC micro:bit app for iOS
3:07
Neil Rickus
Рет қаралды 38 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 40 МЛН