Simple Setup

Champs,

I am a newbie when it comes to HW programming, and I wish to accomplish one simple design for a POC. Here it is

I need to have a board with two components,
1- A simple motor that I can control the rotation speed for programamtically (ex: computer script)
2- A simple LED that displays rotation speed

My questions are
1- What components (models) do I need to purchase?
2- Are such scripts available online as examples?

Cheers

And my question is:

What's a POC?

Proof of Concept :slight_smile:

I work in network security, and I need to show how operating system security flaws can cause physical impact (ex: motor rotation speed)

Ah ok.... I thought it was some kind of complex technical term referring to a kind of device.

First have a look at this where a potentiometer is used to set the brightness of an LED.

Then expand that to this where that same PWM output could go to the transistor and control the motor speed.

So there you have a LED whose brightness is indicative of the speed.

If it turns out that you need to control the motor direction as well, then you need to look at an approach like this one.

There are loads of tutorials on this: I just like the pix on those ones. Have a look in the Playground.

You may well find it worthwhile getting a starter kit such as the official Arduino one but there are others.

This board has both a dc motor a driver and leds to indicate rotation.
In addition you have tp provide control signals for pwm and direction. This can easily be done from a arduino. If you want to control it from a PC you write a program i processing to communicate with the arduino

Thanks for the responses folks,

Is it straightforward to connect the starter kit and the DC mini board to a computer and control the speed from there?

P.S. by LED I meant LED screen, or any kind of small display

You control the speed by sending values from the pc to the arduino. This can be done from either a terminal program or an application that somehow automates the process.
The program in the arduino has to parse these values, scale them and output them on a pwm pin with analogWrite(). Maybe not the first program for a beginner but pretty straighforward