此網誌的熱門文章
Final Draft Documentation: Servos Part
Arduino Code: #include < Adafruit_PWMServoDriver .h> #include < Wire .h> Adafruit_PWMServoDriver pwm0 = Adafruit_PWMServoDriver (0x40); Adafruit_PWMServoDriver pwm1 = Adafruit_PWMServoDriver (0x42); Adafruit_PWMServoDriver pwm2 = Adafruit_PWMServoDriver (0x44); #define servomin 125 #define servomax 575 #define gridSize 5 uint8_t servonum = 0; void setup () { Serial . begin (9600); pwm0. begin (); pwm1. begin (); pwm2. begin (); pwm0. setPWMFreq (60); pwm1. setPWMFreq (60); pwm2. setPWMFreq (60); } void loop () { int mx = analogRead (A0); int my = analogRead (A1); for (int y = 0; y < gridSize; y++) { for (int x = 0; x < gridSize; x++) { int index = (y * gridSize) + x; int targetX = map (x, 0, gridSize-1, 0, 1023); int targetY = map (y, 0, gridSize-1, 0, 1023); int valX = map ( abs (mx-targetX), ...
Reference2: Technical
Technical Reference: Top 10 Servo and Stepper Motor Projects using Arduino Video link: https://www.youtube.com/watch?v=KPelWQ7XBu4 This is a video showing 10 Arduino motor projects by using the servo motor and the stepper motor, these projects can be the reference and inspiration for me to think of the form of using the servo motor and stepper motor to control our installation and show the possibility of using a servo motor and stepper motor by the control of Arduino. By cooperating with the scientific theory, there are many ways that we can think about to use in our project, and the mechanism shown in this video can be the reference for me to think about the use of different materials and theory support to control the movement of our installations, it can be further developed at the moment with different hardware testing during the semester break I can do, and the works in the video have inspired me a lot on the design of the hardware control and the method of the servo placem...
.jpeg)
留言
發佈留言