Arduino - Control LED blinking using Computer

preview_player
Показать описание

Hi, In this video I'll be demonstrating how to control the blinking of an LED attached to the arduino using Computer's signal.

This video has been made as an answer to ohiocomputerguy's question which was :
"Hi, I was wondering if you could elaborate on some commands to send the arduino. I've got the serial communications down, and I've got 3 buttons that turn led's on and off, but I want to make some buttons do routines. for instance, I would like to have a button that let's the arduino blink all three led's but also be able to stop them from blinking if the button is pressed again. like a light controller. thanks in advance."
So to use three LEDs simply connect them all to pin 13 (or your desired pin), for visual studio as i said in the video add a blink boolean variable and if the button is clicked then blink = !blink ;
and if blink == true then write "A" to serial else write "b" (or anything else).
ENJOY :)
Рекомендации по теме
Комментарии
Автор

how can we increase or decrease speed of led by sending serially '+' and '-' respectively?

herrypapaiya
Автор

id watch every video he made. im a super noob and he is carying me

Adam-emrg
Автор

An unrelated question: are you finished with your operating system series or are you planning more videos?

guzman-do
Автор

Hello, First of all I wanted to say thank you for putting together your first video. It's helped me out ALOT. When I run this code and use the serial monitor to enter "A" the LED blinks for a fraction of a second and turns off. When I use the visual studio form to turn it on and off it works fine. Any idea why this might be happening?

MrBrandonh
Автор

buenas tardes, por favor necesito hacer que con una señal de pulsador en la entrada de arduino me muestre un led en la pantalla de la computadora, gracias

jaento