The magnetic gripper can be assembled in various ways according to the wiring diagram.
The following is an example of assembling an electromagnetic capture circuit on a breadboard.
It is recommended to lay the wiring between the elements on the back side of the board (in the following images, the wiring is done over the diagram for illustrative purpose).
Place the Schottky diode, 10K resistor, and transistor on the soldering board.
Solder the contacts on the other side of the board and bite off the remaining element legs.
Connect the pins of the resistor and the two outer legs of the transistor.
Connect the center leg of the transistor and the leg of the Schottky diode (opposite to the gray marking strip).
Cut the required amount of magnetic grab wire and solder it to the pins of the Schottky diode.
Solder the Dupont - male wires to the transistor and diode leg (red, black wires), and the Dupont - fmale wire to the opposite transistor leg (white wire).
In order to check the operation of the gripper, apply a voltage of 5V to the signal wire. You can use the Dupont dad-dad wire for that.
After applying voltage, the magnet should turn on.
Connect the magnetic gripper to a Raspberry Pi for software activation.
An example of the code activating the magnetic gripper can be found here.
Connect the gripper to the Arduino Nano board in order to control it manually.
It is convenient to place it on the same soldering board — insert it into the appropriate holes and solder it from the back to the board.
Then connect the signal output of the circuit to the selected port and solder the Dupont female wire to the selected signal port on the board.
- Install an electromagnet into the center hole on the gripper deck.
- Use a zip tie to pull the assembled circuit to the back of the deck.
- Plug the Arduino D11 signal pin into one of the AUX pins on the flight controller.
- Plug the power wire of the electromagnetic gripper to JST 5V.