Robot JSON file: “RoboCompete_MainRobot.json”
World JSON file: “Practice_mat_magnets.json”
Sensor/Actuator port: OutE - Electromagnet
An electromagnet can be turned off and on with different strengths (in our case motor % - 100% is max power and 0 is OFF)
This mat has some magnetic objects added.
Control the individual motor by using blocks in the “Motor” block group.
Our program moves ARM near an object, enables electromagnet, lifts arm, moves arm to different position, turns off electromagnet to drop the object and returns the arm starting position
Try different values for electromagnet power %.
Move closer to different objects and pick them up. Try to drop them outside the table for Fun!!!
Moving arm very fast can throw magnetic objects, so try to move arm slowly
Download RobCompete_MainRobot_v2.json
Download Practice_mat_magnets.json