Offline
Newbie
Karma: 0
Posts: 12
|
 |
« on: January 01, 2013, 08:10:18 pm » |
Hello, My name is Matt. I'm starting a new project and was wondering if I could get some help from anyone that could offer it. I've been around electronics for a long time and I'm a big DIY gadget freak, but I've never used an Arduino or have done any type of programming. Basically, I just need answers to a few questions I have. If anyone could point me in the right direction, I would very much appreciate it. I'll take as much advice as I an get. I came across this dual motor control instructable... http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/I thought that it was absolutely perfect for what I need to base my next project off of. I would simply tweak the code a little to run the motors in the order and direction I need them to run. However, I need to ask a few questions as I am a novice when it comes to Arduinos... Here it goes, if I bought an Arduino Uno Rev 3 and the SN754410 chip (I already have motors, wires, etc), could I use the Uno to program the chip, then remove the board itself and have the chip run the code? Or do I need to keep the Arduino connected? If I can remove the Uno, what other components would I need to keep the code running on the SN754410 chip? If I do need the Uno, could I use the Arduino Uno to write the code into an Arduino Pro Mini and have that write it into the chip and just use the Pro Mini and the chip? I read a tutorial about integrating the Uno and the Pro Mini simply to copy a program from one to the other and then use the Pro Mini separately. Im trying to keep everything as small as possible and the Uno is simply too big for my project. So if you could help me out with this, I would be truly grateful. Thank you so much and I hope to hear from you soon!  Happy New Years!! Matt
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 71
Posts: 6623
Arduino rocks
|
 |
« Reply #1 on: January 01, 2013, 08:25:21 pm » |
The SN754410 is a driver chip only - it takes logic inputs and amplifies to high current levels needed for motors - by itself it does nothing.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #2 on: January 01, 2013, 08:45:11 pm » |
I see. What about using the Arduino Pro Mini with the chip?
Thank you for your help!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #3 on: January 01, 2013, 11:43:37 pm » |
Anyone?
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Newbie
Karma: 2
Posts: 30
|
 |
« Reply #4 on: January 02, 2013, 06:39:33 am » |
If you are looking to make a small circuit, you might consider building a standalone Arduino circuit with an ATTiny- see this video for more info: http://fritzing.org also may be helpful for you 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #5 on: January 02, 2013, 09:50:01 am » |
That was incredibly helpful! But do you think it will store enough memory to run what I need it to? Controlling 2 micro motors with a certain pattern of function. e.g.. motor one rotates counterclockwise for .5 seconds then motor 2 rotates clockwise for .5 seconds, then motor one rotates clockwise for .5 seconds, then all of that from the end but in reverse (I hope that made sense haha).. Would that work on this chip?
But also, I want to know if my second question is still valid... Whether or not copying a code from an Uno to a Pro Mini then using just the Pro Mini and the SN754410 to control the motors? That would also keep things small (Not as small in the video, but still small).
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 29
Posts: 1572
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #6 on: January 02, 2013, 10:10:14 am » |
That was incredibly helpful! But do you think it will store enough memory to run what I need it to? Controlling 2 micro motors with a certain pattern of function. e.g.. motor one rotates counterclockwise for .5 seconds then motor 2 rotates clockwise for .5 seconds, then motor one rotates clockwise for .5 seconds, then all of that from the end but in reverse (I hope that made sense haha).. Would that work on this chip?
But also, I want to know if my second question is still valid... Whether or not copying a code from an Uno to a Pro Mini then using just the Pro Mini and the SN754410 to control the motors? That would also keep things small (Not as small in the video, but still small).
Thanks! Memory wise: it should be able to, given that its nothing too extensive. Code wise: again it should be able to, but keep in mind your pins. Im not sure if the Pro Mini has its PWM pins labeled or not, but they should be the same as on the UNO
|
|
|
|
« Last Edit: January 02, 2013, 10:14:51 am by HazardsMind »
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #7 on: January 02, 2013, 10:57:57 am » |
So it would be possible to transfer the code from the Uno to Pro Mini correct? If the pins are not labeled on the Pro Mini, couldn't I just check the datasheet? After installing the code onto the Pro Mini, I can use that and the SN754410 to control the motors correct? Id feel safer using the Pro Mini because I wouldn't have to worry about memory.
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 29
Posts: 1572
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #8 on: January 02, 2013, 11:08:57 am » |
Yes, yes, yes and that depends on your code. If it is a LONG code then you might have some memory issues, but from what your telling us, it won't be a problem.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #9 on: January 02, 2013, 11:17:15 am » |
Whoow! Thank you very much for your help everyone!  I really appreciate it!
|
|
|
|
|
Logged
|
|
|
|
|
|