🦾Misty Arm
The Misty telescopic robotic arm is finally here. Find the front part that best suits your needs and share it!
Last updated
The Misty telescopic robotic arm is finally here. Find the front part that best suits your needs and share it!
Last updated
Misty's telescopic arm opens a whole new world of applications. Misty can help you solve many tasks like grabbing and bringing objects around!
Breadboard
Some wires of different lengths
One resistance 1kΩ and one 2 kΩ
Powerbank
Alligator pins
For testing the signal between Arduino and Misty
One LED and one button
One resistance of 330 Ω and one of 10kΩ
Three points have to be clarified in the circuit because the software that creates the circuits doesn't have some elements:
In the real circuit, as explained in this section, it's necessary to create these connections to allow communication between Misty and Arduino.
Connect the pins as explained here
In the real circuit, those pins are not connected to the necessary power bank because otherwise the Bluetooth module and the motors couldn't work simultaneously.
For this reason, we need to connect the 5V to the plus and the GND to the ground of the power bank to give power to the circuit.
Of course what we have there it's not a LED but it's the Arduino Bluetooth Module HC-05. The pins of the LED represent the central four pins of the HC-05.
The VCC is connected to the 5V The GND is connected to the ground/minus The TXD is connected to pin 4 The RXD is connected to two resistances. Connect the 1kΩ to the pin 3 and the 2kΩ to the ground.
App file:
In order to comfortably move the arm from a smartphone application we will create a mobile app with MIT app inventor. Once you open an account you can click on Projects>Import project(.aia) from your computer and select the file above.
Your app will be ready! You can download MIT app inventor from the app store of your phone. Once you have the app on your phone you can click on Build>Android app and scan the QR code with your phone. Download the app and use your arm!
If you're interested in building or designing your app you can drag and drop the elements that you need from the left side to the screen and set them in the position you prefer. Don't forget to insert the Bluetooth client (connectivity) and the clock (sensors) as well. Once you have the screen done you can build the code by clicking on Blocks.
At the top, we have two buttons for connecting the smartphone to the Arduino Bluetooth HC-05.
Then, with a very simple design you can find three sliders each controlling one motor.
Moving the slider will change the position of the motors. It's better to tap the position we want the motor to be rather than sliding it because it has a higher chance of straight success.
On the top, we define the libraries and the components that we will use in the code such as the servo library, the two servos, the Arduino Bluetooth module HC-05 and some variables.
In the setup it's important to set the serial begin to 9600 (this is the bound rate for the communication between Misty and Arduino) and to set also the Arduino Bluetooth module HC-05 on the same bound rate.
In the loop, before if (Bluetooth.available() > 0)
we check if Misty can receive commands from the Arduino by clicking the button as in this lesson.
Later we just detect the message and and assign it to each motor.
If the message starts with s1 or s2 the servos will move, if the message starts with ma (Misty arm) then Arduino will send a message to Misty to move the arm in that position.
In this code, we only set a Serial message read event. In the event, if Misty receives the serial message "green", it means that the Arduino button is pushed so Misty will change her chest LED to green, otherwise it's the position to which the right arm has to go so we convert that string to an int variable.
You can use this code in the Misty Studio as well, if you want to get the output when this is released you can use this code in your Desktop Environment and don't forget to add Misty's IP address in
misty = Robot().
Once you plug-in your HC-05 go into the settings of your device and connect it with your phone. It will ask you to insert a password and you can use either 1234 or 0000. Once your module is connected to your phone it will appear in the list of available devices when you open your app and click on the button connect to connect with your HC-05 module.
It's not necessary to have the button and the LED in the circuit and so in the project but I used it to check if the communication with Misty was working so it may be helpful for your project too.
To build this project I took inspiration from this project. You can click on it and get more information about your new Misty arm.
The slider of the Misty arm has been set in the range of -29 to 25 to prevent the new and longer arm from damaging the original motor that controls the arm movement. If the arm is accidentally triggered to go in a lower position then 25 shuts immediately Misty from the button in the back (the same one that you use to turn her on).