Cool model, i wanted to make one with a 555 pwm or something but i like the microcontrollers idea, you could program it to go back and forth in interesting ways as well as speed, if you used a pi pico w or something with WiFi/Bluetooth you could control if via a phone or browser
Hey, thanks so much for this! The robot dancing with the beats on its ears looks amazing. Could you please share the name or reference? I would love to get something similar..any idea what I should search for to buy it?
If you want this code through email then let me know! Select Arduino Nano and port in Arduino IDE software. Here is the code:- // wait for a single step of stepper int delaytime = 2; // ports used to control the stepper motor // if your motor rotate to the opposite direction, // change the order as {4, 5, 6, 7}; int port[4] = {4, 5, 6, 7}; // sequence of stepper motor control int seq[8][4] = { { LOW, HIGH, HIGH, LOW}, { LOW, LOW, HIGH, LOW}, { LOW, LOW, HIGH, HIGH}, { LOW, LOW, LOW, HIGH}, { HIGH, LOW, LOW, HIGH}, { HIGH, LOW, LOW, LOW}, { HIGH, HIGH, LOW, LOW}, { LOW, HIGH, LOW, LOW} }; void rotate(int step) { static int phase = 0; int i, j; int delta = (step > 0) ? 1 : 7; step = (step > 0) ? step : -step; for(j = 0; j < step; j++) { phase = (phase + delta) % 8; for(i = 0; i < 4; i++) { digitalWrite(port[i], seq[phase][i]); } delay(delaytime); } // power cut for(i = 0; i < 4; i++) { digitalWrite(port[i], LOW); } } void setup() { pinMode(port[0], OUTPUT); pinMode(port[1], OUTPUT); pinMode(port[2], OUTPUT); pinMode(port[3], OUTPUT); } void loop() { rotate(100);"
@@3DELWORLD Hi! Thank you for this video - and now I start learning about Nano programming (no experience here). I get an error when running this code. I pasted this into my Arduino IDE 2.3.2 software, and get the following errors: sketch_jul14a.ino: In function 'void setup()': sketch_jul14a\sketch_jul14a.ino:44:6: error: redefinition of 'void setup()' void setup() { ^~~~~ sketch_jul14a\sketch_jul14a.ino:1:6: note: 'void setup()' previously defined here void setup() { ^~~~~ sketch_jul14a.ino: In function 'void loop()': sketch_jul14a\sketch_jul14a.ino:55:6: error: redefinition of 'void loop()' void loop() { ^~~~ sketch_jul14a\sketch_jul14a.ino:51:6: note: 'void loop()' previously defined here void loop() { ^~~~ sketch_jul14a\sketch_jul14a.ino:55:13: error: expected '}' at end of input void loop() { ^ exit status 1 Compilation error: redefinition of 'void setup()' Can you help with this?
Too much effort for just a rotation... No need for a stepper motor and on top a microcontroller. A simple geared motor does the trick more efficiently.
If one was to use a geared motor as you suggest to be more efficient, how would you go about controlling the speed of it and let’s say I wanted to use the same set up and design. How would I add LED light in the center?
I also noticed in the video when he was hooking up the power and ground to the driver. I don’t know if it was just an editing error where he had positive going to negative and negative going to positive. It could just be an editing error, but did you notice that?
@@OutTheGaWoods You can adjust the speed using a variable resistor. Placing an LED in the center is challenging due to the rotation axle. I suggest using transparent PLA and positioning LEDs at the bottom of the box to illuminate the rotating layer from below.
useful model, but wow does it hurt when I see you leave a breadboard in the model! gotta raise that bar just a little! :)
I havent been notified about your videos in so long bro! I always love your content.
Nice to see youve upgraded from your bedslingers! :P
Have you turned on bell icon😅? Glad you liked the content😊👍
@@3DELWORLDI will now good though man I honestly didnt even think of that Thank you
非常に素晴らしい👏
気に入っていただけてよかったです😊👍 ( glad you liked it 😊👍)
Cool model, i wanted to make one with a 555 pwm or something but i like the microcontrollers idea, you could program it to go back and forth in interesting ways as well as speed, if you used a pi pico w or something with WiFi/Bluetooth you could control if via a phone or browser
Sounds interesting!
Hello I am trying to to recreate this project but I am having a hard time finding a 5v power jack module. Is there any alternative that I can use?
Wow super very good 👌🏻
Hey, thanks so much for this! The robot dancing with the beats on its ears looks amazing. Could you please share the name or reference? I would love to get something similar..any idea what I should search for to buy it?
Hey, Glad you liked the video 😊. The robot name is EMO.
Where did you get the little robot in your videos?
Please, where is the code?
If you want this code through email then let me know!
Select Arduino Nano and port in Arduino IDE software. Here is the code:-
// wait for a single step of stepper
int delaytime = 2;
// ports used to control the stepper motor
// if your motor rotate to the opposite direction,
// change the order as {4, 5, 6, 7};
int port[4] = {4, 5, 6, 7};
// sequence of stepper motor control
int seq[8][4] = {
{ LOW, HIGH, HIGH, LOW},
{ LOW, LOW, HIGH, LOW},
{ LOW, LOW, HIGH, HIGH},
{ LOW, LOW, LOW, HIGH},
{ HIGH, LOW, LOW, HIGH},
{ HIGH, LOW, LOW, LOW},
{ HIGH, HIGH, LOW, LOW},
{ LOW, HIGH, LOW, LOW}
};
void rotate(int step) {
static int phase = 0;
int i, j;
int delta = (step > 0) ? 1 : 7;
step = (step > 0) ? step : -step;
for(j = 0; j < step; j++) {
phase = (phase + delta) % 8;
for(i = 0; i < 4; i++) {
digitalWrite(port[i], seq[phase][i]);
}
delay(delaytime);
}
// power cut
for(i = 0; i < 4; i++) {
digitalWrite(port[i], LOW);
}
}
void setup() {
pinMode(port[0], OUTPUT);
pinMode(port[1], OUTPUT);
pinMode(port[2], OUTPUT);
pinMode(port[3], OUTPUT);
}
void loop() {
rotate(100);"
@@3DELWORLD Hi! Thank you for this video - and now I start learning about Nano programming (no experience here). I get an error when running this code. I pasted this into my Arduino IDE 2.3.2 software, and get the following errors:
sketch_jul14a.ino: In function 'void setup()':
sketch_jul14a\sketch_jul14a.ino:44:6: error: redefinition of 'void setup()'
void setup() {
^~~~~
sketch_jul14a\sketch_jul14a.ino:1:6: note: 'void setup()' previously defined here
void setup() {
^~~~~
sketch_jul14a.ino: In function 'void loop()':
sketch_jul14a\sketch_jul14a.ino:55:6: error: redefinition of 'void loop()'
void loop() {
^~~~
sketch_jul14a\sketch_jul14a.ino:51:6: note: 'void loop()' previously defined here
void loop() {
^~~~
sketch_jul14a\sketch_jul14a.ino:55:13: error: expected '}' at end of input
void loop() {
^
exit status 1
Compilation error: redefinition of 'void setup()'
Can you help with this?
I need this soldering jig, i could not find on the internet, can you share it?
Yes, It's actually Helping Hands: www.printables.com/model/741057-fully-3d-printable-helping-handspcb-holder
Thank you very much @@3DELWORLD
@@sumeyraakalin9167 Glad it helped😊👍
Too much effort for just a rotation... No need for a stepper motor and on top a microcontroller. A simple geared motor does the trick more efficiently.
If one was to use a geared motor as you suggest to be more efficient, how would you go about controlling the speed of it and let’s say I wanted to use the same set up and design. How would I add LED light in the center?
I also noticed in the video when he was hooking up the power and ground to the driver. I don’t know if it was just an editing error where he had positive going to negative and negative going to positive. It could just be an editing error, but did you notice that?
@@OutTheGaWoods You can adjust the speed using a variable resistor. Placing an LED in the center is challenging due to the rotation axle. I suggest using transparent PLA and positioning LEDs at the bottom of the box to illuminate the rotating layer from below.