Showing posts with label serial port. Show all posts
Showing posts with label serial port. Show all posts

February 23, 2011

Motor Speed Control through a PC Serial Port with arduino

Last time I showed you how to "speak" to your arduino through a serial port. Today we will use that knowledge to control a motor! About a week ago I took apart an old CD Burner and found 3 motors. I will use one of those today.

The program is very straightforward, just like yesterday we send data from the Serial Monitor in the arduino program, the board "listens and responds" to them.

Here is a video of the program running, I explain the code after that.


February 22, 2011

Arduino Control over Serial Port

So let's build something more difficult. We will see how you can control arduino over a serial port. We turn the onboard LED on and off through the serial port.
Let's see the video of the program working and then we will explain the code.