For the beginners, let me tell you that BlueJ is a free Java Development Environment designed especially for beginners and is used worldwide. Here, in this tutorial, an attempt has been made to how to use BlueJ on the Raspberry Pi to control a servo motor using Soft PWM that is Software Pulse Width Modulation. Before going through the project, analyze and download the project ServoMotor, as it is pre-essential for working of the BlueJ, running on the Raspberry Pi.
Equipment required in this project includes a servo motor, breadboard, Resistor (1 kΩ), jump wires consisting of 2 male-female, 3 male-male and batteries and battery support. Stuffs are assembled and it starts with the servo motors that have three pins, two for power and one for control. Servo motor requires too much energy, therefore it is supported with the batteries to power the servo.
After connecting wires with the servo motor and designing the circuit, the breadboard is connected to the Raspberry Pi in order to finish the circuit. Once the code is installed, the project ServoMotor is opened in the BlueJ and a new ServoMotor object is created. For complete description and details about the usage of pins, check out the sections called Under the Hood. For other information, codes and videos, check out the following website.
Filed Under: Reviews