this is for flip Clock project the motor 1 move 6 degrees.
motor 2 move 15 degrees every hour.
the well that hold the flaps have magnet that work like home position if the program didn’t pass the magnet when it suppose to the DLC will tell him to search the home position and get the time right.
to the batteries I didn’t know how to connect it
by the way i don’t know how to program well
Rather than pictures which aren’t very useful in debugging it is a better bet to upload the sketch (the .fzz file after you save the sketch, upload is 7th icon from the left in the reply menu and will accept .fzz files.) Presumably the battery should connect to ground and VIN although at only 6V it may not have enough voltage for VIN (I think the minimum may be 7 volts.) If you want help with the code you probably need to upload that as well (you can cut and paste the C code in to a post.)
well people noted me that my project won’t work i need to change it and connect the motors like this
Wiring-Two-28BYJ48-Stepper-Motors-with-Arduino.png (718×428) (lastminuteengineers.com)
i fallow the picture but i didn’t understand 5v adapter
i have a3144 hall senser and RLC it was not so hard to connect it
i want to put a phone charger to as power source now for that I add Arduino nano because my project work on 5v
now I’m more confused then ever
As noted, pictures are basically worthless. Without the .fzz file of the sketch it is basically impossible to make any useful comment. It is not possible from the image to see how the drivers are connected. If you want an external line powered power source use one of the generic power supplies available here
I don’t how to export as sketch
File->save as (circled in green here)
set an appropriate file name (and directory in the top line!)
then press save which saves the sketch as a .fzz file. Fritzing will now restore the file if you double click in the .fzz file. I assume you must already know this as otherwise you would need to recreate the sketch every time, perhaps my terminology is unclear.
flipclock.fzz (220.8 KB)
i still don’t know how to connect motors to power
Only a suggestion from my side: you can connect the stepper motors directly to the stepper drivers like in the following image (saving a lot of redundant wires)
i swear to God I didn’t know this is possible.
don’t worry, it is “one of a kind” (and to be honest, I know because I created it)
It requires the correct configuration in the parts and that (in this case) that you move the board in to alignment with the connector on the motor (the other way will not connect.) With that on to your sketch. First I rerouted breadboard to make it easier to read
then I routed schematic to check the connections
From schematic we see you have no ground or power to the motor connections on the driver board
so you need to connect a ground and a motor power source to those pins (in both breadboard and schematic.) Then there is a problem with the U1 A3144. It is connected to A4 (which is also SDA as the (a5/SDA on the Uno indicates) and thus won’t work. The A3144 needs to move to another digital pin. It also needs a 10k pull up resistor to 5V as detailed in this post
I don’t know if the .1uf cap is actually needed or not but the pull up resistor is. That should fix all the obvious errors (but will also require changes to the code in the Arduino.) The changes are this sketch
flipclock-1.fzz (54.8 KB)