Mấy bác ai có hình ảnh về mạch nguồn 12v ra 5v và mạch điều khiển động cơ cho mấy robo giúp mình với. Đang học bên Cơ điện tử, cái này còn lơ mơ quá. Các bác giúp dùm e
em thích cái này lắm, năm ngoái thi ĐH đầu tiên tính thi vào nghành công nghệ tự động nhưng suy nghĩ tới lui lại vào CNTT. Mong sau này có cơ hội lập trình phần mền cho mấy chú robot này hehehehehehe
cần chi mạch , rồi hàn phức tạp. Mua cục sạc điện thoại trên 5giay thiếu gì. Giá lại rẻ Nguồn đúng 5V , dòng khoảng từ 500mA -> 1A Xài luôn nguồn 220V
Đây là sơ đồ Robot walker khá đơn giản, moter để điều khiển các cặp chân cho nó bò đi và dùng IR để phát hiện vật cản mạch nguồn bro còn lười vẽ mạch in thì sao làm đc mạch khó hơn! hơi khó hỉu Còn đây là mạch dùng PIC Code: program TwoSensor3_1 'Three Sensor Line Follower 'Version 1.0 'November 27, 2004 'LeftSensor = sensor on the left = Pin 0 = Input = Low when robot is on course 'MiddleSensor = sensor in the middle = Pin 1 = Input = High when robot is on course 'RightSensor = sensor on the right = Pin 2 = Input = Low when robot is on course 'LeftMotor = motor on the left = Pin 3 = moves robot to the right = Output 'RightMotor = motor on the right = Pin 4 = moves robot to the left = Output 'If LeftSensor is triggered, it is over the line, therefore, move right by turning off RightMotor 'If RightSensor is triggered, it is over the line, therefore, move left by turning off LeftMotor 'Start Code symbol LeftSensor = PORTC.0 'Set up symbols symbol MidSensor = PORTC.1 symbol RightSensor = PORTC.2 symbol LeftMotor = PORTD.1 symbol RightMotor = PORTD.2 symbol Delay = Delay_ms(1000) symbol Sensors = PORTC symbol Motors = PORTD main: TRISC = 1 'Set PORTC as Input TRISD = 0 'Set PORTD as Outputs normal: do Motors = %00000011 'Turn both motors on going forward loop until Sensors <> %00000010 'Keep going until one of the outer sensors is triggered if Sensors = %00000100 'If it is the Left sensor, then goto LeftOverLine 'Goto the procedure that would fix that end if if Sensors = %00000001 'Otherwise, if it is the Right Sensor then goto RightOverLine 'goto the procedure that would fix that end if if Sensors = %00000111 'Otherwise, if it is all of the sensors, then goto FullStop ' Goto the procedure for a full stop end if goto normal 'keep doing this LeftOverLine: LeftMotor = 0 'Turn LeftMotor off RightMotor = 1 Do Delay 'Pause until Loop until LeftSensor = 0 'Left Sensor is no longer over the line RightMotor = 0 Return RightOverLine: RightMotor = 0 'Turn RightMotor off LeftMotor = 1 Do Delay 'Pause until Loop until RightSensor = 0 'RightSensor is no longer over the line LeftMOtor = 0 Return FullStop: Motors = 0 Goto FullStop Return end. Dùng mikroBasic chuyễn qua Asm nạp vào.