Greece
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« on: May 02, 2013, 02:44:06 am » |
Hello to all,does anyone know how program a mlx10407 to arduino uno??i have 2 aircore motors with 4 wires and i want to use this one because i dont want to spent 12 wires with the l293d
|
|
|
|
« Last Edit: May 02, 2013, 03:18:10 am by ros31 »
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 316
Posts: 35624
Seattle, WA USA
|
 |
« Reply #1 on: May 02, 2013, 04:44:44 am » |
Some links would be useful.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 316
Posts: 35624
Seattle, WA USA
|
 |
« Reply #3 on: May 02, 2013, 05:27:19 am » |
I got a binary file with no extension when I clicked that link. Thanks for the virus.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25613
Solder is electric glue
|
 |
« Reply #4 on: May 02, 2013, 05:57:55 am » |
Look at the data sheet - fig 5. Timing diagram serial link. - shows you how you need to waggle the line up and down in order to feed serial data to it. It looks like you will have to bit bang this rather than use the SPI library. How have you got it wired up?
|
|
|
|
|
Logged
|
|
|
|
|
Greece
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #5 on: May 02, 2013, 06:11:10 am » |
I wire the aircores like datasheet but i dont know were to connect the data wires to arduino and what code to use
|
|
|
|
|
Logged
|
|
|
|
|
Greece
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #6 on: May 02, 2013, 06:22:02 am » |
I got a binary file with no extension when I clicked that link. Thanks for the virus.
I am sorry my friend but its not virus for me
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25613
Solder is electric glue
|
 |
« Reply #7 on: May 02, 2013, 07:00:10 am » |
I wire the aircores like datasheet but i dont know were to connect the data wires to arduino and what code to use
Use the diagram shown in Fig 7. The uP is your arduino. You can use any pins you like, look at the direction of the arrow to see if you need it to be an input or output. Do not forget you need a 8MHz crystal as well. and what code to use You have to write that yourself.
|
|
|
|
|
Logged
|
|
|
|
|
Greece
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #8 on: May 02, 2013, 07:14:49 am » |
I have the oscillator in 8MH ok,my problem is that i dont know how to start the code,i havent program ic like this one bofore,maybe a guide how to start?i have create 2 char to the x sim S for speed and R for rpm
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25613
Solder is electric glue
|
 |
« Reply #9 on: May 02, 2013, 07:19:36 am » |
Look at this http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Buspart way down is code how to bit bang. However it is not arduino code but is very close. For example SPIDELAY is delay and SETCLK() is a digital write HIGH to the pin you wired up as the clock. my problem is that i dont know how to start the code,i havent program ic like this one bofore Are you sure you are ready for this project? It is probably too advanced for you
|
|
|
|
|
Logged
|
|
|
|
|
Greece
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #10 on: May 02, 2013, 07:41:51 am » |
Thanks for the help my friend thank a lot,well in greece we say if you want to learn how to swim fall in to the deep,...
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25613
Solder is electric glue
|
 |
« Reply #11 on: May 02, 2013, 07:53:59 am » |
in greece we say if you want to learn how to swim fall in to the deep Does that explain the Euro crisis. 
|
|
|
|
|
Logged
|
|
|
|
|
Greece
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #12 on: May 02, 2013, 08:24:36 am » |
 no my friend the problem in europe is that some people(politics)they want to be rich!!and they have a way to blame us!!
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25613
Solder is electric glue
|
 |
« Reply #13 on: May 03, 2013, 01:43:11 am » |
Very true. You have my symphithy on that one.
|
|
|
|
|
Logged
|
|
|
|
|
|