Tag Archive: potentiometer


This project refers to an Arduino sketch which allows the rotation of three dimensional shapes using appropriate sensors. Essentially, the Arduino collects values from the sensors and corresponds them to the [0, 360] range (rotation angle). Every time we get a pair of values (X, Y) for the rotation of the shape, the pair is sent over the USB serial port to the PC.

The PC runs a Python script which produces three-dimensional shapes with OpenGL. Also, the script obtains the pairs via the USB serial port and renews the current shape of the screen. For performance reasons, the three-dimensional shape is renewed only when there are changes in the pair (X, Y).

Finally, you should know that to run the Python script properly the Arduino should already be running and input sensors should have been calibrated regarding their edges. The calibration is performed automatically in the first 15 seconds (use two potentiometers as an example for both input sensors).

Continue reading

This project refers to an Arduino sketch which with the help of an external potentiometer (input device) can control a bar graph of many LEDs. Finally, when the sketch starts running, it calibrates the potentiometer (and so there should be a spin at both ends manually).

Continue reading

This project refers to an Arduino sketch which with the help of an external potentiometer (input device) can control the rotation speed of a DC motor (output device). Finally, when the sketch starts running, it calibrates the potentiometer.

Continue reading

This project refers to an Arduino sketch which with the help of an external potentiometer (input device) can move the position of a servo motor (output device) clockwise or counterclockwise. The system also features two LEDs which – each time the value of the potentiometer changes – change their brightness in such a way that it is obvious in which side of the servo motor are.

For example, when the potentiometer is in the extreme left position then the left LED is lit 100% while the right one 0% (or vice versa). Finally, when the sketch starts running, it calibrates first the potentiometer.

Continue reading