Adding sensors to the LFR
I wanted to add a robotic arm - gripper to pick an object which is placed on the black line. A 3D printed gripper is assembled to the MG995 servo motor.
Arty S7-50 | Servo Motor |
IO9 | Pulse (Orange) |
Add this line to the constraint file (Arty-S7-Master.xdc)
#set_property -dict { PACKAGE_PIN T15 IOSTANDARD LVCMOS33 } [get_ports { MG995 }]; #IO_L17N_T2_A13_D29_14 Sch=ck_io[9]
module gripper(
input wire logic clk,
output logic MG995
);
logic [7:0] speed = 8'd0;
pwm arm (.clk, .duty(speed), .pwm_out(MG995));
end module