How to Make a Position Learning Machine

by cristinepotu7171 in Circuits > Arduino

208 Views, 1 Favorites, 0 Comments

How to Make a Position Learning Machine

snapshot7.png
Arduino Machine Learning
In this tutorial, we build a device with learning multiple positions of an SG90 servo motor


Supplies

aaa.jpg
download (4).png
Servo-Motor-Pinout.png
alb-128X64-0-96-inch-OLED-LCD-LED-Display-Modul-pentru-Arduino-250x250.jpg
download (5).jpg
download (2).jpg
downloadV.png
  1. Arduino Uno or Nano
  2. Joystick module
  3. Servo motor SG90
  4. Oled display 64x128
  5. 2x push buttons
  6. Breadboard and jumper wires
  7. Visuino software

Schematic Diagram

arduino-gb634cfe67_1920.png
Make the connections of the components according to the diagram below


Construction

snapshot6.png
snapshot7.png
snapshot8.png
snapshot9.png
snapshot10.png
snapshot11.png
snapshot12.png
At this stage. assemble the device according to the electrical diagram above.Fix the SG90 servo motor and the joystick module as firmly as possible to the support bracket for high precision.


Upload the Code in Arduino

111.png
downloadV.png
At this stage we load the code into the Arduino with the help of the Visuino program, you have a video on how to install it and the download link. The software is designed for 10 movements that can be memorized. You can change this value by adding the "remember analog value" component.


Start the Device

snapshot11.png
snapshot8.png
snapshot7.png
snapshot6.png
We feed the device and with the help of the joystick we move the position of the engine to the point that interests us. At this moment, push the learning button and the number of the position will appear on the screen and it will flash. We repeat for all 10 positions. Press the push button for automatic movement, and the device will follow the learned positions. For any other details, I am at your disposal in the comments. Good luck everyone!