lab vortex shaker
I was inspired by the lab vortex shaker which is a device used for shaking samples it consists of servo motor and plastic tip to hold the sample.
So I went with a servo motor and a buzzer as my two components.
I used Tinkercad to simulate the circuit and write the Arduino code, after which I used the Arduino software to upload the code to the Arduino tool and make it work. also I used Arduino Bluetooth control to connect the mobile to the Arduino so that it can receive data
for the circuit I used Breadboard, Arduino to be the brain , Bluetooth to conect the components to the mobile , jumpers , buzzer, servo motor and resistance
First, I use Tinkercad to model the circuit, then I build it using my kit, write the code, and upload it to the Arduino using Arduino software.
first I defined servo library to be used in the code later, then defined the buzzer and servo.
#include <Servo.h>
Servo servo_1;
#define pizo 4
char btdata;
int mesure = 10;
int i = 0;
void setup()
{
servo_1.attach(3);
servo_1.write(i);
pinMode(pizo, OUTPUT);
Serial.begin(9600);
}
void loop()
{
if (Serial.available() > 0) {
btdata = Serial.read();
Serial.println(btdata);
if (btdata == 'A') {
i += mesure;
Serial.println(i);
servo_1.write( i);
delay(30);
}
if (btdata == 'a') {
i -= mesure;
servo_1.write(i);
Serial.println(i);
delay(30);
}
if (btdata == 'B') {
digitalWrite(pizo, HIGH);
}
}
}
I installed Arduino Bluetooth control and connected my mobile to the Arduino so that I can send orders to the Arduino
I started physically constructing the circuit after finishing the simulation in Tinker-cad then uploading the code to the Arduino programme.
To check the code, I used a serial monitor.
My design requires a servo motor that can move in two directions and a buzzer that can be controlled by Bluetooth, so I installed Arduino Bluetooth control and connected my phone to the Arduino so that I could send commands to it.
the 2 components function by Bluetooth A,a for the servo motor, B for the buzzer
I questioned my group about the vortex shaker concept, and they gave me some pointers on how to implement it.
after finishing the circuit I shared it with the group to get some feedback
I was having a problem while i was uploading the code to the Arduino and I asked on slack Marwa and Abdelfatah told me I have to get the rx and tx off so that the code will be uploaded then I have another problem with my Bluetooth pairing I asked Abdelfatah and found that I have wrong wiring
Title of Media
Title of Media
May be I can add Bluetooth feature to my project
the competition
Title of Media